joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451ec5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x451fdd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x451fdd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046fd73
mov esi, eax
test esi, esi
je 0x451fdd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x451fdd
mov ecx, esi
call fcn.00451e30
cmp edi, eax
jge 0x451fdd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x451f63
mov dword [esp + 0x34], 1
jmp 0x451fbe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x451fdd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00451420
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x454010
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x47d368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x1c], 0
call fcn.00454a20
mov eax, dword [esp + 0x24]
push 0x557be4
push eax
xor edi, edi
xor ebx, ebx
call fcn.0045b3d4
add esp, 8
test eax, eax
je 0x45405d
mov ebx, dword [esp + 0x24]
mov edi, 3
push 0
push 0
push ebx
push edi
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi], eax
je 0x4540a7
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea ecx, [esp + 0xc]
push 4
push ecx
push 2
push eax
mov dword [esp + 0x1c], 0x15f90
call edi
mov eax, dword [esi]
lea edx, [esp + 0xc]
push 4
push edx
push 5
push eax
call edi
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push 4
push ecx
push 6
push edx
call edi
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
lea ecx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0046e360
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4545c0
Capabilities:
Get http response content encoding
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d3f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
lea eax, [esi + 0x28]
mov dword [ebp - 4], ebx
push eax
push 0x13
call fcn.004547e0
lea ecx, [esi + 0x30]
push ecx
push 5
mov ecx, esi
call fcn.00454870
lea edx, [esi + 0x20]
mov ecx, esi
push edx
push 0x21
call fcn.00454730
lea eax, [esi + 0x14]
mov ecx, esi
push eax
push 0x16
call fcn.00454730
lea ecx, [esi + 0x18]
push ecx
push 1
mov ecx, esi
call fcn.00454730
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea edx, [ebp - 0x14]
push ebx
push edx
push ebx
push 0x1d
push eax
mov dword [esi + 0x24], ebx
mov dword [ebp - 0x14], ebx
call edi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x45469d
push eax
call fcn.0046e0a1
mov edx, dword [esi + 8]
add esp, 4
lea ecx, [ebp - 0x14]
mov ebx, eax
push 0
push ecx
push ebx
push 0x1d
push edx
call edi
push str.gzip
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x45467b
mov dword [esi + 0x24], 1
jmp 0x454692
push str.deflate
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x454692
mov dword [esi + 0x24], 2
push ebx
call fcn.0046e0ca
add esp, 4
xor ebx, ebx
lea ecx, [esi + 0x1c]
push 0x557be4
call fcn.0046e49d
mov dword [ebp - 0x18], ebx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push ebx
push 0x2b
push edx
mov dword [ebp - 0x14], ebx
call edi
mov eax, dword [ebp - 0x14]
cmp eax, 1
jb 0x454714
push eax
call fcn.0046e0a1
mov edx, dword [esi + 8]
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push ebx
push 0x2b
push edx
call edi
cmp dword [ebp - 0x18], 1
jbe 0x4546f8
push 0x548330
lea ecx, [esi + 0x1c]
call fcn.0046e6f0
push ebx
lea ecx, [esi + 0x1c]
call fcn.0046e6f0
push ebx
call fcn.0046e0ca
add esp, 4
xor ebx, ebx
jmp 0x4546ad
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454910
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], esp
cmp eax, ebx
je 0x45494e
push eax
call fcn.0045be0e
add esp, 4
mov dword [esi + 0xc], ebx
push 0x400
lea ecx, [ebp - 0x40]
mov dword [esi + 0x10], ebx
call fcn.00475dc6
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x43f]
mov byte [ebp - 0x440], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x14], ebx
je 0x4549cd
mov edx, dword [esi + 8]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x440]
push 0x400
push ecx
push edx
call edi
cmp eax, ebx
je 0x45498a
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x45498a
push eax
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x40]
call fcn.00475fad
jmp 0x45498a
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.0046ed6c
mov edi, eax
cmp edi, ebx
jbe 0x4549ec
lea ecx, [ebp - 0x40]
call fcn.00475e3d
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp ecx, edi
lea ecx, [ebp - 0x40]
sbb esi, esi
neg esi
call fcn.00475e4f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470716
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47074e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046e7bb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046e793
jmp 0x47075a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x471e04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x471e46
call fcn.00477f24
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x471e46
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x471e3d
xor eax, eax
jmp 0x471e4e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00471e54
pop edi
pop esi
pop ebx
ret 4
Function at 0x40a323
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a347
xor eax, eax
jmp 0x40a3c3
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a38a
xor eax, eax
jmp 0x40a3c3
push 1
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a3c0
mov dword [ebp - 8], 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40b150
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x42a710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push 0x4399d0
lea ecx, [esp + 8]
call fcn.00420dbb
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.0041f3d9
mov ebx, 1
mov ecx, 0x43a378
mov byte [esp + 0x30], bl
call fcn.00412820
cmp eax, ebx
jne 0x40b320
push str.WININIT.INI
lea ecx, [esp + 0xc]
call fcn.00420dbb
lea eax, [esp + 0x10]
push 0
push eax
mov ecx, 0x43a310
mov byte [esp + 0x38], 2
call fcn.004096a0
lea ecx, [esp + 8]
push ebx
push ecx
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x40], 3
call fcn.0040d540
add esp, 0x10
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x34], 4
call fcn.00420e3a
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 3
call fcn.00420d4d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.00420d4d
lea ecx, [esp + 8]
mov byte [esp + 0x30], bl
call fcn.00420d4d
push str.rename
lea ecx, [esp + 0xc]
call fcn.00420dbb
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x40], 5
call fcn.0040c230
add esp, 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x30], bl
call fcn.00420d4d
mov eax, dword [esp + 0x38]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00420ac2
lea ecx, [esp + 0x14]
push ecx
call fcn.0040d1b0
add esp, 8
push eax
lea edx, [esp + 0x3c]
push str.NUL
push edx
mov byte [esp + 0x3c], 6
call fcn.0042100a
push eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 7
call fcn.0041f5e1
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 6
call fcn.00420d4d
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.00420d4d
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.rename
call fcn.00420dbb
push ecx
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov byte [esp + 0x3c], 8
call fcn.00420ac2
mov byte [esp + 0x38], bl
call fcn.0040c040
add esp, 8
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.rename
call fcn.00420dbb
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x40], 9
call fcn.00420ac2
mov byte [esp + 0x3c], bl
call fcn.0040c0f0
add esp, 0xc
jmp 0x40b333
mov eax, dword [esp + 0x38]
push 4
push 0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ebx, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.0041f40c
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.00420d4d
mov ecx, dword [esp + 0x28]
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret
Function at 0x40b390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a757
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push 0x4399d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0
call fcn.00420dbb
mov ebx, 1
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x437754
mov dword [esp + 0x2c], ebx
call fcn.00420dbb
mov esi, dword [esp + 0x34]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
mov byte [esp + 0x30], 2
call fcn.00420ac2
mov byte [esp + 0x2c], bl
call fcn.0040db80
add esp, 0xc
test eax, eax
je 0x40b461
push 0x437754
lea ecx, [esp + 0x30]
call fcn.00420dbb
push ecx
lea ecx, [esp + 0x30]
mov eax, esp
mov dword [esp + 0x18], esp
push ecx
push esi
push eax
mov byte [esp + 0x30], 3
call fcn.0040ddc0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call fcn.0040e130
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 4
call fcn.00420e3a
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.00420d4d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.00420d4d
mov esi, dword [esp + 0x28]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00420ac2
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.00420d4d
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x40b4a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a7c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov dword [esp + 0x18], 0
push 0x4399d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 1
call fcn.00420dbb
push 0
push ecx
mov bl, 2
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x43777c
mov byte [esp + 0x34], bl
call fcn.00420dbb
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x38], 3
call fcn.00420ac2
mov byte [esp + 0x34], bl
call fcn.0040db80
add esp, 0xc
test eax, eax
je 0x40b56b
push 0x43777c
lea ecx, [esp + 0x10]
call fcn.00420dbb
lea ecx, [esp + 0xc]
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x34], 4
call fcn.0040ddc0
add esp, 0xc
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 5
call fcn.00420e3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.00420d4d
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call fcn.00420d4d
push 0x437778
lea ecx, [esp + 0x14]
call fcn.00420dbb
push str.___:
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 6
call fcn.00420dbb
push ecx
lea ecx, [esp + 0x14]
mov esi, esp
mov dword [esp + 0x20], esp
lea edx, [esp + 0x10]
push ecx
push edx
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x3c], 7
call fcn.00420ac2
push esi
call fcn.0040e060
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
call fcn.0040e130
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 8
call fcn.00420e3a
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 7
call fcn.00420d4d
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 6
call fcn.00420d4d
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00420d4d
mov esi, dword [esp + 0x30]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00420ac2
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.00420d4d
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call fcn.00420d4d
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x40b650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a817
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push 0x4399d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0
call fcn.00420dbb
mov ebx, 1
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x437754
mov dword [esp + 0x2c], ebx
call fcn.00420dbb
mov esi, dword [esp + 0x34]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
mov byte [esp + 0x30], 2
call fcn.00420ac2
mov byte [esp + 0x2c], bl
call fcn.0040db80
add esp, 0xc
test eax, eax
je 0x40b721
push 0x437754
lea ecx, [esp + 0x30]
call fcn.00420dbb
push ecx
lea ecx, [esp + 0x30]
mov eax, esp
mov dword [esp + 0x18], esp
push ecx
push esi
push eax
mov byte [esp + 0x30], 3
call fcn.0040dfa0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call fcn.0040e130
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 4
call fcn.00420e3a
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.00420d4d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.00420d4d
mov esi, dword [esp + 0x28]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00420ac2
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.00420d4d
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x40c040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x24], 1
call fcn.0041f3d9
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0041f5e1
lea edx, [esp + 8]
lea eax, [esp + 0x2c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call fcn.00420ac2
call fcn.0040bd30
add esp, 8
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x24], 1
call fcn.0041f40c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 0
call fcn.00420d4d
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.00420d4d
mov ecx, dword [esp + 0x1c]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x42aa60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov eax, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x1c], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40c69b
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00420ac2
lea eax, [esp + 0xc]
push eax
call fcn.0040cb30
mov ecx, dword [eax]
add esp, 8
xor edx, edx
mov esi, dword [ecx - 8]
lea ecx, [esp + 8]
test esi, esi
sete dl
mov esi, edx
call fcn.00420d4d
test esi, esi
jne 0x40c69b
push 0x4376a8
lea ecx, [esp + 0xc]
call fcn.00420dbb
lea eax, [esp + 8]
lea edx, [esp + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x28], 1
call fcn.00420ac2
lea eax, [esp + 0x14]
push eax
call fcn.0040e360
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 2
call fcn.00420e3a
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.00420d4d
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.00420d4d
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 8]
dec eax
test eax, eax
jl 0x40c662
mov al, byte [eax + ecx]
xor edx, edx
cmp al, 0x3a
sete dl
mov eax, edx
test eax, eax
je 0x40c662
lea eax, [esp + 0x24]
push 0x4376a8
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00420f96
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 3
call fcn.00420e3a
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.00420d4d
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c677
test al, 0x10
je 0x40c677
mov edi, 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00420d4d
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x18
ret
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00420d4d
mov ecx, dword [esp + 0x14]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret
Function at 0x40d330
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42acdf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
xor esi, esi
mov dword [esp + 0xc], esi
push 0x4399d0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 1
call fcn.00420dbb
push esi
mov byte [esp + 0x28], 2
call fcn.00414f55
push eax
call fcn.00414f26
add esp, 8
xor eax, eax
mov byte [esp + 0x10], 0
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov byte [esp + 0x19], al
call fcn.00414f33
push eax
lea ecx, [esp + 0x14]
push str._05d
push ecx
call fcn.00414ed4
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 4]
push edx
call fcn.00420e8a
lea eax, [esp + 4]
push 1
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.0040d540
add esp, 0x10
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x28], 3
call fcn.00420e3a
lea ecx, [esp + 8]
mov byte [esp + 0x24], 2
call fcn.00420d4d
lea eax, [esp + 4]
inc esi
push eax
call fcn.0040c470
add esp, 4
test eax, eax
je 0x40d403
cmp esi, 0x64
jl 0x40d379
cmp esi, 0x64
jne 0x40d416
push 0x4399d0
lea ecx, [esp + 8]
call fcn.00420e8a
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00420ac2
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x24], 1
call fcn.00420d4d
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.00420d4d
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x40d460
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x42ad00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0x4399d0
lea ecx, [esp + 8]
call fcn.00420dbb
mov esi, dword [esp + 0x1c]
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push esi
mov dword [esp + 0x1c], 0
call fcn.00420ac2
lea eax, [esp + 0x20]
push eax
call fcn.0040ca60
add esp, 8
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.00420e3a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.00420d4d
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d4e2
lea edx, [esp + 4]
push edx
call fcn.0040d460
add esp, 4
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push esi
call fcn.00420ac2
call fcn.0040c540
add esp, 4
test eax, eax
jne 0x40d509
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
jmp 0x40d50e
mov esi, 1
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00420d4d
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret