joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5a4
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 0x40a608
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.004043dc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406d5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a60f
lea eax, [ebp - 0xc]
call fcn.00404188
ret

Function at 0x40b3f8
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.0040461c
mov eax, dword [ebp - 8]
call fcn.0040461c
xor eax, eax
push ebp
push 0x40b46a
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
mov eax, dword [ebp - 4]
call fcn.0040462c
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 0x40b471
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041ac
ret

Function at 0x40d0bc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d130
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
mov eax, dword [ebp - 0x104]
mov ecx, esi
mov edx, ebx
call fcn.0040cf9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d137
lea eax, [ebp - 0x104]
call fcn.00404188
ret

Function at 0x40d140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d1b4
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
mov eax, dword [ebp - 0x104]
mov ecx, esi
mov edx, ebx
call fcn.0040cf9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1bb
lea eax, [ebp - 0x104]
call fcn.00404188
ret
Function at 0x40d1c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d238
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
mov eax, dword [ebp - 0x104]
mov ecx, esi
mov edx, ebx
call fcn.0040cf9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d23f
lea eax, [ebp - 0x104]
call fcn.00404188
ret

Function at 0x40dd90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
mov eax, dword [ebp - 8]
call fcn.0040461c
mov eax, dword [ebp - 0xc]
call fcn.0040461c
xor eax, eax
push ebp
push 0x40de67
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040dc94
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2001f
push 0
push 0x40de78
push 0
mov eax, dword [ebp - 4]
call fcn.0040462c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x40de45
mov eax, dword [ebp - 0xc]
call fcn.0040462c
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.0040442c
inc eax
test eax, eax
jns 0x40de20
call fcn.00403770
push eax
push ebx
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de6e
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
ret
Function at 0x40de7c
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 0x40de85
mov eax, dword [ebp - 4]
add esp, 0xfffff7dc
push ebx
xor ebx, ebx
mov dword [ebp - 0x2828], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040461c
mov eax, dword [ebp - 8]
call fcn.0040461c
mov eax, dword [ebp - 0xc]
call fcn.0040461c
xor eax, eax
push ebp
push 0x40e038
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.004041dc
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040dc94
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040462c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40e012
xor edx, edx
push ebp
push 0x40e00b
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.0040462c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40dff4
cmp dword [ebp - 0x1c], 4
jne 0x40df7f
cmp dword [ebp - 0x20], 4
jne 0x40df7f
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2821]
mov ecx, 4
call fcn.00402694
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.00406d34
jmp 0x40dff4
cmp dword [ebp - 0x1c], 7
jne 0x40dfe7
cmp dword [ebp - 0x20], 2
jle 0x40dfe7
jmp 0x40df90
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0
jle 0x40dfb0
mov eax, dword [ebp - 0x20]
dec eax
cmp eax, 0x2800
jbe 0x40dfa6
call fcn.00403770
cmp byte [ebp + eax - 0x2821], 0
je 0x40df8d
lea edx, [ebp - 0x2821]
mov eax, ebx
mov ecx, dword [ebp - 0x20]
call fcn.00404278
lea eax, [ebp - 0x2828]
push eax
mov eax, dword [ebx]
mov ecx, 0x40e050
mov edx, 0x40e05c
call fcn.0040cd30
mov edx, dword [ebp - 0x2828]
mov eax, ebx
call fcn.004041dc
jmp 0x40dff4
mov edx, ebx
lea eax, [ebp - 0x2821]
call fcn.00407600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e012
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 0x40e03f
lea eax, [ebp - 0x2828]
call fcn.00404188
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
ret

Function at 0x40e104
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40e10d
mov eax, dword [ebp - 4]
add esp, 0xfffff800
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.0040462c
push eax
push 0x2801
lea eax, [ebp - 0x2801]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040462c
push eax
mov eax, edi
call fcn.0040462c
push eax
mov eax, esi
call fcn.0040462c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x2801]
mov eax, dword [ebp + 8]
call fcn.00404278
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40e384
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 0x40e3ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404188
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 0x40e3e6
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00407600
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00406bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e406
lea eax, [ebp - 0x108]
call fcn.00404188
ret

Function at 0x40e40c
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 0x40e487
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404188
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 0x40e46e
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00407600
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00406bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e48e
lea eax, [ebp - 0x108]
call fcn.00404188
ret

Function at 0x40e67c
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 0x40e778
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.0040462c
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040462c
mov edi, eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
mov edx, dword [ebp - 8]
inc edx
mov eax, ebx
call fcn.004047b8
mov eax, dword [ebp - 4]
call fcn.00406b50
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40e75b
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.0040462c
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 0x40e73e
mov eax, dword [ebx]
call fcn.0040462c
lea edx, [ebp - 0x14]
call fcn.00407600
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004041dc
jmp 0x40e745
mov eax, ebx
call fcn.00404188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e762
mov eax, dword [ebp - 0xc]
call fcn.00402570
ret
Function at 0x40e7d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffc00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00404188
test ebx, ebx
je 0x40e80d
push 0x400
lea eax, [esp + 4]
push eax
test ebx, ebx
jns 0x40e7fe
call fcn.00403770
push ebx
call sub.user32.dll_GetWindowTextA
mov edx, esi
mov eax, esp
call fcn.00407600
add esp, 0x400
pop esi
pop ebx
ret

Function at 0x413068
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 0x4135fc
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x4136ea
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xbff00000
cmp byte [0x427bc0], 0xff
jne 0x413652
mov byte [0x427bc0], 0
mov edx, 0x413704
mov eax, 0x413720
call fcn.0040b478
test eax, eax
je 0x413652
mov byte [0x427bc0], 1
cmp byte [0x427bc0], 0
sete dl
lea eax, [ebp - 4]
call fcn.0041356c
mov ebx, eax
cmp byte [0x427bc0], 1
jne 0x413690
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov eax, dword [0x427df0]
mov eax, dword [eax]
call eax
test eax, eax
je 0x4136d4
fild qword [ebp - 0x20]
fstp qword [ebp - 0x10]
wait
jmp 0x4136d4
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 0x4136d4
mov eax, dword [ebp - 0x24]
imul dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x38]
fstp qword [ebp - 0x10]
wait
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x38]
fmul qword [ebp - 0x10]
fstp qword [ebp - 0x10]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4136f1
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x413bc4
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.0040461c
xor eax, eax
push ebp
push 0x413cca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404188
mov edx, dword [ebp - 4]
mov eax, 0x413ce0
call fcn.00404770
cmp eax, 2
jne 0x413c54
lea eax, [ebp - 8]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040468c
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x413c3a
cmp eax, dword [esp]
pop edx
pop eax
jne 0x413c54
mov eax, dword [ebp - 4]
call fcn.00406f14
test al, al
je 0x413c54
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004041dc
cmp dword [esi], 0
jne 0x413caf
mov bl, 0x42
inc ebx
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404354
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0x413ce0
call fcn.00404478
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x413c94
cmp eax, dword [esp]
pop edx
pop eax
jne 0x413ca5
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004139d8
cmp bl, 0x5a
je 0x413caf
cmp dword [esi], 0
je 0x413c5b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413cd1
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
ret
Function at 0x413ce4
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 [0x4060e4]
call fcn.0040497c
xor eax, eax
push ebp
push 0x413e4c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004072c0
cmp dword [ebp - 8], 0
je 0x413d46
lea eax, [ebp - 8]
mov edx, 0x413e68
call fcn.00404434
lea ecx, [ebp - 0x160]
mov edx, 0x27
mov eax, ebx
call fcn.004070dc
test eax, eax
jne 0x413e0a
xor eax, eax
push ebp
push 0x413da8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 1], 0
je 0x413d9e
push 0x80
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00404478
mov eax, dword [ebp - 0x164]
call fcn.0040462c
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413db2
xor eax, eax
push ebp
push 0x413ded
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.00404478
mov eax, dword [ebp - 0x168]
call fcn.0040716c
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413df7
lea eax, [ebp - 0x160]
call fcn.0040712c
test eax, eax
je 0x413d60
lea eax, [ebp - 0x160]
call fcn.00407150
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413e53
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.004041ac
lea eax, [ebp - 0x160]
mov edx, dword [0x4060e4]
call fcn.00404a40
lea eax, [ebp - 8]
call fcn.00404188
ret
Function at 0x414084
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 0x41408c
push ebx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x41426d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
call fcn.00404188
lea edx, [ebp - 0x20]
mov al, 1
call fcn.0040d1c4
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 8]
mov ecx, 0x414284
call fcn.00404478
lea eax, [ebp - 0x18]
mov edx, 0x41429c
call fcn.00404220
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404220
lea eax, [ebp - 0x10]
call fcn.0040d040
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0040d050
cmp byte [ebp - 1], 0
je 0x41415e
push 0
push 0
xor ecx, ecx
mov edx, 0x4142a8
mov eax, dword [ebp - 8]
call fcn.00413270
lea eax, [ebp - 0x18]
call fcn.00404188
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00407388
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.00404220
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.00407388
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
call fcn.00404220
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.00407388
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00404220
mov eax, dword [ebp - 8]
call fcn.0040716c
push dword [ebp - 0x1c]
push 0x4142b8
push 0x4142c8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004044ec
push dword [ebp - 0x1c]
push 0x4142d4
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x4142c8
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004044ec
push dword [ebp - 0x1c]
push 0x4142e4
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x4142f8
push 0x4142c8
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004044ec
test bl, bl
je 0x4141ea
push dword [ebp - 0x1c]
push 0x41430c
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x4142c8
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004044ec
push dword [ebp - 0x1c]
push 0x4142d4
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x4142c8
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004044ec
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.0040d1c4
mov eax, dword [ebp - 0x30]
call fcn.0040462c
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
cmp dword [ebp - 0x1c], 0
je 0x41423c
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00413270
cmp dword [ebp - 0x1c], 0
je 0x414252
push 0
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414274
lea eax, [ebp - 0x30]
mov edx, 0xb
call fcn.004041ac
ret
Function at 0x414310
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.0040461c
xor eax, eax
push ebp
push 0x4144cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x41449e
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.0040468c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00406b70
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, 0x4144e4
call fcn.00404478
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
add al, 0xbf
sub al, 0x1a
jae 0x414494
mov eax, dword [ebp - 0x10]
call fcn.0040462c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x414494
push 0x4144f0
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
call fcn.00404354
push dword [ebp - 0x1c]
push 0x414500
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004044ec
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0x10]
call fcn.0040462c
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 [0x427da8]
mov edx, 0x41450c
call fcn.00404848
mov edx, dword [ebp - 0x10]
call fcn.00404848
mov dl, 0x20
call fcn.00402fb0
call fcn.00404d84
call fcn.004030b0
cmp ebx, 0xffffffff
jne 0x414439
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 [0x427da8]
mov edx, 0x414520
call fcn.00404848
mov edx, dword [ebp - 0x10]
call fcn.00404848
mov dl, 0x20
call fcn.00402fb0
call fcn.00404d84
call fcn.004030b0
cmp ebx, 0xffffffff
je 0x414494
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 0x4144a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4144d2
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004041ac
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x41507c
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.0040461c
xor eax, eax
push ebp
push 0x41520f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004028c4
mov eax, 0x1869f
call fcn.00402d4c
mov edx, dword [ebp - 8]
call fcn.00406c48
mov eax, dword [ebp - 4]
call fcn.0040442c
mov ebx, eax
test ebx, ebx
jle 0x4150e7
mov esi, 1
lea eax, [ebp - 4]
call fcn.00404684
sub byte [eax + esi - 1], 0x32
inc esi
dec ebx
jne 0x4150d6
lea eax, [ebp - 0x10]
call fcn.00404188
lea eax, [ebp - 0x18]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040468c
mov eax, dword [ebp - 0x18]
call fcn.0040d9d8
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00404354
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00404434
lea eax, [ebp - 4]
mov ecx, 2
mov edx, 1
call fcn.004046cc
cmp dword [ebp - 4], 0
jne 0x4150ef
mov eax, dword [ebp - 0x10]
call fcn.0040442c
mov edi, eax
cmp edi, 4
jle 0x4151ec
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 0x415176
mov esi, 1
mov edx, edi
dec edx
cmp esi, edx
je 0x415172
mov edx, dword [ebp - 0x10]
add al, byte [edx + esi - 1]
inc esi
dec ebx
jne 0x415164
cmp al, byte [ebp - 0xa]
jne 0x4151ec
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 0x4151b4
inc ebx
mov esi, 2
lea eax, [ebp - 0x10]
call fcn.00404684
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 0x41519a
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.0040468c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415216
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004041ac
lea eax, [ebp - 4]
call fcn.00404188
ret