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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x67d978]
mov dword [ebp - 4], eax
mov eax, dword [0x6d2cfc]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x515bce
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x515d5b
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x515d5b
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x515c06
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x515c1e
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x515c3f
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x515c5c
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00515b02
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x515c7f
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x515c93
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00515b02
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x515cc8
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x515cda
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.00515a33
test eax, eax
pop esi
jne 0x515d1b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.00515a33
test eax, eax
jne 0x515d49
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00515a33
test eax, eax
jne 0x515d5b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00515a33
test eax, eax
je 0x515d5b
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.00536476
leave
ret
Function at 0x516584
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x67d978]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.005164c3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.005389c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x5165d3
cmp dword [ebp - 0x1c], 5
jb 0x5165eb
jmp 0x5165e7
cmp dword [ebp - 0x10], 1
jne 0x5165eb
cmp dword [ebp - 0x1c], 4
ja 0x5165e7
jne 0x5165eb
cmp dword [ebp - 0x18], 0
jbe 0x5165eb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x60d2f8
call fcn.0042d539
test eax, eax
jge 0x51660c
mov byte [0x6d2454], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00536476
add ebp, 0x78
leave
ret

Function at 0x516912
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x689634], 0
push esi
jne 0x516885
call fcn.005167b0
test eax, eax
je 0x5168c8
mov eax, dword [0x689634]
cmp eax, 1
jne 0x5168a6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5168c8
pop esi
ret
push eax
call dword [0x68963c]
test eax, eax
jne 0x516910
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x5168cc
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x689634]
call dword [0x68963c]
mov edi, eax
test edi, edi
je 0x5168f3
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x51690f
lea edi, [esi + 0xff0]
push esi
push dword [0x689634]
call dword [0x689638]
add esi, 0x10
cmp esi, edi
jb 0x5168f9
mov eax, esi
pop edi
pop esi
ret
jmp 0x516872

Function at 0x525090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55dc08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x67d978]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov esi, ecx
mov ecx, dword [esp + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.00524fc0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x48], 0
call fcn.00524f10
cmp dword [esp + 0x24], 0x10
jb 0x52512a
mov edx, dword [esp + 0x10]
push edx
call fcn.00535941
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00536476
add esp, 0x30
ret 0x1c
Function at 0x528570
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x55eaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
push 0x18
xor ebx, ebx
push str.missing_required_option
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00414470
mov edi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], ebx
call fcn.0041321c
push eax
mov ecx, esi
call fcn.00413630
mov dword [esi], vtable.boost::program_options::error.0
cmp dword [esp + 0x2c], 0x10
mov byte [esp + 0x38], 2
jb 0x5285fa
mov eax, dword [esp + 0x18]
push eax
call fcn.00535941
add esp, 4
push 0xffffffffffffffff
lea ecx, [esi + 0x28]
mov dword [esi], vtable.boost::program_options::required_option.0
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov byte [ecx + 4], bl
call fcn.0041302c
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 4
Function at 0x52a970
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x55e614
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x68], esi
xor ebx, ebx
push ebx
mov edi, 0xf
push 0x61ebf9
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00414470
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.00413630
mov dword [esi], vtable.boost::program_options::error.0
cmp dword [esp + 0x48], 0x10
mov byte [esp + 0xac], 2
jb 0x52a9fa
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00535941
add esp, 4
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xbc]
push 0xffffffffffffffff
lea ecx, [esi + 0x2c]
mov dword [esi], vtable.boost::program_options::validation_error.0
mov dword [esi + 0x28], edx
push ebx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov byte [ecx + 4], bl
call fcn.0041302c
mov ebp, dword [esp + 0xb8]
push 0xffffffffffffffff
lea ecx, [esi + 0x48]
push ebx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push ebp
mov byte [esp + 0xb8], 3
mov byte [ecx + 4], bl
call fcn.0041302c
mov ecx, dword [esp + 0xb4]
lea eax, [esi + 0x64]
push ecx
push eax
mov byte [esp + 0xb4], 4
call fcn.0052a5c0
add esp, 8
cmp dword [ebp + 0x14], ebx
mov byte [esp + 0xac], 5
je 0x52ab9d
push 1
push 0x624d3c
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.00414470
push 1
push 0x624d3c
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 6
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00414470
push ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0xb8], 7
call fcn.0042ce40
lea ecx, [esp + 0x58]
push ecx
push eax
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0xc4], 8
call fcn.0042ce40
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x64]
mov byte [esp + 0xb8], 9
call fcn.0041321c
mov ebp, 0x10
cmp dword [esp + 0x84], ebp
jb 0x52ab2b
mov eax, dword [esp + 0x70]
push eax
call fcn.00535941
add esp, 4
cmp dword [esp + 0xa0], ebp
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jb 0x52ab56
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00535941
add esp, 4
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
jb 0x52ab7e
mov edx, dword [esp + 0x18]
push edx
call fcn.00535941
add esp, 4
cmp dword [esp + 0x64], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x52ab9d
mov eax, dword [esp + 0x50]
push eax
call fcn.00535941
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0xc
Function at 0x52b570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55e828
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00412608
test edi, edi
mov dword [esp + 0x18], 0
je 0x52b5b4
add edi, 0x28
jmp 0x52b5b6
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x52b5ce
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::logic_error_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::logic_error_.0
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 0x52f7a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55f0f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00412608
mov dword [esi], vtable.boost::program_options::too_many_positional_options_error.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x52f7ea
add edi, 0x28
jmp 0x52f7ec
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x52f804
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::program_options::too_many_positional_options_error_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_boost::program_options::too_many_positional_options_error_.0
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 0x533640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x55f951
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0x70]
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
mov eax, dword [esp + 0x74]
push eax
lea ecx, [esp + 0x2c]
mov esi, 1
push ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x1c], esi
call fcn.0052bdf0
push eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x78], esi
call fcn.00533250
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov byte [esp + 0x68], 3
jb 0x5336c1
mov eax, dword [esp + 0x2c]
push eax
call fcn.00535941
add esp, 4
mov esi, dword [esp + 0x1c]
cmp esi, ebp
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], 0
je 0x533777
mov edi, ecx
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x533771
xor edi, edi
lea ecx, [ecx]
test esi, esi
je 0x53371d
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x533726
call fcn.00536646
mov esi, dword [esp + 0x1c]
lea eax, [edi + esi]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0052bca0
add esp, 8
mov ecx, dword [esp + 0x70]
push eax
mov byte [esp + 0x6c], 4
call fcn.00437883
cmp dword [esp + 0x5c], 8
mov byte [esp + 0x68], 3
jb 0x53375f
mov edx, dword [esp + 0x48]
push edx
call fcn.00535941
add esp, 4
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add ebp, 1
add edi, 0x1c
cmp ebp, ebx
jb 0x533700
mov edi, dword [esp + 0x70]
xor ebp, ebp
cmp esi, ebp
mov byte [esp + 0x68], 0
je 0x53379e
mov eax, dword [esp + 0x70]
push eax
lea edx, [esp + 0x1c]
push edx
push ecx
push esi
call fcn.004263e8
mov eax, dword [esp + 0x2c]
push eax
call fcn.00535941
add esp, 0x14
mov eax, edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret

Function at 0x533920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55f9c3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
push 0
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push edi
mov byte [esi + 4], 0
call fcn.0041302c
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x20]
push ecx
lea ecx, [esi + 0x20]
mov dword [esp + 0x1c], 0
mov dword [esi + 0x1c], eax
call fcn.00425277
lea edx, [edi + 0x30]
push edx
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 1
call fcn.00425277
mov al, byte [edi + 0x40]
mov byte [esi + 0x40], al
mov cl, byte [edi + 0x41]
mov byte [esi + 0x41], cl
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 0x5348c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x534bb0
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x55fbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x5348a0
push 0x689b20
call fcn.00479adf
mov eax, dword [0x689b28]
add esp, 8
test eax, eax
je 0x534c0a
mov ecx, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.00535946
mov dword [esp + 0x10], 0
mov dword [esp + 4], vtable.boost::thread_resource_error.0
lea edx, [esp + 4]
push edx
mov dword [esp + 0x20], 0
call fcn.00411378
int3
Function at 0x534c40
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x55fbf8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x689b28]
test eax, eax
jne 0x534c72
xor esi, esi
jmp 0x534c7b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x534ca7
cmp dword [esi + 0x14], 0
jne 0x534ce9
cmp dword [esi + 0x10], 0
jne 0x534cf0
push 0
call fcn.00534bb0
add esp, 4
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x534cd5
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x534cd5
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x534d30
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x534d1e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x534cf0
cmp dword [esi + 0x14], 0
je 0x534c97
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x534d55
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x534d86
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x534d86
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x534d86
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x534d3a
jmp 0x534c91
Function at 0x534e20
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x55fc48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x534da0
push 0
push 0
call fcn.0053703b
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x534e8b
lea ecx, [esp + 0x10]
call fcn.00535946
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00411378
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x534eb1
cmp eax, 0xffffffff
je 0x534eb1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x535010
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x55fcd9
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [0x689b28]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
je 0x53505a
push eax
call edi
mov esi, eax
test esi, esi
jne 0x535075
call fcn.00534fa0
mov eax, dword [0x689b28]
test eax, eax
jne 0x53506c
xor esi, esi
jmp 0x5350ab
push eax
call edi
mov esi, eax
test esi, esi
je 0x5350ab
lea eax, [esi + 4]
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov edx, 1
lock xadd dword [ecx], edx
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5350ab
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
test esi, esi
mov edi, dword [esp + 0x24]
mov dword [edi], esi
je 0x5350c1
lea ecx, [esi + 4]
mov edx, 1
lock xadd dword [ecx], edx
test esi, esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 1
je 0x5350f7
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5350f7
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x536476
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x67d978]
jne 0x536480
repz ret
jmp fcn.00543b2d

Function at 0x5436f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x67e658]
je 0x54370b
inc edi
cmp edi, 0x17
jb 0x5436fc
cmp edi, 0x17
jae 0x54388b
push ebp
push 3
call fcn.0055156b
cmp eax, 1
pop ecx
je 0x543857
push 3
call fcn.0055156b
test eax, eax
pop ecx
jne 0x54373f
cmp dword [0x67d974], 1
je 0x543857
cmp ebx, 0xfc
je 0x54388a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x689d80
push ebp
call fcn.0053cc4e
add esp, 0xc
test eax, eax
je 0x543775
push esi
push esi
push esi
push esi
push esi
call fcn.00536526
add esp, 0x14
push 0x104
mov esi, 0x689d99
push esi
push 0
mov byte [0x689e9d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5437b9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0053cc4e
add esp, 0xc
test eax, eax
je 0x5437b9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00536526
add esp, 0x14
push esi
call fcn.0053d330
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5437fe
push esi
call fcn.0053d330
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x68a094
push 0x60fe94
sub ecx, eax
push ecx
push eax
call fcn.0053c74f
add esp, 0x14
test eax, eax
je 0x5437fe
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00536526
add esp, 0x14
jmp 0x543800
xor esi, esi
push 0x60fe90
push ebx
push ebp
call fcn.0053cbdd
add esp, 0xc
test eax, eax
je 0x543820
push esi
push esi
push esi
push esi
push esi
call fcn.00536526
add esp, 0x14
push dword [edi*8 + 0x67e65c]
push ebx
push ebp
call fcn.0053cbdd
add esp, 0xc
test eax, eax
je 0x543842
push esi
push esi
push esi
push esi
push esi
call fcn.00536526
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005513ae
add esp, 0xc
jmp 0x54388a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x54388a
cmp ebp, 0xffffffff
je 0x54388a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x67e65c]
push dword [esi]
call fcn.0053d330
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret