joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415ef0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4351b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x218], eax
xor eax, eax
push 0x206
mov dword [ebp - 0x214], ecx
mov esi, edx
mov edx, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x210], edx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
mov eax, dword [0x436f8c]
push 0
push 0
push 0
push 0x104
lea edx, [ebp - 0x20c]
push edx
push esi
push eax
call dword [sym.imp.crt.dll_Ordinal_33]
add esp, 0x28
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415f95
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004223ce
mov esp, ebp
pop ebp
ret 0x10
call fcn.00415e40
mov edx, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
mov esi, eax
mov eax, dword [ebp - 0x214]
mov dword [esi + 4], edi
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
lea edx, [ebp - 0x21c]
mov dword [esi + 0x10], ecx
call fcn.004164b0
test eax, eax
je 0x415fec
mov edx, dword [0x42a988]
mov eax, dword [0x42a98c]
mov ecx, dword [0x42a990]
mov dword [esi + 4], edx
mov edx, dword [0x42a994]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
lea eax, [ebp - 0x20c]
lea edx, [esi + 0x14]
lea edi, [eax + 2]
jmp 0x416000
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416000
sub eax, edi
lea ecx, [ebp - 0x20c]
sar eax, 1
push ecx
push edx
mov ebx, eax
call fcn.0040df40
mov edx, dword [ebp - 0x220]
push edx
call fcn.00416050
test al, al
jne 0x416036
push esi
call fcn.00415280
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004223ce
mov esp, ebp
pop ebp
ret 0x10

Function at 0x416760
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov dword [esi + 0x50], eax
cmp dword [esi + 0x54], edi
je 0x416789
test edi, edi
je 0x416777
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov eax, dword [esi + 0x54]
test eax, eax
je 0x416786
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x54], edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x4165e0
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x4167d1
mov esi, dword [esi + 0xc]
test esi, esi
je 0x4167d1
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret
Function at 0x4167e0
Capabilities:
Terminate thread

Disassembly:
cmp dword [esi + 0xa4], 0
jne 0x416838
mov eax, dword [esi + 0x1c]
mov dword [esi + 0xa4], 1
test eax, eax
je 0x41680d
push 0
push 0xf060
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 8]
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41682f
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
jmp eax
ret

Function at 0x417a00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
test eax, eax
jne 0x417a0c
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x80
push 3
push 0
push 0
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x417a34
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x417a85
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417a85
cmp dword [ebp - 4], edi
jne 0x417a85
mov ecx, dword [ebp + 8]
push esi
mov dword [ecx], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425c7c
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4351b0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
xor ebx, ebx
mov dword [esp + 0x14], ecx
cmp byte [eax + 0x35], bl
jne 0x4182dd
mov edx, dword [esi]
cmp dword [eax + 0xc], edx
jge 0x4182ce
mov eax, dword [eax + 8]
jmp 0x4182d8
mov dword [esp + 0x14], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
cmp byte [eax + 0x35], bl
je 0x4182c4
cmp ecx, dword [edi + 4]
je 0x4182ed
mov eax, dword [esi]
cmp eax, dword [ecx + 0xc]
jge 0x41840c
mov edx, dword [0x43517c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43517c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov ecx, 1
mov dword [esp + 0x78], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], ecx
mov byte [esp + 0x30], bl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x78], 2
mov ecx, dword [esi]
lea edx, [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
call fcn.00410640
add eax, 0x10
mov dword [esp + 0x48], eax
mov byte [esp + 0x78], 4
mov eax, dword [esp + 0x24]
mov ecx, 7
lea esi, [esp + 0x28]
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x78], 7
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x44]
mov edx, edi
call fcn.00419ec0
mov ecx, dword [esp + 0x14]
push ecx
lea esi, [esp + 0x18]
mov ecx, edi
call fcn.00419380
mov esi, dword [esp + 0x14]
mov byte [esp + 0x78], 2
lea edx, [esp + 0x48]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4183cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4183f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi + 0x10]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ecx + 0x10]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41dae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425394
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4351b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
lea edx, [eax + 8]
mov dword [eax + 4], ecx
mov dword [ebp - 0x10], edx
mov dword [edx + 0xc], ecx
mov dword [ebp - 4], 1
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [ebp - 4], 2
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [eax + 0x20], edx
mov dword [ebp - 4], 3
mov dword [eax], vtable.CSkinWindowImpl_class_CUserWnd__class_ATL::CWindow__class_ATL::CWinTraits_1442840576__0__.0
mov dword [ebp - 4], 4
mov dword [eax + 0x28], vtable.CSkinCmdTarget.0
mov byte [ebp - 4], 5
mov dword [eax], vtable.CUserWnd.0
mov dword [eax + 0x28], vtable.CUserWnd.1.0
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
lea edx, [eax + 0x44]
mov dword [eax + 0x40], ecx
mov dword [ebp - 0x10], edx
mov dword [edx], ecx
mov byte [ebp - 4], 7
mov dword [eax + 0x30], ecx
mov byte [eax + 0x34], cl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41de90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4351b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x202
jne 0x41e06a
mov eax, dword [ebp + 8]
push esi
cmp eax, 5
jne 0x41df1c
push 0
push 0x42a21c
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x41deda
push 0
push 0
push 0x504
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 1
push 0x1b
call esi
push 0
push 2
push 1
push 0x1b
call esi
push 0
push 0
push str.AutoLogin
push 0x42b1c0
call dword [sym.imp.crt.dll_Ordinal_38]
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004223ce
mov esp, ebp
pop ebp
ret 0x10
push edi
cmp eax, 3
jne 0x41dfc0
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 1
push 0x1b
call esi
push 0
push 2
push 1
push 0x1b
call esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
push 0x15c
lea edx, [ebp - 0x368]
push 0
mov ecx, 0x2b
mov esi, str._TypeStormBox__OpenPage_http:__moviebox.baofeng.net_newbox1.0_user_user_index.html_
lea edi, [ebp - 0x414]
push edx
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x429e00
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 5
push 0
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
jmp 0x41e05e
cmp eax, 2
jne 0x41e068
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 1
push 0x1b
call esi
push 0
push 2
push 1
push 0x1b
call esi
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call sub.MSVCR100.dll_memset
push 0x15c
lea eax, [ebp - 0x368]
push 0
mov ecx, 0x2b
mov esi, str._TypeStormBox__OpenPage_http:__moviebox.baofeng.net_newbox1.0_user_user_index.html_
lea edi, [ebp - 0x414]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x429e00
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 5
push 0
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004223ce
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41f420
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x41f42f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [section..data]
test eax, eax
je 0x41f43d
call fcn.0041f2d0
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x41f531
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x436790]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x436790]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x436790]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x436790]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x436790]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x436790]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x436790]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x436790]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x41f457
pop edi
pop ebx
test edx, edx
je 0x41f551
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x436790]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x41f535
not eax
pop esi
ret 0xc
Function at 0x422053
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x436bc8], 0
push esi
push edi
jne 0x421fc9
call fcn.00421f35
test eax, eax
je 0x42200e
mov eax, dword [0x436bc8]
cmp eax, 1
jne 0x421fea
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42200e
jmp 0x422050
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x422050
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 0x422012
xor eax, eax
jmp 0x422050
mov eax, dword [esi]
push dword [0x436bc8]
call edi
mov edi, eax
test edi, edi
je 0x422034
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x422050
lea edi, [esi + 0xff0]
push esi
push dword [0x436bc8]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x42203a
mov eax, esi
pop edi
pop esi
ret
jmp 0x421fb5

Function at 0x4223ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4351b0]
jne 0x4223d8
repz ret
jmp fcn.00422936
Function at 0x4040a0
Capabilities:
Compute adler32 checksum

Disassembly:
push edi
mov edi, edx
test edi, edi
je 0x4041b3
push ebp
mov ebp, dword [esp + 0xc]
push esi
movzx esi, cx
shr ecx, 0x10
test ebp, ebp
je 0x4041a8
push ebx
mov edx, 0x15b0
cmp ebp, edx
cmovb edx, ebp
sub ebp, edx
cmp edx, 0x10
jb 0x40416c
mov ebx, edx
shr ebx, 4
lea ebx, [ebx]
movzx eax, byte [edi]
sub edx, 0x10
add esi, eax
movzx eax, byte [edi + 1]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 2]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 3]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 4]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 5]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 6]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 7]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 8]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 9]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 0xa]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 0xb]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 0xc]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 0xd]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 0xe]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 0xf]
add ecx, esi
add edi, 0x10
add esi, eax
add ecx, esi
dec ebx
jne 0x4040e0
test edx, edx
je 0x40417b
movzx eax, byte [edi]
inc edi
add esi, eax
add ecx, esi
dec edx
jne 0x404170
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test ebp, ebp
jne 0x4040c0
pop ebx
shl ecx, 0x10
or ecx, esi
pop esi
pop ebp
mov eax, ecx
pop edi
ret
mov eax, 1
pop edi
ret

Function at 0x405410
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1bc]
lea ecx, [esi + 0x1bc]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x405436
push 0
push dword [esi + 0x1c0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret
Function at 0x4063e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x44a1a0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.00422270
add esp, 0xc
mov dword [esp], 0x114
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jb 0x40643e
cmp dword [esp + 8], 2
jb 0x40643e
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041e8c8
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.0041e8c8
add esp, 0x118
ret

Function at 0x409e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
mov eax, dword fs:[0x2c]
push ebx
push ebp
push esi
mov eax, dword [eax]
push edi
mov dword [esp + 0x24], ecx
mov edi, dword [eax + 4]
add edi, 0xe8
cmp dword [edi + 0xc], 0x10000
jae 0x409ecb
mov eax, dword [edi]
shr eax, 0xa
test al, 1
jne 0x409f3e
cmp dword [edi + 0x10], 0
je 0x409eaf
mov ecx, edi
call fcn.00408240
push 0
push 0x10000
mov ecx, edi
call fcn.004082a0
mov dword [edi + 0x10], eax
test eax, eax
je 0x409f37
mov dword [edi + 0xc], 0x10000
mov ebx, dword [esp + 0x30]
mov ecx, ebx
mov dword [edi + 4], 0x10000
mov eax, dword [ebx]
mov eax, dword [eax + 0x78]
call eax
mov esi, dword [ebx]
mov ecx, ebx
mov ebp, eax
mov dword [esp + 0x18], edx
mov esi, dword [esi + 0x74]
call esi
mov ebx, dword [esp + 0x38]
sub ebp, eax
mov eax, dword [esp + 0x18]
sbb eax, edx
test ebx, ebx
jl 0x409f12
mov esi, dword [esp + 0x34]
jg 0x409f08
test esi, esi
jb 0x409f12
cmp eax, ebx
jl 0x409f12
jg 0x409f50
cmp ebp, esi
jae 0x409f50
test eax, eax
jg 0x409f4c
jl 0x409f1c
test ebp, ebp
jne 0x409f4c
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov dword [edi + 0xc], 0
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov esi, ebp
mov ebx, eax
xorps xmm0, xmm0
mov eax, esi
movlpd qword [esp + 0x18], xmm0
or eax, ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
je 0x40a004
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov ebp, esi
mov dword [esp + 0x18], ebx
test ebx, ebx
jl 0x409f8e
jg 0x409f86
cmp esi, eax
jbe 0x409f8e
mov ebp, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x30]
lea ecx, [edi + 4]
push dword [esp + 0x3c]
push ecx
mov eax, dword [edx]
mov ecx, edx
push ebp
push dword [edi + 0x10]
mov eax, dword [eax + 0xa0]
call eax
test al, al
je 0x409ffc
mov ecx, dword [edi + 4]
lea eax, [edi + 4]
add dword [esp + 0x14], ecx
adc dword [esp + 0x34], 0
test ecx, ecx
je 0x409fe0
mov edx, dword [esp + 0x24]
push dword [esp + 0x3c]
push ecx
mov eax, dword [edx]
mov ecx, edx
push dword [edi + 0x10]
mov eax, dword [eax + 0xa4]
call eax
test al, al
je 0x409ffc
lea eax, [edi + 4]
xor ecx, ecx
cmp dword [eax], ebp
jne 0x409ffc
mov eax, dword [esp + 0x18]
cmp ecx, eax
jne 0x409ffc
sub esi, ebp
sbb ebx, eax
mov eax, esi
or eax, ebx
jne 0x409f73
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x40c630
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
mov esi, ecx
push edi
push dword [esi + 0xc]
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x40c68f
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x40c6a8
lea edi, [eax + eax]
cmp edi, ecx
jbe 0x40c680
mov eax, dword [esi]
shr eax, 0xa
test al, 1
jne 0x40c68f
cmp dword [esi + 0x10], 0
je 0x40c66c
mov ecx, esi
call fcn.00408240
push 0
push edi
mov ecx, esi
call fcn.004082a0
mov dword [esi + 0x10], eax
test eax, eax
je 0x40c698
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
push dword [esi + 0xc]
push dword [esi + 0x10]
call ebx
test eax, eax
jne 0x40c648
xor al, al
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [esi + 0xc], 0
xor al, al
pop edi
pop esi
pop ebx
pop ecx
ret 4
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
ret 4
Function at 0x40db10
Capabilities:
Create directory

