joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100080a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esp, 0x44fffffc
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10007833
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100077e8
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.10007833
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100077e8
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.10007833
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100077e8
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.10007823
wait
cmp esi, edi
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.10007833
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100077e8
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.10007823
mov ebx, esp
sbb ebp, esp
and byte [ebp - 0x664], 0
and byte [ebp - 0x663], 0
Function at 0x402840
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004041cc
test esi, esi
jne 0x402876
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004042bc
jmp 0x402894
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026f4
mov edi, eax
test esi, esi
je 0x402894
cmp dword [ebx], 0
je 0x402894
dec esi
jmp 0x40287d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d90
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x429008], 0x8088405
inc edx
mov dword [ebx + 0x429008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x42901c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40377c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40375c
xor eax, eax
push ebp
push 0x403755
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403798
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40375c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x42901c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x42901c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404050
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42b044], 0
je 0x4040b1
cmp word [0x42b218], 0xd7b2
jne 0x404079
cmp dword [0x42b220], 0
jbe 0x404079
mov eax, 0x42b214
call dword [0x42b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x429294
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4040d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x429028], 0
jne 0x4040cd
push 0
push 0x42928c
push 0x429294
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4056b4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4058e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405737
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4058e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405737
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405900
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4057c0
xor eax, eax
push ebp
push 0x4057b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004054fc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40579e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405920
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40579e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4057c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4058da
cmp byte [ebp - 0xd], 0
jne 0x405807
cmp byte [ebp - 0x12], 0
je 0x4058da
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405820
dec ebx
cmp byte [ebx], 0x2e
je 0x40582f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40581f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4058da
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40586c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4058da
cmp byte [ebp - 0xd], 0
je 0x4058da
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4058da
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405b02
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404420
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e0c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405aec
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b09
lea eax, [ebp - 0x10]
call fcn.004041cc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404670
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407441
test al, 0x10
jne 0x407445
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40968c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4096c5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042bc
jmp 0x4096ce
mov eax, ebx
mov edx, esi
call fcn.00404220
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4096d8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4096f9
mov al, byte [esp]
jmp 0x4096fb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409d80
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409bf8
mov eax, dword [0x42ae88]
cmp byte [eax], 0
je 0x409dfc
mov eax, dword [0x42adb4]
call fcn.00402ca8
call fcn.00402664
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407a0c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409e44
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409e32
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x42ad8c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42b660]
call fcn.004054c0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40aab8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ab1c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404420
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407270
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab23
lea eax, [ebp - 0xc]
call fcn.004041cc
ret

Function at 0x40bd9c
Capabilities:
Get file size

Disassembly:
add esp, 0xfffffff4
lea edx, [esp + 8]
push edx
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
mov eax, dword [esp + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, ecx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret

Function at 0x40c3ac
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
xor eax, eax
push ebp
push 0x40c4d6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xbff00000
cmp byte [0x429528], 0xff
jne 0x40c40e
mov byte [0x429528], 0
lea ecx, [ebp - 0x34]
mov edx, 0x40c4f0
mov eax, 0x40c50c
call fcn.0040e610
test eax, eax
je 0x40c405
mov byte [0x429528], 1
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_FreeLibrary_1
cmp byte [0x429528], 0
sete dl
lea eax, [ebp - 4]
call fcn.0040c2b0
mov ebx, eax
cmp byte [0x429528], 1
jne 0x40c47c
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov eax, dword [0x42adfc]
mov eax, dword [eax]
call eax
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x40c46f
lea eax, [ebp - 4]
mov dl, 1
call fcn.0040c2b0
mov ebx, eax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov eax, dword [0x42adfc]
mov eax, dword [eax]
call eax
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x40c4c0
fild qword [ebp - 0x20]
fstp qword [ebp - 0x10]
wait
jmp 0x40c4c0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x40c4c0
mov eax, dword [ebp - 0x24]
imul dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
fild qword [ebp - 0x3c]
fstp qword [ebp - 0x10]
wait
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
fild qword [ebp - 0x3c]
fmul qword [ebp - 0x10]
fstp qword [ebp - 0x10]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4dd
lea eax, [ebp - 4]
call fcn.004041cc
ret
Function at 0x40c9f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
xor eax, eax
push ebp
push 0x40cb0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x42952c], 0
mov eax, esi
call fcn.004041cc
mov edx, dword [ebp - 4]
mov eax, 0x40cb20
call fcn.004047b4
cmp eax, 2
jne 0x40ca89
lea eax, [ebp - 8]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004046d0
mov eax, dword [ebp - 8]
call fcn.00404670
push eax
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x40ca6d
cmp eax, dword [esp]
pop edx
pop eax
jne 0x40cae8
mov eax, dword [ebp - 4]
call fcn.00407428
test al, al
je 0x40cae8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404220
jmp 0x40cae8
mov bl, 0x42
inc ebx
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404398
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0x40cb20
call fcn.004044bc
mov eax, dword [ebp - 8]
call fcn.00404670
push eax
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x40cac4
cmp eax, dword [esp]
pop edx
pop eax
jne 0x40cad5
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0040c7f0
cmp bl, 0x5a
je 0x40cae8
cmp dword [esi], 0
jne 0x40cae8
cmp byte [0x42952c], 0
je 0x40ca8b
mov byte [0x42952c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb11
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041f0
ret
Function at 0x40cb24
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
lea eax, [ebp - 0x160]
mov edx, dword [0x4065d0]
call fcn.004049e4
xor eax, eax
push ebp
push 0x40cc8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004077d4
cmp dword [ebp - 8], 0
je 0x40cb86
lea eax, [ebp - 8]
mov edx, 0x40cca8
call fcn.00404478
lea ecx, [ebp - 0x160]
mov edx, 0x27
mov eax, ebx
call fcn.004075f0
test eax, eax
jne 0x40cc4a
xor eax, eax
push ebp
push 0x40cbe8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 1], 0
je 0x40cbde
push 0x80
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.004044bc
mov eax, dword [ebp - 0x164]
call fcn.00404670
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40cbf2
xor eax, eax
push ebp
push 0x40cc2d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.004044bc
mov eax, dword [ebp - 0x168]
call fcn.00407680
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40cc37
lea eax, [ebp - 0x160]
call fcn.00407640
test eax, eax
je 0x40cba0
lea eax, [ebp - 0x160]
call fcn.00407664
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc93
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.004041f0
lea eax, [ebp - 0x160]
mov edx, dword [0x4065d0]
call fcn.00404aa8
lea eax, [ebp - 8]
call fcn.004041cc
ret
Function at 0x40ceec
Capabilities:
Create process on windows
Self delete
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40cef4
push ebx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x40d0d7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
call fcn.004041cc
lea edx, [ebp - 0x20]
mov al, 1
call fcn.004105c8
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 8]
mov ecx, 0x40d0ec
call fcn.004044bc
lea eax, [ebp - 0x18]
mov edx, 0x40d104
call fcn.00404264
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404264
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004103f0
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00410450
cmp byte [ebp - 1], 0
je 0x40cfc8
push 0
push 0
xor ecx, ecx
mov edx, 0x40d110
mov eax, dword [ebp - 8]
call fcn.0040bfa4
lea eax, [ebp - 0x18]
call fcn.004041cc
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0040789c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.00404264
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.0040789c
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
call fcn.00404264
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.0040789c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00404264
mov eax, dword [ebp - 8]
call fcn.00407680
push dword [ebp - 0x1c]
push 0x40d120
push 0x40d130
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404530
push dword [ebp - 0x1c]
push 0x40d13c
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x40d130
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404530
push dword [ebp - 0x1c]
push 0x40d14c
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x40d160
push 0x40d130
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404530
test bl, bl
je 0x40d054
push dword [ebp - 0x1c]
push 0x40d174
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x40d130
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404530
push dword [ebp - 0x1c]
push 0x40d13c
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x40d130
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404530
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.004105c8
mov eax, dword [ebp - 0x30]
call fcn.00404670
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
cmp dword [ebp - 0x1c], 0
je 0x40d0a6
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0040bfa4
cmp dword [ebp - 0x1c], 0
je 0x40d0bc
push 0
mov eax, dword [ebp - 8]
call fcn.00404670
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0de
lea eax, [ebp - 0x30]
mov edx, 0xb
call fcn.004041f0
ret
Function at 0x40d178
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404660
xor eax, eax
push ebp
push 0x40d333
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x40d306
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004046d0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040705c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, 0x40d34c
call fcn.004044bc
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
add al, 0xbf
sub al, 0x1a
jae 0x40d2fc
mov eax, dword [ebp - 0x10]
call fcn.00404670
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x40d2fc
push 0x40d358
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
call fcn.00404398
push dword [ebp - 0x1c]
push 0x40d368
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404530
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0x10]
call fcn.00404670
mov esi, eax
push esi
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x42adb4]
mov edx, 0x40d374
call fcn.0040488c
mov edx, dword [ebp - 0x10]
call fcn.0040488c
mov dl, 0x20
call fcn.00402ff4
call fcn.00405014
call fcn.004030f4
cmp ebx, 0xffffffff
jne 0x40d2a1
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x42adb4]
mov edx, 0x40d388
call fcn.0040488c
mov edx, dword [ebp - 0x10]
call fcn.0040488c
mov dl, 0x20
call fcn.00402ff4
call fcn.00405014
call fcn.004030f4
cmp ebx, 0xffffffff
je 0x40d2fc
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
push 0x2d4808
push ebx
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40d310
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d33a
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004041f0
lea eax, [ebp - 4]
call fcn.004041cc
ret