joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0ab7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x2f
pop edx
push 0x5c
pop esi
mov dword [ebp - 0x418], esi
test ebx, ebx
je 0x4b0b5c
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d130c
lea eax, [ebp - 0x20c]
push eax
call fcn.004cde96
add esp, 0x10
test eax, eax
je 0x4b0b39
movzx ecx, word [ebp + eax*2 - 0x20e]
push 0x2f
pop edx
cmp cx, dx
je 0x4b0b1d
cmp cx, si
jne 0x4b0b39
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x4b0c4b
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.004b0c51
pop ecx
test al, al
jne 0x4b0b59
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x2f
pop edx
movzx eax, word [edi]
test ax, ax
je 0x4b0c3a
mov esi, edi
mov ecx, edi
cmp ax, dx
je 0x4b0b7a
cmp ax, word [ebp - 0x418]
jne 0x4b0b7c
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4b0b6c
cmp esi, edi
je 0x4b0bc6
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call fcn.004cf900
add esp, 0xc
cmp esi, 0x208
jae 0x4b0c4b
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004b0ab7
pop ecx
pop ecx
xor eax, eax
mov esi, 0x104
mov word [ebp - 0x414], ax
test ebx, ebx
je 0x4b0be9
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004d130c
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call fcn.004cde96
sub esi, eax
push esi
push edi
lea eax, [ebp + eax*2 - 0x414]
push eax
call fcn.004d130c
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call fcn.004b0c51
add esp, 0x14
test al, al
jne 0x4b0c3a
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
call fcn.004d0f85
int3

Function at 0x4b0c51
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x4b14c7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4b1575
cmp dword [edi + 4], 0xffffffff
jne 0x4b1575
push esi
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call fcn.004cde96
pop ecx
pop esi
lea eax, [edi + eax*2]
movzx ecx, word [eax + 0x242]
cmp ecx, 0x5c
je 0x4b1523
push 0x2f
pop edx
cmp cx, dx
je 0x4b1523
xor ecx, ecx
mov word [eax + 0x244], dx
mov word [eax + 0x246], cx
cmp dword [ebp + 0x10], 1
jne 0x4b153e
push dword [ebp + 8]
call fcn.004b1459
pop ecx
cmp eax, 0xffffffff
jne 0x4b153e
mov eax, 0x2000000
jmp 0x4b157a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b3ca8
add esp, 0x10
test eax, eax
jne 0x4b155c
mov eax, dword [ebp - 4]
jmp 0x4b157a
push eax
call fcn.004b4473
pop ecx
xor ecx, ecx
mov dword [edi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x4b157a
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b1af0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
push esi
mov ecx, dword [edx]
mov esi, 0xff
xor eax, ecx
shr ecx, 8
and eax, esi
mov eax, dword [eax*4 + 0x525c28]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, esi
pop esi
xor eax, dword [ecx*4 + 0x525c28]
mov dword [edx + 8], eax
pop ebp
ret

Function at 0x4b3d9a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4b3dce
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b3dc9
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4b3df5
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x4b3dde
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004cf900
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4b3f1a
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x4b3fd5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x525c28]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x525c28]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x525c28]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x525c28]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x525c28]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x525c28]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x525c28]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x525c28]
dec edi
jne 0x4b3f38
pop edi
test esi, esi
je 0x4b3fee
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x525c28]
inc edx
dec esi
jne 0x4b3fd9
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4b6200
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4b6243
mov eax, 0x200
jmp 0x4b63b7
mov eax, dword [ebp - 0x38]
xor ecx, ecx
push esi
inc ecx
mov edx, eax
and edx, ecx
push 0
pop esi
cmovne esi, ecx
test al, 2
je 0x4b625b
or esi, 2
test al, 4
je 0x4b6262
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x4b626c
or esi, 0x10
test al, 0x20
je 0x4b6273
or esi, 0x20
test ecx, ecx
je 0x4b627f
or esi, 0x40000000
jmp 0x4b6285
or esi, 0x80000000
or esi, 0x1000000
test edx, edx
jne 0x4b6295
or esi, 0x800000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp eax, 0x28
jbe 0x4b6346
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x4b6343
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0x3c], eax
jbe 0x4b6343
push 0
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x48]
cmp eax, 0x5a4d
je 0x4b633d
cmp eax, 0x454e
je 0x4b633d
cmp eax, 0x454c
je 0x4b633d
cmp eax, 0x4550
jne 0x4b6343
or esi, 0x400000
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x4b634f
mov dword [ecx], esi
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4b6358
mov dword [ecx], eax
test ebx, ebx
je 0x4b6388
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004b76c6
push dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ebp - 0x24]
call fcn.004b76c6
push dword [ebp - 0x30]
mov dword [ebx + 4], eax
push dword [ebp - 0x34]
call fcn.004b76c6
add esp, 0x18
mov dword [ebx + 8], eax
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4b63b4
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.004b7653
movzx ecx, word [ebp - 0x40]
add esp, 0x10
movzx eax, word [ebp - 0x3c]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
Function at 0x4b6c5f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4b6c6d
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x4b6d28
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x527f98]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x527f98]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x527f98]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x527f98]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x527f98]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x527f98]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x527f98]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x527f98]
dec edi
jne 0x4b6c8b
pop edi
test esi, esi
je 0x4b6d41
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x527f98]
inc edx
dec esi
jne 0x4b6d2c
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4b7416
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ecx, edi
mov ebx, edi
mov dword [ebp - 4], ecx
mov dword [esi + 0x6af80], 2
jmp 0x4b7619
cmp dword [esi + 0x6af90], 3
jb 0x4b7493
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4b74d0
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x4b74d0
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4b74ba
mov dword [esi + 0x6afa0], eax
push ecx
push esi
call fcn.004b7f9a
pop ecx
pop ecx
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
cmp ebx, 3
jb 0x4b75a4
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.004b6f78
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x4b756b
cmp dword [esi + 0x6af90], 3
jb 0x4b756b
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
dec ebx
jne 0x4b750e
mov eax, dword [ebp + 8]
jmp 0x4b75c3
add dword [esi + 0x6af84], ebx
mov ebx, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp + 8]
jmp 0x4b75c9
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push edi
push esi
call fcn.004b6f78
add esp, 0xc
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x4b7603
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4b75e1
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x4b75e3
mov edx, edi
mov eax, dword [esi + 0x6af84]
push edi
sub eax, ecx
push eax
push edx
push esi
call fcn.004b7828
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4b7616
push esi
call fcn.004b76ea
pop ecx
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x6af90], edi
jne 0x4b7438
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4b7637
lea edi, [esi + 0x1af70]
add edi, ecx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push edi
push esi
call fcn.004b7828
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7e6e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebx - 1]
cmp eax, 7
jbe 0x4b7e8c
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x4b7eb0
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.004ce800
movzx eax, word [ebx*8 + 0x527f4a]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x527f48]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x527f4c]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x527f4e]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x4b7f13
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x4b7f1e
cmp ebx, 8
jl 0x4b7f1e
mov eax, dword [ebp + 0x10]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x4b7f85
cmp eax, 0xffffffff
je 0x4b7f85
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x4b7f60
push esi
call fcn.004b76ea
pop ecx
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x4b7f68
jmp 0x4b7f95
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4b8cb7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4b8d07
mov eax, dword [edi + 0x80]
mov esi, dword [edi + 0x7c]
cmp eax, esi
jae 0x4b8d44
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.004cf900
add dword [edi + 0x80], esi
add dword [edi + 0x68], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x6c]
call fcn.004b6c5f
add esp, 0x18
mov dword [edi + 0x6c], eax
mov eax, esi
jmp 0x4b8d46
cmp dword [edi + 0x70], 0
je 0x4b8d3d
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b8d44
mov esi, dword [ebp - 4]
add dword [edi + 0x68], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x6c]
call fcn.004b6c5f
add esp, 0xc
jmp 0x4b8d00
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
push esi
mov ecx, dword [edx]
mov esi, 0xff
xor eax, ecx
shr ecx, 8
and eax, esi
mov eax, dword [eax*4 + 0x527f98]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, esi
pop esi
xor eax, dword [ecx*4 + 0x527f98]
mov dword [edx + 8], eax
pop ebp
ret

Function at 0x4b91e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x4b9262
cmp dword [esi + 0x3c], 0
je 0x4b921b
cmp dword [esi + 0x40], edi
jae 0x4b9215
push dword [esi + 0x3c]
call fcn.004cdb8c
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x4b922b
lea eax, [edi + edi]
push eax
call fcn.004ce9a6
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.004cf900
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x4b925f
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ecx
call fcn.004b92bc
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x4b9241
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4b9291
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x4b927d
mov dword [esi + 0x14], 0x30000
jmp 0x4b92b3
push edi
add ecx, edx
push ebx
push ecx
call fcn.004cf900
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x4b92b5
mov eax, dword [esi + 4]
test eax, eax
je 0x4b92ac
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x4b92b5
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4b99a7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b99c1
test al, 0x10
jne 0x4b99c1
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4b9b37
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8c
mov eax, dword [0x54e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0xe84], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x24c
mov dword [ebp - 0xe88], eax
lea eax, [ebp - 0xe80]
push 0
push eax
call fcn.004ce800
xor eax, eax
mov ebx, 0x40e
push ebx
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.004ce800
xor eax, eax
push ebx
push eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push eax
call fcn.004ce800
xor eax, eax
push ebx
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004ce800
push edi
call fcn.004b99a7
add esp, 0x34
test eax, eax
je 0x4b9be4
test esi, esi
je 0x4b9d42
lea eax, [ebp - 0xe84]
push eax
push edi
call esi
jmp 0x4b9d42
push edi
lea eax, [ebp - 0xc34]
push 0x5288a8
push eax
call fcn.004d1a96
add esp, 0xc
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0xe8c], ebx
cmp ebx, 0xffffffff
je 0x4b9d42
test byte [ebp - 0xe84], 0x10
lea eax, [ebp - 0xe58]
je 0x4b9cef
push 0x525680
push eax
call fcn.004cde58
pop ecx
pop ecx
test eax, eax
je 0x4b9d1d
lea eax, [ebp - 0xe58]
push 0x52566c
push eax
call fcn.004cde58
pop ecx
pop ecx
test eax, eax
je 0x4b9d1d
lea eax, [ebp - 0xe58]
push eax
push edi
lea eax, [ebp - 0x414]
push 0x5288b4
push eax
call fcn.004d1a96
mov eax, dword [ebp - 0xe88]
add esp, 0x10
test eax, eax
je 0x4b9cd5
lea ecx, [ebp - 0xe84]
push ecx
lea ecx, [ebp - 0x414]
push ecx
call eax
test eax, eax
jne 0x4b9ccf
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.004cdece
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4b9d35
push ebx
call fcn.004cde96
add eax, eax
push eax
push 0
push ebx
call fcn.004ce800
mov ebx, dword [ebp - 0xe8c]
add esp, 0x10
mov eax, dword [ebp - 0xe88]
push eax
push esi
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004b9b37
add esp, 0x10
jmp 0x4b9d1d
push eax
push edi
lea eax, [ebp - 0x824]
push 0x5288b4
push eax
call fcn.004d1a96
add esp, 0x10
test esi, esi
je 0x4b9d1d
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0x824]
push eax
call esi
test eax, eax
je 0x4b9d3b
lea eax, [ebp - 0xe84]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b9c1e
jmp 0x4b9d3b
mov ebx, dword [ebp - 0xe8c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce7ef
mov esp, ebp
pop ebp
ret
Function at 0x4ba046
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4ba054
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jl 0x4ba111
push edi
mov edi, esi
shr edi, 3
imul eax, edi, 0xfffffff8
add esi, eax
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5288c8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5288c8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5288c8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5288c8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5288c8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5288c8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5288c8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5288c8]
dec edi
jne 0x4ba077
pop edi
test esi, esi
je 0x4ba12a
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x5288c8]
inc edx
dec esi
jne 0x4ba115
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret