joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e800
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x498fb2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
mov eax, dword [0x4cb08c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], esi
xor eax, eax
mov dword [esp + 0x18], eax
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea eax, [edi + 0x1c]
push eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x24], 0x44ee10
mov dword [esi + 0x28], 0x44ef10
call ebx
lea ecx, [esi + 0x30]
push ecx
mov byte [esp + 0x1c], 1
lea ecx, [esp + 0x24]
mov dword [esi + 0x2c], edi
call fcn.00447d60
mov eax, dword [esi + 0x2c]
add eax, 0x18
push eax
call ebx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x1c], 0xffffffff
call fcn.00447c60
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x14
ret 0x78
Function at 0x44e8b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x498328
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
mov eax, dword [0x4cb08c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
xor ebp, ebp
mov dword [esp + 0x18], ebp
lea eax, [ebx + 0x1c]
push eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], 0x44eff0
mov dword [edi + 0x28], 0x44f1e0
mov dword [edi], ebp
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [ebx + 4]
mov dword [edi + 0x2c], ebx
mov ebx, dword [ebx + 0xc]
add ebx, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [esp + 0x24]
cmp ebx, ebp
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], ebx
je 0x44e944
lea edx, [ebx + 8]
mov eax, 1
lock xadd dword [edx], eax
mov ecx, dword [esi]
mov dword [edi + 0x38], ecx
mov edx, dword [esi + 4]
lea eax, [edi + 0x38]
mov dword [eax + 4], edx
mov cl, byte [esi + 8]
mov byte [eax + 8], cl
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], eax
mov edx, dword [esi + 0x18]
mov dword [eax + 0x18], edx
mov ecx, dword [esi + 0x14]
sub ecx, esi
sar ecx, 3
add ecx, ecx
add ecx, ecx
add ecx, ecx
add dword [eax + 0x14], ecx
lea esi, [edi + 0x58]
lea eax, [esp + 0x28]
call fcn.004466a0
cmp ebx, ebp
je 0x44e9a3
lea edx, [ebx + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x44e9a3
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov dword [esp + 0x18], 0xffffffff
mov esi, dword [esp + 0x5c]
cmp esi, ebp
je 0x44e9dd
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x44e9dd
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x44e9dd
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x40

Function at 0x44ff70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4972da
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4cb08c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
sub esp, 0x28
lea ecx, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], esp
call fcn.00450060
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0xc]
call fcn.004508d0
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], 0xffffffff
call fcn.0044fb90
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 0x2c
Function at 0x4514f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4948fa
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4cb08c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov byte [esp + 4], al
lea ecx, [esp + 0x30]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x38]
mov dword [esp + 0x10], edx
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x14]
call fcn.00451620
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0044fb90
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
add esp, 0x18
ret
Function at 0x452bc0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00474970
mov eax, dword [0x4cb08c]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x452c25
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x452c25
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00472c87
add eax, 0x40
push eax
call fcn.00474be6
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00471497
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.00474a7d
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x452cb4
call fcn.00452ae0
test eax, eax
je 0x452cb4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00471497
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00471497
add esp, 0x108
ret
Function at 0x45b980
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
xor eax, eax
cmp ecx, edx
je 0x45b9b1
push esi
push edi
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
add ecx, 1
xor eax, esi
cmp ecx, edx
jne 0x45b990
pop edi
pop esi
ret

Function at 0x460040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491388
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4cb08c]
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.00404130
mov dword [esi], vtable.std::invalid_argument.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x46008a
add edi, 0x28
jmp 0x46008c
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 0x4600a4
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::invalid_argument_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::invalid_argument_.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 0x460790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491483
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4cb08c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.00460040
mov dword [esp + 0x1c], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
test edi, edi
mov byte [esp + 0x1c], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::invalid_argument__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::invalid_argument__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::invalid_argument__.0
je 0x4607f5
lea ebx, [edi + 0x28]
jmp 0x4607f7
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
mov edi, dword [ebx + 4]
je 0x460808
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test edi, edi
mov dword [esi + 0x2c], edi
je 0x460818
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x46e930
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x492038
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4cb08c]
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.004011d0
mov dword [esi], vtable.boost::regex_error.0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
test ecx, ecx
mov dword [esp + 0x18], 0
mov dword [esi + 0x34], ecx
je 0x46e995
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x3c]
mov dword [esi + 0x3c], edx
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::regex_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::regex_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 0x46f670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
cmp cl, 0x3c
mov eax, 0x4ab38e
mov dword [esp], eax
mov dword [esp + 4], 0x4a8270
mov dword [esp + 8], 0x4a826c
mov dword [esp + 0xc], 0x4a8268
mov dword [esp + 0x10], 0x4a8264
mov dword [esp + 0x14], 0x4ab7c8
mov dword [esp + 0x18], 0x4a6d58
mov dword [esp + 0x1c], 0x4a8260
mov dword [esp + 0x20], 0x4a825c
mov dword [esp + 0x24], 0x4abea8
mov dword [esp + 0x28], 0x4abeac
mov dword [esp + 0x2c], 0x4a8258
mov dword [esp + 0x30], 0x4abd00
mov dword [esp + 0x34], 0x4a8254
mov dword [esp + 0x38], 0x4ac67c
mov dword [esp + 0x3c], 0x4abe90
mov dword [esp + 0x40], 0x4abea4
mov dword [esp + 0x44], str.0123456789
mov dword [esp + 0x48], 0x4a407c
mov dword [esp + 0x4c], 0x4a8004
mov dword [esp + 0x50], 0x4a8244
mov dword [esp + 0x54], 0x4a8240
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x4a823c
mov dword [esp + 0x64], 0x4a8238
mov dword [esp + 0x68], 0x4abca8
mov dword [esp + 0x6c], 0x4abea0
mov dword [esp + 0x70], 0x4a4084
mov dword [esp + 0x74], 0x4a7f48
mov dword [esp + 0x78], 0x4a7f28
mov dword [esp + 0x7c], 0x4abcd4
mov dword [esp + 0x80], 0x4a4078
mov dword [esp + 0x84], 0x4a7f10
mov dword [esp + 0x88], 0x4a7f0c
mov dword [esp + 0x8c], 0x4a7f50
mov dword [esp + 0x90], 0x4ac5a4
mov dword [esp + 0x94], 0x4a8234
mov dword [esp + 0x98], 0x4abd2c
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x4abd28
mov dword [esp + 0xc0], 0x4a7fd8
mov dword [esp + 0xc4], 0x4a7fbc
mov dword [esp + 0xc8], 0x4abbd0
mov dword [esp + 0xcc], str.ZYXWVUTSRQPNMKJIHGFDBA
mov dword [esp + 0xd0], 0x4a7ff8
mov dword [esp + 0xd4], 0x4a8230
mov dword [esp + 0xd8], 0x4a7f20
mov dword [esp + 0xdc], 0x4a7fdc
mov dword [esp + 0xe0], 0x4a7fe0
mov dword [esp + 0xe4], 0x4a7f44
mov dword [esp + 0xe8], 0x4a7fe8
mov dword [esp + 0xec], 0x4a7fd4
jae 0x46f88d
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret
Function at 0x46fb20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x46fb2f
mov eax, dword [eax + 4]
jmp 0x46fb32
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46fbc4
push esi
mov esi, dword [0x4d1e1c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x46fba9
cmp eax, 3
je 0x46fba9
cmp eax, 0x7b
je 0x46fba9
cmp eax, 0xf
je 0x46fba9
cmp eax, 0x57
je 0x46fba9
cmp eax, 0xa1
je 0x46fba9
cmp eax, 0x35
je 0x46fba9
cmp eax, 0x20
jne 0x46fb9e
mov eax, dword [0x4d1e24]
mov dword [ecx], eax
mov edx, dword [0x4d1e28]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4d1e24]
mov dword [ecx], eax
mov edx, dword [0x4d1e28]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4d1e24]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4d1e28]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x46fbf1
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x46fc00
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x46fc1b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x46fc30
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x46fc4b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x46fc80
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x46fc93
mov ecx, dword [eax + 4]
jmp 0x46fc96
lea ecx, [eax + 4]
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], edx
jb 0x46fca4
mov eax, dword [eax + 4]
jmp 0x46fca7
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x46fcc5
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [0x4d1e1c]
mov dword [eax + 4], ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [0x4d1e1c]
mov dword [eax + 4], ecx
ret
Function at 0x46fce0
Capabilities:
Create directory

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor esi, esi
call fcn.00459070
mov ebp, eax
mov dword [esp + 0xc], esi
call fcn.00459070
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x18], 8
mov dword [esp + 0x10], eax
jb 0x46fd0b
mov eax, dword [edi + 4]
jmp 0x46fd0e
lea eax, [edi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x46fd2f
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 1
pop ebp
add esp, 8
ret
mov ebp, dword [0x4d1e1c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x46fd7f
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.0046fb20
add esp, 0xc
cmp dword [esp + 0x1c], 3
jne 0x46fd7f
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d1e24]
mov ecx, dword [0x4d1e28]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
Function at 0x46fe90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49220b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4cb08c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebp
push esi
push edi
mov eax, dword [0x4cb08c]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ecx, dword [esp + 0x2ac]
mov edx, dword [esp + 0x2b0]
mov edi, dword [esp + 0x2a0]
mov ebp, dword [esp + 0x2a8]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2a8]
push 0
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], 0
call fcn.00402b20
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x294], 0
je 0x46ff5f
lea esi, [eax - 1]
cmp esi, eax
jbe 0x46ff44
call fcn.00471ad5
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x46ff53
lea eax, [esp + 0x20]
cmp word [eax + esi*2], 0x5c
mov edx, 0x4a8798
je 0x46ff64
mov edx, 0x4a8790
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46ff70
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00403010
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x46ff9d
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x46fff0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0
call esi
cmp eax, 2
jne 0x46ffc7
xor eax, eax
jmp 0x46ffc9
call esi
cmp dword [esp + 0x34], 8
mov esi, dword [esp + 0x10]
mov edx, dword [0x4d1e1c]
mov dword [esi], eax
mov dword [esi + 4], edx
jb 0x46ffec
mov eax, dword [esp + 0x20]
push eax
call fcn.004716d0
add esp, 4
mov eax, esi
jmp 0x47006d
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46fff7
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
call fcn.00403110
test byte [esp + 0x38], 0x10
je 0x470030
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x470044
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x34], esi
mov eax, dword [0x4d1e24]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
mov ecx, dword [0x4d1e28]
mov dword [edi + 4], ecx
jb 0x47006b
mov edx, dword [esp + 0x20]
push edx
call fcn.004716d0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00471497
add esp, 0x288
ret
Function at 0x470350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4d1e34]
test eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
je 0x470367
push eax
call edi
test eax, eax
jne 0x47039d
push esi
call fcn.00470220
push 0x4701e0
push 0x4d1e30
mov esi, eax
call fcn.004037d0
mov eax, dword [0x4d1e34]
add esp, 8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x4d1e34]
test eax, eax
pop esi
jne 0x47039a
pop edi
ret
push eax
call edi
pop edi
ret

Function at 0x470530
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4922b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cb08c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4d1e34]
test eax, eax
jne 0x470562
xor esi, esi
jmp 0x47056b
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 0x4705ad
cmp dword [esi + 0x14], 0
jne 0x4705ef
cmp dword [esi + 0x10], 0
jne 0x4705f5
push 0x4701e0
push 0x4d1e30
call fcn.004037d0
mov eax, dword [0x4d1e34]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x4705db
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4705db
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
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 0x470635
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x470623
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 0x4705f5
cmp dword [esi + 0x14], 0
je 0x470587
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x47065a
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 0x47068b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x47068b
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 0x47068b
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 0x47063f
jmp 0x470581
Function at 0x470740
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x4706b0
push 0
push 0
call fcn.004743cf
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x47078c
lea ecx, [esp + 8]
call fcn.004714a6
push 0x4b68c4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
call fcn.00475e3b
mov eax, dword [edi + 8]
push esi
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi + 8]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x4707b5
cmp eax, 0xffffffff
je 0x4707b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x471497
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cb08c]
jne 0x4714a1
repz ret
jmp fcn.004795c2