joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e194
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
xor eax, eax
push ebp
push 0x40e236
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call fcn.004102d8
test al, al
je 0x40e1d7
mov cl, byte [ebp - 5]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040d9e0
mov esi, eax
jmp 0x40e1e6
mov cl, byte [ebp - 5]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040d6f4
mov esi, eax
test esi, esi
je 0x40e220
mov dl, 1
mov eax, dword [0x40df88]
call fcn.00403808
mov ebx, eax
mov eax, ebx
call fcn.0040dfe0
mov dword [ebx + 0x2ef0], esi
push ebx
push 0x40e158
call sub.user32.dll_EnumWindows
mov eax, ebx
call fcn.0040e11c
mov edi, eax
mov eax, ebx
call fcn.00403838
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e23d
lea eax, [ebp - 4]
call fcn.004041cc
ret

Function at 0x40e374
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
xor eax, eax
push ebp
push 0x40e3f9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.004102d8
test al, al
je 0x40e3b2
xor ecx, ecx
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.0040d9e0
jmp 0x40e3bf
xor ecx, ecx
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.0040d6f4
test eax, eax
je 0x40e3e3
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
push 0
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e400
lea eax, [ebp - 4]
call fcn.004041cc
ret

Function at 0x40e590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
mov eax, dword [ebp - 8]
call fcn.00404660
xor eax, eax
push ebp
push 0x40e602
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.00404670
push eax
mov eax, dword [ebp - 4]
call fcn.00404670
push eax
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e609
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041f0
ret
Function at 0x4101c8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
xor eax, eax
push ebp
push 0x4102b2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4101fd
lea edx, [ebp - 4]
xor eax, eax
call fcn.004103f0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00404670
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
mov eax, esi
call fcn.00402570
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4102c0
push ebx
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push eax
mov eax, edi
shr eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
and edi, 0xffff
mov dword [ebp - 0x30], edi
mov byte [ebp - 0x2c], 0
mov eax, dword [ebp - 0x18]
shr eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
and eax, 0xffff
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x4102cc
call fcn.00407f68
mov edx, esi
mov eax, ebx
call fcn.00402590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4102b9
lea eax, [ebp - 4]
call fcn.004041cc
ret

Function at 0x4104c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x410534
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404420
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.0041034c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41053b
lea eax, [ebp - 0x10c]
call fcn.004041cc
ret

Function at 0x410544
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4105b8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404420
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.0041034c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4105bf
lea eax, [ebp - 0x10c]
call fcn.004041cc
ret
Function at 0x4105c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41063c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404420
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.0041034c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410643
lea eax, [ebp - 0x10c]
call fcn.004041cc
ret

Function at 0x4112f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x411301
mov eax, dword [ebp - 4]
add esp, 0xfffff7dc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2828], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404660
mov eax, dword [ebp - 8]
call fcn.00404660
mov eax, dword [ebp - 0xc]
call fcn.00404660
xor eax, eax
push ebp
push 0x4114c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00404220
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004111f4
mov ebx, 0x20019
cmp byte [ebp + 0xc], 0
je 0x411379
or ebx, 0x100
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00404670
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4114a0
xor edx, edx
push ebp
push 0x411499
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x20], 0x2801
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2821]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404670
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x411482
cmp dword [ebp - 0x1c], 4
jne 0x411409
cmp dword [ebp - 0x20], 4
jne 0x411409
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2821]
mov ecx, 4
call fcn.004026b4
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, esi
call fcn.00407220
jmp 0x411482
cmp dword [ebp - 0x1c], 7
jne 0x411475
cmp dword [ebp - 0x20], 2
jle 0x411475
jmp 0x41141a
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0
jle 0x41143a
mov eax, dword [ebp - 0x20]
dec eax
cmp eax, 0x2800
jbe 0x411430
call fcn.004037b4
cmp byte [ebp + eax - 0x2821], 0
je 0x411417
lea edx, [ebp - 0x2821]
mov eax, esi
mov ecx, dword [ebp - 0x20]
call fcn.004042bc
push 0
push 0
lea eax, [ebp - 0x2828]
push eax
mov eax, dword [esi]
mov ecx, 0x4114e0
mov edx, 0x4114ec
call fcn.00410090
mov edx, dword [ebp - 0x2828]
mov eax, esi
call fcn.00404220
jmp 0x411482
mov edx, esi
lea eax, [ebp - 0x2821]
call fcn.00407b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4114a0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4114cd
lea eax, [ebp - 0x2828]
call fcn.004041cc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041f0
ret
Function at 0x411594
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x41159d
mov eax, dword [ebp - 4]
add esp, 0xfffff7f0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2810], ebx
mov dword [ebp - 0x2814], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4116b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, esi
call fcn.00404220
test ebx, ebx
je 0x411694
xor edx, edx
push ebp
push 0x411654
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00404670
push eax
push 0x2801
lea eax, [ebp - 0x2809]
push eax
mov eax, esi
call fcn.00404670
push eax
mov eax, dword [ebp - 8]
call fcn.00404670
push eax
mov eax, ebx
call fcn.00404670
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
jns 0x411638
call fcn.004037b4
test eax, eax
jle 0x41164a
lea edx, [ebp - 0x2809]
mov ecx, edi
xchg ecx, eax
call fcn.004042bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x411694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4116b9
lea eax, [ebp - 0x2814]
mov edx, 2
call fcn.004041f0
ret

Function at 0x411780
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4117fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004041cc
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4117e2
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00407b14
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00407098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411802
lea eax, [ebp - 0x108]
call fcn.004041cc
ret

Function at 0x411808
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x411883
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004041cc
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x41186a
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00407b14
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00407098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41188a
lea eax, [ebp - 0x108]
call fcn.004041cc
ret
Function at 0x411a88
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x411b84
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00404670
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404670
mov edi, eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
mov edx, dword [ebp - 8]
inc edx
mov eax, ebx
call fcn.004047fc
mov eax, dword [ebp - 4]
call fcn.0040703c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x411b67
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00404670
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
je 0x411b4a
mov eax, dword [ebx]
call fcn.00404670
lea edx, [ebp - 0x14]
call fcn.00407b14
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00404220
jmp 0x411b51
mov eax, ebx
call fcn.004041cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411b6e
mov eax, dword [ebp - 0xc]
call fcn.00402590
ret

