joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064004
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140064032
xor eax, eax
jmp 0x140064116
cmp qword [rcx + 0x68], 0
je 0x140064044
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x140064116
mov rax, qword [rcx + 0x38]
mov rsi, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14006405b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14006405d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14006408a
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rbp
add r14, rbx
sub rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
je 0x140064110
mov r8, qword [rbp + 0x18]
lea rax, [rbp + 0x70]
cmp qword [r8], rax
jne 0x1400640c1
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbp + 0x38]
mov qword [rax], rcx
mov rax, qword [rbp + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400640eb
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140064110
cmp rsi, rbx
ja 0x1400640c8
test rsi, rsi
je 0x140064110
mov r9, qword [rbp + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
sub rdi, rsi
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140064134
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14006415e
call qword [sym.imp.MSVCP140.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 0x1400641d1
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140064175
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140064177
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400641cb
test ecx, ecx
jle 0x1400641ab
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x1400641cb
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400641cb
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140064340
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14009c248]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor ebx, ebx
mov rsi, r8
lea ecx, [rbx + 0x18]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Module32FirstW
jmp 0x1400643ae
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea rdx, [rsp + 0x20]
mov rcx, rdi
test eax, eax
cmove rbx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x14006438b
mov rax, rbx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140066800
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140064488
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14009c248]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, rcx
lea rdx, str.cs2.exe
lea rcx, [0x14009cab0]
mov esi, r9d
call fcn.1400643dc
mov rbx, rax
test eax, eax
jne 0x1400644da
or ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movsxd rdx, ebx
lea r8, str.client.dll
lea rcx, [0x14009cab0]
call fcn.1400642b4
lea r8, str.client.dll
mov qword [rsp + 0x30], rax
mov edx, ebx
lea rcx, [0x14009cab0]
call fcn.140064340
xor edx, edx
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x20]
lea r8d, [rdx + 0x48]
call sub.VCRUNTIME140.dll_memset
and dword [rbp + 0x90], 0
lea rax, str.Tim_Apple
and qword [rbp + 0x98], 0
lea r9, [0x14006423c]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x70], xmm0
mov r8, rdi
movdqa xmmword [rbp + 0x80], xmm1
lea rdx, [rsp + 0x70]
mov dword [rbp + 0x68], 0xb000
lea rcx, [rbp - 0x40]
mov dword [rbp + 0x6c], 0xa000
call fcn.1400191f8
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r8d, ebx
lea rcx, [rbp - 0x40]
mov edx, eax
call fcn.14001916c
lea rcx, [rbp - 0x40]
call fcn.140019558
lea rcx, [rbp - 0x40]
call fcn.140019430
mov edx, esi
lea rcx, [rbp - 0x40]
call fcn.1400192c8
movups xmm0, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x50]
movsd xmm1, qword [rsp + 0x40]
lea rcx, [rbp - 0x40]
movaps xmmword [rsp + 0x50], xmm0
movsd qword [rsp + 0x60], xmm1
call fcn.1400195f0
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140066800
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1b0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140065dbc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140065e40
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140075420]
cmp byte [rcx + rax], 0
je 0x140065e40
dec r8
sub rdx, 1
jne 0x140065e26
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140066fb4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140066ffe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140066ffe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140066ffe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140066ffe
cmp dword [rcx + 0x84], 0xe
jbe 0x140066ffe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140067000
xor al, al
add rsp, 0x28
ret
Function at 0x140055120
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005512d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005513d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140055125
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140055155
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140055142
sub eax, 3
jb 0x14005516f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400551a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140055196
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140055194
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140055183
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400550e2
jmp 0x14005512d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400551f2
cmp rsi, rcx
jae 0x1400551fa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400551d9
cmp al, 0x8f
ja 0x1400551d9
cmp byte [rsi - 2], 0xf
je 0x1400551df
sub al, 0xe8
cmp al, 1
ja 0x1400551c3
cmp rsi, rcx
jae 0x1400551fa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400551c9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400551fa
lodsb al, byte [rsi]
jmp 0x1400551d9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x53000]
mov eax, dword [rdi]
or eax, eax
je 0x140055263
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x555f0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140055207
jns 0x14005523c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140055246
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005525d
mov qword [rbx], rax
add rbx, 8
jmp 0x140055227
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005529d
cmp al, 0xef
ja 0x14005528f
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005526f
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005527e
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400552f1
sub rsp, 0xffffffffffffff80
jmp 0x14000afb0
Function at 0x3a4db53d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.3a4dbf6a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.3a4dbf6a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x3a4db5440
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3a4e8f114]
mov rbx, rcx
test esi, esi
jle 0x3a4db5570
mov rax, qword [0x3a4e8f118]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3a4db548b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3a4db5515
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3a4db5470
mov rcx, rbx
call fcn.3a4db5ca0
mov rdi, rax
test rax, rax
je 0x3a4db5592
mov rax, qword [0x3a4e8f118]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.3a4db5de0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3a4e8f118]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3a4db5577
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3a4db550e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3a4db5520
add dword [0x3a4e8f114], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x3a4e8f118]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3a4db550e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3a4db53d0
nop dword [rax]
xor esi, esi
jmp 0x3a4db5498
mov rax, qword [0x3a4e8f118]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.3a4db53d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.3a4db53d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3a4db5910
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3a4e8f140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3a4e8f120]
test rbx, rbx
je 0x3a4db596c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x3a4db5963
test rsi, rsi
je 0x3a4db5963
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3a4db5948
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x3a4db5ca0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3a4e69730]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3a4db5cc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3a4db5cc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3a4db5cc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3a4db5d1d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3a4db5d14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3a4db5cc0
add rax, 0x28
cmp rax, r9
jne 0x3a4db5d00
xor eax, eax
ret

Function at 0x3a4db5d20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a4e69730]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x3a4db5d3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3a4db5d48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x3a4db5d3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x3a4db5de0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a4e69730]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3a4db5dff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3a4db5e08
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x3a4e230f0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x3a4e23138
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x3a4e2310a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x3a4e5dbf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x3a4e62440]
jmp 0x3a4db6b00

Function at 0x3a4e5dc00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x3a4e62440]
jmp 0x3a4db6b00
Function at 0x140007bc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007c0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007c0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007c0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007c0e
cmp dword [rcx + 0x84], 0xe
jbe 0x140007c0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007c10
xor al, al
add rsp, 0x28
ret

Function at 0x14000e5cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e3c8
Function at 0x1400138f8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140013928
xor eax, eax
jmp 0x1400139eb
mov rbp, rbx
cmp word [rax], si
je 0x14001394d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013934
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013930
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140013818
movsxd r14, eax
test eax, eax
jne 0x14001398b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013921
mov rcx, r14
call fcn.1400100ac
mov rdi, rax
test rax, rax
jne 0x1400139a4
xor ecx, ecx
call fcn.14000f434
jmp 0x140013980
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140013818
test eax, eax
jne 0x1400139d5
mov rcx, rdi
call fcn.14000f434
jmp 0x1400139df
xor ecx, ecx
call fcn.14000f434
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140017d0c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140017d22
mov al, 1
jmp 0x140017d82
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017d33
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140017d80
mov ecx, dword [rcx + 0x18]
nop
call fcn.140014218
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140017d80
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140017d80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140017d80
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140017d82
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018dc0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400128e8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140018e4a
cmp byte [rbp - 0x21], r15b
je 0x140018e45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018e80
call fcn.14000f684
test eax, eax
jne 0x140018e6c
cmp byte [rbp - 0x21], r15b
je 0x140018e64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018e80
cmp byte [rbp - 0x21], r15b
je 0x140018e7d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140011ec8
test eax, eax
jne 0x140018f20
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400128e8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140018ebf
cmp byte [rbp - 0x21], r15b
je 0x140018ef4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140018ef4
call fcn.14000f684
test eax, eax
jne 0x140018ee0
cmp byte [rbp - 0x21], r15b
je 0x140018ed9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140018ef4
cmp byte [rbp - 0x21], r15b
je 0x140018ef1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140011ec8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140018f20
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140018f23
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140018f31
mov rcx, rdi
call fcn.14000f434
cmp byte [rbp + 0x3f], r15b
je 0x140018f40
mov rcx, qword [rbp + 0x27]
call fcn.14000f434
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001b530
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b558
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001b558
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140015290
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14001529d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400152ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140015295
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400152c5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400152b2
sub eax, 3
jb 0x1400152df
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140015316
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140015306
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140015304
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400152f3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140015252
jmp 0x14001529d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8600
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140015362
cmp rsi, rcx
jae 0x14001536a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140015349
cmp al, 0x8f
ja 0x140015349
cmp byte [rsi - 2], 0xf
je 0x14001534f
sub al, 0xe8
cmp al, 1
ja 0x140015333
cmp rsi, rcx
jae 0x14001536a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140015339
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001536a
lodsb al, byte [rsi]
jmp 0x140015349
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x13000]
mov eax, dword [rdi]
or eax, eax
je 0x1400153d3
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x157f4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140015377
jns 0x1400153ac
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400153b6
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400153cd
mov qword [rbx], rax
add rbx, 8
jmp 0x140015397
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14001540d
cmp al, 0xef
ja 0x1400153ff
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400153df
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400153ee
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140015461
sub rsp, 0xffffffffffffff80
jmp 0x1400083dc