joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c7cb0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x6e87f9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
xor eax, eax
mov esi, dword [esp + 0x28]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esi + 0x18], eax
mov ebp, dword [esp + 0x30]
mov ecx, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 1
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5c7d10
mov edi, dword [esp + 0x2c]
sub ecx, edx
mov ebx, dword [esi + 0x10]
sar ecx, 1
mov edi, dword [edi + 0x10]
add edi, ecx
cmp ebx, edi
ja 0x5c7d57
cmp dword [esi + 0x14], edi
je 0x5c7d97
push 1
push edi
mov ecx, esi
call fcn.00419980
test al, al
je 0x5c7d57
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x5c7d4f
mov eax, dword [esi]
jmp 0x5c7d51
mov eax, esi
xor ecx, ecx
mov word [eax + ebx*2], cx
cmp dword [esi + 0x14], edi
jae 0x5c7d97
cmp dword [0x82e960], 0
je 0x5c7d97
push 0x77dba0
push str.Assert_failure
push str.operator_
push 0x29c
push str....._srccommon_string.cpp
call fcn.005c7220
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x5c7d97
mov byte [0x87c8e0], 0
int3
push 0xffffffffffffffff
push 0
push dword [esp + 0x34]
mov ecx, esi
call fcn.0041aea0
test ebp, ebp
mov edx, 0x7bf4e8
cmovne edx, ebp
cmp word [edx], 0
jne 0x5c7dba
xor ecx, ecx
jmp 0x5c7dcf
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5c7dc0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041af60
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x5c80b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x704c8c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
xor eax, eax
mov esi, dword [esp + 0x20]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esp + 0x18], 1
mov dword [esi + 0x18], eax
cmp dword [esi + 0x14], 1
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 2
movzx edi, ax
jae 0x5c811b
push dword [esi + 0x10]
mov ecx, esi
push 1
call fcn.00419b80
cmp dword [esi + 0x14], 8
jb 0x5c8125
mov eax, dword [esi]
jmp 0x5c8127
mov eax, esi
mov word [eax], di
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 1
jb 0x5c813b
mov eax, dword [esi]
jmp 0x5c813d
mov eax, esi
xor ecx, ecx
mov word [eax + 2], cx
push 0xffffffffffffffff
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x24], ecx
mov ecx, esi
mov dword [esp + 0x18], 1
call fcn.0041aea0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x5c88c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x704a78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov edx, 0x7bf4e8
mov edi, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x20], 7
cmovne edx, eax
mov dword [esp + 0x1c], 0
xor eax, eax
mov word [esp + 0xc], ax
cmp word [edx], ax
jne 0x5c8922
xor ecx, ecx
jmp 0x5c8936
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5c8927
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.00419290
mov dword [esp + 0x24], 0
lea eax, [esp + 0x48]
mov dword [esp + 0x38], 0
push eax
lea eax, [esp + 0x10]
push eax
push edi
call fcn.005c89b0
push dword [esp + 0x30]
mov esi, eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0x10
cmp dword [esp + 0x20], 8
jb 0x5c8983
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x30
ret

