joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031f5
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x409044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, ebx
movzx eax, word [esi]
test ax, ax
je 0x4032e7
mov ecx, eax
test cx, cx
je 0x4032e7
movzx ecx, cx
movzx edx, cx
cmp cx, 0x2d
je 0x40324b
movzx edx, cx
cmp cx, 0x2f
je 0x40324b
add esi, 2
movzx eax, word [esi]
mov ecx, eax
mov edx, eax
test ax, ax
jne 0x40322a
test dx, dx
je 0x4032e7
push 0x401728
add esi, 2
push esi
call dword [0x40a0e8]
test eax, eax
je 0x4033b4
push 0x4017a4
push esi
call dword [0x40a0e8]
test eax, eax
je 0x4033a1
push 0x4017c0
push esi
call dword [0x40a0e8]
test eax, eax
je 0x40338e
push 0x4017d0
push esi
call dword [0x40a0e8]
test eax, eax
je 0x403331
push 0x4017fc
push esi
call dword [0x40a0e8]
test eax, eax
je 0x4032f8
movzx eax, word [esi]
sub eax, 0x62
je 0x4032d3
sub eax, 0x10
je 0x4032ce
sub eax, 1
jne 0x4032d6
or edi, 4
jmp 0x4032d6
or edi, 1
jmp 0x4032d6
or edi, 2
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x40321e
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004086e0
leave
ret
test byte [0x4095c1], 0x40
je 0x403312
lea eax, [ebp - 0x18]
mov edx, 0x401468
push eax
push 1
push ecx
call fcn.00403669
call fcn.004061b3
call fcn.004062b2
test byte [0x4095c1], 0x40
je 0x403387
mov edx, 0x401408
call fcn.004036b9
jmp 0x403387
call fcn.0040729f
test eax, eax
jne 0x403344
call fcn.004061b3
call fcn.004062b2
push 0x43
call dword [0x40a170]
test eax, eax
jne 0x403363
push 0x43
call dword [0x40a170]
test eax, eax
jne 0x403363
push ebx
call dword [0x40a0b8]
call fcn.0040729f
test eax, eax
jne 0x403382
push 0x43
call dword [0x40a170]
test eax, eax
jne 0x403382
call fcn.004064a3
call fcn.00406c85
call fcn.00406ca1
push ebx
call dword [0x40a080]
push 0x1e
call dword [0x40a0e4]
test eax, eax
je 0x403387
call fcn.0040683c
jmp 0x403387
push 0x1e
call dword [0x40a0e4]
test eax, eax
je 0x403387
call fcn.004031ba
jmp 0x403387
push 0x1e
call dword [0x40a0e4]
test eax, eax
je 0x403387
push ebx
push fcn.00405580
push ebx
push 3
mov edx, 0x401740
mov ecx, 0x80000002
call fcn.00404fba
jmp 0x403387
Function at 0x4033da
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x494
mov eax, dword [0x409044]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push eax
push 1
push eax
mov edi, eax
call dword [0x40a07c]
mov eax, section..data
push eax
push eax
call fcn.0040363e
movzx eax, word [0x401848]
push eax
push 0x401848
push 2
push dword [0x409004]
push dword [section..data]
call dword [0x40a018]
call fcn.00407376
push edi
call dword [0x40a374]
test eax, eax
js 0x403492
mov ecx, ebx
call fcn.004031f5
mov dword [0x4094e0], eax
mov dword [0x409610], esi
push edi
test al, 1
je 0x40347c
push fcn.00405580
push edi
push 3
mov edx, 0x401740
mov ecx, 0x80000002
call fcn.00404fba
inc edi
jmp 0x40348c
push 0x402f90
push 0
push 0x65
push esi
call dword [0x40a11c]
call dword [0x40a188]
mov esi, 0x488
lea eax, [esp + 0x10]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00408e3b
add esp, 0xc
mov dword [esp + 0x10], esi
lea eax, [esp + 0x10]
mov dword [esp + 0x3c], 0x20000
mov dword [esp + 0x50], 0x20801
mov dword [esp + 0x7c], 0x78
push eax
push 0x401810
push ebx
push ebx
mov dword [esp + 0x90], 0x280
call dword [0x40a2d8]
mov ecx, section..data
call fcn.00403504
mov ecx, dword [esp + 0x49c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004086e0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408894
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x408ed8
call fcn.00408b58
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4088f4
cmp eax, 0xffffffff
je 0x4088f4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4088ed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4088ed
cmp edx, 0x10000000
jae 0x4088ed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4088ea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408960
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40899e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x408996
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4089a0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x408986
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x408a70
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x408aa1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408aa1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x408aa1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40d000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x40d175
cmp dword [esp + 0x54], 0x40
jne 0x40d175
cmp word [esp + 0x10], 0x5a4d
jne 0x40d175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x40d175
lea eax, [esp + 0x54]
push 0
push eax
push pe_nt_image_headers32
push 0x413960
push esi
call ebx
test eax, eax
je 0x40d175
cmp dword [esp + 0x54], 0xf8
jne 0x40d175
cmp dword [0x413960], 0x4550
jne 0x40d175
mov eax, dword [0x413976]
test ah, 0x20
jne 0x40d175
mov edx, dword [0x413a80]
xor eax, eax
mov ax, word [0x413966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x413a58], eax
je 0x40d175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x413a6c], eax
xor eax, eax
mov ax, word [0x413966]
mov edx, dword [0x413a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x40d175
cmp dword [esp + 0x54], edi
jne 0x40d175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x413a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4139b4]
cmp edx, eax
ja 0x40d175
mov edi, dword [0x413a58]
mov ecx, dword [0x413988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x40d175
xor eax, eax
push 2
mov ax, word [0x413966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x40d175
cmp dword [edi - 0x20], ebx
ja 0x40d175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x40f769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413190
cmp edx, dword [eax]
je 0x40f78b
add eax, 8
inc ecx
cmp eax, 0x413220
jl 0x40f77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413190]
jne 0x40f8b9
mov eax, dword [0x413bb0]
cmp eax, 1
je 0x40f893
test eax, eax
jne 0x40f7bc
cmp dword [0x4130e4], 1
je 0x40f893
cmp edx, 0xfc
je 0x40f8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00410670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41245c
push edi
call fcn.00410f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00410670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410680
lea eax, [ebp - 0xa0]
push 0x41243c
push eax
call fcn.00410680
push dword [esi + 0x413194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410e75
add esp, 0x2c
pop edi
jmp 0x40f8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x413194]
push 0
push eax
push dword [esi]
call fcn.00410490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, SysReAllocStringLen
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x403fd5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x407430
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404030
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x40400a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp dword [ebp - 8], edi
je 0x404018
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x404032
cmp dword [ebp - 4], edi
je 0x40402a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x40404f
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.004048c0
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x40404c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430005
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2ca961f8
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7a8a3c88
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401440
Capabilities:
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4112fb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x418080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, edi
call fcn.00401630
test al, al
jne 0x40151f
lea esi, [edi + 0x54]
mov eax, 8
cmp dword [esi + 0x14], eax
jb 0x40148f
mov ecx, dword [esi]
jmp 0x401491
mov ecx, esi
cmp dword [ebx + 0x14], eax
jb 0x40149a
mov eax, dword [ebx]
jmp 0x40149c
mov eax, ebx
push 0x13880
push 0x13880
push ecx
push eax
call fcn.00406b20
add esp, 0x10
test eax, eax
je 0x4014c0
mov dword [edi + 0x70], 3
jmp 0x40160e
mov ecx, edi
mov dword [edi + 0x70], 2
call fcn.00401630
test al, al
jne 0x40151f
mov eax, 8
cmp dword [esi + 0x14], eax
jb 0x4014de
mov esi, dword [esi]
cmp dword [ebx + 0x14], eax
jb 0x4014e7
mov eax, dword [ebx]
jmp 0x4014e9
mov eax, ebx
push 0x13880
push 0x13880
push esi
push eax
call fcn.00406b20
add esp, 0x10
test eax, eax
jne 0x4014b4
mov ecx, edi
mov dword [edi + 0x70], 2
call fcn.00401630
test al, al
jne 0x40151f
mov dword [edi + 0x70], 4
jmp 0x40160e
xor eax, eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], eax
lea eax, [edi + 0x1c]
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x401539
mov eax, dword [eax]
cmp dword [edi + 0x68], ebx
lea esi, [edi + 0x54]
jb 0x401545
mov edx, dword [esi]
jmp 0x401547
mov edx, esi
push edx
mov ecx, eax
call fcn.004022d0
test al, al
je 0x401607
cmp dword [esi + 0x14], ebx
jb 0x40155e
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4015b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.0040c8f0
push esi
lea edx, [ebp - 0x218]
push str.delete_unsuc...........................................................................:_d_n
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [edi + 0x70], 0
jmp 0x40160e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov esi, eax
mov word [ebp - 0x218], cx
call fcn.0040c8f0
push esi
lea eax, [ebp - 0x218]
push str.delete_suc..............:_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [edi + 0x70], 0
jmp 0x40160e
mov dword [edi + 0x70], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408434
mov esp, ebp
pop ebp
ret
Function at 0x401630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4112c8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x418080]
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 ebx, ecx
lea esi, [ebx + 0x54]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x40166e
mov eax, dword [esi]
jmp 0x401670
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401704
cmp dword [ebx + 0x48], 0
je 0x401704
cmp dword [esi + 0x14], edi
jb 0x40168c
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x48]
call fcn.00408230
add esp, 4
mov edx, eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00407360
cmp dword [eax + 0x14], edi
jb 0x4016b0
mov eax, dword [eax]
cmp dword [ebx + 0x4c], edi
lea ecx, [ebx + 0x38]
jb 0x4016ba
mov ecx, dword [ecx]
push eax
push ecx
call fcn.004085cd
add esp, 8
test eax, eax
sete bl
cmp dword [ebp - 0x18], edi
jb 0x4016da
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00408b01
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
jb 0x401700
mov edx, dword [ebp - 0x48]
push edx
call fcn.00408b01
add esp, 4
mov al, bl
jmp 0x401706
xor al, al
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.00408434
mov esp, ebp
pop ebp
ret
Function at 0x4042e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4042e7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4043bd
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 + 0x4157c0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4157c0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4157c0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4157c0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4157c0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4157c0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4157c0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4157c0]
add ecx, 8
sub edx, 8
dec esi
jne 0x404300
pop edi
test edx, edx
je 0x4043da
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4157c0]
inc ecx
dec edx
jne 0x4043c1
not eax
pop esi
ret

Function at 0x4043e0
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 + 0x4157c0]
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 + 0x4157c0]
mov dword [edx + 8], ecx
ret

Function at 0x404430
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 + 0x4157c0]
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 + 0x4157c0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x404bf0
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 0x404c26
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 0x404c1c
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 0x404c37
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.0040d440
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x404c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x404c93
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 0x404c8e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x404cbe
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x404ca5
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.0040d440
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x404cd3
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 0x404ccd
cmp byte [esi + 8], 0
je 0x404ccd
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x404dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x404e07
cmp byte [esi + 1], 0
je 0x404e0f
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 0x404e22
cmp byte [esi + 1], 0
je 0x404e16
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ebx, eax
mov dword [ebp - 4], ebx
jmp 0x404e2a
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x404de1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x404e2a
mov edx, dword [esi + 0x1c]
mov dword [ebp - 4], edx
mov ebx, edx
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x404e3c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00408df7
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x404e59
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 0x404f6d
jmp 0x404e79
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 0x404e88
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 0x404e9f
mov ebx, 0x404
cmp byte [esi], 0
je 0x404ec4
cmp byte [esi + 1], 0
je 0x404f6d
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 0x404ec7
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x404ef0
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 0x404eeb
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x404f19
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x404f01
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.0040d440
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x404f6d
lea eax, [ebx - 3]
test eax, eax
js 0x404f5b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x404f4f
cmp byte [eax + ecx + 1], 0x4b
jne 0x404f4f
cmp byte [eax + ecx + 2], 5
jne 0x404f4f
cmp byte [eax + ecx + 3], 6
je 0x404f55
test eax, eax
jns 0x404f30
jmp 0x404f5b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404f6d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x404e70
mov eax, dword [ebp - 0x10]
push eax
call fcn.00408d7d
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret