joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029a4
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.0040469c
test esi, esi
jne 0x4029da
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.0040478c
jmp 0x4029f8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402858
mov edi, eax
test esi, esi
je 0x4029f8
cmp dword [ebx], 0
je 0x4029f8
dec esi
jmp 0x4029e1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4038e4
Capabilities:
Query or enumerate registry value

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

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x438044], 0
je 0x404581
cmp word [0x438218], 0xd7b2
jne 0x404549
cmp dword [0x438220], 0
jbe 0x404549
mov eax, 0x438214
call dword [0x438230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43529c
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 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x435030], 0
jne 0x40459d
push 0
push 0x435294
push 0x43529c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40668c
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 0x4066f2
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.0040490c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ffc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066dc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066f9
lea eax, [ebp - 0x10]
call fcn.0040469c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b5c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4086b5
test al, 0x10
jne 0x4086b9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b5b8
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 0x40b5f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040478c
jmp 0x40b5fa
mov eax, ebx
mov edx, esi
call fcn.004046f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bdf8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc70
mov eax, dword [0x437078]
cmp byte [eax], 0
je 0x40be74
mov eax, dword [0x436f6c]
call fcn.00402e28
call fcn.00402784
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.00408c80
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 0x40bebc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40beaa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x436f3c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x438660]
call fcn.00405bdc
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 0x40cc08
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 0x40cc6c
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.0040490c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004082e8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc73
lea eax, [ebp - 0xc]
call fcn.0040469c
ret

Function at 0x411f40
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.00404b4c
mov eax, dword [ebp - 8]
call fcn.00404b4c
xor eax, eax
push ebp
push 0x411fb2
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.00404b5c
push eax
mov eax, dword [ebp - 4]
call fcn.00404b5c
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 0x411fb9
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046c0
ret
Function at 0x41446c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x10], 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.00404b4c
xor eax, eax
push ebp
push 0x4145fa
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4145b2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
call fcn.0040469c
cmp dword [ebp - 4], 0
jne 0x4144c4
lea edx, [ebp - 4]
xor eax, eax
call fcn.00414864
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b5c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
push 0
push 0x4000
call fcn.00412268
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00404ce8
lea eax, [ebp - 0x10]
call fcn.00404bb4
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41460c
lea eax, [ebp - 0x10]
call fcn.00404bb4
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 0xc]
push ebx
mov eax, esi
call fcn.00406e68
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
movzx eax, si
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, edi
call fcn.00406e68
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
movzx eax, di
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x414618
call fcn.0040921c
cmp dword [ebp - 8], 1
jg 0x41458d
cmp dword [ebp - 0xc], 4
jge 0x4145a8
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004142ec
mov edx, dword [ebp - 0x40]
mov eax, ebx
call fcn.004046f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4145d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414601
lea eax, [ebp - 0x40]
call fcn.0040469c
lea eax, [ebp - 0x10]
call fcn.0040469c
lea eax, [ebp - 4]
call fcn.0040469c
ret

Function at 0x414934
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4149a8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.0040490c
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.004147c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4149af
lea eax, [ebp - 0x10c]
call fcn.0040469c
ret
Function at 0x4149b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x414a2c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.0040490c
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.004147c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414a33
lea eax, [ebp - 0x10c]
call fcn.0040469c
ret

Function at 0x414a3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x414ab0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.0040490c
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.004147c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414ab7
lea eax, [ebp - 0x10c]
call fcn.0040469c
ret
Function at 0x415790
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 0x415799
mov eax, dword [ebp - 4]
add esp, 0xfffff7dc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2828], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404b4c
mov eax, dword [ebp - 8]
call fcn.00404b4c
mov eax, dword [ebp - 0xc]
call fcn.00404b4c
xor eax, eax
push ebp
push 0x41595e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004046f0
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041568c
mov ebx, 0x20019
cmp byte [ebp + 0xc], 0
je 0x415811
or ebx, 0x100
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00404b5c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x415938
xor edx, edx
push ebp
push 0x415931
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.00404b5c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x41591a
cmp dword [ebp - 0x1c], 4
jne 0x4158a1
cmp dword [ebp - 0x20], 4
jne 0x4158a1
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2821]
mov ecx, 4
call fcn.00402818
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, esi
call fcn.00408298
jmp 0x41591a
cmp dword [ebp - 0x1c], 7
jne 0x41590d
cmp dword [ebp - 0x20], 2
jle 0x41590d
jmp 0x4158b2
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0
jle 0x4158d2
mov eax, dword [ebp - 0x20]
dec eax
cmp eax, 0x2800
jbe 0x4158c8
call fcn.004039b4
cmp byte [ebp + eax - 0x2821], 0
je 0x4158af
lea edx, [ebp - 0x2821]
mov eax, esi
mov ecx, dword [ebp - 0x20]
call fcn.0040478c
push 0
push 0
lea eax, [ebp - 0x2828]
push eax
mov eax, dword [esi]
mov ecx, 0x415978
mov edx, 0x415984
call fcn.004140e8
mov edx, dword [ebp - 0x2828]
mov eax, esi
call fcn.004046f0
jmp 0x41591a
mov edx, esi
lea eax, [ebp - 0x2821]
call fcn.00408d88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415938
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 0x415965
lea eax, [ebp - 0x2828]
call fcn.0040469c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046c0
ret
Function at 0x415a40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x415a49
mov eax, dword [ebp - 4]
add esp, 0xfffff7f4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x280c], ebx
mov dword [ebp - 0x2810], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x415b63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, edi
call fcn.004046f0
test ebx, ebx
je 0x415b45
test esi, esi
je 0x415b45
xor edx, edx
push ebp
push 0x415b05
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00404b5c
push eax
push 0x2801
lea eax, [ebp - 0x2805]
push eax
mov eax, edi
call fcn.00404b5c
push eax
mov eax, esi
call fcn.00404b5c
push eax
mov eax, ebx
call fcn.00404b5c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
jns 0x415ae8
call fcn.004039b4
test eax, eax
jle 0x415afb
lea edx, [ebp - 0x2805]
mov ecx, dword [ebp + 8]
xchg ecx, eax
call fcn.0040478c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x415b45
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415b6a
lea eax, [ebp - 0x2810]
mov edx, 2
call fcn.004046c0
ret

Function at 0x415c30
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 0x415cab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040469c
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 0x415c92
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00408d88
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00408110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415cb2
lea eax, [ebp - 0x108]
call fcn.0040469c
ret

Function at 0x415cb8
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 0x415d33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040469c
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 0x415d1a
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00408d88
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00408110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415d3a
lea eax, [ebp - 0x108]
call fcn.0040469c
ret
Function at 0x415f38
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 0x416034
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.00404b5c
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404b5c
mov edi, eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
mov edx, dword [ebp - 8]
inc edx
mov eax, ebx
call fcn.00404ce8
mov eax, dword [ebp - 4]
call fcn.00407f78
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x416017
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.00404b5c
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 0x415ffa
mov eax, dword [ebx]
call fcn.00404b5c
lea edx, [ebp - 0x14]
call fcn.00408d88
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004046f0
jmp 0x416001
mov eax, ebx
call fcn.0040469c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41601e
mov eax, dword [ebp - 0xc]
call fcn.004026b0
ret

Function at 0x4160ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffc00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.0040469c
test ebx, ebx
je 0x416125
push 0x400
lea eax, [esp + 4]
push eax
test ebx, ebx
jns 0x416116
call fcn.004039b4
push ebx
call sub.user32.dll_GetWindowTextA
mov edx, esi
mov eax, esp
call fcn.00408d88
add esp, 0x400
pop esi
pop ebx
ret

Function at 0x41684c
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 0x416dec
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.00404b4c
xor eax, eax
push ebp
push 0x416f16
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xbff00000
cmp byte [0x435708], 0xff
jne 0x416e4e
mov byte [0x435708], 0
lea ecx, [ebp - 0x34]
mov edx, 0x416f30
mov eax, 0x416f4c
call fcn.00411fc0
test eax, eax
je 0x416e45
mov byte [0x435708], 1
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_FreeLibrary_1
cmp byte [0x435708], 0
sete dl
lea eax, [ebp - 4]
call fcn.00416cf0
mov ebx, eax
cmp byte [0x435708], 1
jne 0x416ebc
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov eax, dword [0x436fb8]
mov eax, dword [eax]
call eax
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x416eaf
lea eax, [ebp - 4]
mov dl, 1
call fcn.00416cf0
mov ebx, eax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov eax, dword [0x436fb8]
mov eax, dword [eax]
call eax
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x416f00
fild qword [ebp - 0x20]
fstp qword [ebp - 0x10]
wait
jmp 0x416f00
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 0x416f00
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 0x416f1d
lea eax, [ebp - 4]
call fcn.0040469c
ret
Function at 0x417430
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.00404b4c
xor eax, eax
push ebp
push 0x41754a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x43570c], 0
mov eax, esi
call fcn.0040469c
mov edx, dword [ebp - 4]
mov eax, 0x417560
call fcn.00404ca0
cmp eax, 2
jne 0x4174c9
lea eax, [ebp - 8]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404bbc
mov eax, dword [ebp - 8]
call fcn.00404b5c
push eax
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x4174ad
cmp eax, dword [esp]
pop edx
pop eax
jne 0x417528
mov eax, dword [ebp - 4]
call fcn.0040869c
test al, al
je 0x417528
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004046f0
jmp 0x417528
mov bl, 0x42
inc ebx
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404884
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0x417560
call fcn.004049a8
mov eax, dword [ebp - 8]
call fcn.00404b5c
push eax
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x417504
cmp eax, dword [esp]
pop edx
pop eax
jne 0x417515
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00417230
cmp bl, 0x5a
je 0x417528
cmp dword [esi], 0
jne 0x417528
cmp byte [0x43570c], 0
je 0x4174cb
mov byte [0x43570c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417551
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046c0
ret
Function at 0x417564
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 [0x40728c]
call fcn.004050cc
xor eax, eax
push ebp
push 0x4176cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00408a48
cmp dword [ebp - 8], 0
je 0x4175c6
lea eax, [ebp - 8]
mov edx, 0x4176e8
call fcn.00404964
lea ecx, [ebp - 0x160]
mov edx, 0x27
mov eax, ebx
call fcn.00408864
test eax, eax
jne 0x41768a
xor eax, eax
push ebp
push 0x417628
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 1], 0
je 0x41761e
push 0x80
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.004049a8
mov eax, dword [ebp - 0x164]
call fcn.00404b5c
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417632
xor eax, eax
push ebp
push 0x41766d
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.004049a8
mov eax, dword [ebp - 0x168]
call fcn.004088f4
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417677
lea eax, [ebp - 0x160]
call fcn.004088b4
test eax, eax
je 0x4175e0
lea eax, [ebp - 0x160]
call fcn.004088d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4176d3
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.004046c0
lea eax, [ebp - 0x160]
mov edx, dword [0x40728c]
call fcn.00405190
lea eax, [ebp - 8]
call fcn.0040469c
ret