Function at 0x5ca9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x704d18
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x87c820]
test eax, eax
jne 0x5ca9f9
call fcn.005c3760
mov dword [0x87c820], eax
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x10]
push dword [esp + 0x30]
push eax
call fcn.004290b0
add esp, 0x10
mov eax, dword [esp + 8]
mov ecx, esi
push dword [esp + 0xc]
mov dword [esp + 0x1c], 0
push dword [eax]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.005ca8e0
lea ecx, [esp + 8]
mov esi, eax
call fcn.004181c0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 0x10
Function at 0x5cbc60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x705003
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0xa4]
xor ecx, ecx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], cx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ecx
mov word [esp + 0x30], cx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ecx
mov word [esp + 0x10], cx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ecx
mov word [esp + 0x50], cx
mov dword [esp + 0x68], ecx
mov esi, dword [esp + 0xa8]
lea ecx, [esp + 0xc]
push esi
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0xa4], 3
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x84]
push ecx
push eax
call fcn.005cfb90
add esp, 0x1c
lea eax, [esp + 0x50]
mov ecx, edi
push esi
push dword [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x84]
push eax
call fcn.005cb4d0
push dword [esp + 0x68]
mov esi, dword [sym.imp.MSVCR120.dll_free]
call esi
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x5cbd86
push dword [esp + 0x50]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
call esi
add esp, 4
cmp dword [esp + 0x24], 8
jb 0x5cbdb9
push dword [esp + 0x10]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call esi
add esp, 4
cmp dword [esp + 0x44], 8
jb 0x5cbdec
push dword [esp + 0x30]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call esi
add esp, 4
cmp dword [esp + 0x84], 8
jb 0x5cbe25
push dword [esp + 0x70]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x94
ret 8
Function at 0x5cc250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x704a78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
cmp byte [ecx + 0x72], 0
mov eax, 0x1001
mov esi, 1
cmovne esi, eax
lea eax, [esp + 0xc]
push 0
push eax
call fcn.005cc5b0
push esi
push eax
mov dword [esp + 0x40], 0
call fcn.005d0f80
push dword [esp + 0x2c]
mov bl, al
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0xc
cmp dword [esp + 0x20], 8
jb 0x5cc2ce
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x30
ret

Function at 0x5cc500
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6fbd79
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], 0
xor eax, eax
mov esi, dword [esp + 0x20]
mov ecx, esi
push 0xffffffffffffffff
push eax
mov dword [esp + 0x20], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [edi + 0x30]
push eax
call fcn.00419170
mov dword [esi + 0x18], 0
cmp byte [edi + 0x71], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
je 0x5cc591
push 0x2e
push 1
mov ecx, esi
call fcn.004390c0
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x50]
push ecx
mov ecx, esi
call fcn.0041aea0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x5cdb20
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x7053b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
push esi
call fcn.005d58e0
add esp, 4
test al, al
jne 0x5cdb7d
mov eax, dword [esp + 0x24]
mov ecx, dword [0x82e970]
mov dword [eax], ecx
mov ecx, dword [0x82e974]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push 0
push 0
push esi
lea ecx, [esp + 0x18]
call fcn.005caba0
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x5cdba8
mov esi, dword [esp + 0x24]
mov ecx, dword [0x82e970]
mov dword [esi], ecx
mov ecx, dword [0x82e974]
jmp 0x5cdbd5
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5cdbc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5cdb94
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esi], 0
or dword [esi], edi
mov dword [esi + 4], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005cb0a0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x5d0f80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x6f91e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x44]
mov cl, bl
mov eax, dword [esp + 0x40]
and cl, 1
mov byte [esp + 0xb], cl
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [esp + 0x14], cx
lea ecx, [esp + 0x14]
push eax
shr ebx, 1
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.00419170
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], 0
and bl, 1
je 0x5d1008
lea eax, [esp + 0xc]
push eax
call fcn.005cf6c0
add esp, 4
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5d1026
xor bl, bl
jmp 0x5d102e
test al, 0x10
jne 0x5d102e
mov bl, byte [esp + 0xb]
push dword [esp + 0x24]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esp + 0x20], 8
jb 0x5d104e
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x34
ret
Function at 0x5d1e90
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
cmp dword [esi + 0x14], 8
jb 0x5d1ea3
mov eax, dword [esi]
jmp 0x5d1ea5
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x5d1ebe
pop edi
xor al, al
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5d1ef0
push edi
push eax
lea ecx, [esp + 0x10]
call fcn.004936d0
cmp dword [esi + 0x14], 8
mov eax, dword [esp + 0xc]
jb 0x5d1edd
mov esi, dword [esi]
push edi
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [esp + 8]
call fcn.00493bc0
pop edi
mov al, 1
pop esi
add esp, 8
ret

Function at 0x5d2800
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x705b20
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x5d29b5
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 6
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5d29b1
call fcn.005c92f0
mov dword [esp + 8], eax
mov dword [esp + 0x74], 0
call fcn.005c92f0
mov dword [esp + 0xc], eax
push 0xffffffffffffffff
lea eax, [esp + 0x14]
mov byte [esp + 0x78], 1
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.00439000
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x84], 2
mov dword [esp + 0x30], 6
mov dword [esp + 0x38], str....._srcmswutils.cpp
mov dword [esp + 0x40], str.wxGetHostName
mov dword [esp + 0x3c], 0x94
mov dword [esp + 0x44], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov dword [esp + 0x70], eax
mov byte [esp + 0x84], 3
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.005e5210
add esp, 0x14
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push str.GetComputerName
push 0x94
push str....._srcmswutils.cpp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
call fcn.00479740
push dword [esp + 0x60]
mov byte [esp + 0x78], 2
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x5d2980
push dword [esp + 0x48]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
call fcn.00439c40
lea ecx, [esp + 8]
mov dword [esp + 0x74], 0xffffffff
call fcn.00420020
xor al, al
jmp 0x5d29b7
mov al, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x74
ret
Function at 0x5d3ae0
Capabilities:
Get session user name
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x5d3b14
push esi
push dword [esp + 0xc]
push str.username
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x5d3b14
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x5d4240
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x250
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x24c], eax
cmp byte [0x87c928], 0
jne 0x5d42b7
push esi
lea eax, [esp + 0x124]
push edi
push eax
call fcn.005d3c00
add esp, 4
mov byte [0x87c928], 1
mov esi, eax
lea edi, [esp + 0xc]
mov ecx, 0x47
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
dec eax
je 0x5d429b
dec eax
jne 0x5d42a5
mov dword [0x87c92c], 8
jmp 0x5d42a5
mov dword [0x87c92c], 4
mov eax, dword [esp + 8]
mov dword [0x87c930], eax
mov eax, dword [esp + 0xc]
mov dword [0x87c934], eax
cmp dword [0x87c92c], 8
push ebx
jne 0x5d4351
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
setne bl
test bl, bl
je 0x5d43de
lea eax, [esp + 0x244]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
setne bl
test bl, bl
je 0x5d433f
push 0
push 0
push 0
lea eax, [esp + 0x24c]
mov dword [esp + 0x24c], 1
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x264], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete bl
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x5d43de
mov eax, dword [esp + 0x258]
xor ecx, ecx
test al, 1
je 0x5d4366
mov ecx, 4
and eax, 0xfffffffe
sub eax, 2
je 0x5d43cd
sub eax, 2
je 0x5d43c8
sub eax, 4
je 0x5d43d0
cmp dword [0x82e960], 0
je 0x5d43b0
push str.unknown_wxShutdown___flag
push str.Assert_failure
push str.wxShutdown
push 0x413
push str....._srcmswutils.cpp
call fcn.005c7220
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x5d43b0
mov byte [0x87c8e0], 0
int3
xor al, al
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x250
ret
or ecx, 2
jmp 0x5d43d0
or ecx, 8
push 0
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne bl
mov ecx, dword [esp + 0x250]
mov al, bl
pop ebx
xor ecx, esp
call fcn.006d1ba7
add esp, 0x250
ret
Function at 0x5d4660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7060a0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], eax
test esi, esi
je 0x5d46ea
push 2
mov ecx, esi
call fcn.005e6a20
cmp dword [0x82e960], 0
je 0x5d46ea
mov ecx, eax
and ecx, 6
cmp ecx, eax
je 0x5d46ea
push str.format_specifier_doesnt_match_argument_type
push str._argtype___wxFormatString::Arg_String____argtype
push str.wxArgNormalizerWchar_class_wxCStrData_const__::wxArgNormalizerWchar
push 0x225
push str.C:SourceSvn_trunk_tools_sourcewxWidgets_3.0includewx_strvararg.h
call fcn.005c6f20
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x5d46ea
mov byte [0x87c8e0], 0
int3
lea eax, [esp + 0x24]
mov dword [esp + 0x20], eax
test esi, esi
je 0x5d4743
push 1
mov ecx, esi
call fcn.005e6a20
cmp dword [0x82e960], 0
je 0x5d4743
mov ecx, eax
and ecx, 6
cmp ecx, eax
je 0x5d4743
push str.format_specifier_doesnt_match_argument_type
push str._argtype___wxFormatString::Arg_String____argtype
push str.wxArgNormalizerWchar_class_wxCStrData_const__::wxArgNormalizerWchar
push 0x225
push str.C:SourceSvn_trunk_tools_sourcewxWidgets_3.0includewx_strvararg.h
call fcn.005c6f20
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x5d4743
mov byte [0x87c8e0], 0
int3
mov ecx, esi
call fcn.005e6500
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.005e7830
push eax
lea ecx, [esp + 0x24]
call fcn.005e7830
push eax
push esi
push edi
call fcn.00439e70
mov edi, dword [sym.imp.MSVCR120.dll_free]
add esp, 0x10
cmp byte [esp + 0x2c], 0
je 0x5d47b3
mov esi, dword [esp + 0x24]
test esi, esi
je 0x5d47b3
push dword [esi + 0x18]
call edi
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x5d4797
push dword [esi]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push esi
mov word [esi], ax
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esp + 0x38], 0
je 0x5d47f6
mov esi, dword [esp + 0x30]
test esi, esi
je 0x5d47f6
push dword [esi + 0x18]
call edi
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x5d47da
push dword [esi]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push esi
mov word [esi], ax
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x1c
Function at 0x5d6700
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x7064bc
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x26c], eax
push esi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov esi, dword [esp + 0x288]
lea eax, [esp + 0x6c]
push 0x104
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x5d68cb
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 6
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5d68cb
call fcn.005c92f0
mov dword [esp + 8], eax
mov dword [esp + 0x280], 0
call fcn.005c92f0
mov dword [esp + 0xc], eax
push 0xffffffffffffffff
lea eax, [esp + 0x14]
mov byte [esp + 0x284], 1
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.00439000
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x290], 2
mov dword [esp + 0x34], 6
mov dword [esp + 0x3c], str....._srccommon_filefn.cpp
mov dword [esp + 0x44], str.wxGetOSDirectory
mov dword [esp + 0x40], 0x62f
mov dword [esp + 0x48], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
mov dword [esp + 0x74], eax
mov byte [esp + 0x290], 3
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.005e5210
add esp, 0x14
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push str.GetWindowsDirectory
push 0x62f
push str....._srccommon_filefn.cpp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00479740
push dword [esp + 0x64]
mov byte [esp + 0x284], 2
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esp + 0x60], 8
jb 0x5d6897
push dword [esp + 0x4c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
call fcn.00439c40
lea ecx, [esp + 8]
mov dword [esp + 0x280], 0xffffffff
call fcn.00420020
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [esp + 0x6c], ax
jne 0x5d68e9
xor ecx, ecx
jmp 0x5d68ff
lea ecx, [esp + 0x6c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d68f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x70]
mov ecx, esi
push eax
call fcn.00419290
mov dword [esi + 0x18], 0
mov eax, esi
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x27c
ret
Function at 0x5d6940
Capabilities:
Query environment variable

Disassembly:
push ecx
mov eax, dword [0x87c820]
test eax, eax
jne 0x5d6954
call fcn.005c3760
mov dword [0x87c820], eax
mov ecx, dword [esp + 8]
push edi
push eax
lea eax, [esp + 8]
push eax
call fcn.0041f710
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov edi, eax
call fcn.005c92f0
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x5d69b4
mov eax, 0xffff
add word [ecx + 8], ax
jne 0x5d69af
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5d69ae
cmp byte [esi + 0xa], 0
je 0x5d69a5
push dword [esi]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
call fcn.005c92f0
mov eax, edi
pop edi
pop ecx
ret