joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c8b6
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x34]
movzx eax, byte [eax]
mov byte [esp + 0x1f], al
sub dword [esp + 0x38], 1
movzx eax, byte [esp + 0x1f]
movzx eax, al
mov dword [esp], eax
call fcn.0041bc50
test al, al
je 0x41c925
movzx eax, byte [esp + 0x1f]
movzx eax, al
mov eax, dword [eax*4 + 0x4245e0]
mov edx, dword [esp + 0x34]
add edx, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], edx
call sub.msvcrt.dll_fwrite
cmp eax, dword [esp + 0x38]
je 0x41c94c
movzx eax, byte [esp + 0x1f]
movzx eax, al
mov dword [esp], eax
call fcn.0041bca8
mov dword [esp + 0xc], 1
lea eax, [esp + 0x1f]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xad
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00408b8f
nop
jmp 0x41c94d
nop
add esp, 0x2c
ret

Function at 0x41c954
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
sub esp, 0x9c
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
call fcn.0040aa34
test al, al
je 0x41ca60
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
call fcn.0040b20d
test al, al
je 0x41ca60
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.0041a59f
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.0041a59f
lea eax, [esp + 0x80]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x41ca60
call fcn.0040cb3e
lea eax, [esp + 0xa0]
mov dword [esp], eax
call fcn.00408d8a
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
sub esp, 4
cmp eax, 1
jne 0x41ca5b
mov dword [esp], 0
call sub.KERNEL32.dll_ExitProcess
call fcn.0040caf6
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x9e
mov dword [esp], eax
call fcn.00408b8f
nop
add esp, 0x9c
ret

Function at 0x41cbf3
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x2c
mov dword [esp + 4], 0x8000
lea eax, [esp + 0x14]
mov dword [esp], eax
call fcn.004195d4
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x41cb00
call sub.USER32.dll_EnumWindows
sub esp, 8
lea eax, [esp + 0x14]
mov dword [esp], eax
call fcn.00419910
mov edx, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0xc1
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00408b8f
lea eax, [esp + 0x14]
mov dword [esp], eax
call fcn.00419639
nop
add esp, 0x2c
ret
Function at 0x41cc5e
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
cmp eax, 2
je 0x41cc8f
cmp eax, 3
je 0x41cca8
cmp eax, 1
je 0x41cc76
jmp 0x41ccd0
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
jmp 0x41ccd0
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
jmp 0x41ccd0
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
nop
nop
add esp, 0x1c
ret
Function at 0x402f88
Capabilities:
Query or enumerate registry value

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

Function at 0x4038ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f044], 0
je 0x40394d
cmp word [0x40f218], 0xd7b2
jne 0x403915
cmp dword [0x40f220], 0
jbe 0x403915
mov eax, 0x40f214
call dword [0x40f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40e05c
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 0x403974
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e020], 0
jne 0x403969
push 0
push 0x40e054
push 0x40e05c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404aac
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 0x404b12
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.00403cc4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b7c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404afc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b19
lea eax, [ebp - 0x10]
call fcn.00403a70
ret

Function at 0x406cbc
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 0x406cf5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b60
jmp 0x406cfe
mov eax, ebx
mov edx, esi
call fcn.00403ac4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x407e60
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 0x407ec4
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.00403cc4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406058
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ecb
lea eax, [ebp - 0xc]
call fcn.00403a70
ret

Function at 0x4089a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
movzx eax, word [0x40fc60]
cmp eax, dword [0x40fc64]
jb 0x408a20
mov eax, dword [0x40e4a8]
mov eax, dword [eax]
mov edx, 0x8000
call fcn.00409c5c
mov edx, eax
mov eax, dword [0x40fc58]
call fcn.00409d84
mov dword [0x40fc64], eax
mov eax, dword [0x40e634]
mov ax, word [eax + 8]
and ax, 1
cmp ax, 1
jne 0x408a17
mov esi, dword [0x40fc64]
dec esi
test esi, esi
jl 0x408a17
inc esi
xor ebx, ebx
call fcn.0040b538
mov edx, dword [0x40fc58]
xor byte [edx + ebx], al
mov eax, dword [0x40fc58]
mov al, byte [eax + ebx]
call fcn.0040b460
inc ebx
dec esi
jne 0x4089f8
mov word [0x40fc60], 0
cmp dword [0x40fc64], 0
jne 0x408a41
mov eax, dword [0x40e4a8]
xor edx, edx
mov dword [eax], edx
mov word [0x40fc60], 0
or eax, 0xffffffff
pop esi
pop ebx
ret
movzx eax, word [0x40fc60]
mov edx, dword [0x40fc58]
movzx eax, byte [edx + eax]
inc word [0x40fc60]
pop esi
pop ebx
ret
Function at 0x408ab0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, esp
mov ebp, 0x40fc5c
mov eax, dword [0x40fc50]
mov dword [edi], eax
mov ax, word [0x40fc54]
mov word [esp + 4], ax
mov bx, word [0x40fc68]
mov si, word [esp + 4]
and si, 7
lea ecx, [esp + 4]
mov edx, edi
mov eax, esi
call fcn.00408aa4
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00408a78
mov si, word [edi]
and si, 0xffff
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00408aa4
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00408a78
mov ax, word [edi]
not ax
and ax, 0xffff
cmp si, ax
je 0x408b3a
mov word [0x40fc68], 0
lea ecx, [esp + 4]
mov edx, edi
mov ax, 0x10
call fcn.00408aa4
test si, si
je 0x408bb4
dec esi
lea ecx, [esp + 4]
mov edx, edi
mov ax, 8
call fcn.00408a78
movzx eax, bx
mov edx, dword [ebp]
mov cl, byte [edi]
mov byte [edx + eax], cl
inc ebx
cmp bx, 0x8000
jne 0x408ba0
push 0
lea eax, [esp + 0xc]
push eax
movzx eax, bx
push eax
mov eax, dword [ebp]
push eax
mov eax, dword [0x40e524]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteFile_1
mov ecx, dword [0x40e484]
movzx edx, bx
mov eax, dword [ebp]
call fcn.00409c38
xor ebx, ebx
lea ecx, [esp + 4]
mov edx, edi
mov ax, 8
call fcn.00408aa4
test si, si
jne 0x408b4e
mov word [0x40fc68], bx
mov eax, dword [edi]
mov dword [0x40fc50], eax
mov ax, word [esp + 4]
mov word [0x40fc54], ax
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409a74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, 0x40fc4c
mov word [0x40fc60], 0
xor eax, eax
mov dword [0x40fc64], eax
mov word [0x40fc68], 0
mov word [0x40fc54], 0
xor eax, eax
mov dword [0x40fc50], eax
xor ebx, ebx
xor eax, eax
mov dword [0x40fc58], eax
xor eax, eax
mov dword [0x40fc5c], eax
mov eax, 0x8002
call fcn.00402874
mov dword [0x40fc58], eax
mov eax, 0x8002
call fcn.00402874
mov dword [0x40fc5c], eax
xor eax, eax
push ebp
push 0x409b91
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x409b65
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [esi], 0
lea eax, [ebp - 4]
call fcn.004099d4
cmp bx, word [esi]
jae 0x409b0a
mov bx, word [esi]
cmp dword [ebp - 4], 0
je 0x409af5
cmp word [0x40fc68], 0
jbe 0x409b5b
push 0
lea eax, [ebp - 8]
push eax
movzx eax, word [0x40fc68]
push eax
mov eax, dword [0x40fc5c]
push eax
mov eax, dword [0x40e524]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteFile_1
mov ecx, dword [0x40e484]
movzx edx, word [0x40fc68]
mov eax, dword [0x40fc5c]
call fcn.00409c38
mov word [0x40fc68], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409b6f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b98
mov eax, dword [0x40fc58]
call fcn.004028a4
mov eax, dword [0x40fc5c]
call fcn.004028a4
ret

Function at 0x409c64
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [0x40e4a8]
mov eax, dword [edi]
mov edx, 0x8000
call fcn.00409c5c
add eax, 2
call fcn.00402874
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x409d4a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jle 0x409d34

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ef0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409e85
test al, 0x10
jne 0x409e89
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409e90
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ef0
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
setne al
pop ebx
ret
Function at 0x40a110
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
mov byte [ebp - 0x11], 0
push 0
mov eax, dword [0x40e5b0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
mov eax, dword [0x40e500]
sub ebx, dword [eax]
cmp ebx, 0x10016
jbe 0x40a149
mov ebx, 0x10016
cmp ebx, 0x16
jbe 0x40a212
mov eax, ebx
call fcn.00402874
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40a20b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dx, 1
xor eax, eax
call fcn.00409d58
mov dword [ebp - 0x10], eax
mov eax, ebx
neg eax
mov dx, 2
call fcn.00409d58
mov edi, eax
mov eax, dword [ebp - 0xc]
mov edx, ebx
call fcn.00409d84
mov esi, eax
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00409d58
cmp ebx, esi
jne 0x40a1f5
mov esi, ebx
sub esi, 0x16
test esi, esi
jb 0x40a1f5
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [0x40e534]
cmp eax, dword [edx]
jne 0x40a1f1
push 0
mov eax, dword [0x40e5b0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetFileSize
mov edx, dword [ebp - 8]
movzx edx, word [edx + 0x14]
add edx, edi
add edx, ebx
add edx, 0x16
cmp eax, edx
jb 0x40a1f1
mov byte [ebp - 0x11], 1
lea eax, [ebx + edi]
mov dword [ebp - 4], eax
jmp 0x40a1f5
inc ebx
dec esi
jne 0x40a1ad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a212
mov eax, dword [ebp - 0xc]
call fcn.004028a4
ret
cmp byte [ebp - 0x11], 0
jne 0x40a222
mov eax, 0x40a234
call fcn.0040c220
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab38
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ab85
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 0x40ab9c
call fcn.00403d3c
mov eax, dword [ebp - 4]
call fcn.00403ef0
push eax
call sub.kernel32.dll_WinExec
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab8c
lea eax, [ebp - 4]
call fcn.00403a70
ret

Function at 0x40ac68
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40ad87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40e51c]
cmp dword [eax], 5
jl 0x40acac
push 0x40ad9c
mov eax, dword [0x40e65c]
push dword [eax]
push 0x40adc4
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403db0
jmp 0x40acca
push 0x40add8
mov eax, dword [0x40e65c]
push dword [eax]
push 0x40ae04
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403db0
lea eax, [ebp - 8]
push eax
push 0x40ae0c
push 0x80000002
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x40ad1e
mov eax, dword [ebp - 4]
call fcn.00403cf0
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00403ef0
push eax
push 1
push 0
mov eax, dword [0x40e65c]
mov eax, dword [eax]
call fcn.00403ef0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x40ad20
xor ebx, ebx
test bl, bl
jne 0x40ad71
lea eax, [ebp - 8]
push eax
push 0x40ae0c
push 0x80000001
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
jne 0x40ad71
mov eax, dword [ebp - 4]
call fcn.00403cf0
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00403ef0
push eax
push 1
push 0
mov eax, dword [0x40e65c]
mov eax, dword [eax]
call fcn.00403ef0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ad8e
lea eax, [ebp - 4]
call fcn.00403a70
ret
Function at 0x40ae40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x40af9b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x40e4bc]
cmp byte [eax + 0xb], 0
jbe 0x40af27
lea edx, [ebp - 0x10]
mov eax, 1
call fcn.0040b08c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040abdc
lea edx, [ebp - 0x14]
mov eax, 2
call fcn.0040b08c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
call fcn.0040abdc
lea eax, [ebp - 0xc]
call fcn.0040c348
mov eax, dword [0x40e514]
mov eax, dword [eax]
call fcn.00403cf0
test eax, eax
je 0x40aec6
mov eax, dword [0x40e514]
mov eax, dword [eax]
call fcn.004029b4
call fcn.00402978
mov eax, dword [ebp - 4]
call fcn.00403cf0
cmp eax, 4
jle 0x40af1a
mov eax, dword [ebp - 4]
call fcn.0040b1a0
test al, al
je 0x40aeeb
mov eax, dword [ebp - 4]
call fcn.0040ab38
mov ebx, eax
jmp 0x40af1a
push 5
mov eax, dword [0x40e514]
mov eax, dword [eax]
call fcn.00403ef0
push eax
mov eax, dword [ebp - 8]
call fcn.00403ef0
push eax
mov eax, dword [ebp - 4]
call fcn.00403ef0
push eax
push 0x40afac
push 0
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.004029b4
call fcn.00402978
mov eax, dword [0x40e510]
cmp byte [eax], 0
je 0x40af80
lea edx, [ebp - 0x18]
mov eax, dword [0x40e514]
mov eax, dword [eax]
call fcn.00409fb4
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x40e530]
mov eax, dword [eax]
call fcn.00409fb4
mov eax, dword [ebp - 0x1c]
pop edx
call fcn.0040a0d0
test al, al
je 0x40af80
lea edx, [ebp - 0x20]
mov eax, dword [0x40e530]
mov eax, dword [eax]
call fcn.00409fb4
mov eax, dword [ebp - 0x20]
call fcn.00409e6c
test al, al
je 0x40af80
call fcn.0040ac68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40afa2
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00403a94
ret

Function at 0x40b428
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, dword [0x40e64c]
movzx eax, bx
mov dx, 0xfff8
test eax, 1
jbe 0x40b449
shr eax, 1
xor eax, 0xedb88320
jmp 0x40b44b
shr eax, 1
inc dx
jne 0x40b438
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp bx, 0x100
jne 0x40b431
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, dword [0x40e4b8]
mov edx, dword [esi]
mov eax, ebx
call fcn.00409c1c
mov edi, eax
mov dword [esi], edi
and edi, 0xff
add dword [esi + 4], edi
imul ebx, dword [esi + 4], 0x8088405
inc ebx
mov dword [esi + 4], ebx
mov eax, ebx
call fcn.00405008
call fcn.0040500c
mov edx, dword [esi + 8]
call fcn.00409c1c
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
Function at 0x40b560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov ebx, dword [ebp + 8]
mov byte [ebp - 2], 0
test ebx, ebx
je 0x40b5fd
mov eax, ebx
call fcn.0040b4a8
mov al, byte [ebp - 1]
dec eax
test al, al
jb 0x40b5c0
inc eax
mov byte [ebp - 4], al
mov bl, 0
call fcn.0040b538
xor edx, edx
mov dl, bl
xor ecx, ecx
mov cl, byte [ebp - 1]
add edx, ecx
xor al, byte [esi + edx]
mov byte [ebp - 3], al
mov al, byte [ebp - 3]
call fcn.0040b460
xor eax, eax
mov al, bl
mov dl, byte [ebp - 3]
mov byte [esi + eax], dl
inc ebx
dec byte [ebp - 4]
jne 0x40b592
xor eax, eax
mov al, byte [ebp - 1]
mov bl, byte [esi + eax - 1]
and di, 8
cmp di, 8
je 0x40b5ea
mov eax, dword [ebp + 0x10]
call fcn.00405008
call fcn.0040500c
cmp bl, al
jne 0x40b5fd
mov byte [ebp - 2], 1
jmp 0x40b5fd
xor eax, eax
mov al, bl
movzx edx, word [ebp + 0xc]
shr edx, 8
cmp eax, edx
jne 0x40b5fd
mov byte [ebp - 2], 1
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x40b750
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd6c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
lea edi, [ebp - 0x30]
xor edx, edx
push ebp
push 0x40b892
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x191
push eax
call sub.user32.dll_GetDlgItem
mov esi, eax
push 0x4011
push 0x160
lea eax, [ebp - 0x190]
push eax
push 0x80
lea edx, [ebp - 0x194]
mov eax, ebx
call fcn.00409e30
mov eax, dword [ebp - 0x194]
call fcn.00403ef0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov dword [edi], 0xf
mov dword [edi + 4], 0x7fffffff
xor eax, eax
mov dword [edi + 8], eax
mov eax, dword [0x40e4bc]
test byte [eax + 6], 2
jne 0x40b7e2
xor eax, eax
mov dword [edi + 0xc], eax
jmp 0x40b7e9
mov dword [edi + 0xc], 2
mov dword [edi + 0x10], 2
mov eax, ebx
call fcn.00403ef0
mov dword [edi + 0x14], eax
mov eax, ebx
call fcn.00403cf0
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x18c]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x20], eax
push edi
push 0
push 0x1007
push esi
call sub.user32.dll_SendMessageA
mov dword [edi], 1
mov dword [edi + 4], eax
mov dword [edi + 8], 1
lea edx, [ebp - 0x294]
mov eax, dword [ebp - 4]
call fcn.00402b70
lea edx, [ebp - 0x294]
lea eax, [ebp - 8]
call fcn.00403cb8
mov eax, dword [ebp - 8]
call fcn.00403ef0
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 8]
call fcn.00403cf0
mov dword [edi + 0x18], eax
push edi
push 0
push 0x1006
push esi
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b899
lea eax, [ebp - 0x194]
call fcn.00403a70
lea eax, [ebp - 8]
call fcn.00403a70
ret

Function at 0x40c348
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403b60
add esp, 0x108
pop ebx
ret
Function at 0x40d348
Capabilities:
Get file system object information
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
mov dword [ebp - 0x114], eax
mov eax, 0x40d2c0
call fcn.00404d0c
xor eax, eax
push ebp
push 0x40d4a0
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x110]
call fcn.004043dc
lea edx, [ebp - 0x110]
mov eax, 0x410014
call fcn.00403cb8
mov eax, dword [0x410014]
call fcn.00403ef0
push eax
push 0x40d4ac
call sub.kernel32.dll_SetEnvironmentVariableA
call sub.comctl32.dll_InitCommonControls
push 0x105
push 0x40ff0c
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov ecx, eax
mov edx, 0x40ff0c
mov eax, dword [0x40e630]
call fcn.00403b60
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x40e630]
mov eax, dword [eax]
call fcn.00403ef0
push eax
call sub.kernel32.dll_CreateFileA
mov edx, dword [0x40e5b0]
mov dword [edx], eax
mov eax, dword [0x40e5b0]
cmp dword [eax], 0xffffffff
jne 0x40d42b
lea eax, [ebp - 0x114]
push eax
mov edx, dword [0x40e630]
xor ecx, ecx
mov eax, 0x40d4bc
call fcn.0040afb4
mov eax, dword [ebp - 0x114]
call fcn.0040c220
call fcn.0040b428
call fcn.0040a7dc
mov eax, 0x40fdac
xor ecx, ecx
mov edx, 0x160
call fcn.00402af0
push 0x4001
push 0x160
push 0x40fdac
push 0
mov eax, dword [0x40e630]
mov eax, dword [eax]
call fcn.00403ef0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edx, dword [0x40e5fc]
mov dword [edx], eax
push 0x40c87c
mov edx, 0x40d4d8
xor ecx, ecx
mov eax, dword [0x40f660]
call fcn.00405014
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d4a7
lea eax, [ebp - 0x114]
call fcn.00403a70
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx