joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027d4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402803
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_2
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403698
jmp 0x402821
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402708
mov edi, eax
test ebx, ebx
je 0x402821
cmp dword [esi], 0
je 0x402821
dec ebx
jmp 0x40280a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x44903c], 0x8088405
inc edx
mov dword [0x44903c], edx
mul edx
mov eax, edx
ret

Function at 0x402b28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402bc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ba0
xor eax, eax
push ebp
push 0x402b99
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 0x402bdc
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 0x402ba0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404790
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_2
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40492c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404840
xor eax, eax
push ebp
push 0x404839
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x404822
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40494c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404840
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404921
cmp byte [ebp - 0xd], 0
jne 0x404882
cmp byte [ebp - 0x12], 0
je 0x404921
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40489b
dec ebx
cmp byte [ebx], 0x2e
je 0x4048aa
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40489a
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404921
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4048d7
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA_1
mov esi, eax
test esi, esi
jne 0x404921
cmp byte [ebp - 0xd], 0
je 0x404921
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA_1
mov esi, eax
test esi, esi
jne 0x404921
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA_1
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406d98
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x406dac
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x406dce
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x407288
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403698
add esp, 0x104
pop ebx
ret
Function at 0x409288
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
test eax, eax
jle 0x4092c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403698
jmp 0x4092ca
mov eax, ebx
mov edx, esi
call fcn.0040364c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4092d4
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
test eax, eax
jle 0x4092f5
mov al, byte [esp]
jmp 0x4092f7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
push ebx
nop
test eax, eax
je 0x40f77e
test edx, edx
je 0x40f741
mov esi, eax
mov edi, edx
push edx
mov eax, dword [eax - 4]
mov edx, dword [edx - 4]
dec eax
sub edx, eax
dec ecx
push eax
sub edx, ecx
jle 0x40f73e
add edi, ecx
mov ecx, edx
mov edx, eax
movzx ebx, byte [esi]
mov al, byte [ebx + 0x4472ec]
movzx ebx, byte [edi]
cmp al, byte [ebx + 0x4472ec]
je 0x40f754
inc edi
dec ecx
jne 0x40f72f
add esp, 8
xor eax, eax
jmp 0x40f77e
movzx ebx, byte [esi]
mov al, byte [ebx + 0x4472ec]
mov edx, dword [esp]
jmp 0x40f73a
test edx, edx
je 0x40f776
mov bl, byte [esi + edx]
mov ah, byte [edi + edx]
cmp bl, ah
je 0x40f773
mov al, byte [ebx + 0x4472ec]
movzx ebx, ah
xor al, byte [ebx + 0x4472ec]
jne 0x40f745
dec edx
jne 0x40f758
lea eax, [edi + 1]
pop ecx
sub eax, dword [esp]
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x412b94
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp byte [0x4473f0], 0
je 0x412bcb
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00412a94
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
jmp 0x412c21
mov eax, dword [ebp + 8]
mov edx, 0x400
call fcn.00403b60
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00403830
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004039f4
push eax
mov eax, dword [ebp + 0xc]
call fcn.004039f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004039f4
push eax
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.00403b60
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416eec
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
xor edx, edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 0x1e0], edx
mov byte [ebp - 0x1cd], al
xor eax, eax
push ebp
push 0x41715c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e0]
call fcn.00419c4c
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 0x1e0]
call fcn.00407008
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x1d8]
call fcn.00417ac4
lea edx, [ebp - 0x1dc]
mov eax, dword [ebp - 0x1d8]
call fcn.00407008
push 1
lea eax, [ebp - 0x238]
push eax
mov ecx, 0x417170
xor edx, edx
mov eax, dword [ebp - 0x1dc]
call fcn.00417460
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x1d4]
mov edx, dword [ebp - 0x1dc]
call fcn.0040387c
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1cc]
call fcn.00404d52
lea eax, [ebp - 0x1cc]
call fcn.00404fda
call fcn.00402674
push ebp
mov eax, 0x417180
call fcn.00416e7c
pop ecx
push ebp
push 0x417190
push dword [ebp - 0x1e0]
push 0x4171a0
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.004038f0
mov eax, dword [ebp - 0x238]
call fcn.00416e7c
pop ecx
push ebp
push 0x4171ac
push dword [ebp - 0x1e0]
push 0x4171a0
push 0x4171c0
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.004038f0
mov eax, dword [ebp - 0x238]
call fcn.00416e7c
pop ecx
cmp byte [ebp - 0x1cd], 0
je 0x41705b
push ebp
push 0x4171d4
push dword [ebp - 0x1d8]
push 0x4171a0
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.004038f0
mov eax, dword [ebp - 0x238]
call fcn.00416e7c
pop ecx
push ebp
push 0x417190
push dword [ebp - 0x1d4]
push 0x4171a0
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.004038f0
mov eax, dword [ebp - 0x238]
call fcn.00416e7c
pop ecx
lea eax, [ebp - 0x1cc]
call fcn.00404df4
call fcn.00402674
lea eax, [ebp - 0x234]
xor ecx, ecx
mov edx, 0x44
call fcn.004029a4
mov dword [ebp - 0x208], 1
mov word [ebp - 0x204], 0
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp - 0x1dc]
call fcn.004039f4
push eax
push 0
push 0x8000040
push 0
push 0
push 0
push 0x4171a0
push dword [ebp - 0x1d4]
push 0x4171a0
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.004038f0
mov eax, dword [ebp - 0x238]
call fcn.004039f4
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x417133
mov eax, dword [ebp - 0x1ec]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x1f0]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417163
lea eax, [ebp - 0x238]
call fcn.004035b4
lea eax, [ebp - 0x1e0]
mov edx, 4
call fcn.004035d8
ret

Function at 0x417294
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00417270
mov ebx, eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetFileSize
cmp ebx, eax
jge 0x4172bd
mov byte [ebp - 5], 0
jmp 0x4172c1
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x417680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004039e4
xor eax, eax
push ebp
push 0x4176db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4176bc
test byte [ebp - 0xc], 0x10
jne 0x4176c0
xor eax, eax
jmp 0x4176c2
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4176e2
lea eax, [ebp - 4]
call fcn.004035b4
ret

Function at 0x417c78
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004039e4
xor eax, eax
push ebp
push 0x417de1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.004176ec
test al, al
je 0x417dbe
mov eax, dword [0x448bf4]
cmp dword [eax], 1
jne 0x417cdf
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.0040703c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00417968
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 4]
call fcn.0040364c
mov eax, dword [0x448b90]
mov al, byte [eax]
sub al, 2
jae 0x417d3b
mov eax, dword [0x448b90]
cmp dword [eax + 0xd], 0x457
jge 0x417d3b
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
je 0x417dbe
mov eax, dword [ebp - 0x30]
imul dword [ebp - 0x2c]
imul dword [ebp - 0x34]
test eax, eax
jns 0x417d30
add eax, 0x3ff
sar eax, 0xa
mov dword [ebp - 8], eax
jmp 0x417dbe
push 0x417df0
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x417dbe
xor eax, eax
push ebp
push 0x417db7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x417e00
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x417da0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
call dword [ebp - 0x10]
test eax, eax
je 0x417da0
mov eax, dword [ebp - 0x14]
shl eax, 0x16
mov edx, dword [ebp - 0x18]
shr edx, 0xa
or eax, edx
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417dbe
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417de8
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004035d8
lea eax, [ebp - 4]
call fcn.004035b4
ret
Function at 0x418790
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004035b4
mov edx, 0x20
mov eax, dword [ebp - 4]
call fcn.00406c50
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x418819
xor eax, eax
push ebp
push 0x418812
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4187fc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00403b60
mov eax, dword [ebp - 8]
call fcn.00403a00
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00406cb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418819
mov eax, dword [ebp - 0xc]
call fcn.00406d18
ret
mov esp, ebp
pop ebp
ret

Function at 0x418820
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d88
test al, al
je 0x41884a
mov edx, 0x21
mov eax, dword [ebp - 4]
call fcn.00406c50
mov dword [ebp - 0xc], eax
jmp 0x418855
mov eax, dword [ebp - 4]
call fcn.00406c90
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4188b1
xor eax, eax
push ebp
push 0x4188aa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x41888b
mov eax, dword [ebp - 8]
call fcn.00403830
push eax
mov eax, dword [ebp - 8]
call fcn.004039f4
mov edx, eax
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00406ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4188b1
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
mov eax, dword [ebp - 0xc]
call fcn.00406d18
ret
mov esp, ebp
pop ebp
ret

Function at 0x4190a4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004035b4
cmp dword [ebp - 4], 0
je 0x419102
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jle 0x419102
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [ebp - 8]
call fcn.00403b60
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004039f4
push eax
mov eax, dword [ebp - 4]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov esp, ebp
pop ebp
ret
Function at 0x42bd0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 3], cl
mov word [ebp - 2], dx
mov esi, eax
xor eax, eax
push ebp
push 0x42be5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov ax, word [ebp - 2]
mov word [esi + 0x1b], ax
test byte [esi + 0x1b], 1
setne al
xor al, 1
mov byte [esi + 0x18], al
mov eax, dword [esi + 0x24]
call fcn.00406d88
test al, al
je 0x42be45
mov byte [esi + 0x19], 1
push 1
lea eax, [ebp - 8]
push eax
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
xor ecx, ecx
xor edx, edx
call fcn.00417460
mov ecx, dword [ebp - 8]
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov edx, dword [eax + 0x28]
lea eax, [esi + 0x28]
call fcn.0040387c
mov eax, dword [esi + 0x24]
call fcn.004129bc
xor ecx, ecx
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
call fcn.00418764
mov ebx, eax
test byte [ebp - 3], bl
je 0x42be45
test byte [esi + 0x1b], 4
je 0x42bdb6
mov eax, dword [esi + 0x24]
call fcn.00416710
test byte [esi + 0x1b], 8
je 0x42bdda
mov eax, dword [esi + 0x24]
call fcn.004039f4
push eax
call sub.gdi32.dll_RemoveFontResourceA
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendMessageA
mov eax, dword [esi + 0x24]
call fcn.00417e14
test al, al
jne 0x42be45
mov byte [esi + 0x34], 1
lea eax, [esi + 0x2c]
mov edx, 0x104
call fcn.00403b60
mov eax, dword [esi + 0x2c]
call fcn.004039f4
push eax
push 0
push 0x42be6c
lea edx, [ebp - 8]
mov eax, dword [esi + 0x24]
call fcn.00407008
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, dword [esi + 0x2c]
call fcn.004039f4
mov edx, eax
lea eax, [esi + 0x2c]
call fcn.00403768
mov eax, dword [0x448bd8]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x42be78
call fcn.00425158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42be62
lea eax, [ebp - 8]
call fcn.004035b4
ret

Function at 0x42db90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov byte [ebp - 1], 0
lea eax, [ebp - 0x10]
push eax
push 4
push 0
mov eax, dword [0x4496e4]
push eax
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42dc0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ResumeThread
call fcn.00419be8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetExitCodeThread
cmp dword [ebp - 8], 0x103
je 0x42dbcb
cmp dword [ebp - 8], 0
je 0x42dbf3
call fcn.0040316c
jmp 0x42dc15
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dc15
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x42e440
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x42e5c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40c568]
call fcn.00402c4c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42e5a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x448b40]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, 0x42e5dc
call fcn.00412d50
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x42e4b8
inc esi
xor ebx, ebx
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
call fcn.00417e14
inc ebx
dec esi
jne 0x42e49f
mov eax, dword [0x448b40]
mov eax, dword [eax]
mov edx, 0x42e5dc
call fcn.004130f4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [0x448b40]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, 0x42e5f0
call fcn.00412d50
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x42e51e
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 8]
call fcn.004039f4
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
dec ebx
cmp ebx, 0xffffffff
jne 0x42e4fd
mov eax, dword [0x448b40]
mov eax, dword [eax]
mov edx, 0x42e5f0
call fcn.004130f4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [0x448b40]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, 0x42e604
call fcn.00412d50
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x42e580
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00414024
dec ebx
cmp ebx, 0xffffffff
jne 0x42e563
mov eax, dword [0x448b40]
mov eax, dword [eax]
mov edx, 0x42e604
call fcn.004130f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e5ae
mov eax, dword [ebp - 4]
call fcn.00402c74
ret
Function at 0x4436bc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443a57
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.004070d0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00407008
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0043af30
test al, al
jne 0x443764
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x50]
mov eax, 0x16
call fcn.0043a164
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
lea edx, [ebp - 0x5c]
xor ecx, ecx
pop eax
call fcn.004078c0
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
mov eax, dword [0x448bd8]
mov eax, dword [eax]
call fcn.004248a8
mov edx, dword [ebp - 0x50]
mov eax, 0x443a70
call fcn.0043b2c0
jmp 0x443a2f
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x18]
call fcn.00417968
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
add eax, 0x28
mov ecx, dword [ebp - 0x14]
call fcn.0040387c
lea ecx, [ebp - 0x50]
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00406f74
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.00403608
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, 0x20
call fcn.00406c50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x44396d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0xc]
cmp edi, 0x10000
jle 0x4437da
mov edi, 0x10000
mov eax, edi
call fcn.004025b0
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x443890
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x21], 0
xor eax, eax
mov dword [ebp - 0x28], eax
mov edx, edi
neg edx
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.00406d0c
mov edx, dword [ebp - 0x20]
mov ecx, edi
mov eax, dword [ebp - 0x10]
call fcn.00406cb4
mov esi, edi
sub esi, 6
cmp esi, 0
jl 0x44387a
mov eax, 0x443a88
mov al, byte [eax]
call fcn.00402884
mov edx, dword [ebp - 0x20]
cmp al, byte [edx + esi]
jne 0x443874
mov byte [ebp - 0x21], 1
mov ebx, 1
mov eax, 0x443a88
mov al, byte [eax + ebx]
call fcn.00402884
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0x20]
cmp al, byte [ecx + edx]
je 0x44385e
mov byte [ebp - 0x21], 0
jmp 0x443864
inc ebx
cmp ebx, 6
jne 0x443840
cmp byte [ebp - 0x21], 0
je 0x443874
sub edi, esi
sub edi, 6
mov dword [ebp - 0x28], edi
jmp 0x44387a
dec esi
cmp esi, 0xffffffff
jne 0x443823
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443897
mov eax, dword [ebp - 0x20]
call fcn.004025c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443a5e
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004035d8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004035d8
ret