Disassembly:
sub esp, 0x45c
mov eax, dword [0x44a1a0]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x23c], 0
lea eax, [esp + 0x250]
mov dword [esp + 0x240], 0
mov dword [esp + 0x24c], eax
lea ecx, [esp + 0x23c]
push ebx
xor eax, eax
mov dword [esp + 0x248], 2
push edx
mov dword [esp + 0x250], pe_nt_image_headers32
mov word [esp + 0x258], ax
call fcn.0040c8a0
test al, al
je 0x40dcf5
mov ebp, dword [esp + 0x24c]
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
xor eax, eax
mov dword [esp + 0x18], 0
push ebp
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], pe_nt_image_headers32
mov word [esp + 0x30], ax
call fcn.0040bc10
test al, al
je 0x40dd22
mov edi, dword [esp + 0x24]
mov ecx, edi
call fcn.0040d6d0
push 0x5c
mov dword [esp + 0x14], eax
lea ecx, [edi + eax*2]
push ecx
call fcn.0041e8d7
mov esi, eax
add esp, 8
cmp esi, edi
jbe 0x40dc0f
cmp word [esi - 2], 0x3a
je 0x40dbff
cmp dword [esp + 0x10], 4
jbe 0x40dc0f
lea eax, [esi + 2]
push 0x5c
push eax
call fcn.0041e8d7
add esp, 8
mov esi, eax
test esi, esi
je 0x40dc57
xor eax, eax
push eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40dc3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40dc94
mov ecx, edi
call fcn.0040dfa0
test al, al
je 0x40dc94
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.0041e8d7
mov esi, eax
add esp, 8
test esi, esi
jne 0x40dc13
lea ecx, [esp + 0x14]
call fcn.004032e0
test ebp, ebp
je 0x40dcb0
mov ecx, ebp
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dc70
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40dcb0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
jmp 0x40dcb7
mov eax, dword [ebx]
push edi
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x20]
add esp, 0xc
lea ecx, [esp + 0x14]
mov bl, al
call fcn.00408240
jmp 0x40dcf7
mov ecx, ebp
call fcn.0040dd30
test al, al
jne 0x40dd1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40dce6
mov ecx, ebp
call fcn.0040dfa0
test al, al
jne 0x40dd1e
mov eax, dword [ebx]
push ebp
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x20]
add esp, 0xc
mov bl, al
jmp 0x40dcf7
mov eax, dword [ebx]
push ebp
push str.__s__could_not_be_created
push ebx
call dword [eax + 0x20]
add esp, 0xc
xor bl, bl
lea ecx, [esp + 0x23c]
call fcn.00408240
mov ecx, dword [esp + 0x468]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e8c8
add esp, 0x45c
ret
mov bl, 1
jmp 0x40dcf7
lea ecx, [esp + 0x14]
xor bl, bl
call fcn.00408240
jmp 0x40dcf7