joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
push ebx
push esi
mov esi, dword [esp + 0x16c]
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x4009
push 0x160
lea eax, [esp + 0x14]
push eax
push 0
push esi
call edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x174]
push 0x400b
push 0x160
lea edx, [esp + 0x14]
push edx
push 0
push esi
mov dword [ebx + 0x18], ecx
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ebx + 0x1c], eax
pop ebx
add esp, 0x160
ret 8

Function at 0x4012d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x4012e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x4012fd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40131e
cmp esi, eax
jae 0x4012f7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401310
cmp esi, eax
jae 0x4012f7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401880
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4362a8
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 0x6c]
mov ebp, dword [esp + 0x20]
xor esi, esi
dec ebx
cmp ebx, 0xffffffff
mov dword [esp + 0x18], esi
je 0x40192c
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 0x10
jne 0x4018f6
add ebp, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4018dc
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
test ebx, ebx
jl 0x40192c
lea ebx, [ebx]
test esi, esi
jl 0x4019a3
cmp esi, dword [edi + 0x6c]
jge 0x4019a3
mov eax, dword [edi + 0x68]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push eax
push ebp
call fcn.00416f7c
add esp, 8
test eax, eax
je 0x401966
inc esi
cmp esi, ebx
jle 0x401900
add ebp, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40194f
mov ecx, dword [ebp]
mov eax, dword [ecx]
push ebp
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
add ebp, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401989
mov ecx, dword [ebp]
mov eax, dword [ecx]
push ebp
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
call fcn.0042861c
int3
Function at 0x4020e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x4362f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0
call fcn.0040e1d7
push str..
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x44], 1
call fcn.00401ec0
add esp, 0xc
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 2
call fcn.00401df0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40215d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x40]
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.0040e26a
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
call ebp
test esi, esi
mov ebx, eax
je 0x4021ca
lea ecx, [ecx]
lea ecx, [esp + 0x18]
call fcn.0040dfb8
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [edx + 0x38]
test eax, eax
jne 0x4021bb
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
lea ecx, [esp + 0x20]
call fcn.0040e492
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x138]
test al, al
jne 0x40221e
call ebp
sub eax, ebx
cmp eax, 0x1f4
ja 0x40221e
test esi, esi
jne 0x402180
lea ecx, [esp + 0x18]
call fcn.0040dee8
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.0040e1fb
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402207
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
lea ecx, [esp + 0x18]
call fcn.0040dee8
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.0040e1fb
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40225b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 4
Function at 0x402670
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x1c]
push 0x1108
push eax
call edi
push eax
call fcn.00428914
test eax, eax
je 0x4026a1
lea ecx, [esi + 0x50]
call fcn.004288d4
push 0x4001
push 0x160
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x4387dc
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
jne 0x4026db
push 0x2e
push str.Cannot_retrieve_the_Handle_of_SystemImageList_
lea ecx, [esi + 0x60]
call fcn.00401a90
pop edi
xor eax, eax
pop esi
add esp, 0x160
ret
mov dword [esi + 0x54], eax
lea eax, [esi + 0x50]
test eax, eax
je 0x4026e8
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x1c]
push eax
push 0
push 0x1109
push edx
call edi
push eax
call fcn.00428914
pop edi
mov eax, 1
pop esi
add esp, 0x160
ret

Function at 0x4027a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4363b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x28]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
je 0x402846
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x402807
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4028a2
lea eax, [esp + 0x10]
push eax
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x402857
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x402857
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x2c]
push edx
push 0x8000
push eax
push ecx
mov ecx, esi
call fcn.00402710
test eax, eax
je 0x402857
mov eax, dword [esi + 0x6c]
lea ecx, [esi + 0x64]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00428d74
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x402865
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x402878
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402886
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4028ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x40eb9d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40ebf0
call fcn.0043381e
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, ebx
je 0x40ebf0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40ebe6
xor eax, eax
jmp 0x40ed09
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40ec20
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40ec20
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40ed06
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40ec4d
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040d400
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40ed06
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40ec96
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40ec96
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40ec90
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040d400
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40ecf6
and dword [ebp + 0xc], 0
jmp 0x40ecf6
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40ecf6
push 0xc
call fcn.0042956d
mov esi, eax
test esi, esi
pop ecx
je 0x40ecd8
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40ecda
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40ecf1
push dword [ebp - 8]
call fcn.00428ff5
jmp 0x40ecf6
call fcn.00428fcc
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40ec5b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x418004
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00417e10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x41809f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x44a444]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41809f
cmp eax, 1
je 0x4180c0
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x41809f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41806c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41809b
xor eax, eax
inc eax
jmp 0x4180df
cmp edi, eax
jae 0x4180a3
xor eax, eax
jmp 0x4180df
cmp eax, esi
jae 0x4180aa
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x44a444]
jmp 0x4180c3
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418256
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43ba38
call fcn.00418c00
mov edi, 0x94
mov eax, edi
call fcn.00417e10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x44a444], ecx
mov eax, dword [esi + 4]
mov dword [0x44a450], eax
mov edx, dword [esi + 8]
mov dword [0x44a454], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44a448], esi
cmp ecx, 2
je 0x4182b6
or esi, 0x8000
mov dword [0x44a448], esi
shl eax, 8
add eax, edx
mov dword [0x44a44c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4182f1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4182f1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x418309
cmp eax, 0x20b
je 0x4182f6
mov dword [ebp - 0x1c], esi
jmp 0x41831d
cmp dword [ecx + 0x84], 0xe
jbe 0x4182f1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x418317
cmp dword [ecx + 0x74], 0xe
jbe 0x4182f1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041cad2
pop ecx
test eax, eax
jne 0x418331
push 0x1c
call fcn.00418232
pop ecx
call fcn.0041a8b2
test eax, eax
jne 0x418342
push 0x10
call fcn.00418232
pop ecx
call fcn.0041e1f0
mov dword [ebp - 4], esi
call fcn.0041dff2
test eax, eax
jge 0x41835b
push 0x1b
call fcn.0041820d
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x44bef0], eax
call fcn.0041ded0
mov dword [0x44a430], eax
call fcn.0041de2e
test eax, eax
jge 0x418381
push 8
call fcn.0041820d
pop ecx
call fcn.0041dbfb
test eax, eax
jge 0x418392
push 9
call fcn.0041820d
pop ecx
push 1
call fcn.0041923a
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4183a8
push eax
call fcn.0041820d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0041db9e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4183c9
movzx eax, word [ebp - 0x40]
jmp 0x4183cc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00427c04
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4183ea
push edi
call fcn.00419367
call fcn.00419389
jmp 0x41841c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00418c3b
ret
Function at 0x4192a4
Capabilities:
Terminate process

Disassembly:
push 8
push 0x43ba98
call fcn.00418c00
push 8
call fcn.0041ca87
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44a484], esi
jne 0x4192d8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x44a480], esi
mov al, byte [ebp + 0x10]
mov byte [0x44a47c], al
cmp dword [ebp + 0xc], edi
jne 0x419322
cmp dword [0x44bee8], edi
je 0x419312
mov eax, dword [0x44bee4]
sub eax, 4
mov dword [0x44bee4], eax
cmp eax, dword [0x44bee8]
jb 0x419312
mov eax, dword [eax]
cmp eax, edi
je 0x4192f3
call eax
jmp 0x4192f3
push 0x4460b4
mov eax, 0x4460ac
call fcn.00419222
pop ecx
push 0x4460c0
mov eax, 0x4460b8
call fcn.00419222
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x419353
cmp dword [ebp + 0x10], edi
jne 0x419361
mov dword [0x44a484], esi
push dword [ebp + 8]
call fcn.004191e0
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x419360
push 8
call fcn.0041c9d2
pop ecx
ret
call fcn.00418c3b
ret
Function at 0x41d661
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41d68f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41d696
cmp ebx, dword [eax + 4]
jae 0x41d696
xor eax, eax
jmp 0x41d886
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41d6a7
xor eax, eax
inc eax
jmp 0x41d885
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41d6bd
cmp ecx, edx
jae 0x41d802
cmp dword [eax + 4], 0
je 0x41d6c6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41d6ae
cmp dword [ebp + 8], 0
je 0x41d6e8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41d802
cmp eax, esi
jae 0x41d802
mov eax, dword [0x44a610]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41d70d
cmp dword [esi*4 + 0x44a618], edi
je 0x41d806
inc esi
cmp esi, eax
jl 0x41d6fb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x41d882
cmp dword [ebp - 8], 0x1000000
jne 0x41d882
test byte [ebp - 0xc], 0xcc
je 0x41d78b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41d882
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d882
cmp word [eax + 0x18], 0x10b
jne 0x41d882
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41d882
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41d78b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41d78b
test byte [ecx + 0x27], 0x80
jne 0x41d802
push 1
push 0x44a658
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x41d69f
mov ecx, dword [0x44a610]
test ecx, ecx
mov edx, ecx
jle 0x41d7bf
lea eax, [ecx*4 + 0x44a614]
cmp dword [eax], edi
je 0x41d7bf
dec edx
sub eax, 4
test edx, edx
jg 0x41d7b3
test edx, edx
jne 0x41d7f0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41d7cc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41d7e4
lea eax, [edx*4 + 0x44a618]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41d7d2
cmp ecx, 0x10
jge 0x41d7f0
inc ecx
mov dword [0x44a610], ecx
push 0
push 0x44a658
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x41d69f
xor eax, eax
jmp 0x41d885
test esi, esi
jle 0x41d69f
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x44a658
call ebx
test eax, eax
jne 0x41d69f
cmp dword [esi*4 + 0x44a618], edi
je 0x41d85c
mov eax, dword [0x44a610]
lea esi, [eax - 1]
test esi, esi
jl 0x41d84a
cmp dword [esi*4 + 0x44a618], edi
je 0x41d846
dec esi
jns 0x41d83a
test esi, esi
jge 0x41d85a
cmp eax, 0x10
jge 0x41d855
inc eax
mov dword [0x44a610], eax
lea esi, [eax - 1]
jmp 0x41d85c
je 0x41d874
xor ecx, ecx
test esi, esi
jl 0x41d874
lea eax, [ecx*4 + 0x44a618]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41d862
push 0
push 0x44a658
call ebx
jmp 0x41d69f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d88a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4471c0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x447778]
je 0x41d8bf
inc eax
cmp eax, 0x13
jb 0x41d8b0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x447778]
jne 0x41d9e5
mov eax, dword [0x44a438]
cmp eax, 1
je 0x41d9bd
cmp eax, edx
jne 0x41d8ef
cmp dword [0x4471a4], 1
je 0x41d9bd
cmp ecx, 0xfc
je 0x41d9e5
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x41d925
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041fe10
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00418890
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41d959
mov eax, edi
push eax
call fcn.00418890
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43c230
push edi
call fcn.00422110
add esp, 0x10
push edi
call fcn.00418890
push dword [esi + 0x44777c]
mov ebx, eax
call fcn.00418890
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00417e10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041fe10
push edi
push ebx
call fcn.0041fe20
push 0x43c210
push ebx
call fcn.0041fe20
push dword [esi + 0x44777c]
push ebx
call fcn.0041fe20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00422bc3
add esp, 0x2c
jmp 0x41d9e5
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44777c]
push dword [esi]
call fcn.00418890
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004184e0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x41ee82
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41eeb0
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
test eax, eax
je 0x41eeb5
cmp eax, 1
je 0x41eeb5
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41eeb9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4471c0]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x41ef31
push ebx
call fcn.0041ee82
test eax, eax
pop ecx
jne 0x41ef00
call fcn.00419fef
mov dword [eax], 0xf
call fcn.00419fe6
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004184e0
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
jmp 0x41ef43
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
test eax, eax
je 0x41eef3
inc eax
cmp eax, 0x104
ja 0x41eef3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41ef7b
cmp eax, dword [ebp + 0x10]
jg 0x41ef5e
mov eax, dword [ebp + 0x10]
push eax
call fcn.00417f81
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41ef90
call fcn.00419fe6
mov dword [eax], 0xc
jmp 0x41eef3
cmp eax, dword [ebp + 0x10]
jle 0x41ef90
call fcn.00419fe6
mov dword [eax], 0x22
jmp 0x41eef3
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0041fe10
pop ecx
pop ecx
jmp 0x41eef5