joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405340
Capabilities:
Get geographical location

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 0x405464
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405464
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405480
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405340
xor eax, eax
push ebp
push 0x405339
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040507c
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 0x40531e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4054a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40531e
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 0x405340
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 0x40545a
cmp byte [ebp - 0xd], 0
jne 0x405387
cmp byte [ebp - 0x12], 0
je 0x40545a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4053a0
dec ebx
cmp byte [ebx], 0x2e
je 0x4053af
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40539f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40545a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053ec
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 0x40545a
cmp byte [ebp - 0xd], 0
je 0x40545a
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 0x40545a
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 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 0x406ee0
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 0x406ef9
test al, 0x10
jne 0x406efd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

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

Function at 0x4098a8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409720
mov eax, dword [0x422da8]
cmp byte [eax], 0
je 0x409924
mov eax, dword [0x422cf4]
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.0040750c
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 0x40996c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40995a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x422cd4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x423660]
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 0x40a5e0
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 0x40a644
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.00406d1c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a64b
lea eax, [ebp - 0xc]
call fcn.00404188
ret

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

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

Function at 0x40da2c
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 0x40daa0
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.0040d818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40daa7
lea eax, [ebp - 0x104]
call fcn.00404188
ret
Function at 0x40e368
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 0x40e43f
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040e27c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2001f
push 0
push 0x40e450
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 0x40e41d
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 0x40e3f8
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 0x40e446
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
ret

Function at 0x40e454
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 0x40e57e
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.0040e27c
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 0x40e563
xor edx, edx
push ebp
push 0x40e55c
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 0x40e545
cmp dword [ebp - 0x1c], 4
jne 0x40e538
cmp dword [ebp - 0x20], 4
jne 0x40e538
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.00406cf4
jmp 0x40e545
mov edx, ebx
lea eax, [ebp - 0x820]
call fcn.0040763c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e563
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 0x40e585
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
ret
Function at 0x40e630
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40e639
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 0x40e72c
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 0x40e7a7
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 0x40e78e
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.0040763c
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00406b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e7ae
lea eax, [ebp - 0x108]
call fcn.00404188
ret

Function at 0x40e99c
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 0x40e9d5
push 0x3e8
lea eax, [esp + 4]
push eax
test ebx, ebx
jns 0x40e9c6
call fcn.00403770
push ebx
call sub.user32.dll_GetWindowTextA
mov edx, esi
mov eax, esp
call fcn.0040763c
add esp, 0x400
pop esi
pop ebx
ret
Function at 0x411eb8
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 0x41204b
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.00406c08
mov eax, dword [ebp - 4]
call fcn.0040442c
mov ebx, eax
test ebx, ebx
jle 0x411f23
mov esi, 1
lea eax, [ebp - 4]
call fcn.00404684
sub byte [eax + esi - 1], 0x32
inc esi
dec ebx
jne 0x411f12
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.0040e0e0
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 0x411f2b
mov eax, dword [ebp - 0x10]
call fcn.0040442c
mov edi, eax
cmp edi, 4
jle 0x412028
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 0x411fb2
mov esi, 1
mov edx, edi
dec edx
cmp esi, edx
je 0x411fae
mov edx, dword [ebp - 0x10]
add al, byte [edx + esi - 1]
inc esi
dec ebx
jne 0x411fa0
cmp al, byte [ebp - 0xa]
jne 0x412028
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 0x411ff0
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 0x411fd6
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 0x412052
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004041ac
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x41205c
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 0x412125
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x412093
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00406d80
mov esi, eax
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00406e54
lea edx, [ebp - 5]
mov ecx, 1
mov eax, esi
call fcn.00406dfc
lea edx, [ebp - 6]
mov ecx, 1
mov eax, esi
call fcn.00406dfc
cmp byte [ebp - 5], 0x4d
jne 0x412102
cmp byte [ebp - 6], 0x5a
jne 0x412102
xor ecx, ecx
mov edx, pe_nt_image_headers32
mov eax, esi
call fcn.00406e54
lea edx, [ebp - 5]
mov ecx, 1
mov eax, esi
call fcn.00406dfc
lea edx, [ebp - 6]
mov ecx, 1
mov eax, esi
call fcn.00406dfc
cmp byte [ebp - 5], 0x50
jne 0x412102
cmp byte [ebp - 6], 0x45
jne 0x412102
mov bl, 1
cmp dword [ebp - 4], 0
je 0x41210f
mov eax, esi
call fcn.00406e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41212c
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x412134
Capabilities:
Check for time delay via gettickcount
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffec
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 0x4122b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x422cf4]
mov edx, 0x4122d0
call fcn.00404848
call fcn.004030b0
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00406d80
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.0041205c
test al, al
je 0x4121d7
xor ecx, ecx
mov edx, 0xfc
mov eax, dword [ebp - 0xc]
call fcn.00406e54
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.00406dfc
cmp dword [ebp - 0x10], 0
jle 0x4121d7
mov ebx, dword [ebp - 0x10]
sub ebx, esi
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00406e54
cmp dword [ebp - 0x10], 0
jle 0x412200
sub ebx, 0x200
xor ecx, ecx
mov edx, 0x200
mov eax, dword [ebp - 0xc]
call fcn.00406e54
lea edx, [ebp - 0x1014]
mov ecx, 0x1000
mov eax, dword [ebp - 0xc]
call fcn.00406dfc
mov ecx, eax
mov edx, ecx
test edx, edx
jns 0x41221e
add edx, 3
sar edx, 2
test edx, edx
jle 0x41223e
lea eax, [ebp - 0x1014]
sub ebx, 4
cmp ebx, 4
jle 0x412238
mov esi, dword [eax]
add dword [ebp - 8], esi
add eax, 4
dec edx
jne 0x41222b
cmp ebx, 4
jle 0x41224a
add dword [ebp - 8], 0x4d2
cmp ecx, 0x1000
jge 0x412200
mov eax, dword [ebp - 0xc]
call fcn.00406e60
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [0x422cf4]
mov edx, 0x4122e8
call fcn.00404848
call fcn.00404d84
mov edx, 0x412304
call fcn.00404848
call fcn.00404d84
call fcn.004030b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4122be
lea eax, [ebp - 4]
call fcn.00404188
ret

