joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fc10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14002f020]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x14000fe18
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xor r14d, r14d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x14000fc81
movabs rsi, 0x7ffffffffffffffe
cmp rbx, rsi
ja 0x14000fe5a
mov qword [rsp + 0x78], 7
cmp rbx, 8
jae 0x14000fcce
mov qword [rsp + 0x70], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14001fec0
mov word [rsp + rbx + 0x60], r14w
jmp 0x14000fd20
mov rax, rbx
or rax, 7
cmp rax, rsi
ja 0x14000fce9
mov rsi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rsi, rcx
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x60]
call fcn.140013000
mov rdi, rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.14001fec0
mov word [rbx + rdi], r14w
lea rdx, str.WindowsShell.Manifest
lea rcx, [rsp + 0x60]
call fcn.140015280
mov qword [rsp + 0x28], 0x38
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
cmp rax, 0xffffffffffffffff
jne 0x14000fda2
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rbx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rbx
lea rcx, str.CreateActCtxW_failed_using_manifest__s._Error_code:__d
call fcn.140014a80
xor bl, bl
jmp 0x14000fdce
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14000fdcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ActivateActCtx_failed._Error_code:__d
call fcn.140014a80
xor bl, bl
jmp 0x14000fdce
mov bl, 1
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000fe13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fe0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fe0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e600
movzx eax, bl
jmp 0x14000fe2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetWindowsDirectory_failed._Error_code:__d
call fcn.140014a80
xor al, al
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14001e5e0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14000e460
int3
Function at 0x140015700
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14002f020]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
xor r8d, r8d
xor edx, edx
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x140015799
mov eax, 2
mul rdi
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.14001e8cc
mov rbp, rax
mov r8d, edi
mov rdx, rax
lea rcx, str.DOTNET_RUNTIME_ID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140015840
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1400157c8
test eax, eax
jle 0x1400157b2
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str.DOTNET_RUNTIME_ID
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140014e70
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
mov r8d, 7
lea rdx, str.win_x64
mov rcx, rsi
call fcn.140013450
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400158aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015830
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015830
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e600
jmp 0x1400158aa
inc rbx
cmp word [rbp + rbx*2], 0
jne 0x140015840
mov rax, qword [rsp + 0x48]
cmp rbx, rax
ja 0x140015881
lea rdi, [rsp + 0x30]
cmp rax, 8
cmovae rdi, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.14001fec0
mov word [rbx + rdi], r14w
jmp 0x140015891
mov r9, rbp
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140013990
mov rcx, rbp
call fcn.14001e600
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001e5e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400158d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14002f020]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov r14, rcx
lea r15, [rdx + 0x10]
xor r12d, r12d
mov qword [r15], r12
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x140015912
mov rax, qword [rdx]
mov word [rax], r12w
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r12
mov word [rsp + 0x20], r12w
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x140015977
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140015a95
test eax, eax
jle 0x140015960
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
mov rdx, r14
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140014e70
jmp 0x140015a95
mov eax, 2
mul rdi
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.14001e8cc
mov rbp, rax
mov r8d, edi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140015943
nop dword [rax + rax]
inc rbx
cmp word [rbp + rbx*2], 0
jne 0x1400159b0
mov rax, qword [rsp + 0x38]
cmp rbx, rax
ja 0x1400159f1
lea rdi, [rsp + 0x20]
cmp rax, 8
cmovae rdi, qword [rsp + 0x20]
mov qword [rsp + 0x30], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.14001fec0
mov word [rbx + rdi], r12w
jmp 0x140015a01
mov r9, rbp
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140013990
mov rcx, rbp
call fcn.14001e600
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001a200
test al, al
je 0x140015a75
lea rax, [rsp + 0x20]
cmp rsi, rax
je 0x140015a71
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r9, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsi + 0x18]
cmp rbx, rax
ja 0x140015a66
cmp rax, 8
jb 0x140015a4b
mov rsi, qword [rsi]
mov qword [r15], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rsi
call fcn.14001fec0
mov word [rsi + rbx*2], r12w
mov bl, 1
jmp 0x140015a97
mov rdx, rbx
mov rcx, rsi
call fcn.140013990
mov bl, 1
jmp 0x140015a97
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r8, qword [rsp + 0x20]
mov rdx, r14
lea rcx, str.Did_not_find___s__directory___s_
call fcn.140014a80
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140015adc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015ad7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015ad7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e600
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001e5e0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140019ac0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14002f020]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], bp
movzx eax, byte [str.d38cc827_e34f_4453_9df4_1e796e9f1d07]
cmp al, 0x65
jne 0x140019b61
mov qword [rsp + 0x30], rbp
mov word [rsp + 0x20], bp
xor r8d, r8d
xor edx, edx
lea rcx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x140019bbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140019b61
test eax, eax
jle 0x140019b4b
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.140014e70
mov rdx, r14
mov ecx, 7
call fcn.140019ce0
movzx ebx, al
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140019cb7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019cb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140019cb2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov eax, 2
mul rdi
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.14001e8cc
mov rsi, rax
mov r8d, edi
mov rdx, rax
lea rcx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140019b32
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140019bf6
mov rax, qword [rsp + 0x38]
cmp rbx, rax
ja 0x140019c35
lea rdi, [rsp + 0x20]
cmp rax, 8
cmovae rdi, qword [rsp + 0x20]
mov qword [rsp + 0x30], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14001fec0
mov word [rbx + rdi], bp
jmp 0x140019c45
mov r9, rsi
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140013990
mov rcx, rsi
call fcn.14001e600
lea rax, [rsp + 0x20]
cmp r14, rax
je 0x140019cab
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r9, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov rax, qword [r14 + 0x18]
cmp rbx, rax
ja 0x140019ca0
mov rdi, r14
cmp rax, 8
jb 0x140019c82
mov rdi, qword [r14]
mov qword [r14 + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rdi
call fcn.14001fec0
mov word [rdi + rbx*2], bp
mov bl, 1
jmp 0x140019b71
mov rdx, rbx
mov rcx, r14
call fcn.140013990
mov bl, 1
jmp 0x140019b71
call fcn.14001e600
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001e5e0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14001f160
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f1aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001f1aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001f1aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001f1aa
cmp dword [rcx + 0x84], 0xe
jbe 0x14001f1aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001f1ac
xor al, al
add rsp, 0x28
ret
Function at 0x1400011a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
test rcx, rcx
je 0x1400011d7
mov r13d, edx
test edx, edx
jne 0x1400011de
xor eax, eax
jmp 0x1400012d1
movsxd rax, dword [rcx + 0x3c]
mov r12, rcx
xor r14d, r14d
add rax, rcx
mov ebx, dword [rax + 0x88]
mov eax, dword [rax + 0x8c]
add rbx, rcx
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x1c]
mov esi, dword [rbx + 0x20]
mov r15d, dword [rbx + 0x24]
mov dword [rsp + 0x2c], eax
cmp dword [rbx + 0x18], r14d
jbe 0x1400011d7
mov edi, r14d
lea rax, [r12 + rdi*4]
mov ebp, dword [rax + rsi]
add rbp, r12
mov rcx, rbp
call fcn.140002fb0
mov r8d, 1
mov rcx, rbp
mov edx, eax
call fcn.1400010c0
cmp eax, r13d
jne 0x1400012c9
add rdi, rdi
mov r13d, dword [rsp + 0x2c]
add rdi, r12
movzx eax, word [rdi + r15]
lea rax, [r12 + rax*4]
mov eax, dword [rax + r13]
add rax, r12
mov qword [rsp + 0x38], rax
cmp rax, rbx
jae 0x14000126c
mov rax, qword [rsp + 0x38]
jmp 0x1400012d1
mov esi, dword [rsp + 0x28]
add rsi, r12
add rsi, rbx
cmp rax, rsi
jae 0x140001265
mov rcx, rbp
call fcn.140002fb0
mov qword [rsp + 0x48], rbp
mov word [rsp + 0x40], ax
inc eax
mov word [rsp + 0x42], ax
mov rax, qword [0x140005020]
mov rax, qword [rax]
mov rax, qword [rax + 0x138]
test rax, rax
je 0x1400011d7
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x38]
mov rcx, r12
call rax
test eax, eax
jns 0x140001265
jmp 0x1400011d7
inc r14d
jmp 0x14000120c
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400017f0
Capabilities:
Hash data using murmur3

Disassembly:
mov eax, edx
mov r10, rcx
mov r9d, r8d
mov ecx, edx
mov r8d, 4
cdq
idiv r8d
lea edx, [rax*4]
neg eax
movsxd rdx, edx
cdqe
add r10, rdx
test eax, eax
je 0x140001843
imul r8d, dword [r10 + rax*4], 0xcc9e2d51
inc rax
rol r8d, 0xf
imul r8d, r8d, 0x1b873593
xor r8d, r9d
rol r8d, 0xd
lea r8d, [r8 + r8*4]
lea r9d, [r8 - 0x19ab949c]
jmp 0x140001815
mov eax, ecx
and eax, 3
cmp eax, 2
je 0x140001864
cmp eax, 3
je 0x14000185a
dec eax
jne 0x140001888
xor edx, edx
jmp 0x140001870
movzx eax, byte [r10 + 2]
shl eax, 0x10
jmp 0x140001866
xor eax, eax
movzx edx, byte [r10 + 1]
shl edx, 8
xor edx, eax
movzx eax, byte [r10]
xor eax, edx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor r9d, eax
xor ecx, r9d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
ret
Function at 0x140005434
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword gs:[0x60]
mov ebp, ecx
mov r14, qword [rax + 0x18]
add r14, 0x10
mov rsi, qword [r14]
jmp 0x1400054e2
test rsi, rsi
je 0x1400054df
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
mov rdi, qword [rsi + 0x60]
xor edx, edx
and qword [rsp + 0x30], 0
mov r8, rdi
and dword [rsp + 0x28], 0
mov ecx, 0xfde9
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.1400055e0
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rdi
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400054eb
mov rcx, r15
call fcn.1400013f8
cmp eax, ebp
je 0x140005506
mov rsi, qword [rsi]
cmp rsi, r14
jne 0x140005464
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov rax, qword [rsi + 0x30]
jmp 0x1400054ed

Function at 0x14000550c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov r15d, edx
mov r11, rcx
cmp word [rcx], ax
jne 0x140005583
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140005583
mov ecx, dword [rax + rcx + 0x88]
add rcx, r11
je 0x140005583
mov ebp, dword [rcx + 0x20]
xor ebx, ebx
mov edi, dword [rcx + 0x24]
add rbp, r11
mov esi, dword [rcx + 0x1c]
add rdi, r11
mov r14d, dword [rcx + 0x18]
add rsi, r11
test r14, r14
je 0x140005583
mov ecx, dword [rbp + rbx*4]
add rcx, r11
call fcn.1400013f8
cmp eax, r15d
je 0x14000559e
inc rbx
cmp rbx, r14
jb 0x14000556a
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
movzx eax, word [rdi + rbx*2]
mov eax, dword [rsi + rax*4]
add rax, r11
jmp 0x140005585

Function at 0x140006140
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140089810]
mov dword [rax], 1
mov rax, qword [0x140089820]
mov dword [rax], 1
mov rax, qword [0x140089830]
mov dword [rax], 1
mov rax, qword [0x140089790]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140052520
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14006cf60
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140062770
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140052579
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14006bc40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14007d3d0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14007d3d0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14006c912
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140093728]
test eax, eax
je 0x14006c9aa
lea rax, [0x140093700]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140093730]
mov qword [rbp - 8], rax
jmp 0x14006c98e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14006c982
cmp qword [rbp - 0x10], 0
je 0x14006c982
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14006c948
lea rax, [0x140093700]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14006c9ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14006cab0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14006cad8
mov eax, 0
jmp 0x14006cb26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14006cb01
mov eax, 0
jmp 0x14006cb26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14006cb21
mov eax, 0
jmp 0x14006cb26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14006cb2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14006cbaa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14006cba1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14006cba1
mov rax, qword [rbp - 8]
jmp 0x14006cbbf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14006cb74
mov eax, 0
add rsp, 0x20
pop rbp
ret