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

Disassembly:
push 0xffffffffffffffff
push 0x414b08
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0x7c], eax
push esi
mov eax, dword [0x41c050]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x174]
sub ecx, dword [esi + 0x170]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x402860
call fcn.00409f0d
mov eax, dword [esi + 0x170]
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x70], cx
push ecx
add eax, 0x1c
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
call fcn.00401760
push 1
mov eax, 0x4196f0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x94], 0
call fcn.00401510
push 0
add esi, 0x180
push esi
or eax, 0xffffffff
lea esi, [esp + 0x70]
call fcn.004016a0
push 0x44
lea edx, [esp + 0x20]
push 0
push edx
call fcn.0040a7f0
xor eax, eax
mov esi, 8
add esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], 0x44
cmp dword [esp + 0x80], esi
jae 0x402903
lea eax, [esp + 0x6c]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [esp + 0x80], esi
jb 0x402938
mov eax, dword [esp + 0x6c]
push eax
call fcn.00409270
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0040913f
add esp, 0x8c
ret

Function at 0x402960
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
push 0x100
lea edi, [esi + 4]
push 0
push edi
mov dword [esp + 0x10], 0
call fcn.0040a7f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x158]
add esp, 0xc
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x158]
push 0
lea edx, [esp + 8]
push edx
push 0x100
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop ecx
ret 4

