joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008fd8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x14000901f
cmp rcx, 0xffffffffffffffff
je 0x14000901f
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000901d
cmp dword [rcx + 0x3c], edx
jl 0x14000901d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000901d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000901f
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14000e0b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x48
lea rax, [r11 + 0x18]
lea rdx, str.LogFont
xor r8d, r8d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r9
lea r9, [r11 - 0x18]
mov dword [rsp + 0x60], 0x5c
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
cmp eax, ecx
je 0x14000e0ed
xor al, al
jmp 0x14000e102
cmp dword [rsp + 0x30], 3
jne 0x14000e100
cmp dword [rsp + 0x60], 0x5c
jne 0x14000e100
mov ecx, 1
mov al, cl
add rsp, 0x48
ret

Function at 0x14001019c
Capabilities:
Extract resource via kernel32 functions

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 r12
push r13
push r14
sub rsp, 0x20
mov r13, rcx
mov r12d, edx
lea rcx, [0x140025f60]
xor edx, edx
xor ebx, ebx
call fcn.140011d7c
lea r14d, [rbx + 1]
mov ebp, r14d
jmp 0x140010282
test rbx, rbx
jne 0x14001028e
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, r14w
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbx, rax
test rax, rax
je 0x140010271
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14001021e
xor ebx, ebx
jmp 0x14001026c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14001021a
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x14001025b
cmp rdi, r11
jae 0x14001021a
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140010249
cmp rdi, r11
jae 0x14001021a
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
jne 0x140010290
lea rcx, [0x140025f60]
mov edx, ebp
call fcn.140011d7c
add ebp, r14d
mov rsi, rax
test rax, rax
jne 0x1400101db
xor esi, esi
test rsi, rsi
jne 0x140010299
xor eax, eax
jmp 0x1400102a7
mov r8d, r12d
mov rdx, rsi
mov rcx, r13
call fcn.1400102cc
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x1400102cc
Capabilities:
Extract resource via kernel32 functions

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 r12
push r13
push r14
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov r14d, 1
shr eax, 4
mov edi, r8d
mov rsi, rcx
add ax, r14w
lea r8d, [r14 + 5]
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r13d, r13d
mov r12, rax
cmp rax, r13
je 0x14001043e
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x14001043e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
cmp rax, r13
je 0x14001043e
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140010378
cmp rbx, r11
jae 0x14001043e
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140010362
cmp rbx, r11
jae 0x14001043e
cmp word [rbx], r13w
je 0x14001043e
mov rax, qword [rsi]
movzx edi, word [rbx]
mov ecx, r14d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x1400103aa
mov edx, edi
mov rcx, rsi
call fcn.140010488
movzx ecx, word [rbx]
mov rbp, qword [rsi]
cmp ecx, 0xffffffff
jne 0x1400103c3
lea rcx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [r14 + rax]
movsxd r9, ecx
lea r12, [rdi + rdi]
lea r8, [rbx + 2]
mov rdx, r12
add r9, r9
mov rcx, rbp
call fcn.140012050
cmp eax, r13d
je 0x140010416
cmp eax, 0xc
je 0x14001040b
cmp eax, 0x16
je 0x140010400
cmp eax, 0x22
je 0x140010400
cmp eax, 0x50
je 0x140010416
mov ecx, 0x80004005
call fcn.140010664
int3
mov ecx, 0x80070057
call fcn.140010664
int3
mov ecx, 0x8007000e
call fcn.140010664
int3
cmp edi, r13d
jl 0x140010433
mov rcx, qword [rsi]
cmp edi, dword [rcx - 0xc]
jg 0x140010433
mov dword [rcx - 0x10], edi
mov rcx, qword [rsi]
mov eax, r14d
mov word [r12 + rcx], r13w
jmp 0x140010440
mov ecx, 0x80070057
call fcn.140010664
int3
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x1400119c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
xor r12d, r12d
mov rdi, rcx
mov qword [rax + 0x20], r12
call fcn.14001196c
lea r11, [rsp + 0xa8]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionMedia_CenterRemote_Controls
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r12d
jne 0x140011b73
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0xa0]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x98]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, r12d
jne 0x140011b73
mov ecx, dword [rsp + 0x98]
lea eax, [r12 + 8]
lea rbx, [r12 - 1]
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.140002220
mov qword [rdi + 0xa8], rax
cmp rax, r12
je 0x140011b73
mov esi, dword [rsp + 0xa0]
lea eax, [rbx + 3]
inc esi
imul esi, dword [rsp + 0x98]
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.140002220
mov rbp, rax
mov qword [rdi + 0xb8], rax
cmp rax, r12
je 0x140011b73
mov ebx, r12d
jmp 0x140011b6a
cmp ebx, dword [rsp + 0x98]
jae 0x140011b73
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x90]
mov r8, rbp
mov edx, ebx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x90], esi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x140011b73
cmp eax, 0x7a
je 0x140011b68
cmp eax, r12d
jne 0x140011b73
mov eax, dword [rsp + 0x90]
mov word [rbp + rax*2], r12w
inc dword [rsp + 0x90]
mov rcx, qword [rdi + 0xb0]
mov rax, qword [rdi + 0xa8]
mov qword [rax + rcx*8], rbp
mov eax, dword [rsp + 0x90]
inc qword [rdi + 0xb0]
lea rbp, [rbp + rax*2]
sub rsi, rax
inc ebx
cmp rsi, r12
ja 0x140011ad8
mov rcx, qword [rsp + 0xa8]
mov byte [rdi + 0xa0], 1
cmp rcx, r12
je 0x140011b8d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012cb8
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.140006bf0
nop
cmp dword [0x140027cb8], 1
je 0x140012c63
mov dword [0x140027cb4], 1
mov byte [0x140027cb0], dil
test ebx, ebx
jne 0x140012c4f
mov rcx, qword [0x140026b10]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x140026b08]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x140012c3c
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x140012c3c
mov rcx, qword [rbx]
test rcx, rcx
je 0x140012c3a
call rcx
jmp 0x140012c22
lea rdx, [0x14001edd0]
lea rcx, [0x14001edb8]
call fcn.140012ad0
lea rdx, [0x14001ede0]
lea rcx, [0x14001edd8]
call fcn.140012ad0
nop
test edi, edi
je 0x140012c71
mov ecx, 8
call fcn.140006bc0
test edi, edi
jne 0x140012c99
mov dword [0x140027cb8], 1
lea ecx, [rdi + 8]
call fcn.140006bc0
mov ecx, r12d
call fcn.140012a64
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x140012bb0

Function at 0x140012cc8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140012bb0
Function at 0x140012d08
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x30
lea r13, [0x140027340]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x140012d3a
inc edi
add rax, 0x10
cmp edi, 0x17
jb 0x140012d2b
cmp edi, 0x17
jae 0x140012ee8
mov ebp, 3
mov ecx, ebp
call fcn.140014f8c
cmp eax, 1
je 0x140012ea0
mov ecx, ebp
call fcn.140014f8c
test eax, eax
jne 0x140012d70
cmp dword [0x140024660], 1
je 0x140012ea0
cmp ebx, 0xfc
je 0x140012ee8
lea rbx, [0x140027cc0]
mov ebp, 0x314
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbx
mov rdx, rbp
call fcn.140007c70
test eax, eax
je 0x140012db3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013410
lea rdx, [0x140027cd9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140027ddd], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140012e04
lea r8, str._program_name_unknown_
lea rcx, [0x140027cd9]
mov edx, 0x2fb
call fcn.140007c70
test eax, eax
je 0x140012e04
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013410
lea r8, [0x140027cd9]
mov rdx, rbp
mov rcx, rbx
call fcn.140014efc
test eax, eax
je 0x140012e2f
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013410
lea r8, [0x14001f3f0]
mov rdx, rbp
mov rcx, rbx
call fcn.140014efc
test eax, eax
je 0x140012e5a
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013410
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.140014efc
test eax, eax
je 0x140012e89
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013410
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbx
call fcn.140014cc4
jmp 0x140012ee8
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r11, rax
test rax, rax
je 0x140012ee8
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x140012ee8
movsxd rdx, edi
xor eax, eax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rax
add rdx, rdx
mov rdx, qword [r13 + rdx*8 + 8]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret
Function at 0x140013410
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14001347b
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14001349b
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x140014cc4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
call fcn.1400062dc
xor ebp, ebp
and dword [rsp + 0x88], ebp
and dword [rsp + 0x30], ebp
mov rdi, rax
cmp qword [0x140028570], rbp
jne 0x140014dfc
lea rcx, str.USER32.DLL
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
jne 0x140014d28
xor eax, eax
jmp 0x140014edc
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140014d21
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140028570], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140028578], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rcx, [rsp + 0x88]
mov qword [0x140028580], rax
call fcn.140012b0c
test eax, eax
je 0x140014daf
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013410
cmp dword [rsp + 0x88], 2
jne 0x140014dfc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140028590], rax
test rax, rax
je 0x140014dfc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140028588], rax
mov rcx, qword [0x140028588]
cmp rcx, rdi
je 0x140014e8e
cmp qword [0x140028590], rdi
je 0x140014e8e
call sub.KERNEL32.dll_DecodePointer
call rax
mov rsi, rax
test rax, rax
je 0x140014e59
mov rcx, qword [0x140028590]
call sub.KERNEL32.dll_DecodePointer
lea rcx, [rsp + 0x34]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
je 0x140014e59
test byte [rsp + 0x40], 1
jne 0x140014e8e
lea rcx, [rsp + 0x30]
call fcn.140012b58
test eax, eax
je 0x140014e7b
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140013410
cmp dword [rsp + 0x30], 4
jb 0x140014e88
bts ebx, 0x15
jmp 0x140014ec2
bts ebx, 0x12
jmp 0x140014ec2
mov rcx, qword [0x140028578]
cmp rcx, rdi
je 0x140014ec2
call sub.KERNEL32.dll_DecodePointer
call rax
mov rbp, rax
test rax, rax
je 0x140014ec2
mov rcx, qword [0x140028580]
cmp rcx, rdi
je 0x140014ec2
call sub.KERNEL32.dll_DecodePointer
mov rcx, rbp
call rax
mov rbp, rax
mov rcx, qword [0x140028570]
call sub.KERNEL32.dll_DecodePointer
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rbp
call rax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140001a1c
Capabilities:
Parse pe header

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

Function at 0x1400050d8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140005147
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005147
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005147
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005147
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005147
cmp dword [rcx + 0x84], 0xe
jbe 0x140005147
cmp dword [rcx + 0xf8], 0
je 0x140005147
mov ecx, ebx
call fcn.1400051f8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140004fd4
nop
cmp dword [rbp + 0x20], 0
je 0x140005195
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400051a0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400050d8

Function at 0x1400052dc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400050d8
Function at 0x14000839c
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 0x1400083cc
xor eax, eax
jmp 0x14000848f
mov rbp, rbx
cmp word [rax], si
je 0x1400083f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400083d8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400083d4
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.1400082bc
movsxd r14, eax
test eax, eax
jne 0x14000842f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400083c5
mov rcx, r14
call fcn.140009278
mov rdi, rax
test rax, rax
jne 0x140008448
xor ecx, ecx
call fcn.14000691c
jmp 0x140008424
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.1400082bc
test eax, eax
jne 0x140008479
mov rcx, rdi
call fcn.14000691c
jmp 0x140008483
xor ecx, ecx
call fcn.14000691c
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 0x14000b980
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.14000738c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000ba0a
cmp byte [rbp - 0x21], r15b
je 0x14000ba05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000ba40
call fcn.140009a88
test eax, eax
jne 0x14000ba2c
cmp byte [rbp - 0x21], r15b
je 0x14000ba24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000ba40
cmp byte [rbp - 0x21], r15b
je 0x14000ba3d
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.14000696c
test eax, eax
jne 0x14000bae0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000738c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000ba7f
cmp byte [rbp - 0x21], r15b
je 0x14000bab4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000bab4
call fcn.140009a88
test eax, eax
jne 0x14000baa0
cmp byte [rbp - 0x21], r15b
je 0x14000ba99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000bab4
cmp byte [rbp - 0x21], r15b
je 0x14000bab1
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.14000696c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000bae0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000bae3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000baf1
mov rcx, rdi
call fcn.14000691c
cmp byte [rbp + 0x3f], r15b
je 0x14000bb00
mov rcx, qword [rbp + 0x27]
call fcn.14000691c
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 0x14000e930
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e958
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e958
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800018f0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xae8
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov rax, qword [rsp + 0xb30]
mov rdi, rcx
mov rcx, qword [rsp + 0xb38]
mov qword [rsp + 0x48], rcx
xor ecx, ecx
mov qword [rsp + 0x38], r9
mov rbp, r8
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x40], rax
cmp rdi, rcx
je 0x180001b0c
cmp r8, rcx
jne 0x180001950
cmp rax, rcx
je 0x180001b0c
cmp word [rdi + 2], 0x3a
je 0x1800019a7
cmp word [rdi + 2], 0x5c
je 0x1800019a7
mov word [rsp + 0x6c0], cx
lea rcx, [rsp + 0x6c2]
xor edx, edx
mov r8d, 0x40e
call fcn.18005a150
lea rdx, [rsp + 0x6c0]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x6c0]
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdi, [rsp + 0x6c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180001b0c
test al, 0x10
je 0x180001b0c
lea rcx, [rsp + 0x4b0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x180081a9c]
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180001b0c
mov ebx, 1
lea rdx, [0x180081aa0]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180001ae3
lea rdx, [0x180081aa4]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180001ae3
cmp dword [rsp + 0x50], 0xffffffff
je 0x180001ae3
lea rcx, [rsp + 0x2a0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [rsp + 0x50], 0x10
je 0x180001acb
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x180001a98
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x2a0]
call rax
test eax, eax
je 0x180001afa
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x180001ae3
mov rdx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x38]
mov r8, rbp
mov qword [rsp + 0x28], rdx
mov edx, ecx
lea rcx, [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
call fcn.1800018f0
cmp eax, 2
jmp 0x180001ae1
test rbp, rbp
je 0x180001ae3
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x2a0]
call rbp
test eax, eax
je 0x180001afa
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x180001aff
jmp 0x180001a0c
mov ebx, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x180001b0e
xor eax, eax
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.180059b00
add rsp, 0xae8
pop rdi
pop rsi
pop rbp
pop rbx
ret