joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180025c90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
test r8, r8
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x180025cdc
call fcn.18002a6d0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], SafeArrayGetElement
call fcn.180025e90
xor eax, eax
jmp 0x180025d82
mov qword [rsp + 0x50], rdi
call fcn.18002abb0
mov edx, 0x2d8
mov ecx, 1
call fcn.18002b970
test rax, rax
mov rdi, rax
je 0x180025d68
call fcn.18002ae40
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.18002ac20
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
test rcx, rcx
lea r8, [rsp + 0x60]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x180025bf0]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x180025d7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1800256a0
test ebx, ebx
je 0x180025d7b
mov ecx, ebx
call fcn.18002a730
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret

Function at 0x180025e90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x180059d70]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.18002aac0
test rax, rax
je 0x180025ee4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x180025f79
mov ecx, 2
call fcn.18002bf40
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.180026db0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x180025f65
test ebx, ebx
jne 0x180025f65
lea ecx, [rax + 2]
call fcn.18002bf40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180025fa0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x180059d70]
call fcn.18002aac0
test rax, rax
je 0x180025fd5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.18002bf40
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.180026db0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18002605e
test ebx, ebx
jne 0x18002605e
lea ecx, [rax + 2]
call fcn.18002bf40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x180029290
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x1800293f7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, SysAllocStringByteLen
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x1800292e8
mov rcx, rax
mov dword [rax], SysAllocStringByteLen
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1800292f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rbx + 8]
mov qword [rsp + 0x38], rsi
mov esi, dword [rbx + 4]
mov qword [rsp + 0x40], rdi
mov edi, dword [rbx + 0xc]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x10]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r12d, 2
je 0x180029335
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x180059dd4], r12d
shl eax, 8
mov dword [0x180059de0], esi
mov dword [0x180059de4], ebp
add eax, ebp
mov dword [0x180059dd8], edi
mov dword [0x180059ddc], eax
call fcn.18002a7c0
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x1800292e8
call fcn.18002b0b0
test eax, eax
je 0x1800293ea
call fcn.1800330e0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x18005c0c8], rax
call fcn.180032f10
mov qword [0x180059da0], rax
call fcn.1800326a0
test eax, eax
js 0x1800293e5
call fcn.180032e00
test eax, eax
js 0x1800293e0
call fcn.180032a70
test eax, eax
js 0x1800293e0
xor ecx, ecx
call fcn.18002b660
test eax, eax
jne 0x1800293e0
add dword [0x180059d98], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.1800329e0
call fcn.18002abd0
call fcn.18002a820
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x180029440
mov eax, dword [0x180059d98]
test eax, eax
jle 0x1800292e8
sub eax, 1
cmp dword [0x180059e30], edx
mov dword [0x180059d98], eax
jne 0x18002941f
call fcn.18002b880
test rbx, rbx
jne 0x1800294b9
call fcn.1800329e0
call fcn.18002abd0
call fcn.18002a820
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x1800294ad
call fcn.18002abb0
mov edx, 0x2d8
mov ecx, 1
call fcn.18002b970
test rax, rax
mov rbx, rax
je 0x1800292e8
mov ecx, dword [0x180057cd4]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x18002949d
xor edx, edx
mov rcx, rbx
call fcn.18002ac20
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx], eax
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.1800256a0
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x1800294b9
xor ecx, ecx
call fcn.18002b050
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x18002bc00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x18002bc3e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x18002bc20
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x18002be25
mov ecx, 3
call fcn.180036ef0
cmp eax, 1
je 0x18002bddc
mov ecx, 3
call fcn.180036ef0
test eax, eax
jne 0x18002bc75
cmp dword [0x180059db0], 1
je 0x18002bddc
cmp edi, 0xfc
je 0x18002be25
mov qword [rsp + 0x50], rbp
lea rbp, [0x180059e40]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.18002a850
test eax, eax
je 0x18002bcb9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180025df0
lea rdx, [0x180059e59]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x180059f5d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x18002bd09
lea r8, str._program_name_unknown_
lea rcx, [0x180059e59]
mov edx, 0x2fb
call fcn.18002a850
test eax, eax
je 0x18002bd09
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180025df0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x180059e59]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x18002bd58
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x18005a154]
lea r9d, [rax + 3]
lea r8, [0x180046094]
sub rdx, rcx
call fcn.180036dd0
test eax, eax
je 0x18002bd58
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180025df0
lea r8, [0x180046090]
mov edx, 0x314
mov rcx, rbp
call fcn.180036d10
test eax, eax
je 0x18002bd84
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180025df0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.180036d10
test eax, eax
je 0x18002bdb4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180025df0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.180036ab0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x18002be25
cmp rax, 0xffffffffffffffff
je 0x18002be25
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
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 + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x18002be40
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.180036ef0
cmp eax, 1
je 0x18002be72
mov ecx, 3
call fcn.180036ef0
test eax, eax
jne 0x18002bf26
cmp dword [0x180059db0], 1
jne 0x18002bf26
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x18002be9e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x18002be88
jmp 0x18002bf12
cmp edi, 0x17
jae 0x18002bf12
mov ecx, 3
call fcn.180036ef0
cmp eax, 1
je 0x18002bec9
mov ecx, 3
call fcn.180036ef0
test eax, eax
jne 0x18002bf12
cmp dword [0x180059db0], 1
jne 0x18002bf12
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x18002bf12
cmp rax, 0xffffffffffffffff
je 0x18002bf12
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
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 ecx, 0xff
call fcn.18002bc00
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x18002dac7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180057b40]
jne 0x180026d0a
rol rcx, 0x10
test cx, 0xffff
jne 0x180026d06
repz ret
ror rcx, 0x10
jmp 0x18002da20
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18005a220]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18005a318]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18002daa5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18005a220]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18002dac7
mov rax, qword [rsp + 0x88]
mov qword [0x18005a318], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18005a2b8], rax
mov rax, qword [0x18005a318]
mov qword [0x18005a190], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18005a2a0], rax
mov dword [0x18005a180], 0xc0000409
mov dword [0x18005a184], 1
mov rax, qword [0x180057b40]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180057b48]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18005a218], eax
mov ecx, 1
call fcn.18002bf40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180046100]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18005a218], 0
jne 0x18002db4e
mov ecx, 1
call fcn.18002bf40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18002e0d0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x180057b40]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [r11 + 8], rbp
lea rdx, [rsp + 0x20]
xor ebx, ebx
mov ecx, 0x105
mov qword [r11 + 0x10], rsi
lea rdi, [rsp + 0x20]
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, 0x104
mov esi, eax
jle 0x18002e168
mov qword [rsp + 0x160], r12
lea r12d, [rax + 1]
lea edx, [rbx + 1]
movsxd rcx, r12d
call fcn.18002b970
test rax, rax
mov rdi, rax
jne 0x18002e149
call fcn.18002a6d0
mov esi, ebx
mov dword [rax], SafeArrayGetDim
jmp 0x18002e160
test esi, esi
mov ebp, 1
je 0x18002e160
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov r12, qword [rsp + 0x160]
test esi, esi
mov rsi, qword [rsp + 0x158]
je 0x18002e187
cmp byte [rdi + 1], 0x3a
jne 0x18002e192
movzx ecx, byte [rdi]
call fcn.180038290
lea ebx, [rax - 0x40]
jmp 0x18002e192
call fcn.18002a6d0
mov dword [rax], SafeArrayGetDim
test ebp, ebp
mov rbp, qword [rsp + 0x150]
je 0x18002e1a6
mov rcx, rdi
call fcn.1800256a0
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180026cf0
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rdi
ret
Function at 0x180032f10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x18005a858]
test eax, eax
jne 0x180032f63
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x180032f43
mov dword [0x18005a858], 1
jmp 0x180032f7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x180032f5d
mov dword [0x18005a858], 2
jmp 0x180033059
mov eax, dword [0x18005a858]
cmp eax, 1
jne 0x180033050
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1800330a3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x180032fa5
add rbx, 2
cmp word [rbx], 0
jne 0x180032f91
add rbx, 2
cmp word [rbx], 0
jne 0x180032f91
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x180033043
mov rcx, rbp
call fcn.18002b900
test rax, rax
mov rsi, rax
je 0x180033043
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x18003301d
mov rcx, rsi
call fcn.1800256a0
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x180033029
cmp eax, 2
je 0x180033059
test eax, eax
jne 0x1800330a3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x1800330a3
cmp byte [rax], 0
je 0x180033082
nop
add rax, 1
cmp byte [rax], 0
jne 0x180033070
add rax, 1
cmp byte [rax], 0
jne 0x180033070
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.18002b900
test rax, rax
mov rdi, rax
jne 0x1800330b5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180028480
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x180036ab0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.18002a9d0
xor ebx, ebx
cmp qword [0x18005ab38], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x180036bdc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x180036cef
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180036cef
mov rcx, rax
call fcn.18002a900
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18005ab38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.18002a900
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18005ab40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.18002a900
lea rcx, [rsp + 0x98]
mov qword [0x18005ab48], rax
call fcn.18002b5c0
test eax, eax
je 0x180036b8f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180025df0
cmp dword [rsp + 0x98], 2
jne 0x180036bdc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.18002a900
test rax, rax
mov qword [0x18005ab58], rax
je 0x180036bdc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.18002a900
mov qword [0x18005ab50], rax
mov rcx, qword [0x18005ab50]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x180036c88
cmp qword [0x18005ab58], rbp
je 0x180036c88
call fcn.18002aac0
mov rcx, qword [0x18005ab58]
mov rsi, rax
call fcn.18002aac0
test rsi, rsi
mov r12, rax
je 0x180036c88
test rax, rax
je 0x180036c88
call rsi
test rax, rax
je 0x180036c53
lea rcx, [rsp + 0x34]
mov r9d, SafeArrayGetDim
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180036c53
test byte [rsp + 0x40], 1
jne 0x180036c88
lea rcx, [rsp + 0x30]
call fcn.18002b610
test eax, eax
je 0x180036c75
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180025df0
cmp dword [rsp + 0x30], 4
jb 0x180036c82
bts edi, 0x15
jmp 0x180036cc6
bts edi, 0x12
jmp 0x180036cc6
mov rcx, qword [0x18005ab40]
cmp rcx, rbp
je 0x180036cc6
call fcn.18002aac0
test rax, rax
je 0x180036cc6
call rax
test rax, rax
mov rbx, rax
je 0x180036cc6
mov rcx, qword [0x18005ab48]
cmp rcx, rbp
je 0x180036cc6
call fcn.18002aac0
test rax, rax
je 0x180036cc6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18005ab38]
call fcn.18002aac0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x180036cef
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180036cf1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x180039c00
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180057b40]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x180039c47
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180026cf0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.180028070
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180026cf0
add rsp, 0x38
ret
Function at 0x2fc4d4e80
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d5882
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d591a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d58fe
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 0x2fc4d58f2
cmp qword [rbp - 0x10], 0
je 0x2fc4d58f2
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 0x2fc4d58b8
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d591b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5a20
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 0x2fc4d5a48
mov eax, 0
jmp 0x2fc4d5a96
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 0x2fc4d5a71
mov eax, 0
jmp 0x2fc4d5a96
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 0x2fc4d5a91
mov eax, 0
jmp 0x2fc4d5a96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5a9c
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 0x2fc4d5b1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5b11
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 0x2fc4d5b11
mov rax, qword [rbp - 8]
jmp 0x2fc4d5b2f
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 0x2fc4d5ae4
mov eax, 0
add rsp, 0x20
pop rbp
ret