Function at 0x412310
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 0x412394
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 0x412376
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 0x41239b
lea eax, [ebp - 0x18]
call fcn.00404188
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x412dd0
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 0x412e9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404188
mov eax, dword [ebp - 4]
call fcn.00406ed0
test al, al
je 0x412e85
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00406d80
mov esi, eax
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 8], eax
test ebx, ebx
jne 0x412e2f
mov ebx, dword [ebp - 8]
sub ebx, edi
jmp 0x412e3d
mov edx, dword [ebp - 8]
sub edx, edi
mov eax, ebx
call fcn.0040c754
mov ebx, eax
test edi, edi
jl 0x412e7e
cmp edi, dword [ebp - 8]
jge 0x412e7e
test ebx, ebx
jle 0x412e7e
xor ecx, ecx
mov edx, edi
mov eax, esi
call fcn.00406e54
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.00406dfc
cmp ebx, eax
je 0x412e7e
mov eax, dword [ebp + 8]
call fcn.00404188
mov eax, esi
call fcn.00406e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412ea2
lea eax, [ebp - 4]
call fcn.00404188
ret

Function at 0x413190
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 0x413259
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.00406b30
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.00404220
cmp dword [ebp - 4], 0
je 0x4131f7
mov edx, 0x413268
lea eax, [ebp - 0x15]
call fcn.00407534
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 0x41323b
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 0x413260
lea eax, [ebp - 0x2c]
call fcn.00404188
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x4137bc
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 [0x4060c4]
call fcn.0040497c
xor eax, eax
push ebp
push 0x413924
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0040728c
cmp dword [ebp - 8], 0
je 0x41381e
lea eax, [ebp - 8]
mov edx, 0x413940
call fcn.00404434
lea ecx, [ebp - 0x160]
mov edx, 0x27
mov eax, ebx
call fcn.004070a8
test eax, eax
jne 0x4138e2
xor eax, eax
push ebp
push 0x413880
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 1], 0
je 0x413876
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 0x41388a
xor eax, eax
push ebp
push 0x4138c5
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.00407138
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4138cf
lea eax, [ebp - 0x160]
call fcn.004070f8
test eax, eax
je 0x413838
lea eax, [ebp - 0x160]
call fcn.0040711c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41392b
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.004041ac
lea eax, [ebp - 0x160]
mov edx, dword [0x4060c4]
call fcn.00404a40
lea eax, [ebp - 8]
call fcn.00404188
ret