joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64317b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
and dword [ebp + 0x10], 0
push edi
mov dword [ebp - 8], esi
xor edi, edi
mov dword [ebp - 4], eax
jmp 0x6431dc
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.00643401
test eax, eax
jne 0x6431e0
push eax
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x6431f3
mov eax, dword [ebp + 0xc]
sub esi, eax
add dword [ebp - 4], eax
add edi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x6431ef
test eax, eax
je 0x6431ef
test esi, esi
jg 0x643199
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, edi
jmp 0x6431e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x4a2
call fcn.00599084
push eax
mov ecx, ebx
call fcn.00643687
neg esi
mov eax, esi
jmp 0x6431e8

Function at 0x643505
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov dword [ebp - 8], esi
xor edi, edi
mov dword [ebp - 4], eax
jmp 0x64355b
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.00643483
test eax, eax
jne 0x64355f
push eax
push eax
push eax
lea eax, [ebp + 0x10]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x643572
mov eax, dword [ebp + 0x10]
sub esi, eax
add dword [ebp - 4], eax
add edi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x64356e
test esi, esi
jg 0x64351f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, edi
jmp 0x643567
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x4a3
call fcn.00599084
push eax
mov ecx, ebx
call fcn.00643687
neg esi
mov eax, esi
jmp 0x643567
Function at 0x644079
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0x7f1fc8], 0
mov dword [esp], 0x741214
mov dword [esp + 4], 0x643bae
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x643ea3
mov dword [esp + 0x10], 0x74122c
mov dword [esp + 0x14], 0x643b73
jne 0x6441bd
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x6441b3
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.00680d08
push str.ws2_32
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.00680d62
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test esi, esi
je 0x644133
push 0x741214
push esi
call ebx
test eax, eax
jne 0x644177
push esi
call ebp
lea eax, [esp + 0x134]
mov esi, 0x10c
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00680d08
push str.wship6
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00680d62
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x6441af
push 0x741214
push esi
call ebx
test eax, eax
je 0x6441ac
xor edi, edi
mov ebx, edi
push dword [esp + ebx*8 + 0x10]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp + ebx*8 + 0x14], eax
test eax, eax
je 0x6441ac
inc ebx
cmp ebx, 3
jl 0x64417b
test esi, esi
je 0x6441af
mov eax, dword [esp + edi + 0x14]
mov dword [edi + 0x7aff4c], eax
add edi, 8
cmp edi, 0x18
jl 0x644198
jmp 0x6441af
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x7f1fc8], 1
movzx eax, word [esp + 0x230]
mov eax, dword [eax*8 + 0x7aff4c]
add esp, 0x22c
ret 4

Function at 0x64439d
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
push dword [esp + 0x14]
and dword [ebp], 0
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x644419
cmp word [esi + 8], 2
jne 0x6443fb
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x6443fb
mov edi, dword [esi + 0xc]
jmp 0x6443f5
push dword [eax]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.006442f9
mov dword [ebp], eax
test eax, eax
je 0x644414
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x6443d5
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.00680e7c
add esp, 0x10
xor eax, eax
jmp 0x644440
push 8
pop eax
jmp 0x644440
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x64443e
sub eax, 1
je 0x644437
sub eax, 1
jne 0x64443e
lea eax, [ecx + 2]
jmp 0x644440
mov eax, 0x2afa
jmp 0x644440
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
Function at 0x645700
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push esi
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 8]
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x64574e
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x64574e
xor al, al
jmp 0x645779
mov eax, dword [esi + 4]
test eax, eax
je 0x645777
cmp dword [eax + 0xc], 1
je 0x645777
mov ecx, dword [esi + 0x54]
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0xa4], 0
mov byte [esi + 0xae], 0
mov al, 1
pop esi
leave
ret

Function at 0x64670a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.006461fa
test al, al
je 0x646721
push 0
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
Function at 0x647e25
Capabilities:
Check for unmoving mouse cursor
Hide graphical window

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp byte [esi + 0x79], 0
je 0x647e3a
cmp byte [esi + 0x78], 0
je 0x647e3a
mov byte [esi + 0x78], 0
jmp 0x647e45
push 0
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.006456d2
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x647faf
mov eax, dword [0x7f2018]
inc eax
and eax, reloc.WS2_32.dll_accept
jns 0x647e6b
dec eax
or eax, 0xfffffffe
add eax, 1
mov dword [0x7f2018], eax
mov eax, ecx
je 0x647e8f
cmp byte [ecx + 9], 0
jne 0x647e8f
call fcn.006452b7
mov ecx, dword [esi + 0x54]
push 0x6ac
call fcn.006484a6
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], 1
je 0x647faf
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x14]
push edi
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call ebx
mov edi, dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x647eee
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x647fac
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 0x3c]
call ebp
mov eax, dword [esi + 0x54]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x647f3a
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 0x3c]
call ebx
test eax, eax
je 0x647f3a
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x647fac
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x14]
call ebp
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0xc]
push eax
call ebx
test eax, eax
je 0x647f95
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
je 0x647f95
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x647fa5
sub eax, 1
mov dword [esi + 0xa4], eax
jne 0x647fa5
push 0
mov ecx, esi
call fcn.006488f0
jmp 0x647fa5
push 0
mov ecx, esi
call fcn.006488f0
and dword [esi + 0xa4], 0
mov ecx, esi
call fcn.00645aa5
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret 4
Function at 0x6488f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x648958
cmp dword [eax + 0xc], 1
je 0x648958
push ebx
mov bl, byte [ebp + 8]
cmp byte [esi + 0xae], bl
je 0x648957
movzx eax, bl
shl eax, 2
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0x54]
push 0
mov byte [esi + 0xae], bl
call fcn.0064870f
pop ebx
pop esi
leave
ret 4
Function at 0x64a0af
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileInformationByHandle]
test eax, eax
jne 0x64a0d1
mov eax, 0x200
jmp 0x64a27e
mov ecx, dword [esp + 0x10]
mov edx, ecx
and edx, 1
mov eax, edx
test cl, 2
je 0x64a0e4
or eax, 2
test cl, 4
je 0x64a0ec
or eax, 4
push esi
mov esi, ecx
and esi, 0x10
je 0x64a0f7
or eax, 0x10
test cl, 0x20
je 0x64a0ff
or eax, 0x20
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x81000000
or esi, eax
test edx, edx
jne 0x64a11b
or esi, 0x800000
push ebx
push ebp
xor ebp, ebp
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
cmp ebx, 0x28
jbe 0x64a1cb
push ebp
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x60]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0
push 0
push 0x24
push edi
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, 0x54ad
cmp word [esp + 0x54], ax
jne 0x64a1cb
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x34]
cmp ebx, eax
jbe 0x64a1cb
push 0
push 0
push ecx
push edi
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 0x18]
cmp eax, 0x5a4d
je 0x64a1c5
cmp eax, 0x454e
je 0x64a1c5
cmp eax, 0x454c
je 0x64a1c5
cmp eax, 0x4550
jne 0x64a1cb
or esi, 0x400000
mov eax, dword [esp + 0x58]
test eax, eax
je 0x64a1d5
mov dword [eax], esi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x64a1df
mov dword [eax], ebx
mov esi, dword [esp + 0x60]
test esi, esi
je 0x64a249
mov ecx, dword [esp + 0x28]
mov ebp, 0xd53e8000
mov eax, dword [esp + 0x2c]
sub ecx, ebp
push 0
mov ebx, 0x19db1de
mov edi, 0x989680
push edi
sbb eax, ebx
push eax
push ecx
call fcn.00664cb0
mov ecx, dword [esp + 0x30]
mov dword [esi], eax
sub ecx, ebp
mov eax, dword [esp + 0x34]
push 0
push edi
sbb eax, ebx
mov dword [esi + 4], edx
push eax
push ecx
call fcn.00664cb0
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], eax
sub ecx, ebp
mov eax, dword [esp + 0x24]
push 0
push edi
sbb eax, ebx
mov dword [esi + 0xc], edx
push eax
push ecx
call fcn.00664cb0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x64]
pop ebp
pop ebx
test esi, esi
je 0x64a27b
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.0064b3b7
movzx ecx, word [esp + 0x4c]
movzx eax, word [esp + 0x50]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
pop esi
pop edi
add esp, 0x40
ret 0x14
Function at 0x64a97b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x64a98a
xor eax, eax
jmp 0x64aa6c
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
not ecx
cmp esi, 8
jb 0x64aa4b
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x741910]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x741910]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x741910]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x741910]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x741910]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x741910]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x741910]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x741910]
sub edi, 1
jne 0x64a9a4
pop edi
test esi, esi
je 0x64aa67
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x741910]
inc edx
sub esi, 1
jne 0x64aa4f
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x64b198
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
mov ebp, ebx
mov edi, ebx
mov dword [esi + 0x6af80], 2
jmp 0x64b37e
cmp eax, 3
jb 0x64b203
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
mov eax, 0x7fff
and ecx, eax
and edx, eax
mov dword [esi + 0x6af7c], ecx
mov ebp, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebp, ebp
je 0x64b23f
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x64b23f
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x64b22a
mov dword [esi + 0x6afa0], eax
push ebp
push esi
call fcn.0064bc9d
mov edi, eax
mov eax, dword [esi + 0x6af90]
cmp edi, eax
jbe 0x64b23f
mov edi, eax
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x64b318
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.0064acc1
mov ecx, dword [esi + 0x6af90]
sub ecx, edi
mov dword [esp + 0x14], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x64b2e1
cmp ecx, 3
jb 0x64b2e1
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
mov eax, 0x7fff
and ecx, eax
and edx, eax
mov dword [esi + 0x6af7c], ecx
mov ebp, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x64b27f
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
jmp 0x64b312
mov edx, dword [esi + 0x6af84]
add edx, edi
mov edi, ebx
mov dword [esi + 0x6af84], edx
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x6af7c], eax
mov eax, dword [esp + 0x14]
jmp 0x64b33a
movzx eax, byte [ecx + esi + 0x1af70]
push eax
push ebx
push esi
call fcn.0064acc1
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
test eax, eax
je 0x64b36b
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x64b352
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x64b354
mov ecx, ebx
push ebx
sub edx, eax
push edx
push ecx
push esi
call fcn.0064b53b
mov eax, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x64b384
push esi
call fcn.0064b412
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x64b1b5
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x64b39e
lea ebx, [esi + 0x1af70]
add ebx, ecx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push ebx
push esi
call fcn.0064b53b
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x64bb76
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
lea eax, [ebx - 1]
push edi
cmp eax, 7
jbe 0x64bb94
mov dword [esi + 0x6afa4], str.bad_pack_level
xor ebp, ebp
xor edi, edi
inc ebp
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x64bbb7
mov dword [esi + 0x6af78], ebp
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.006678b0
movzx eax, word [ebx*8 + 0x7418aa]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x7418a8]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x7418ac]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x7418ae]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x64bc1b
mov eax, dword [esp + 0x1c]
or word [eax], 4
jmp 0x64bc27
cmp ebx, 8
jl 0x64bc27
mov eax, dword [esp + 0x1c]
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]
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x64bc8a
cmp eax, 0xffffffff
je 0x64bc8a
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x64bc65
push esi
call fcn.0064b412
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 0x64bc6d
jmp 0x64bc96
mov dword [esi + 0x6af8c], ebp
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x64ca9a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x64caf1
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x64cb1c
sub esi, eax
cmp esi, dword [ebp + 0xc]
jbe 0x64cac6
mov esi, dword [ebp + 0xc]
push esi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.006661f0
add esp, 0xc
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.0064a97b
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x64cb1e
cmp dword [edi + 0x7c], 0
je 0x64cb15
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x64cb1c
mov esi, dword [ebp - 4]
jmp 0x64cadb
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
leave
ret 8

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

Disassembly:
mov edx, dword [esp + 4]
movsx eax, byte [esp + 8]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x741910]
movzx eax, cl
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
mov dword [edx], ecx
mov ecx, dword [edx + 8]
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x741910]
mov dword [edx + 8], ecx
ret 8

Function at 0x64cfdd
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x2d], 0
je 0x64d051
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x64d00b
cmp dword [esi + 0x40], edi
jae 0x64d00b
push ecx
call fcn.0066464a
and dword [esi + 0x3c], 0
pop ecx
jmp 0x64d00f
test eax, eax
jne 0x64d01f
lea eax, [edi + edi]
push eax
call fcn.0066490b
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push eax
call fcn.006661f0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x64d04e
push ebp
lea ebp, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ebp
call fcn.0064d0ac
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x64d034
pop ebp
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x64d080
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x64d06c
mov dword [esi + 0x14], 0x30000
jmp 0x64d0a4
push edi
add ecx, edx
push ebx
push ecx
call fcn.006661f0
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x64d0a6
mov eax, dword [esi + 4]
test eax, eax
je 0x64d09d
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 0x10]
jmp 0x64d0a6
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x64eb16
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
lea eax, [ebp - 0x220]
push esi
xor esi, esi
push esi
push 0x25
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x64eb50
mov ecx, esi
movzx eax, word [ecx + 0x742214]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x222], ax
test ax, ax
jne 0x64eb39
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004646cd
test al, al
jne 0x64eb7f
mov ecx, esi
movzx eax, word [ecx + 0x742214]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x222], ax
test ax, ax
jne 0x64eb68
mov ecx, 0x105
lea eax, [ebp - 0x42c]
push ecx
push eax
push esi
push esi
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
neg eax
pop esi
sbb eax, eax
and eax, dword [ebp - 4]
leave
ret

Function at 0x68813e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00687e01

Function at 0x688149
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00687f82

Function at 0x68f77b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0068f0e9

Function at 0x68f786
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0068f324