joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454501
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x278
mov eax, 0x4d308f
call fcn.004aaeb3
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x11b]
xor ebx, ebx
push 0x103
push ebx
push eax
mov byte [ebp - 0x11c], bl
call fcn.004ab3c0
add esp, 0xc
lea eax, [ebp - 0x11c]
push ebx
push 0x19
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x254]
call fcn.004041e5
push ebx
lea edx, [ebp - 0x254]
mov dword [ebp - 4], ebx
mov ecx, edi
call fcn.0045f377
or dword [ebp - 4], 0xffffffff
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x254]
call fcn.004044e5
mov ebx, 0x4e870e
lea ecx, [ebp - 0x23c]
push ebx
call fcn.004041e5
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x254]
call fcn.004041e5
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 2
push 0
push eax
lea edx, [ebp - 0x254]
mov ecx, edi
call fcn.0045f5a4
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x254]
call fcn.004044e5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
push 0
push 1
call fcn.004044e5
push 0x103
lea eax, [ebp - 0x223]
mov byte [ebp - 0x224], 0
push 0
push eax
call fcn.004ab3c0
add esp, 0xc
lea eax, [ebp - 0x224]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004041e5
mov dword [ebp - 4], 3
lea edx, [ebp - 0x23c]
push 0
mov ecx, edi
call fcn.0045f377
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [ebp - 0x23c]
call fcn.004044e5
push ebx
lea ecx, [ebp - 0x284]
call fcn.004041e5
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x26c]
call fcn.004041e5
xor ebx, ebx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x284]
mov ecx, edi
push ebx
push eax
lea edx, [ebp - 0x26c]
call fcn.0045f5a4
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x26c]
call fcn.004044e5
push ebx
push 1
lea ecx, [ebp - 0x284]
call fcn.004044e5
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x18
cdq
pop ecx
idiv ecx
call fcn.004aae62
ret 4
Function at 0x45471b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov edi, edx
test eax, eax
je 0x454839
test edi, edi
je 0x454839
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, ebx
cdq
push 3
pop ecx
idiv ecx
mov eax, ebx
sub eax, edx
mov dword [ebp - 4], eax
test eax, eax
jle 0x4547bb
push ecx
xor edx, edx
dec eax
pop ebx
div ebx
lea edx, [eax + 1]
movzx ecx, byte [edi]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, ebx
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [edi + 2]
add edi, ebx
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
dec edx
jne 0x45475c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 3
pop ecx
sub ebx, eax
cmp ebx, 1
jne 0x4547e9
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx eax, byte [edi]
and eax, ecx
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
jmp 0x45482a
cmp ebx, 2
jne 0x45482d
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
add ecx, ecx
shr eax, 4
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
mov cl, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], cl
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
sub esi, dword [ebp - 8]
mov eax, esi
pop esi
pop ebx
jmp 0x45483c
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x45565b
Capabilities:
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x4cf5d8
call fcn.004aaeb3
mov edi, edx
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x45569d
push edi
lea ecx, [ebp - 0x28]
call fcn.004041e5
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0045f119
push 0
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.004044e5
mov eax, esi
jmp 0x4556a6
mov edx, edi
mov ecx, esi
call fcn.004555b6
call fcn.004aae62
ret
Function at 0x4556ac
Capabilities:
Delete file

