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

Disassembly:
push 0xffffffffffffffff
push 0x1006b9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100810f0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x58]
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x4c]
push 0x1007ab24
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.1004feae
add esp, 0xc
test eax, eax
je 0x10007e6f
push ebp
mov ecx, str.false
call fcn.10002620
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x10007f8a
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
mov edx, dword [0x100829cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x100829cc
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
mov byte [esp + 0x4c], 1
mov esi, dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.DLL_GetACP]
push eax
push esi
lea ebx, [esp + 0x2c]
call fcn.1000d100
sub esp, 0x14
mov edi, esp
mov byte [esp + 0x68], 2
movzx edx, word [esp + 0x3a]
mov esi, eax
movzx eax, word [esp + 0x38]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [esp + 0x3c]
push ecx
movzx ecx, word [esp + 0x3a]
push edx
movzx edx, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3c]
push ecx
push edx
push eax
push str.__4d__02d__02d__02d:_02d:_02d___s_n
lea edi, [esp + 0x90]
call fcn.1000bd80
add esp, 0x38
mov byte [esp + 0x4c], 1
cmp dword [esp + 0x3c], 0x10
jb 0x10007f0f
mov ecx, dword [esp + 0x28]
push ecx
call fcn.1004ea14
add esp, 4
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov eax, dword [esi - 0xc]
push edx
push 1
push eax
xor ebx, ebx
push esi
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.10050063
mov eax, dword [esp + 0x64]
push eax
call fcn.1005015c
add esp, 0x14
push ebp
mov ecx, str.true
call fcn.10002620
lea eax, [esi - 0x10]
mov byte [esp + 0x4c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007f6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007f96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0xc
Function at 0x100083b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1006b000
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x100810f0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov eax, dword [0x100829cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x100829cc
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x28]
mov edx, dword [ecx + 0x50]
push eax
push str.0.8.4
push edx
push str._sres_mods_s_s
lea edi, [esp + 0x34]
call fcn.1000bd60
mov esi, dword [esp + 0x34]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, str.true
cmp eax, 1
je 0x1000843f
mov ecx, str.false
push ebp
call fcn.10002620
lea eax, [esi - 0x10]
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008466
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000848e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0xc

Function at 0x10008840
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1006b908
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100810f0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x100810f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x40]
push 0xfde9
push eax
lea ebx, [esp + 0x18]
call fcn.1000d100
mov esi, dword [esi + 0x40]
push 0x1007ac14
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.1004feae
mov eax, dword [esp + 0x28]
mov esi, 0x10
add esp, 0x14
cmp dword [esp + 0x28], esi
jae 0x100088b6
lea eax, [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
push edx
push 1
push ecx
push eax
call fcn.10050063
mov edx, dword [esp + 0x1c]
push edx
call fcn.1005015c
add esp, 0x14
cmp dword [esp + 0x28], esi
jb 0x100088e8
mov eax, dword [esp + 0x14]
push eax
call fcn.1004ea14
add esp, 4
xor eax, eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008922
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1004ea1f
add esp, 0x30
ret 4
Function at 0x10008950
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1006b908
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100810f0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x100810f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x40]
push 0xfde9
push eax
lea ebx, [esp + 0x18]
call fcn.1000d100
mov esi, dword [esi + 0x44]
push 0x1007ac14
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.1004feae
mov eax, dword [esp + 0x28]
mov esi, 0x10
add esp, 0x14
cmp dword [esp + 0x28], esi
jae 0x100089c6
lea eax, [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
push edx
push 1
push ecx
push eax
call fcn.10050063
mov edx, dword [esp + 0x1c]
push edx
call fcn.1005015c
add esp, 0x14
cmp dword [esp + 0x28], esi
jb 0x100089f8
mov eax, dword [esp + 0x14]
push eax
call fcn.1004ea14
add esp, 4
xor eax, eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008a32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1004ea1f
add esp, 0x30
ret 4
Function at 0x10008a60
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x48]
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
test ebx, ebx
jne 0x10008aa7
push 0x1007ac1c
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x1c]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esi + 0x18]
mov edi, dword [eax]
mov esi, dword [esi]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
lea ebx, [ebx]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x24], ecx
test esi, esi
je 0x10008af4
cmp esi, eax
je 0x10008af9
call fcn.1004f1fa
cmp edi, dword [esp + 0x24]
je 0x10008c01
test esi, esi
jne 0x10008beb
call fcn.1004f1fa
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x10008b1c
call fcn.1004f1fa
mov edx, dword [edi + 0xc]
mov eax, dword [edx - 0xc]
push 0
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + eax + 2]
push 4
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test esi, esi
jne 0x10008bf2
call fcn.1004f1fa
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x10008b58
call fcn.1004f1fa
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test esi, esi
jne 0x10008bf9
call fcn.1004f1fa
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x10008b88
call fcn.1004f1fa
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx - 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
lea eax, [edx + edx + 2]
push 4
lea edx, [esp + 0x1c]
push edx
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test esi, esi
jne 0x10008bfd
call fcn.1004f1fa
cmp edi, dword [esi + 0x18]
jne 0x10008bbe
call fcn.1004f1fa
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x18]
call fcn.10017800
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x10008ae0
mov eax, dword [esi]
jmp 0x10008b12
mov eax, dword [esi]
jmp 0x10008b4e
mov eax, dword [esi]
jmp 0x10008b7e
mov esi, dword [esi]
jmp 0x10008bb4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10009060
Capabilities:
Access peb ldr_data
Create thread
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1006b8b1
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100810f0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, dword [esp + 0x78]
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x70], 1
mov eax, dword [0x100829cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x100829cc
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
push ebp
mov byte [esp + 0x74], 2
mov eax, dword [esp + 0x80]
mov esi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
push ebp
push 1
push ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
call esi
push ebp
push ebp
push 1
push ebp
mov dword [esp + 0x44], eax
call esi
lea ecx, [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x34]
push edx
push 0x10009270
push ebp
push ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call ebp
call fcn.100501f9
cdq
lea esi, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
call fcn.10003a20
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
add esi, 0xfffffff0
mov eax, esi
call fcn.10003bd0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add eax, 0x10
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
lea eax, [esp + 0x4c]
push eax
add ebx, 0x20
push ebx
lea ebx, [esp + 0x28]
mov byte [esp + 0x78], 3
call fcn.1000a0f0
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009186
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov edx, dword [esp + 0x34]
push 0x88b8
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esp + 0x34]
push eax
call ebp
mov edx, dword [0x100829cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x100829cc
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esp + 0x18]
push ecx
mov ebx, 1
push 0x1007ac98
mov dword [esp + 0x24], ebx
call fcn.1000bd60
mov edx, dword [esp + 0x20]
push edx
push 0x1007aca0
call fcn.1000d080
add esp, 0x10
mov byte [esp + 0x70], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10009204
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009229
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8
Function at 0x1000d080
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x14004
call fcn.10054470
mov eax, dword [0x100810f0]
xor eax, esp
mov dword [esp + 0x14000], eax
xor eax, eax
push 0x13ffe
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.10050860
mov eax, dword [esp + 0x14014]
lea edx, [esp + 0x14018]
push edx
push eax
push 0x13fff
lea ecx, [esp + 0x18]
push 0xa000
push ecx
call fcn.1004fda6
add esp, 0x20
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov ecx, dword [esp + 0x14000]
xor ecx, esp
call fcn.1004ea1f
add esp, 0x14004
ret
Function at 0x10012600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
mov edi, eax
test ebp, ebp
je 0x100126c8
test edi, edi
je 0x100126c8
push esi
push pe_nt_image_headers32
call fcn.1004e8b8
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.100126d0
add esp, 8
test eax, eax
jne 0x1001263a
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x14]
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x100126b2
sub ebp, edi
mov dword [esp + 0x10], edx
push ebx
lea ecx, [ecx]
inc eax
and eax, 0x800000ff
jns 0x1001265f
dec eax
or eax, 0xffffff00
inc eax
movzx edx, byte [eax + esi]
add ecx, edx
and ecx, 0x800000ff
jns 0x10012675
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [ecx + esi]
mov dl, byte [eax + esi]
mov byte [eax + esi], bl
mov byte [ecx + esi], dl
movzx edx, byte [eax + esi]
movzx ebx, byte [ecx + esi]
add edx, ebx
and edx, 0x800000ff
jns 0x1001269b
dec edx
or edx, 0xffffff00
inc edx
movzx edx, byte [edx + esi]
xor dl, byte [edi + ebp]
inc edi
sub dword [esp + 0x14], 1
mov byte [edi - 1], dl
jne 0x10012650
mov edx, dword [esp + 0x18]
pop ebx
mov eax, dword [esp + 0x1c]
push esi
mov dword [eax], edx
call fcn.1004fdc6
add esp, 4
pop esi
pop edi
or eax, 0xffffffff
pop ebp
ret
pop edi
xor eax, eax
pop ebp
ret

Function at 0x100126d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor eax, eax
push ebp
mov ebp, dword [esp + 8]
test esi, esi
je 0x10012731
jmp 0x100126e0
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x100126e0
push edi
xor edi, edi
xor ecx, ecx
mov eax, ecx
cdq
idiv ebp
movzx eax, byte [edx + str.WOTBoxDuowan___Coofly]
movzx edx, byte [ecx + esi]
add eax, edi
add edx, eax
mov edi, edx
and edi, 0x800000ff
jns 0x10012716
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ecx + esi]
mov dl, byte [edi + esi]
mov byte [ecx + esi], dl
inc ecx
cmp ecx, 0x100
mov byte [edi + esi], al
jl 0x100126f0
mov eax, 0xffffffff
pop edi
pop ebp
ret
Function at 0x100145a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x100145a7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x10014684
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 + 0x1007c498]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x1007c498]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x1007c498]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1007c498]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1007c498]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1007c498]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1007c498]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1007c498]
inc ecx
sub edx, 8
sub esi, 1
jne 0x100145c0
pop edi
test edx, edx
je 0x100146ab
jmp 0x10014690
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x1007c498]
inc ecx
sub edx, 1
jne 0x10014690
not eax
pop esi
ret

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

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

Function at 0x10014e60
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x10014e92
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 0x10014e88
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 0x10014ea5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.100508e0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x10014ec0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x10014ef3
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 0x10014eed
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x10014f1f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x10014f05
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.100508e0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x10014f36
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 0x10014f30
cmp byte [esi + 8], 0
je 0x10014f30
or eax, 0xffffffff
add esp, 8
ret
Function at 0x10015020
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x10015065
cmp byte [esi + 1], 0
je 0x1001506d
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 0x10015082
cmp byte [esi + 1], 0
je 0x10015074
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 ebp, eax
mov dword [esp + 4], ebp
jmp 0x1001508b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x1001503e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x1001508b
mov edx, dword [esi + 0x1c]
mov dword [esp + 4], edx
mov ebp, edx
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x1001509f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.10051230
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100150bd
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 0x100151d1
jmp 0x100150e0
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 0x100150f1
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 0x1001510a
mov ebp, 0x404
cmp byte [esi], 0
je 0x1001512f
cmp byte [esi + 1], 0
je 0x100151d1
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 0x10015132
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x1001515a
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 0x10015154
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x10015180
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x1001516b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.100508e0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x100151d1
lea eax, [ebp - 3]
test eax, eax
jl 0x100151bc
dec eax
cmp byte [eax + ebx], 0x50
jne 0x100151ac
cmp byte [eax + ebx + 1], 0x4b
jne 0x100151ac
cmp byte [eax + ebx + 2], 5
jne 0x100151ac
cmp byte [eax + ebx + 3], 6
je 0x100151b2
test eax, eax
jge 0x10015190
jmp 0x100151bc
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x100151d1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x100150d4
push ebx
call fcn.10051153
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret