joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
je 0x40b4e1
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
test esi, esi
je 0x40b502
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b502
test al, 0x10
je 0x40b502
mov ecx, dword [edi + 4]
mov al, byte [esi]
mov byte [ecx], al
inc ecx
inc esi
test al, al
jne 0x40b4f8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x58076c
mov dword [ebp - 0x14], 0x40b440
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0x50
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov esi, eax
test esi, esi
je 0x40b576
mov ecx, dword [edi + 4]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 0
push eax
call edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40d5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d5cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d602
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40d5fe
jmp 0x40d5f0
cmp esi, eax
jae 0x40d602
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40d5f0
cmp esi, eax
jb 0x40d609
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x410680
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call esi
push 0
push str.SysPager
mov edi, eax
push 0
push edi
call esi
push 0
push str.ToolbarWindow32
push 0
test eax, eax
je 0x4106d0
push eax
jmp 0x4106d1
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x410725
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov esi, 1
cmp edi, esi
jle 0x410725
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
jmp 0x410706
mov eax, dword [ebp - 0x18]
movzx ecx, ax
movzx edx, si
shl ecx, 0x10
or ecx, edx
push ecx
push 0
push 0x200
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
inc esi
cmp esi, edi
jl 0x410703
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523079
mov esp, ebp
pop ebp
ret
Function at 0x4139f0
Capabilities:
Access firewall policy via inetfwpolicy2
Access firewall rule properties via inetfwrule

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 2
push ebx
mov dword [ebp - 0x814], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x808], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x818], eax
cmp eax, 0x80010106
je 0x413a3c
cmp eax, ebx
jl 0x413b5f
push edi
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x80c]
push eax
push 0x5816cc
push 1
push ebx
push 0x5816bc
call edi
cmp eax, ebx
jge 0x413a70
push eax
push str.CoCreateInstance_for_INetFwPolicy2_failed:_0x_08lx_n
call fcn.00527130
add esp, 8
jmp 0x413b5e
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
lea edx, [ebp - 0x810]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
js 0x413b5e
lea ecx, [ebp - 0x808]
push ecx
push 0x5816ec
push 1
push ebx
push 0x5816dc
call edi
test eax, eax
js 0x413b5e
mov eax, dword [ebp - 0x808]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push 6
push eax
call edx
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x98]
push SysReAllocString
push eax
call edx
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push 0xffffffffffffffff
push eax
call edx
push 0x7fe
lea ecx, [ebp - 0x802]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x804], ax
call fcn.005282b0
push 0x1a21
push 0x5816fc
lea edx, [ebp - 0x804]
call fcn.00413bc0
mov eax, dword [ebp - 0x808]
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
add esp, 0x14
lea ecx, [ebp - 0x804]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x810]
mov edx, dword [ebp - 0x808]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
js 0x413b5e
mov dword [ebp - 0x814], 1
pop edi
mov eax, dword [ebp - 0x808]
cmp eax, ebx
je 0x413b71
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x810]
cmp eax, ebx
je 0x413b83
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x80c]
cmp eax, ebx
je 0x413b95
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x818], ebx
pop ebx
jl 0x413ba4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x814]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret
Function at 0x41d0c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fc41
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 2
cmp dword [ebp + 0x1c], ebx
je 0x41d24b
cmp dword [ebp + 0x38], ebx
je 0x41d24b
push 0x2803
call fcn.0052659e
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x41d148
push 0x2803
push ebx
push edi
call fcn.005282b0
mov eax, dword [ebp - 0x34]
mov edx, 0x10
add esp, 0xc
cmp dword [eax + 0x18], edx
jb 0x41d1a4
mov ecx, dword [eax + 4]
jmp 0x41d1a7
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x580469
mov ecx, esi
mov byte [esi], bl
call fcn.00404410
mov dword [ebp - 0x30], 1
mov edi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], edi
jb 0x41d182
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0042465c
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x41d2a6
mov edx, dword [ebp + 0x28]
push edx
jmp 0x41d29e
lea ecx, [eax + 4]
cmp dword [ebp + 0x20], edx
mov edx, dword [ebp + 0xc]
jae 0x41d1b2
lea edx, [ebp + 0xc]
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
jae 0x41d1be
lea eax, [ebp + 0x28]
push ecx
push 0x2800
push edi
push 0x580469
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, edi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41d1e4
sub eax, ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00404410
push edi
mov byte [ebp - 4], 3
call fcn.00523616
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
add esp, 4
lea edi, [ebp - 0x2c]
mov byte [esi], bl
call fcn.00403af0
mov edi, 0x10
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x18], edi
jb 0x41d239
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042465c
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jmp 0x41d16d
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x580469
mov ecx, esi
mov byte [esi], bl
call fcn.00404410
mov edi, 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 1
cmp dword [ebp + 0x20], edi
jb 0x41d285
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042465c
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x41d2a6
mov ecx, dword [ebp + 0x28]
push ecx
call fcn.0042465c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x41d490
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f7d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a8f00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [ebp + 0x18], 0
jne 0x41d4f0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41d4da
mov eax, dword [ebp + 8]
push eax
call fcn.0042465c
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
jne 0x41d532
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41d4da
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042465c
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp + 8]
mov ebx, 0x10
cmp dword [ebp + 0x1c], ebx
jae 0x41d542
lea ecx, [ebp + 8]
push 0xf003f
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x41d587
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], ebx
jb 0x41d4da
mov edx, dword [ebp + 8]
push edx
call fcn.0042465c
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0x24]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], ebx
jb 0x41d5c5
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042465c
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x41d820
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
cmp dword [ebp + 0x18], esi
jne 0x41d872
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41d86b
mov eax, dword [ebp + 8]
push eax
call fcn.0042465c
add esp, 4
xor eax, eax
jmp 0x41d95b
push 0xf003f
xor eax, eax
push esi
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x41d8b6
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41d86b
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042465c
add esp, 4
xor eax, eax
jmp 0x41d95b
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x41d8c2
lea eax, [ebp + 8]
push 0xf003f
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, esi
jne 0x41d8f2
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41d86b
mov edx, dword [ebp + 8]
push edx
call fcn.0042465c
add esp, 4
xor eax, eax
jmp 0x41d95b
mov eax, 1
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
push 2
lea eax, [ebp - 0x2c]
push edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov esi, eax
neg esi
sbb esi, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
neg esi
call edi
push ebx
call edi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41d959
mov edx, dword [ebp + 8]
push edx
call fcn.0042465c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41fa50
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5504d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push 1
push eax
sub esp, 0x1c
mov dword [ebp - 0x30], esp
xor edi, edi
mov esi, ecx
mov ecx, esp
push edi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
push 0x580469
mov dword [ebp - 0x34], edi
mov byte [ecx], 0
call fcn.00404410
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.0041f2d0
cmp eax, edi
je 0x41fb99
push 0x100002
call fcn.0052659e
mov edi, eax
add esp, 4
test edi, edi
je 0x41fb99
push 0x100002
push 0
push edi
call fcn.005282b0
push 0x100000
push 0
push edi
mov dword [ebp - 0x30], 0
call fcn.005282b0
mov edx, dword [ebx + 8]
add esp, 0x18
lea ecx, [ebp - 0x30]
push ecx
push 0x100000
push edi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41fb85
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x41fb85
push eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00404410
push 0
lea eax, [ebp - 0x2c]
push eax
or eax, 0xffffffff
mov dword [ebp - 4], 0
call fcn.004047c0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x41fb5d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042465c
add esp, 4
push 0x100000
push 0
push edi
call fcn.005282b0
mov eax, dword [ebx + 8]
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
push 0x100000
push edi
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x41fb0c
push edi
call fcn.00523616
xor ecx, ecx
add esp, 4
cmp dword [esi + 0x10], ecx
setne cl
mov dword [ebp - 0x34], ecx
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41fbbc
push eax
call esi
test eax, eax
jne 0x41fbb5
call edi
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x41fbd3
push eax
call esi
test eax, eax
jne 0x41fbcc
call edi
mov dword [ebx + 4], 0
mov eax, dword [ebx]
test eax, eax
je 0x41fbe8
push eax
call esi
test eax, eax
jne 0x41fbe2
call edi
mov dword [ebx], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret 8
Function at 0x421e40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x421e47
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x421f1d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x584550]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x584550]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x584550]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x584550]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x584550]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x584550]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x584550]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x584550]
add ecx, 8
sub edx, 8
dec esi
jne 0x421e60
pop edi
test edx, edx
je 0x421f3a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x584550]
inc ecx
dec edx
jne 0x421f21
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x584550]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x584550]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x584550]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x584550]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x422700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x422736
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42272c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x422747
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0052a0e0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x422770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4227a3
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42279e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x4227ce
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4227b5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.0052a0e0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4227e3
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4227dd
cmp byte [esi + 8], 0
je 0x4227dd
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x422880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x4228c7
cmp byte [esi + 1], 0
je 0x4228cf
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x4228e2
cmp byte [esi + 1], 0
je 0x4228d6
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x4228ea
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4228a1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x4228ea
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x4228fc
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0052659e
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x422919
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x422a2d
jmp 0x422939
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x422948
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x42295f
mov ebx, 0x404
cmp byte [esi], 0
je 0x422984
cmp byte [esi + 1], 0
je 0x422a2d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x422987
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x4229b0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4229ab
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x4229d9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x4229c1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0052a0e0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x422a2d
lea eax, [ebx - 3]
test eax, eax
js 0x422a1b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x422a0f
cmp byte [eax + ecx + 1], 0x4b
jne 0x422a0f
cmp byte [eax + ecx + 2], 5
jne 0x422a0f
cmp byte [eax + ecx + 3], 6
je 0x422a15
test eax, eax
jns 0x4229f0
jmp 0x422a1b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x422a2d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x422930
mov eax, dword [ebp - 0x10]
push eax
call fcn.00523616
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret