joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425500
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x40], 0
push 0x38
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0044cfe0
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x34], str.open
mov ecx, dword [ebp + 8]
call fcn.00401ec0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x46ead8
mov ecx, dword [ebp - 0x54]
add ecx, 0xb8
call fcn.00401ec0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x3c], 0x40
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x425574
xor al, al
jmp 0x425605
push 0
push 0
push 0x12
mov edx, dword [ebp - 0x54]
add edx, 0xe0
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4c], esp
push edx
call fcn.00426910
mov dword [ebp - 0x58], eax
call fcn.0043f470
add esp, 8
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x54]
add ecx, 0xe8
call fcn.00409100
push 0
lea edx, [ebp - 0x40]
push edx
call fcn.004051d0
add esp, 8
push eax
lea ecx, [ebp - 4]
call fcn.00425610
lea eax, [ebp - 4]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00425630
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x4d], al
lea ecx, [ebp - 0x44]
call fcn.00425650
mov al, byte [ebp - 0x4d]
mov esp, ebp
pop ebp
ret 4
Function at 0x428f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467b48
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x481410]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x428f50
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x428f5c
mov al, 1
jmp 0x4290ff
mov dword [ebp - 0x10], 8
call fcn.004366e0
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.004366e0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00435ac0
add esp, 8
movzx eax, al
test eax, eax
je 0x428f9f
xor al, al
jmp 0x4290ff
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0043a7d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.00436b40
mov ecx, eax
call fcn.0043b720
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.004022a0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00436b40
mov ecx, eax
call fcn.0043b720
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.0042a010
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x42901a
cmp dword [ebp - 0x6c], 1
je 0x429021
cmp dword [ebp - 0x6c], 3
je 0x4290bb
jmp 0x4290d3
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00436b40
mov ecx, eax
call fcn.0043b720
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x429084
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00436b40
mov ecx, eax
call fcn.0043b720
push eax
call fcn.0044db94
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x429084
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402810
mov al, byte [ebp - 0x61]
jmp 0x4290ff
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x4290a7
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402810
mov al, byte [ebp - 0x62]
jmp 0x4290ff
cmp dword [ebp - 0x38], 0
jne 0x4290b9
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00437fc0
jmp 0x4290eb
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402810
mov al, byte [ebp - 0x63]
jmp 0x4290ff
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402810
mov al, byte [ebp - 0x64]
jmp 0x4290ff
jmp 0x428fb2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0044c7b8
mov esp, ebp
pop ebp
ret
Function at 0x43f210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.004100d0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x43f3a0
push 0
push 0
call fcn.0044e7a4
add esp, 0x18
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.0040f9a0
movzx eax, al
test eax, eax
jne 0x43f262
xor al, al
jmp 0x43f26d
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x1c], edx
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x43f2f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x43f32a
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43f32a
mov dword [ebp - 8], 1
jmp 0x43f331
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x440180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4692f6
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push esi
push edi
mov eax, dword [0x481410]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4401f7
push str.mailru::resource::read
push str..Resource.cpp
push 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040ae50
push 0x4766f4
lea eax, [esp + 0x40]
push eax
call fcn.0044c9b1
mov ecx, dword [esi]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x440234
push str.mailru::resource::read
push str..Resource.cpp
push 0x1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040ae50
push 0x4766f4
lea edx, [esp + 0x40]
push edx
call fcn.0044c9b1
lea ecx, [esp + 0xc]
lea eax, [esp + 0x1c]
call fcn.004490d0
mov ecx, eax
lea eax, [esp + 0x14]
call fcn.004490d0
mov eax, dword [esi]
push edi
push eax
mov dword [esp + 0xe4], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x440292
push str.mailru::resource::read
push str..Resource.cpp
push 0x24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040ae50
push 0x4766f4
lea ecx, [esp + 0x40]
push ecx
call fcn.0044c9b1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4402d6
push str.mailru::resource::read
push str..Resource.cpp
push 0x29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x98]
call fcn.0040ae50
push 0x4766f4
lea eax, [esp + 0x8c]
push eax
call fcn.0044c9b1
lea ecx, [esp + 0x10]
lea eax, [esp + 0x18]
call fcn.004490d0
mov ecx, eax
lea eax, [esp + 0x20]
call fcn.004490d0
push esi
lea ecx, [esp + 0x28]
call fcn.0043fec0
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov byte [esp + 0xdc], 1
jne 0x44030f
call fcn.0044c9a1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
push esi
push edx
push eax
call fcn.0044ea10
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0xf0]
call fcn.0043ff30
lea ecx, [esp + 0x24]
call fcn.00426860
lea eax, [esp + 0x14]
call fcn.0043f740
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xd4
ret 0xc
Function at 0x4415c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x469588
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
mov eax, dword [0x481410]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
xor ebx, ebx
push 0x208
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
call fcn.00409970
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x7c], ebx
sar eax, 1
jne 0x44160e
call fcn.0044c9a1
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp byte [esp + 0x8c], bl
setne cl
push ecx
push edx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x44165e
push str.mailru::path::special
push str..Path.cpp
push 0x3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x38]
call fcn.0040ae50
push 0x4766f4
lea ecx, [esp + 0x2c]
push ecx
call fcn.0044c9b1
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x1c]
sar edx, 1
jne 0x44166f
call fcn.0044c9a1
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x84]
push eax
mov ecx, esi
call fcn.00401070
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x441693
push eax
call fcn.0044c3c7
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0044c3c7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x74
ret
Function at 0x4425b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4697eb
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x481410]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetACP]
call edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00441a60
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x3c], 0
jb 0x442611
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
jmp 0x442618
add eax, 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0044cac4
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x3c], 2
jb 0x44263d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044c3c7
add esp, 4
mov edx, dword [esp + 0x48]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esi], vtable.mailru::exception.0
mov dword [esi + 0xc], edx
call edi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esi + 0x10]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00442020
mov byte [esp + 0x3c], 3
call edi
mov edx, dword [esp + 0x50]
mov dword [esp + 0x44], eax
push edx
lea eax, [esi + 0x2c]
push eax
lea ecx, [esp + 0x4c]
call fcn.00442020
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x34
ret 0x10
Function at 0x4442e0
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
add ecx, 0x24
mov eax, edx
shr eax, 1
test dl, 1
je 0x4442f3
xor eax, 0xedb88320
test al, 1
je 0x444300
shr eax, 1
xor eax, 0xedb88320
jmp 0x444302
shr eax, 1
test al, 1
je 0x44430f
shr eax, 1
xor eax, 0xedb88320
jmp 0x444311
shr eax, 1
test al, 1
je 0x44431e
shr eax, 1
xor eax, 0xedb88320
jmp 0x444320
shr eax, 1
test al, 1
je 0x44432d
shr eax, 1
xor eax, 0xedb88320
jmp 0x44432f
shr eax, 1
test al, 1
je 0x44433c
shr eax, 1
xor eax, 0xedb88320
jmp 0x44433e
shr eax, 1
test al, 1
je 0x44434b
shr eax, 1
xor eax, 0xedb88320
jmp 0x44434d
shr eax, 1
test al, 1
je 0x44435a
shr eax, 1
xor eax, 0xedb88320
jmp 0x44435c
shr eax, 1
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0x100
jb 0x4442e5
ret

Function at 0x444370
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test edx, edx
jbe 0x44439d
push ebx
push ebp
movzx ebx, byte [esi]
movzx ebp, al
xor ebx, ebp
shr eax, 8
xor eax, dword [ecx + ebx*4 + 0x24]
dec edx
inc esi
test edx, edx
ja 0x444386
pop ebp
pop ebx
mov dword [edi], eax
pop edi
pop esi
ret 0xc
Function at 0x4497a8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4830e8], 0
push esi
jne 0x44971b
call fcn.00449641
test eax, eax
je 0x44975e
mov eax, dword [0x4830e8]
cmp eax, 1
jne 0x44973c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x44975e
pop esi
ret
push eax
call dword [0x4830f0]
test eax, eax
jne 0x4497a6
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 0x449762
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4830e8]
call dword [0x4830f0]
mov edi, eax
test edi, edi
je 0x449787
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4497a3
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4830e8]
call dword [0x4830ec]
add edi, 0x10
cmp edi, esi
jb 0x44978f
mov eax, edi
pop edi
pop esi
ret
jmp 0x449708

Function at 0x44a9d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x44a9df
mov eax, dword [eax + 4]
jmp 0x44a9e2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44aa7a
push esi
call fcn.0044b030
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
cmp eax, 2
je 0x44aa5f
cmp eax, 3
je 0x44aa5f
cmp eax, 0x7b
je 0x44aa5f
cmp eax, 0xf
je 0x44aa5f
cmp eax, 0x15
je 0x44aa5f
cmp eax, 0x57
je 0x44aa5f
cmp eax, 0xa1
je 0x44aa5f
cmp eax, 0x35
je 0x44aa5f
cmp eax, 0x20
jne 0x44aa54
mov eax, dword [0x48338c]
mov dword [ecx], eax
mov edx, dword [0x483390]
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 [0x48338c]
mov dword [ecx], eax
mov edx, dword [0x483390]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x48338c]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x483390]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x44aaa7
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret
Function at 0x44ab80
Capabilities:
Create directory

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor esi, esi
call fcn.0044b030
mov ebp, eax
mov dword [esp + 0xc], esi
call fcn.0044b030
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x18], 8
mov dword [esp + 0x10], eax
jb 0x44abab
mov eax, dword [edi + 4]
jmp 0x44abae
lea eax, [edi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x44abcf
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
call fcn.0044b030
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x44ac20
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.0044a9d0
add esp, 0xc
cmp dword [esp + 0x1c], 3
jne 0x44ac20
mov eax, dword [esp + 0x18]
mov edx, dword [0x48338c]
mov ecx, dword [0x483390]
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 0x44ac80
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x469ebb
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x481410]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x481410]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2ac]
mov edx, dword [esp + 0x2b0]
mov eax, dword [esp + 0x2a8]
mov ebp, dword [esp + 0x2a0]
mov ebx, dword [esp + 0x2a4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2b4]
push 0xffffffffffffffff
xor esi, esi
mov dword [esp + 0x18], edx
push esi
mov dword [esp + 0x20], ecx
xor edx, edx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], dx
call fcn.00401c70
mov eax, dword [esp + 0x34]
mov dword [esp + 0x298], esi
cmp eax, esi
je 0x44ad49
lea edi, [eax - 1]
cmp edi, eax
jbe 0x44ad2e
call fcn.0044c9a1
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x44ad3d
lea eax, [esp + 0x24]
cmp word [eax + edi*2], 0x5c
mov edx, 0x470460
je 0x44ad4e
mov edx, 0x470458
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x44ad53
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.004048a0
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x44ad80
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x44adc3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], esi
call edi
cmp eax, 2
je 0x44ada6
call edi
mov esi, eax
call fcn.0044b030
cmp dword [esp + 0x38], 8
mov dword [ebp], esi
mov dword [ebp + 4], eax
jb 0x44ae43
mov edx, dword [esp + 0x24]
push edx
jmp 0x44ae3b
lea eax, [esp + 0x68]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x44add0
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00401f50
test byte [esp + 0x3c], 0x10
je 0x44ae0b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 3
mov dword [edx], 3
jmp 0x44ae1f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax], 2
mov dword [ecx], 2
mov edx, dword [0x48338c]
mov dword [ebp], edx
mov eax, dword [0x483390]
mov dword [ebp + 4], eax
cmp dword [esp + 0x38], edi
jb 0x44ae43
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0044c3c7
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0044c7b8
add esp, 0x288
ret
Function at 0x44c010
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x46a078
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x481410]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x44bb50
push 0x4833d8
call fcn.0044bd60
mov eax, dword [0x4833e0]
add esp, 8
test eax, eax
je 0x44c06a
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.0044cab3
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.00419130
int3

Function at 0x44c0a0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x46a0a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x481410]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4833e0]
test eax, eax
jne 0x44c0d2
xor esi, esi
jmp 0x44c0db
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x44c107
cmp dword [esi + 0x14], 0
jne 0x44c149
cmp dword [esi + 0x10], 0
jne 0x44c150
push 0
call fcn.0044c010
add esp, 4
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x44c135
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x44c135
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 0x44c190
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x44c17e
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 0x44c150
cmp dword [esi + 0x14], 0
je 0x44c0f7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x44c1b5
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 0x44c1e6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x44c1e6
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 0x44c1e6
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 0x44c19a
jmp 0x44c0f1
Function at 0x44c280
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x46a0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x481410]
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 0x44c200
push 0
push 0
call fcn.0044e7a4
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x44c2eb
lea ecx, [esp + 0x10]
call fcn.0044cab3
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.00419130
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 0x44c311
cmp eax, 0xffffffff
je 0x44c311
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 0x44c7b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x481410]
jne 0x44c7c2
repz ret
jmp fcn.004535cc