joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55bdcc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405208
mov eax, dword [ebp - 8]
call fcn.00405208
xor eax, eax
push ebp
push 0x55beda
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.004036ec
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
push 0x55bef0
push dword [ebp - 4]
push 0x55befc
push dword [ebp - 8]
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.0040511c
mov eax, dword [ebp - 0x68]
call fcn.00405218
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x55beb7
push 0xffffffffffffffff
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x55be94
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x55be94
cmp dword [ebp - 0x10], 0
jne 0x55be86
mov byte [ebp - 9], 1
jmp 0x55be94
mov eax, dword [ebp - 0x10]
add eax, 0x2000
push eax
call sub.kernel32.dll_SetLastError
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55bee1
lea eax, [ebp - 0x68]
call fcn.00404d88
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404dac
ret
Function at 0x55c324
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
xor edx, edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405208
xor eax, eax
push ebp
push 0x55c4b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov eax, 2
call fcn.00502040
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x138], 0x128
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 0x10]
call fcn.00502060
mov dword [ebp - 0xc], eax
jmp 0x55c477
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404ff8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0040a55c
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00409744
mov eax, dword [ebp - 0x13c]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00409744
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004051b0
je 0x55c44b
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404ff8
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00409744
mov eax, dword [ebp - 0x14c]
push eax
lea edx, [ebp - 0x154]
mov eax, dword [ebp - 4]
call fcn.00409744
mov edx, dword [ebp - 0x154]
pop eax
call fcn.004051b0
jne 0x55c466
push 0
mov eax, dword [ebp - 0x130]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 8], eax
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 0x10]
call fcn.00502080
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x55c3a6
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55c4b7
lea eax, [ebp - 0x154]
mov edx, 7
call fcn.00404dac
lea eax, [ebp - 4]
call fcn.00404d88
ret
Function at 0x562a40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405208
xor eax, eax
push ebp
push 0x562b30
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x14
call sub.user32.dll_GetKeyState
not ax
test al, 1
sete al
neg al
sbb eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x562a84
xor edx, edx
mov al, 0x14
call fcn.00562a0c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x562a9b
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x562b0b
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov al, byte [eax + edx - 1]
push eax
call sub.user32.dll_VkKeyScanA
mov word [ebp - 0xe], ax
movzx eax, word [ebp - 0xe]
shr eax, 8
cmp al, 0xff
je 0x562b03
cmp byte [ebp - 0xe], 0xff
je 0x562b03
movzx eax, word [ebp - 0xe]
shr eax, 8
and al, 1
cmp al, 1
jne 0x562ae5
mov al, 0x10
call fcn.005629d4
mov al, byte [ebp - 0xe]
xor edx, edx
call fcn.00562a0c
movzx eax, word [ebp - 0xe]
shr eax, 8
and al, 1
cmp al, 1
jne 0x562b03
mov al, 0x10
call fcn.005629f0
inc dword [ebp - 8]
dec dword [ebp - 0x14]
jne 0x562aac
cmp dword [ebp - 0xc], 0
je 0x562b1a
xor edx, edx
mov al, 0x14
call fcn.00562a0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x562b37
lea eax, [ebp - 4]
call fcn.00404d88
ret
Function at 0x56aa6c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push eax
push 0x3ff
call sub.kernel32.dll_GetTempPathA
mov ecx, eax
lea edx, [ebp - 0x404]
mov eax, dword [ebp - 4]
call fcn.00404e78
mov esp, ebp
pop ebp
ret
Function at 0x404569
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x404587
xor eax, eax
inc eax
jmp 0x404612
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40460f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40460f
push dword [ebp + 0xc]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x40457f
cmp dword [edi], 0x4550
jne 0x40460f
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x40460f
movzx eax, word [esi + 0x46]
test ax, ax
je 0x40460f
mov edi, eax
imul edi, edi, 0x28
push edi
mov dword [esi + 0x140], edi
call fcn.00424f3b
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x4045eb
push 3
jmp 0x404611
movzx ecx, word [esi + 0x54]
push dword [ebp + 0xc]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x404612
push 2
pop eax
pop edi
pop ebp
ret

Function at 0x40609d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4060ab
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x406166
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f800]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f800]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f800]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f800]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f800]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f800]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f800]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43f800]
add edx, 8
sub edi, 8
dec esi
jne 0x4060c9
pop ebx
test edi, edi
je 0x40617f
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x43f800]
inc edx
dec edi
jne 0x40616a
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x406185
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x43f800]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x43f800]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x41a23f
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x60
mov eax, 0x438270
call fcn.00425c1e
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x50]
push eax
push 0x44209c
xor edi, edi
inc edi
push edi
push ebx
push 0x44216c
mov dword [ebp - 0x50], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x44]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTCIMV2
mov dword [ebp - 0x44], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x41a3b1
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x44]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x4c]
push edx
push ebx
push 0x20
push str.Select__From_Win32_OperatingSystem
push 0x441064
mov dword [ebp - 0x4c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp eax, ebx
jl 0x41a3b1
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x41a3a7
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x48]
push edx
push edi
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x54], ebx
je 0x41a3a7
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x64]
push edx
push ebx
push str.InstallDate
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x10]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [0x45c0ec]
call dword [0x45c0b4]
push 0x104
push ebx
push eax
call dword [0x45c034]
mov esi, eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x1e]
push eax
push str._d__d__d__d:_d:_d
push esi
call dword [0x45be90]
add esp, 0x20
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00404d5c
mov eax, esi
jmp 0x41a3b6
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00404d5c
mov eax, str.Unknown
call fcn.00425c7a
ret
Function at 0x41a60c
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x84
mov eax, 0x4382dd
call fcn.00425c1e
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x7c]
push eax
push 0x44209c
xor edi, edi
inc edi
push edi
push ebx
push 0x44216c
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x70]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.rootSecurityCenter2
mov dword [ebp - 0x70], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x41a77c
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x70]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x78]
push edx
push ebx
push 0x20
push str.Select__From_AntiVirusProduct
push 0x441064
mov dword [ebp - 0x78], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp eax, ebx
jl 0x41a77c
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x41a772
mov ecx, dword [eax]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x80]
push edx
push edi
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x74], ebx
je 0x41a772
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x90]
push edx
push ebx
push str.displayName
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x10]
push dword [ebp - 0x88]
lea ecx, [ebp - 0x4c]
call fcn.0041a46f
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x69]
mov byte [ebp - 4], 3
call fcn.0041db02
cmp dword [eax + 0x14], 0x10
jb 0x41a741
mov esi, dword [eax]
jmp 0x41a743
mov esi, eax
push ebx
push edi
lea ecx, [ebp - 0x68]
call fcn.00404d5c
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.00409b9c
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.00404d5c
mov eax, esi
jmp 0x41a781
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.00404d5c
mov eax, str.Unknown
call fcn.00425c7a
ret
Function at 0x41ad19
Capabilities:
Reference http user-agent string

Disassembly:
push 0x28
mov eax, 0x438464
call fcn.00425be8
mov esi, dword [ebp + 8]
xor edi, edi
push 0x43e3cc
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
call fcn.004052ba
mov dword [ebp - 4], edi
xor ebx, ebx
mov edi, str.Mozilla_5.0__Windows_NT_10.0_
inc ebx
push edi
mov dword [ebp - 0x30], ebx
call fcn.00424eb0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00405245
call fcn.00419f57
push eax
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040bfcc
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004052e9
push 0
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00404d5c
push 0x4411a0
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040bfcc
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004052e9
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00404d5c
mov eax, esi
call fcn.00425c6b
ret 4

Function at 0x41b37f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [str._snu]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41b3e7
jmp 0x41b3d6
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00433c0f
pop ecx
pop ecx
test eax, eax
jne 0x41b3d6
mov bl, 1
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41b3c1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004235da
leave
ret
Function at 0x41deda
Capabilities:
Enumerate files on windows

Disassembly:
push 0x298
mov eax, 0x438ad4
call fcn.00425be8
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], edi
lea eax, [ebp + 0xc]
push eax
xor ebx, ebx
lea eax, [ebp - 0x48]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041db72
cmp dword [eax + 0x14], 8
jb 0x41df15
mov eax, dword [eax]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x29c], eax
call fcn.00409b9c
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2a0], ebx
call fcn.0041a46f
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041de6f
push edi
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00409b9c
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x41dfa0
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041a46f
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0041de6f
push 0
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00409b9c
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
call edi
test eax, eax
jne 0x41df74
push eax
push ebx
lea ecx, [ebp + 0xc]
call fcn.00404d5c
mov eax, esi
call fcn.00425c6b
ret 0x20
Function at 0x4202c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4202cf
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x42038a
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441758]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441758]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441758]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441758]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441758]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441758]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441758]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x441758]
add edx, 8
sub edi, 8
dec esi
jne 0x4202ed
pop ebx
test edi, edi
je 0x4203a3
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x441758]
inc edx
dec edi
jne 0x42038e
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x4203a9
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x441758]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x441758]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x420589
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [str._snu]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [0x45bfe0]
test eax, eax
jne 0x4205cc
mov eax, 0x200
jmp 0x420755
mov ecx, dword [ebp - 0x38]
xor eax, eax
push ebx
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x4205e3
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x4205ec
or dword [ebp - 0x3c], 2
test cl, 4
je 0x4205f5
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x420600
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x420609
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x420616
or dword [ebp - 0x3c], 0x40000000
jmp 0x42061d
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x420630
or dword [ebp - 0x3c], 0x800000
push ebx
push esi
call dword [0x45c0c8]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x4206d5
push ebx
push ebx
push ebx
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x45c00c]
push ebx
push ebx
push 0x24
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x45c00c]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x4206d5
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x4206d5
push ebx
push ebx
push eax
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x45c00c]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x4206ce
cmp eax, 0x454e
je 0x4206ce
cmp eax, 0x454c
je 0x4206ce
cmp eax, 0x4550
jne 0x4206d5
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x4206e1
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x4206ed
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp edi, ebx
je 0x420726
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004204f4
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.004204f4
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.004204f4
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x54]
cmp esi, ebx
pop ebx
je 0x420753
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.00420518
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004235da
leave
ret
Function at 0x4213f9
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x421426
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.00423560
mov ecx, dword [ebp + 0xc]
mov eax, ecx
movzx edx, word [eax*8 + 0x44170a]
mov dword [esi + 0x6af98], edx
movzx edx, word [eax*8 + 0x441708]
mov dword [esi + 0x6af9c], edx
movzx edx, word [eax*8 + 0x44170c]
mov dword [esi + 0x6afa0], edx
movzx eax, word [eax*8 + 0x44170e]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ecx, 2
jg 0x42148c
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x421498
cmp ecx, 8
jl 0x421498
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x4214ff
cmp eax, 0xffffffff
je 0x4214ff
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x4214da
push esi
call fcn.0041f9e5
pop ecx
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x4214e2
jmp 0x42150f
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret