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

Disassembly:
push 0x278
mov eax, 0x4d1f53
call fcn.004a9f73
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.004aa670
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.00404860
push ebx
lea edx, [ebp - 0x254]
mov dword [ebp - 4], ebx
mov ecx, edi
call fcn.0045c9ef
or dword [ebp - 4], 0xffffffff
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x254]
call fcn.00404b60
mov ebx, 0x4e77ae
lea ecx, [ebp - 0x23c]
push ebx
call fcn.00404860
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x254]
call fcn.00404860
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 2
push 0
push eax
lea edx, [ebp - 0x254]
mov ecx, edi
call fcn.0045cc1c
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x254]
call fcn.00404b60
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
push 0
push 1
call fcn.00404b60
push 0x103
lea eax, [ebp - 0x223]
mov byte [ebp - 0x224], 0
push 0
push eax
call fcn.004aa670
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.00404860
mov dword [ebp - 4], 3
lea edx, [ebp - 0x23c]
push 0
mov ecx, edi
call fcn.0045c9ef
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [ebp - 0x23c]
call fcn.00404b60
push ebx
lea ecx, [ebp - 0x284]
call fcn.00404860
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x26c]
call fcn.00404860
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.0045cc1c
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x26c]
call fcn.00404b60
push ebx
push 1
lea ecx, [ebp - 0x284]
call fcn.00404b60
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x18
cdq
pop ecx
idiv ecx
call fcn.004a9f22
ret 4
Function at 0x451dc3
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 0x451ee1
test edi, edi
je 0x451ee1
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 0x451e63
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 0x451e04
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 3
pop ecx
sub ebx, eax
cmp ebx, 1
jne 0x451e91
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 0x451ed2
cmp ebx, 2
jne 0x451ed5
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 0x451ee4
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x452d05
Capabilities:
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x4ce928
call fcn.004a9f73
mov edi, edx
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x452d47
push edi
lea ecx, [ebp - 0x28]
call fcn.00404860
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0045c7a2
push 0
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00404b60
mov eax, esi
jmp 0x452d50
mov edx, edi
mov ecx, esi
call fcn.00452c60
call fcn.004a9f22
ret
Function at 0x452d56
Capabilities:
Delete file

Disassembly:
push 0x44
mov eax, 0x4d202b
call fcn.004a9f73
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x50], ebx
cmp dword [edi + 0x14], 0x10
jb 0x452d73
mov ecx, dword [edi]
jmp 0x452d75
mov ecx, edi
push ecx
push ecx
call fcn.0045a784
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x452d8b
xor al, al
jmp 0x452f08
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 0x452eb8
xor eax, eax
mov dword [ebp - 0x44], eax
add eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00404769
and dword [ebp - 4], 0
push 0x4ef204
call fcn.00404843
mov dword [ebp - 0x4c], eax
pop ecx
test eax, eax
je 0x452e31
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x452e31
cmp ecx, 0xffffffff
jbe 0x452ddc
or ecx, 0xffffffff
jmp 0x452ddd
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 0x452e12
push eax
movsx eax, byte [ebx]
push eax
push 0x4ef204
call fcn.004a5be0
add esp, 0xc
test eax, eax
jne 0x452e22
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, ecx
cmp ebx, eax
je 0x452e31
dec ebx
jmp 0x452def
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub ebx, eax
jmp 0x452e34
or ebx, 0xffffffff
push 0xffffffffffffffff
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040371a
push eax
lea ecx, [ebp - 0x28]
call fcn.004036f5
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00404b60
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebx]
add eax, dword [ebp - 0x44]
cmp dword [eax + 0x14], 0x10
jb 0x452e6b
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.0045a8a4
add esp, 0xc
test eax, eax
jne 0x452eca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push eax
push 1
call fcn.00404b60
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 0x452daa
mov ecx, esi
call fcn.004571ab
test al, al
je 0x452f01
call fcn.00457161
jmp 0x452f06
cmp dword [edi + 0x14], 0x10
jb 0x452ed2
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.004571ab
test al, al
je 0x452eeb
call fcn.00457161
jmp 0x452ef0
call fcn.0045a8d5
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00404b60
jmp 0x452d84
call fcn.0045a8d5
mov al, 1
call fcn.004a9f22
ret
Function at 0x45524e
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x455332
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 + 0x4e1a70]
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 + 0x4e1a70]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x455a3c
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 0x455a76
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 0x455a71
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x455a9d
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x455a86
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.004a97d0
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 0x456627
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 0x4566ac
cmp dword [esi + 4], 0xffffffff
jne 0x4566ac
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 0x456654
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x45667b
cmp al, 0x2f
je 0x45667b
push 0x4ecf28
push ebx
push edi
call fcn.004a8279
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00455922
pop ecx
pop ecx
test eax, eax
jne 0x456693
mov eax, dword [ebp - 4]
jmp 0x4566b1
mov ecx, eax
call fcn.00455cda
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x4566b1
mov eax, 0x1000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5154b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x456c96
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x456c96
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x456d52
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x456cad
cmp al, 0x5c
jne 0x456caf
mov esi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x456ca5
cmp esi, ebx
je 0x456cee
sub esi, ebx
lea eax, [ebp - 0x20c]
push esi
push ebx
push eax
call fcn.004a97d0
add esp, 0xc
cmp esi, 0x104
jae 0x456d62
lea edx, [ebp - 0x20c]
mov byte [ebp + esi - 0x20c], 0
mov ecx, edi
call fcn.00456c64
mov byte [ebp - 0x108], 0
pop esi
test edi, edi
je 0x456d1c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456cff
sub ecx, edx
push edi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004a7e96
add esp, 0xc
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004a8279
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x456d52
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.004a41df
mov esp, ebp
pop ebp
ret
call fcn.004a6d2c
int3
Function at 0x458527
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 0x458543
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x458567
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.004aa670
movzx eax, word [ebx*8 + 0x4e3512]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x4e3510]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x4e3514]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x4e3516]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x4585ca
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x4585d5
cmp ebx, 8
jl 0x4585d5
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 0x45863c
cmp eax, 0xffffffff
je 0x45863c
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x458617
mov ecx, esi
call fcn.004587f7
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 0x45861f
jmp 0x45864c
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45893a
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 0x458b38
cmp dword [esi + 0x6af90], 3
jb 0x4589b7
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 0x4589f4
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x4589f4
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4589de
mov dword [esi + 0x6afa0], eax
mov edx, ecx
mov ecx, esi
call fcn.00458651
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
mov ecx, esi
cmp ebx, 3
jb 0x458ac6
mov edx, dword [esi + 0x6af84]
lea eax, [ebx - 3]
sub edx, dword [esi + 0x6af88]
push eax
call fcn.00457f82
sub dword [esi + 0x6af90], ebx
pop ecx
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x458a8d
cmp dword [esi + 0x6af90], 3
jb 0x458a8d
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 0x458a30
mov eax, dword [ebp - 8]
jmp 0x458ae3
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 0x458ae9
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.00457f82
dec dword [esi + 0x6af90]
pop ecx
inc dword [esi + 0x6af84]
test eax, eax
je 0x458b22
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x458b01
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x458b03
mov edx, edi
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push edi
push eax
call fcn.00457d8a
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x458b35
mov ecx, esi
call fcn.004587f7
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x6af90], edi
jne 0x45895c
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x458b56
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.00457d8a
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459772
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x459856
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 + 0x4e3110]
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 + 0x4e3110]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x459a18
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5154b0]
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 0x459a58
mov eax, 0x200
jmp 0x459bd0
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 0x459a6f
or esi, 2
test al, 4
je 0x459a76
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x459a80
or esi, 0x10
test al, 0x20
je 0x459a87
or esi, 0x20
test ecx, ecx
je 0x459a93
or esi, 0x40000000
jmp 0x459a99
or esi, 0x80000000
or esi, 0x1000000
test edx, edx
jne 0x459aa9
or esi, 0x800000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp eax, 0x28
jbe 0x459b5a
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 0x459b57
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0x3c], eax
jbe 0x459b57
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 0x459b51
cmp eax, 0x454e
je 0x459b51
cmp eax, 0x454c
je 0x459b51
cmp eax, 0x4550
jne 0x459b57
or esi, 0x400000
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x459b63
mov dword [ecx], esi
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x459b6c
mov dword [ecx], eax
test edi, edi
je 0x459ba5
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00459983
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.00459983
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.00459983
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x459bce
push dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
push dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
call fcn.004599a7
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.004a41df
mov esp, ebp
pop ebp
ret