Function at 0x411be0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffc00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.004041cc
test ebx, ebx
je 0x411c19
push 0x400
lea eax, [esp + 4]
push eax
test ebx, ebx
jns 0x411c0a
call fcn.004037b4
push ebx
call sub.user32.dll_GetWindowTextA
mov edx, esi
mov eax, esp
call fcn.00407b14
add esp, 0x400
pop esi
pop ebx
ret
Function at 0x4144d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4145c8
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
push eax
push 0
mov esi, dword [ebx + 4]
mov eax, esi
call fcn.00405254
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0041447c
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x10]
wait
push edi
push 1
mov esi, dword [ebx + 8]
mov eax, esi
call fcn.00405254
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0041447c
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x18]
wait
mov eax, dword [ebx + 4]
cmp dword [eax], 0
je 0x4145af
fld qword [ebp - 0x10]
fcomp dword [0x4145d8]
fnstsw ax
sahf
je 0x4145af
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x14]
cmp eax, 0x1f4
jbe 0x4145af
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x14], eax
fld qword [ebp - 0x10]
fdiv dword [0x4145dc]
fdivr qword [ebp - 0x18]
fdiv dword [0x4145e0]
fstp qword [ebp - 0x20]
wait
fld qword [ebp - 0x20]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea ecx, [ebp - 0x124]
mov edx, 2
xor eax, eax
call fcn.00403204
lea edx, [ebp - 0x124]
lea eax, [ebx + 0x10]
call fcn.00404414
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x10]
call fcn.00404220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4145cf
ret
Function at 0x41982c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
xor eax, eax
push ebp
push 0x4199bf
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004028e4
mov eax, 0x1869f
call fcn.00402d90
mov edx, dword [ebp - 8]
call fcn.00407134
mov eax, dword [ebp - 4]
call fcn.00404470
mov ebx, eax
test ebx, ebx
jle 0x419897
mov esi, 1
lea eax, [ebp - 4]
call fcn.004046c8
sub byte [eax + esi - 1], 0x32
inc esi
dec ebx
jne 0x419886
lea eax, [ebp - 0x10]
call fcn.004041cc
lea eax, [ebp - 0x18]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004046d0
mov eax, dword [ebp - 0x18]
call fcn.00410f38
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00404398
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00404478
lea eax, [ebp - 4]
mov ecx, 2
mov edx, 1
call fcn.00404710
cmp dword [ebp - 4], 0
jne 0x41989f
mov eax, dword [ebp - 0x10]
call fcn.00404470
mov edi, eax
cmp edi, 4
jle 0x41999c
mov eax, dword [ebp - 0x10]
mov al, byte [eax + edi - 2]
mov byte [ebp - 0xa], al
xor eax, eax
mov ebx, edi
test ebx, ebx
jle 0x419926
mov esi, 1
mov edx, edi
dec edx
cmp esi, edx
je 0x419922
mov edx, dword [ebp - 0x10]
add al, byte [edx + esi - 1]
inc esi
dec ebx
jne 0x419914
cmp al, byte [ebp - 0xa]
jne 0x41999c
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + edi - 1]
xor al, dl
mov byte [ebp - 9], al
mov ebx, edi
dec ebx
sub ebx, 2
jl 0x419964
inc ebx
mov esi, 2
lea eax, [ebp - 0x10]
call fcn.004046c8
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + esi - 1]
xor dl, byte [ebp - 9]
mov byte [eax + esi - 1], dl
inc esi
dec ebx
jne 0x41994a
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 1]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + 2]
mov esi, eax
and esi, 0xff
add esi, 3
inc esi
and eax, 0xff
sub edi, eax
xor eax, eax
mov al, dl
sub edi, eax
sub edi, 4
mov eax, dword [ebp - 8]
push eax
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.004046d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4199c6
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004041f0
lea eax, [ebp - 4]
call fcn.004041cc
ret
Function at 0x4199d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
xor eax, eax
push ebp
push 0x419a9d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x419a07
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004072d4
mov esi, eax
push 0
push 0
xor edx, edx
mov eax, esi
call fcn.0040bca0
lea edx, [ebp - 5]
mov ecx, 1
mov eax, esi
call fcn.00407350
lea edx, [ebp - 6]
mov ecx, 1
mov eax, esi
call fcn.00407350
cmp byte [ebp - 5], 0x4d
jne 0x419a7a
cmp byte [ebp - 6], 0x5a
jne 0x419a7a
push 0
push pe_nt_image_headers32
xor edx, edx
mov eax, esi
call fcn.0040bca0
lea edx, [ebp - 5]
mov ecx, 1
mov eax, esi
call fcn.00407350
lea edx, [ebp - 6]
mov ecx, 1
mov eax, esi
call fcn.00407350
cmp byte [ebp - 5], 0x50
jne 0x419a7a
cmp byte [ebp - 6], 0x45
jne 0x419a7a
mov bl, 1
cmp dword [ebp - 4], 0
je 0x419a87
mov eax, esi
call fcn.004073a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419aa4
lea eax, [ebp - 4]
call fcn.004041cc
ret

Function at 0x419c50
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
xor eax, eax
push ebp
push 0x419cd4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004046d0
mov eax, dword [ebp - 0x18]
call fcn.00404670
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x419cb6
mov ebx, dword [ebp - 8]
imul ebx, dword [ebp - 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419cdb
lea eax, [ebp - 0x18]
call fcn.004041cc
lea eax, [ebp - 4]
call fcn.004041cc
ret

Function at 0x41ea6c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov esi, ecx
mov edi, edx
mov dword [esp], eax
xor ebp, ebp
test esi, esi
jbe 0x41eaf7
mov ebx, 1
mov eax, esi
xor edx, edx
push edx
push eax
push 0
push 0x10000
call fcn.0040e75c
mov dword [esp + 4], eax
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, edi
call fcn.004046c8
lea eax, [eax + ebx - 1]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x41eac4
or ebp, 0xffffffff
add ebx, dword [esp + 8]
sub esi, dword [esp + 8]
xor eax, eax
call fcn.0040f1f4
cmp ebp, 0xffffffff
je 0x41eae3
mov eax, dword [edi]
call fcn.00404470
cmp ebx, eax
jle 0x41ea85
mov eax, dword [edi]
call fcn.00404470
cmp ebx, eax
jle 0x41eaf7
mov eax, dword [edi]
call fcn.00404470
mov ebp, eax
mov eax, ebp
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41f930
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x41fb13
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x42ace0], 0
jne 0x41fae1
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x38
call fcn.00402d70
mov bl, 0x43
lea esi, [ebp - 0x50]
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404398
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
mov ecx, 0x41fb2c
call fcn.004044bc
mov eax, dword [ebp - 0x18]
call fcn.00404670
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x41fa4a
lea eax, [ebp - 0x10]
mov ecx, 0x41fb38
mov edx, dword [ebp - 0x18]
call fcn.004044bc
mov eax, dword [ebp - 0x10]
call fcn.00407428
test al, al
je 0x41f9fc
push dword [ebp - 0x10]
push 0x41fb48
push 0
push 0x2710
push 0
push 0x186a0
lea eax, [ebp - 0x58]
call fcn.0040ead0
push dword [ebp - 0x58]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404530
mov eax, dword [ebp - 0x10]
call fcn.0040744c
lea eax, [ebp - 0x14]
mov ecx, 0x41fb58
mov edx, dword [ebp - 0x10]
call fcn.004044bc
push 0
push 0
xor ecx, ecx
mov edx, 0x41fb6c
mov eax, dword [ebp - 0x14]
call fcn.0040bfa4
mov eax, dword [ebp - 0x14]
call fcn.00407418
test al, al
je 0x41fa3e
mov eax, dword [ebp - 0x10]
call fcn.0040c3ac
fstp qword [esi]
wait
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0040ccac
inc ebx
add esi, 8
cmp bl, 0x46
jne 0x41f981
lea edx, [ebp - 0x60]
mov al, 1
call fcn.004105c8
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.0040705c
mov eax, dword [ebp - 0x5c]
mov dl, byte [eax]
mov byte [ebp - 9], dl
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov bl, 0x43
lea ecx, [ebp - 0x50]
fld qword [ecx]
fcomp qword [ebp - 8]
fnstsw ax
sahf
jbe 0x41fa99
mov eax, dword [ecx]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov byte [ebp - 9], bl
inc ebx
add ecx, 8
cmp bl, 0x46
jne 0x41fa81
cmp dl, byte [ebp - 9]
je 0x41fae1
lea eax, [ebp - 0x64]
mov dl, byte [ebp - 9]
call fcn.00404398
mov edx, dword [ebp - 0x64]
mov eax, 0x42ace0
mov ecx, 0x41fb78
call fcn.004044bc
mov eax, dword [0x42ace0]
call fcn.00407428
test al, al
je 0x41fae1
mov eax, 0x42ace0
mov edx, 0x41fb48
call fcn.00404478
cmp dword [0x42ace0], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fb1a
lea eax, [ebp - 0x64]
mov edx, 5
call fcn.004041f0
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004041f0
ret
Function at 0x42245c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
xor eax, eax
push ebp
push 0x4224e9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d70
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], si
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404670
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4224d3
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4224f0
lea eax, [ebp - 4]
call fcn.004041cc
ret