Disassembly:
push 0x44
mov eax, 0x4d3167
call fcn.004aaeb3
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x50], ebx
cmp dword [edi + 0x14], 0x10
jb 0x4556c9
mov ecx, dword [edi]
jmp 0x4556cb
mov ecx, edi
push ecx
push ecx
call fcn.0045d0dd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4556e1
xor al, al
jmp 0x45585e
mov eax, dword [ebx + 4]
xor edx, edx
mov ecx, dword [ebx]
sub eax, ecx
mov dword [ebp - 0x48], edx
push 0x18
cdq
pop ebx
idiv ebx
test eax, eax
je 0x45580e
xor eax, eax
mov dword [ebp - 0x44], eax
add eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.004040ee
and dword [ebp - 4], 0
push 0x4f0494
call fcn.004041c8
mov dword [ebp - 0x4c], eax
pop ecx
test eax, eax
je 0x455787
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x455787
cmp ecx, 0xffffffff
jbe 0x455732
or ecx, 0xffffffff
jmp 0x455733
dec ecx
mov edx, dword [ebp - 0x14]
lea ebx, [ebp - 0x28]
cmp edx, 0x10
cmovae ebx, dword [ebp - 0x28]
add ebx, ecx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x455768
push eax
movsx eax, byte [ebx]
push eax
push 0x4f0494
call fcn.004a6950
add esp, 0xc
test eax, eax
jne 0x455778
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, ecx
cmp ebx, eax
je 0x455787
dec ebx
jmp 0x455745
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub ebx, eax
jmp 0x45578a
or ebx, 0xffffffff
push 0xffffffffffffffff
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004033ea
push eax
lea ecx, [ebp - 0x28]
call fcn.004033c5
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004044e5
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebx]
add eax, dword [ebp - 0x44]
cmp dword [eax + 0x14], 0x10
jb 0x4557c1
mov eax, dword [eax]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
push ecx
cmovae edx, dword [ebp - 0x28]
push ecx
push eax
mov ecx, esi
call fcn.0045d1fd
add esp, 0xc
test eax, eax
jne 0x455820
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push eax
push 1
call fcn.004044e5
mov ecx, dword [ebx]
push 0x18
pop eax
add dword [ebp - 0x44], eax
mov eax, dword [ebx + 4]
sub eax, ecx
inc dword [ebp - 0x48]
push 0x18
cdq
pop ebx
idiv ebx
cmp dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
jb 0x455700
mov ecx, esi
call fcn.00459b04
test al, al
je 0x455857
call fcn.00459aba
jmp 0x45585c
cmp dword [edi + 0x14], 0x10
jb 0x455828
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00459b04
test al, al
je 0x455841
call fcn.00459aba
jmp 0x455846
call fcn.0045d22e
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004044e5
jmp 0x4556da
call fcn.0045d22e
mov al, 1
call fcn.004aae62
ret
Function at 0x457ba4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x457baf
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x457c67
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 + 0x4e2950]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e2950]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e2950]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e2950]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e2950]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e2950]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e2950]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e2950]
dec edi
jne 0x457bca
pop edi
test esi, esi
je 0x457c80
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e2950]
inc edx
dec esi
jne 0x457c6b
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

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

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

Function at 0x458395
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x4583cf
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4583ca
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x4583f6
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x4583df
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.004aa710
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x459005
cmp dword [esi + 4], 0xffffffff
jne 0x459005
lea edi, [esi + 0x140]
mov ebx, 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458fad
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x458fd4
cmp al, 0x2f
je 0x458fd4
push 0x4edea8
push ebx
push edi
call fcn.004a9052
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.0045827b
pop ecx
pop ecx
test eax, eax
jne 0x458fec
mov eax, dword [ebp - 4]
jmp 0x45900a
mov ecx, eax
call fcn.00458633
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x45900a
mov eax, 0x1000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4595bd
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5164b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4595ef
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4595ef
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x4596ab
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x459606
cmp al, 0x5c
jne 0x459608
mov esi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4595fe
cmp esi, ebx
je 0x459647
sub esi, ebx
lea eax, [ebp - 0x20c]
push esi
push ebx
push eax
call fcn.004aa710
add esp, 0xc
cmp esi, 0x104
jae 0x4596bb
lea edx, [ebp - 0x20c]
mov byte [ebp + esi - 0x20c], 0
mov ecx, edi
call fcn.004595bd
mov byte [ebp - 0x108], 0
pop esi
test edi, edi
je 0x459675
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x459658
sub ecx, edx
push edi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004a8c06
add esp, 0xc
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004a9052
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4596ab
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a5088
mov esp, ebp
pop ebp
ret
call fcn.004a7a9c
int3
Function at 0x45ae80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
push esi
push edi
mov esi, ecx
lea eax, [ebx - 1]
cmp eax, 7
jbe 0x45ae9c
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x45aec0
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.004ab3c0
movzx eax, word [ebx*8 + 0x4e4492]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x4e4490]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x4e4494]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x4e4496]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x45af23
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x45af2e
cmp ebx, 8
jl 0x45af2e
mov eax, dword [ebp + 8]
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 0x45af95
cmp eax, 0xffffffff
je 0x45af95
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x45af70
mov ecx, esi
call fcn.0045b150
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 0x45af78
jmp 0x45afa5
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45b293
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, edi
mov ebx, edi
mov dword [ebp - 4], ecx
mov dword [esi + 0x6af80], 2
jmp 0x45b491
cmp dword [esi + 0x6af90], 3
jb 0x45b310
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 0x45b34d
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x45b34d
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x45b337
mov dword [esi + 0x6afa0], eax
mov edx, ecx
mov ecx, esi
call fcn.0045afaa
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
mov ecx, esi
cmp ebx, 3
jb 0x45b41f
mov edx, dword [esi + 0x6af84]
lea eax, [ebx - 3]
sub edx, dword [esi + 0x6af88]
push eax
call fcn.0045a8db
sub dword [esi + 0x6af90], ebx
pop ecx
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x45b3e6
cmp dword [esi + 0x6af90], 3
jb 0x45b3e6
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 0x45b389
mov eax, dword [ebp - 8]
jmp 0x45b43c
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 0x45b442
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.0045a8db
dec dword [esi + 0x6af90]
pop ecx
inc dword [esi + 0x6af84]
test eax, eax
je 0x45b47b
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x45b45a
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x45b45c
mov edx, edi
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push edi
push eax
call fcn.0045a6e3
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x45b48e
mov ecx, esi
call fcn.0045b150
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x6af90], edi
jne 0x45b2b5
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x45b4af
lea edi, [esi + 0x1af70]
add edi, ecx
mov eax, dword [esi + 0x6af84]
mov edx, edi
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.0045a6e3
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c0cb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x45c0d6
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x45c18e
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 + 0x4e4090]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e4090]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e4090]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e4090]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e4090]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e4090]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e4090]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e4090]
dec edi
jne 0x45c0f1
pop edi
test esi, esi
je 0x45c1a7
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4e4090]
inc edx
dec esi
jne 0x45c192
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov edx, 0xff
mov esi, dword [edi]
xor eax, esi
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x4e4090]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, edx
xor eax, dword [ecx*4 + 0x4e4090]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x45c371
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5164b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x4c], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x38]
push eax
push ebx
mov dword [ebp - 0x54], edx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x45c3b1
mov eax, 0x200
jmp 0x45c529
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc ecx
mov edx, eax
and edx, ecx
push 0
pop esi
cmovne esi, ecx
test al, 2
je 0x45c3c8
or esi, 2
test al, 4
je 0x45c3cf
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x45c3d9
or esi, 0x10
test al, 0x20
je 0x45c3e0
or esi, 0x20
test ecx, ecx
je 0x45c3ec
or esi, 0x40000000
jmp 0x45c3f2
or esi, 0x80000000
or esi, 0x1000000
test edx, edx
jne 0x45c402
or esi, 0x800000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp eax, 0x28
jbe 0x45c4b3
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x45c4b0
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0x3c], eax
jbe 0x45c4b0
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x48]
cmp eax, 0x5a4d
je 0x45c4aa
cmp eax, 0x454e
je 0x45c4aa
cmp eax, 0x454c
je 0x45c4aa
cmp eax, 0x4550
jne 0x45c4b0
or esi, 0x400000
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x45c4bc
mov dword [ecx], esi
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x45c4c5
mov dword [ecx], eax
test edi, edi
je 0x45c4fe
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0045c2dc
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.0045c2dc
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.0045c2dc
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x45c527
push dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
push dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
call fcn.0045c300
movzx eax, word [ebp - 0x3c]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x40]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5088
mov esp, ebp
pop ebp
ret