Function at 0x4029c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
xor esi, esi
nop
xor eax, eax
push eax
push eax
push esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
call ebx
push 0
lea eax, [esp + 0x10]
push eax
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push edi
call ebp
mov eax, 0x10
xor ecx, ecx
cmp eax, 4
jb 0x402a3f
mov edx, dword [esp + ecx + 0x10]
cmp edx, dword [ecx + 0x419488]
jne 0x402a2d
sub eax, 4
add ecx, 4
jmp 0x402a14
mov eax, dword [esp + 0x28]
add esi, 0x4000
cmp esi, dword [eax + 0x15c]
jl 0x4029e0
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0x10]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040913f
add esp, 0x18
ret 4
Function at 0x402a60
Capabilities:
Create directory
Print debug messages
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x414d4b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c050]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x144]
mov edi, ecx
lea eax, [edi + 0x120]
mov ebx, edx
push eax
lea esi, [esp + 0x1c]
call fcn.00403ff0
add esp, 4
xor esi, esi
mov dword [esp + 0x13c], esi
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x402ad1
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xfc
lea ecx, [esp + 0x38]
push esi
push ecx
mov dword [esp + 0x20], esi
call fcn.0040a7f0
mov edx, dword [edi + 0x158]
add esp, 0xc
push esi
push esi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [edi + 0x158]
push esi
lea eax, [esp + 0x18]
push eax
push 0xfc
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
cmp ebx, esi
je 0x402b62
mov edx, dword [edi]
mov edx, dword [edx + 4]
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call edx
mov edx, dword [edi]
mov edx, dword [edx + 8]
sub eax, 0x100
push eax
mov eax, dword [edi + 0x158]
lea esi, [ebp + 0x100]
push esi
push eax
mov ecx, edi
call edx
cmp eax, dword [esp + 0x11c]
je 0x402b70
push 0x4196f4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esp + 0x30], 8
jb 0x402bcd
mov eax, dword [esp + 0x1c]
push eax
jmp 0x402bc5
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x402b7f
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00402c00
mov ecx, dword [esp + 0x34]
lea edx, [ecx + ebp + 0x100]
push edx
push edi
call fcn.00403000
mov eax, dword [esp + 0x1c]
mov esi, 8
cmp dword [esp + 0x30], esi
jae 0x402bac
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x104]
push ecx
push eax
push edi
call fcn.004031c0
cmp dword [esp + 0x30], esi
jb 0x402bcd
mov edx, dword [esp + 0x1c]
push edx
call fcn.00409270
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040913f
add esp, 0x12c
ret 4
Function at 0x402c00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x414d0b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
mov eax, dword [0x41c050]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov edx, dword [edi + 0x158]
mov eax, dword [esp + 0x158]
xor ebp, ebp
push ebp
push ebp
push ecx
push edx
mov dword [esp + 0x24], eax
xor esi, esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [edi + 0x158]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push edx
call ebx
test eax, eax
je 0x402e33
push 0x10c
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.0040a7f0
mov eax, dword [edi + 0x158]
add esp, 0xc
push ebp
lea ecx, [esp + 0x14]
push ecx
push pe_nt_image_headers32
lea edx, [esp + 0x44]
push edx
push eax
call ebx
push ebp
lea ecx, [esp + 0x14]
push ecx
push 4
mov esi, eax
mov eax, dword [edi + 0x158]
lea edx, [esp + 0x134]
push edx
push eax
and esi, 1
call ebx
push ebp
lea ecx, [esp + 0x14]
push ecx
push 8
lea edx, [esp + 0x144]
and esi, eax
mov eax, dword [edi + 0x158]
push edx
push eax
call ebx
push ebp
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x14c]
and esi, eax
mov eax, dword [edi + 0x158]
push edx
push eax
call ebx
and esi, eax
mov eax, dword [esp + 0x130]
cmp eax, ebp
je 0x402d22
push eax
call fcn.0040927b
add esp, 4
mov dword [esp + 0x130], ebp
mov ecx, dword [esp + 0x128]
push ecx
call fcn.00409058
mov edx, dword [esp + 0x12c]
push edx
push ebp
push eax
mov dword [esp + 0x140], eax
call fcn.0040a7f0
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x140]
add esp, 0x10
push ebp
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x158]
push ecx
push edx
push eax
call ebx
test eax, eax
je 0x402e33
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], cx
lea edx, [eax + 2]
jmp 0x402d90
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402d90
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x20]
call fcn.004015f0
push 1
mov eax, 0x4196d8
mov ecx, esi
mov dword [esp + 0x154], ebp
call fcn.00401510
lea eax, [esp + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402dc7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x20]
call fcn.00401510
lea edx, [esp + 0x1c]
push edx
lea ebx, [edi + 0x164]
call fcn.004037c0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
call fcn.00402e60
mov esi, eax
mov eax, dword [esp + 0x130]
cmp eax, ebp
je 0x402e1f
push eax
call fcn.0040927b
add esp, 4
mov dword [esp + 0x130], ebp
cmp dword [esp + 0x34], 8
jb 0x402e33
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00409270
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0040913f
add esp, 0x144
ret 4
Function at 0x402e60
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x414ad3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
push edi
mov eax, dword [0x41c050]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
je 0x402ffc
xor ecx, ecx
mov word [esp + 0x1c], cx
mov ecx, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x402ec0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x1c]
call fcn.004015f0
push 1
mov eax, 0x4196d8
mov ecx, esi
mov dword [esp + 0x44], ebx
call fcn.00401510
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402ef0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x1c]
call fcn.00401510
mov eax, dword [0x41db4c]
cmp eax, ebx
jne 0x402f3a
push 0x20
call fcn.0040936f
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x40], 1
cmp eax, ebx
je 0x402f33
push eax
call fcn.00401ea0
jmp 0x402f35
xor eax, eax
mov dword [0x41db4c], eax
cmp dword [eax], ebx
mov eax, dword [esp + 0x1c]
je 0x402f57
cmp dword [esp + 0x30], 8
jae 0x402f4d
lea eax, [esp + 0x1c]
push ebx
push 0x80
push 1
jmp 0x402f6a
cmp dword [esp + 0x30], 8
jae 0x402f62
lea eax, [esp + 0x1c]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
je 0x402fe1
cmp esi, 0xffffffff
je 0x402fe1
mov eax, dword [edi + 0xf0]
mov ecx, dword [edi + 0xf8]
push ebx
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], 8
jb 0x402fbf
mov edx, dword [esp + 0x1c]
push edx
call fcn.00409270
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0040913f
add esp, 0x34
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], 8
jb 0x402ffc
mov eax, dword [esp + 0x1c]
push eax
call fcn.00409270
add esp, 4
mov eax, ebx
jmp 0x402fc1
Function at 0x403000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edi]
lea eax, [edi + 0x104]
push eax
mov eax, dword [edx + 0xc]
mov ecx, edi
xor ebx, ebx
xor esi, esi
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 0x158]
push ebx
push ebx
push ecx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [edi + 0x158]
push ebx
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4031aa
mov edx, dword [edi + 0x158]
mov esi, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4031aa
add esi, dword [esp + 0x10]
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jle 0x4031aa
jmp 0x4030a5
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x10c
mov dword [esp + 0x10], ebx
call fcn.0040936f
add esp, 4
push 0x10c
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x2c], ebx
call fcn.0040a7f0
mov ecx, dword [edi + 0x158]
add esp, 0xc
push 0
lea eax, [esp + 0x10]
push eax
push pe_nt_image_headers32
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add esi, dword [esp + 0xc]
push 0
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx + 0x158]
mov edi, eax
push 4
lea eax, [ebx + 0xf0]
push eax
push edx
and edi, 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 8]
add esi, dword [esp + 0xc]
push 0
and edi, eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx + 0x158]
push 8
lea ecx, [ebx + 0x100]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
add ebx, 0x108
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x158]
push edx
and edi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [esp + 0xc]
and edi, eax
test edi, edi
je 0x403197
mov edi, dword [ebx + 0x118]
mov ecx, dword [edi + 4]
lea eax, [ebx + 0x104]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push ecx
push edi
call fcn.00403aa0
mov ecx, dword [esp + 0x24]
mov ebx, eax
call fcn.00403ae0
mov dword [edi + 4], ebx
mov edx, dword [ebx + 4]
mov dword [edx], ebx
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jl 0x4030a0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4031c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
mov esi, dword [eax + 0x14]
mov eax, dword [eax]
cmp edi, ebx
je 0x4031ed
cmp edi, eax
je 0x4031f2
call fcn.00409f0d
cmp dword [esp + 0x1c], esi
je 0x4032fb
cmp edi, ebx
jne 0x4032f0
call fcn.00409f0d
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x14]
jne 0x403219
call fcn.00409f0d
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 8]
cmp esi, ebx
je 0x4032c5
mov eax, dword [esi + 0xf8]
cmp eax, ebx
je 0x403241
push eax
call fcn.0040927b
add esp, 4
mov dword [esi + 0xf8], ebx
mov eax, dword [esi + 0xf0]
push eax
call fcn.00409058
mov ecx, dword [esi + 0xf0]
push ecx
push ebx
push eax
mov dword [esi + 0xf8], eax
call fcn.0040a7f0
mov eax, dword [esi + 0xf0]
mov ecx, dword [esi + 0xf8]
add esp, 0x10
push ebx
lea edx, [esp + 0x18]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx + 0x158]
push ecx
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4032fb
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00402e60
mov eax, dword [esi + 0xf8]
mov dword [esp + 0x10], 1
cmp eax, ebx
je 0x4032bc
push eax
call fcn.0040927b
add esp, 4
mov dword [esi + 0xf8], ebx
push esi
call fcn.00409270
add esp, 4
cmp edi, ebx
jne 0x4032f7
call fcn.00409f0d
xor eax, eax
mov edx, dword [esp + 0x1c]
cmp edx, dword [eax + 0x14]
jne 0x4032de
call fcn.00409f0d
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
jmp 0x4031e0
mov eax, dword [edi]
jmp 0x40320b
mov eax, dword [edi]
jmp 0x4032d0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403ff0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x414bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x41c050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00401760
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404046
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00401510
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00401760
cmp dword [esp + 0x24], 8
jb 0x40408f
mov edx, dword [esp + 0x10]
push edx
call fcn.00409270
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x406890
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x406897
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x406974
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 + 0x419088]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x419088]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x419088]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419088]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419088]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419088]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419088]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x419088]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4068b0
pop edi
test edx, edx
je 0x40699b
jmp 0x406980
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x419088]
inc ecx
sub edx, 1
jne 0x406980
not eax
pop esi
ret

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

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

Function at 0x4071a0
Capabilities:
Read file on windows

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

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x407233
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40722d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40725f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x407245
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0040a870
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x407276
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x407270
cmp byte [esi + 8], 0
je 0x407270
or eax, 0xffffffff
add esp, 8
ret
Function at 0x407310
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x407355
cmp byte [esi + 1], 0
je 0x40735d
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 ebp
je 0x407372
cmp byte [esi + 1], 0
je 0x407364
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40737b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40732e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40737b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x40738f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0040950e
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4073ad
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x4074c1
jmp 0x4073d0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x4073e1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x4073fa
mov ebp, 0x404
cmp byte [esi], 0
je 0x40741f
cmp byte [esi + 1], 0
je 0x4074c1
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 0x407422
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40744a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407444
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x407470
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40745b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0040a870
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x4074c1
lea eax, [ebp - 3]
test eax, eax
jl 0x4074ac
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40749c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40749c
cmp byte [eax + ebx + 2], 5
jne 0x40749c
cmp byte [eax + ebx + 3], 6
je 0x4074a2
test eax, eax
jge 0x407480
jmp 0x4074ac
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x4074c1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4073c4
push ebx
call fcn.00409431
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret