joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007f670
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str.p__v_]
mov rdi, rax
test rax, rax
jne 0x14007f6b2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14007f6f9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14007f752
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14007f710
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14007f793
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14010882a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14010882b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007f760
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140081610
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14008164d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400815b0
add rsp, 0x58
ret
Function at 0x14008f400
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14008eee0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14008f43f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1400fb6f0]
jmp 0x14008f449
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400cb2f0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140085680
sub rsp, rax
mov rax, qword [0x14013a180]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14013d4d0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, ntohs
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400cb4e2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1400cb436
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400cb436
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1400cb41b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], reloc.WS2_32.dll_listen
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400cb3b8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cb4a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400cb501
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1400cb4dd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400cb501
jmp 0x1400cb38e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400844a0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400cb520
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140085680
sub rsp, rax
mov rax, qword [0x14013a180]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14013d4d0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, ntohs
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400cb72d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1400cb679
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400cb679
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400cb659
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, reloc.WS2_32.dll_listen
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400cb5e8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400cb6ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400cb74c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1400cb728
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400cb74c
jmp 0x1400cb5be
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400844a0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400d1040
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400da010
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1400d9510
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400da077
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1400fb6f8]
jmp 0x1400da099
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400da3a0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400dbe10
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [0x14013a180]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x104
ja 0x1400dbe69
lea rcx, [rsp + 0x50]
call fcn.1400dbdb0
jmp 0x1400dbf3c
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov dword [rsp + 0x20], Ordinal_41
lea r9, str.minkernelcrtsucrt_srcdesktopcrtmiscdrive.cpp
mov r8d, 2
mov edx, 2
mov ecx, eax
call fcn.14009bf10
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14007f7e0
lea rcx, [rsp + 0x38]
call fcn.14007f970
test rax, rax
jne 0x1400dbed1
call fcn.1400ad560
mov dword [rax], ntohs
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x38]
call fcn.14007f800
mov eax, dword [rsp + 0x40]
jmp 0x1400dbf3c
lea rcx, [rsp + 0x38]
call fcn.14007f970
mov ecx, dword [rsp + 0x30]
inc ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400dbf18
call fcn.1400ad560
mov dword [rax], ntohs
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x38]
call fcn.14007f800
mov eax, dword [rsp + 0x48]
jmp 0x1400dbf3c
lea rcx, [rsp + 0x38]
call fcn.14007f970
mov rcx, rax
call fcn.1400dbdb0
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.14007f800
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400844a0
add rsp, 0x270
pop rdi
ret
Function at 0x1400e6830
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14007f7e0
lea rcx, [rsp + 0x40]
call fcn.1400e67f0
movzx eax, al
test eax, eax
jne 0x1400e6878
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1400e6700
mov rax, qword [rsp + 0x70]
jmp 0x1400e6a49
lea rcx, [rsp + 0x40]
call fcn.14007f970
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400e67a0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14007f970
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400e42b0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400e691e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1400e6700
mov rax, qword [rsp + 0x80]
jmp 0x1400e6a49
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14009c020
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14007f7e0
lea rcx, [rsp + 0x48]
call fcn.14007f820
movzx eax, al
test eax, eax
jne 0x1400e6985
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14007f800
lea rcx, [rsp + 0x40]
call fcn.1400e6700
mov rax, qword [rsp + 0x88]
jmp 0x1400e6a49
lea rcx, [rsp + 0x48]
call fcn.14007f970
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14007f970
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400e42b0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400e6a1b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14007f800
lea rcx, [rsp + 0x40]
call fcn.1400e6700
mov rax, qword [rsp + 0xa0]
jmp 0x1400e6a49
lea rcx, [rsp + 0x48]
call fcn.140087a70
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14007f800
lea rcx, [rsp + 0x40]
call fcn.1400e6700
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400e6a60
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14007f7e0
lea rcx, [rsp + 0x20]
call fcn.1400e6720
movzx eax, al
test eax, eax
jne 0x1400e6aa5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1400e6700
mov rax, qword [rsp + 0x40]
jmp 0x1400e6b9f
lea rcx, [rsp + 0x20]
call fcn.14007f970
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1400e67a0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.14009c020
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14007f7e0
lea rcx, [rsp + 0x28]
call fcn.14007f820
movzx eax, al
test eax, eax
jne 0x1400e6b3f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14007f800
lea rcx, [rsp + 0x20]
call fcn.1400e6700
mov rax, qword [rsp + 0x50]
jmp 0x1400e6b9f
lea rcx, [rsp + 0x20]
call fcn.14007f970
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14007f970
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400f64c0
lea rcx, [rsp + 0x28]
call fcn.140087a70
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14007f800
lea rcx, [rsp + 0x20]
call fcn.1400e6700
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400e82d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400f2fb0
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x14013a180]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x60], 0x1a
jbe 0x1400f307d
call fcn.1400ad530
mov dword [rax], reloc.WS2_32.dll_ntohs
xor eax, eax
test eax, eax
je 0x1400f2fed
mov dword [rsp + 0x34], 1
jmp 0x1400f2ff5
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1400f303e
lea rax, str.__Invalid_Drive_Index___0_
mov qword [rsp + 0x28], rax
lea rax, [0x140109d90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, Ordinal_33
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
mov ecx, 2
call fcn.140091640
cmp eax, 1
jne 0x1400f303e
int3
cmp dword [rsp + 0x38], 0
jne 0x1400f307d
call fcn.1400ad560
mov dword [rax], reloc.WS2_32.dll_listen
mov qword [rsp + 0x20], 0
mov r9d, Ordinal_33
lea r8, str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
lea rdx, str.is_valid_drive
lea rcx, str.__Invalid_Drive_Index___0_
call fcn.1400924b0
xor eax, eax
jmp 0x1400f30e2
cmp dword [rsp + 0x60], 0
jne 0x1400f308b
mov eax, 1
jmp 0x1400f30e2
mov eax, dword [rsp + 0x60]
add eax, 0x40
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x40], ax
mov eax, Ordinal_60
mov word [rsp + 0x42], ax
mov eax, 0x5c
mov word [rsp + 0x44], ax
xor eax, eax
mov word [rsp + 0x46], ax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x1400f30d9
cmp dword [rsp + 0x3c], 1
jne 0x1400f30dd
xor eax, eax
jmp 0x1400f30e2
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400844a0
add rsp, 0x58
ret

Function at 0x1400f3e10
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400b0910
lea rcx, [rsp + 0x48]
call fcn.1400b0910
call fcn.1400b0be0
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400afc20
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400f3e7f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400b0990
lea rcx, [rsp + 0x78]
call fcn.1400b0990
mov eax, dword [rsp + 0x24]
jmp 0x1400f3f10
call fcn.1400b0be0
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400afc20
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400f3ec6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400b0990
lea rcx, [rsp + 0x78]
call fcn.1400b0990
mov eax, dword [rsp + 0x2c]
jmp 0x1400f3f10
lea rcx, [rsp + 0x48]
call fcn.1400b1060
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400b1060
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400b0990
lea rcx, [rsp + 0x78]
call fcn.1400b0990
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140011118
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001f2e0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14003a067]
call fcn.140011a46
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001f337
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001f443
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001f3dc
cmp qword [rbp + 0x28], 0
jle 0x14001f3dc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001f37c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400119b0
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001f432
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001f432
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400115dc
Capabilities:
Terminate process

Disassembly:
jmp 0x140022570
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011744
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400230a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400230c0
xor al, al
jmp 0x140023141
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400230d3
xor al, al
jmp 0x140023141
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400230fd
xor al, al
jmp 0x140023141
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140023111
xor al, al
jmp 0x140023141
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140023123
xor al, al
jmp 0x140023141
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002313f
xor al, al
jmp 0x140023141
mov al, 1
add rsp, 0x38
ret