joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402820
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.00404188
test esi, esi
jne 0x402856
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.00404278
jmp 0x402874
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026d4
mov edi, eax
test esi, esi
je 0x402874
cmp dword [ebx], 0
je 0x402874
dec esi
jmp 0x40285d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4036a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41f018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403738
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403718
xor eax, eax
push ebp
push 0x403711
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 0x403754
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 0x403718
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41f018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41f018], ax
mov esp, ebp
pop ebp
ret

Function at 0x40400c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x421044], 0
je 0x40406d
cmp word [0x421218], 0xd7b2
jne 0x404035
cmp dword [0x421220], 0
jbe 0x404035
mov eax, 0x421214
call dword [0x421230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41f290
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 0x404094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41f024], 0
jne 0x404089
push 0
push 0x41f288
push 0x41f290
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4055f0
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 0x405656
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.004043dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dc8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405640
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40565d
lea eax, [ebp - 0x10]
call fcn.00404188
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040462c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406ef1
test al, 0x10
jne 0x406ef5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409160
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 0x409199
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404278
jmp 0x4091a2
mov eax, ebx
mov edx, esi
call fcn.004041dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4091ac
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 0x4091cd
mov al, byte [esp]
jmp 0x4091cf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409854
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4096cc
mov eax, dword [0x420d64]
cmp byte [eax], 0
je 0x4098d0
mov eax, dword [0x420cb0]
call fcn.00402c64
call fcn.00402644
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.00407504
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 0x409918
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409906
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x420c90]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x421660]
call fcn.00405040
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 0x40a58c
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 0x40a5f0
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.00406d14
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a5f7
lea eax, [ebp - 0xc]
call fcn.00404188
ret

Function at 0x40b958
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
add ebx, eax
call fcn.0040b92c
call fcn.0040c1cc
test al, al
je 0x40b985
call sub.kernel32.dll_GetTickCount_1
mov edx, ebx
sub edx, eax
cmp edx, 0x32
jbe 0x40b985
push 0xa
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
cmp ebx, eax
jae 0x40b962
pop ebx
ret

Function at 0x40c2fc
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 0x40c370
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.0040c1f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c377
lea eax, [ebp - 0x104]
call fcn.00404188
ret

Function at 0x40c380
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 0x40c3f4
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.0040c1f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3fb
lea eax, [ebp - 0x104]
call fcn.00404188
ret

Function at 0x40c404
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 0x40c478
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.0040c1f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c47f
lea eax, [ebp - 0x104]
call fcn.00404188
ret
Function at 0x40ccb8
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 0x40cd8d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040cbcc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2001f
push 0
push 0x40cd9c
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 0x40cd6b
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 0x40cd48
call fcn.00403770
push eax
push ebx
push 1
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 0x40cd94
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
ret

Function at 0x40cda0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7e0
push 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 0x40ceca
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.0040cbcc
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 0x40ceaf
xor edx, edx
push ebp
push 0x40cea8
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x20], 0x800
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x820]
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 0x40ce91
cmp dword [ebp - 0x1c], 4
jne 0x40ce84
cmp dword [ebp - 0x20], 4
jne 0x40ce84
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x820]
mov ecx, 4
call fcn.00402694
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.00406cec
jmp 0x40ce91
mov edx, ebx
lea eax, [ebp - 0x820]
call fcn.00407634
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ceaf
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 0x40ced1
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
ret
Function at 0x40cf7c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40cf85
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 0x40d078
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov eax, ebx
call fcn.00404188
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x40d0a9
mov edx, ebx
lea eax, [esp + 4]
call fcn.00407634
add esp, 0x104
pop ebx
ret

Function at 0x40d278
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 0x40d2b1
push 0x3e8
lea eax, [esp + 4]
push eax
test ebx, ebx
jns 0x40d2a2
call fcn.00403770
push ebx
call sub.user32.dll_GetWindowTextA
mov edx, esi
mov eax, esp
call fcn.00407634
add esp, 0x400
pop esi
pop ebx
ret
Function at 0x4115f4
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 0x411787
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.00406c00
mov eax, dword [ebp - 4]
call fcn.0040442c
mov ebx, eax
test ebx, ebx
jle 0x41165f
mov esi, 1
lea eax, [ebp - 4]
call fcn.00404684
sub byte [eax + esi - 1], 0x32
inc esi
dec ebx
jne 0x41164e
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.0040ca30
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 0x411667
mov eax, dword [ebp - 0x10]
call fcn.0040442c
mov edi, eax
cmp edi, 4
jle 0x411764
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 0x4116ee
mov esi, 1
mov edx, edi
dec edx
cmp esi, edx
je 0x4116ea
mov edx, dword [ebp - 0x10]
add al, byte [edx + esi - 1]
inc esi
dec ebx
jne 0x4116dc
cmp al, byte [ebp - 0xa]
jne 0x411764
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 0x41172c
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 0x411712
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 0x41178e
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004041ac
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x411798
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.0040461c
xor eax, eax
push ebp
push 0x411861
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x4117cf
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00406d78
mov esi, eax
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00406e4c
lea edx, [ebp - 5]
mov ecx, 1
mov eax, esi
call fcn.00406df4
lea edx, [ebp - 6]
mov ecx, 1
mov eax, esi
call fcn.00406df4
cmp byte [ebp - 5], 0x4d
jne 0x41183e
cmp byte [ebp - 6], 0x5a
jne 0x41183e
xor ecx, ecx
mov edx, pe_nt_image_headers32
mov eax, esi
call fcn.00406e4c
lea edx, [ebp - 5]
mov ecx, 1
mov eax, esi
call fcn.00406df4
lea edx, [ebp - 6]
mov ecx, 1
mov eax, esi
call fcn.00406df4
cmp byte [ebp - 5], 0x50
jne 0x41183e
cmp byte [ebp - 6], 0x45
jne 0x41183e
mov bl, 1
cmp dword [ebp - 4], 0
je 0x41184b
mov eax, esi
call fcn.00406e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411868
lea eax, [ebp - 4]
call fcn.00404188
ret

Function at 0x411870
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x411990
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00406d78
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
xor eax, eax
call fcn.00411798
test al, al
je 0x4118f7
xor ecx, ecx
mov edx, 0xfc
mov eax, dword [ebp - 0xc]
call fcn.00406e4c
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.00406df4
cmp dword [ebp - 0x10], 0
jle 0x4118f7
mov ebx, dword [ebp - 0x10]
sub ebx, esi
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00406e4c
cmp dword [ebp - 0x10], 0
jle 0x411920
sub ebx, 0x200
xor ecx, ecx
mov edx, 0x200
mov eax, dword [ebp - 0xc]
call fcn.00406e4c
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
mov eax, dword [ebp - 0xc]
call fcn.00406df4
mov ecx, eax
mov edx, ecx
test edx, edx
jns 0x41193e
add edx, 3
sar edx, 2
test edx, edx
jle 0x41195e
lea eax, [ebp - 0x1010]
sub ebx, 4
cmp ebx, 4
jle 0x411958
mov esi, dword [eax]
add dword [ebp - 8], esi
add eax, 4
dec edx
jne 0x41194b
cmp ebx, 4
jle 0x41196a
add dword [ebp - 8], 0x4d2
cmp ecx, 0x1000
jge 0x411920
mov eax, dword [ebp - 0xc]
call fcn.00406e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411997
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x4119a0
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.0040461c
xor eax, eax
push ebp
push 0x411a24
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.0040468c
mov eax, dword [ebp - 0x18]
call fcn.0040462c
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x411a06
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 0x411a2b
lea eax, [ebp - 0x18]
call fcn.00404188
lea eax, [ebp - 4]
call fcn.00404188
ret

Function at 0x412174
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x41223f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404188
mov eax, dword [ebp - 4]
call fcn.00406ec8
test al, al
je 0x412229
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00406d78
mov esi, eax
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 8], eax
test ebx, ebx
jne 0x4121d3
mov ebx, dword [ebp - 8]
sub ebx, edi
jmp 0x4121e1
mov edx, dword [ebp - 8]
sub edx, edi
mov eax, ebx
call fcn.0040b360
mov ebx, eax
test edi, edi
jl 0x412222
cmp edi, dword [ebp - 8]
jge 0x412222
test ebx, ebx
jle 0x412222
xor ecx, ecx
mov edx, edi
mov eax, esi
call fcn.00406e4c
mov eax, dword [ebp + 8]
mov edx, ebx
call fcn.004047b8
mov eax, dword [ebp + 8]
call fcn.00404684
mov edx, eax
mov ecx, ebx
mov eax, esi
call fcn.00406df4
cmp ebx, eax
je 0x412222
mov eax, dword [ebp + 8]
call fcn.00404188
mov eax, esi
call fcn.00406e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412246
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x412480
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x412549
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xbff00000
xor ebx, ebx
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00406b28
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.00404220
cmp dword [ebp - 4], 0
je 0x4124e7
mov edx, 0x412558
lea eax, [ebp - 0x15]
call fcn.0040752c
mov eax, dword [ebp - 4]
mov al, byte [eax]
mov byte [ebp - 0x15], al
lea ebx, [ebp - 0x15]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x41252b
mov eax, dword [ebp - 0x1c]
imul dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
fild qword [ebp - 0x34]
fstp qword [ebp - 0x10]
wait
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
fild qword [ebp - 0x34]
fmul qword [ebp - 0x10]
fstp qword [ebp - 0x10]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412550
lea eax, [ebp - 0x2c]
call fcn.00404188
lea eax, [ebp - 4]
call fcn.00404188
ret

Function at 0x412aac
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 [0x4060bc]
call fcn.0040497c
xor eax, eax
push ebp
push 0x412c14
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00407284
cmp dword [ebp - 8], 0
je 0x412b0e
lea eax, [ebp - 8]
mov edx, 0x412c30
call fcn.00404434
lea ecx, [ebp - 0x160]
mov edx, 0x27
mov eax, ebx
call fcn.004070a0
test eax, eax
jne 0x412bd2
xor eax, eax
push ebp
push 0x412b70
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 1], 0
je 0x412b66
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 0x412b7a
xor eax, eax
push ebp
push 0x412bb5
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.00407130
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x412bbf
lea eax, [ebp - 0x160]
call fcn.004070f0
test eax, eax
je 0x412b28
lea eax, [ebp - 0x160]
call fcn.00407114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412c1b
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.004041ac
lea eax, [ebp - 0x160]
mov edx, dword [0x4060bc]
call fcn.00404a40
lea eax, [ebp - 8]
call fcn.00404188
ret