joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64182e
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x1c], esi
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
sub ebx, dword [esp + 0x20]
push dword [esi + 0x3c]
sub edi, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetDC]
cmp dword [esi + 0x68], 0
mov ebp, eax
mov dword [esp + 0x10], ebp
jne 0x641877
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x68], eax
push dword [esi + 0x6c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push edi
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [esi + 0x68]
mov dword [esi + 0x6c], eax
call ebp
push 0xcc0020
push 0
push 0
push dword [esp + 0x1c]
mov ebx, eax
push dword [esp + 0x24]
push edi
xor edi, edi
push edi
push edi
push dword [esi + 0x68]
call dword [sym.imp.GDI32.dll_BitBlt]
fld dword [0x747294]
lea esi, [esp + 0x2c]
sub esp, 0x10
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov edi, esp
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x2c]
fstp dword [esp]
push dword [esi + 0x6c]
push dword [esi + 0x68]
call fcn.005a4968
push ebx
push dword [esi + 0x68]
call ebp
push dword [esp + 0x10]
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret

Function at 0x64281c
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 5
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0x60]
push 0x254
push eax
mov eax, dword [esi + 0x64]
sub eax, dword [esi + 0x5c]
push eax
push dword [esi + 0x60]
push dword [esi + 0x5c]
push 0
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
ret
Function at 0x64a5de
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push edi
push 0
mov esi, ecx
lea ecx, [ebp - 0x28]
push 0
call fcn.004ccd7d
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [ebp + 8]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x64a615
push 0xfffffffffffffffe
pop eax
jmp 0x64a6aa
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
push edi
call fcn.0064a5a9
test eax, eax
je 0x64a63e
push 0xa
push 0x567
call fcn.005a1454
push eax
mov ecx, esi
call fcn.0064ae77
or eax, 0xffffffff
jmp 0x64a6aa
lea ecx, [ebp - 0x14]
call fcn.004ccde3
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.0064a7d8
test eax, eax
jne 0x64a6aa
lea ecx, [ebp - 0x14]
call fcn.00467833
test al, al
je 0x64a670
push 0xa
push 0x57f
jmp 0x64a62c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0047a584
lea eax, [ebp - 0x14]
push eax
push 0x6e645c
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.00463add
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x14]
push eax
push dword [edi]
call fcn.0064a6b0
pop edi
pop esi
leave
ret 0x10

Function at 0x64a89d
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 0x64a8fe
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.0064ab23
test eax, eax
jne 0x64a902
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 0x64a915
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 0x64a911
test eax, eax
je 0x64a911
test esi, esi
jg 0x64a8bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, edi
jmp 0x64a90a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x4a1
call fcn.005a1454
push eax
mov ecx, ebx
call fcn.0064ada9
neg esi
mov eax, esi
jmp 0x64a90a
Function at 0x64ac27
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 0x64ac7d
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.0064aba5
test eax, eax
jne 0x64ac81
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 0x64ac94
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 0x64ac90
test esi, esi
jg 0x64ac41
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, edi
jmp 0x64ac89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x4a2
call fcn.005a1454
push eax
mov ecx, ebx
call fcn.0064ada9
neg esi
mov eax, esi
jmp 0x64ac89

Function at 0x64babf
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 0x64bb3b
cmp word [esi + 8], 2
jne 0x64bb1d
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x64bb1d
mov edi, dword [esi + 0xc]
jmp 0x64bb17
push dword [eax]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0064ba1b
mov dword [ebp], eax
test eax, eax
je 0x64bb36
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x64baf7
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.0068896c
add esp, 0x10
xor eax, eax
jmp 0x64bb62
push 8
pop eax
jmp 0x64bb62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x64bb60
sub eax, 1
je 0x64bb59
sub eax, 1
jne 0x64bb60
lea eax, [ecx + 2]
jmp 0x64bb62
mov eax, 0x2afa
jmp 0x64bb62
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x64ce22
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 0x64ce70
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 0x64ce70
xor al, al
jmp 0x64ce9b
mov eax, dword [esi + 4]
test eax, eax
je 0x64ce99
cmp dword [eax + 0xc], 1
je 0x64ce99
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 0x64de2c
Capabilities:
Hide graphical window

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

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp byte [esi + 0x79], 0
je 0x64f55c
cmp byte [esi + 0x78], 0
je 0x64f55c
mov byte [esi + 0x78], 0
jmp 0x64f567
push 0
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0064cdf4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x64f6d1
mov eax, dword [0x7fcc48]
inc eax
and eax, reloc.WS2_32.dll_accept
jns 0x64f58d
dec eax
or eax, 0xfffffffe
add eax, 1
mov dword [0x7fcc48], eax
mov eax, ecx
je 0x64f5b1
cmp byte [ecx + 9], 0
jne 0x64f5b1
call fcn.0064c9d9
mov ecx, dword [esi + 0x54]
push 0x6ac
call fcn.0064fbc8
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], 1
je 0x64f6d1
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 0x64f610
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x64f6ce
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 0x64f65c
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 0x3c]
call ebx
test eax, eax
je 0x64f65c
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x64f6ce
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 0x64f6b7
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
je 0x64f6b7
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x64f6c7
sub eax, 1
mov dword [esi + 0xa4], eax
jne 0x64f6c7
push 0
mov ecx, esi
call fcn.00650012
jmp 0x64f6c7
push 0
mov ecx, esi
call fcn.00650012
and dword [esi + 0xa4], 0
mov ecx, esi
call fcn.0064d1c7
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret 4
Function at 0x650012
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 0x65007a
cmp dword [eax + 0xc], 1
je 0x65007a
push ebx
mov bl, byte [ebp + 8]
cmp byte [esi + 0xae], bl
je 0x650079
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.0064fe31
pop ebx
pop esi
leave
ret 4
Function at 0x6517d1
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 0x6517f3
mov eax, 0x200
jmp 0x6519a0
mov ecx, dword [esp + 0x10]
mov edx, ecx
and edx, 1
mov eax, edx
test cl, 2
je 0x651806
or eax, 2
test cl, 4
je 0x65180e
or eax, 4
push esi
mov esi, ecx
and esi, 0x10
je 0x651819
or eax, 0x10
test cl, 0x20
je 0x651821
or eax, 0x20
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x81000000
or esi, eax
test edx, edx
jne 0x65183d
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 0x6518ed
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 0x6518ed
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x34]
cmp ebx, eax
jbe 0x6518ed
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 0x6518e7
cmp eax, 0x454e
je 0x6518e7
cmp eax, 0x454c
je 0x6518e7
cmp eax, 0x4550
jne 0x6518ed
or esi, 0x400000
mov eax, dword [esp + 0x58]
test eax, eax
je 0x6518f7
mov dword [eax], esi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x651901
mov dword [eax], ebx
mov esi, dword [esp + 0x60]
test esi, esi
je 0x65196b
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.0066c460
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.0066c460
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.0066c460
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x64]
pop ebp
pop ebx
test esi, esi
je 0x65199d
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.00652ad9
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 0x65209d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x6520ac
xor eax, eax
jmp 0x65218e
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
not ecx
cmp esi, 8
jb 0x65216d
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 + 0x74ae18]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x74ae18]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x74ae18]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x74ae18]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x74ae18]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x74ae18]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x74ae18]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x74ae18]
sub edi, 1
jne 0x6520c6
pop edi
test esi, esi
je 0x652189
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x74ae18]
inc edx
sub esi, 1
jne 0x652171
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x6528ba
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 0x652aa0
cmp eax, 3
jb 0x652925
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 0x652961
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x652961
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x65294c
mov dword [esi + 0x6afa0], eax
push ebp
push esi
call fcn.006533bf
mov edi, eax
mov eax, dword [esi + 0x6af90]
cmp edi, eax
jbe 0x652961
mov edi, eax
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x652a3a
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.006523e3
mov ecx, dword [esi + 0x6af90]
sub ecx, edi
mov dword [esp + 0x14], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x652a03
cmp ecx, 3
jb 0x652a03
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 0x6529a1
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
jmp 0x652a34
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 0x652a5c
movzx eax, byte [ecx + esi + 0x1af70]
push eax
push ebx
push esi
call fcn.006523e3
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
test eax, eax
je 0x652a8d
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x652a74
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x652a76
mov ecx, ebx
push ebx
sub edx, eax
push edx
push ecx
push esi
call fcn.00652c5d
mov eax, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x652aa6
push esi
call fcn.00652b34
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x6528d7
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x652ac0
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.00652c5d
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x653298
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 0x6532b6
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 0x6532d9
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.0066f070
movzx eax, word [ebx*8 + 0x74adb2]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x74adb0]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x74adb4]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x74adb6]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x65333d
mov eax, dword [esp + 0x1c]
or word [eax], 4
jmp 0x653349
cmp ebx, 8
jl 0x653349
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 0x6533ac
cmp eax, 0xffffffff
je 0x6533ac
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x653387
push esi
call fcn.00652b34
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 0x65338f
jmp 0x6533b8
mov dword [esi + 0x6af8c], ebp
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x6541bc
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 0x654213
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x65423e
sub esi, eax
cmp esi, dword [ebp + 0xc]
jbe 0x6541e8
mov esi, dword [ebp + 0xc]
push esi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0066d9b0
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.0065209d
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x654240
cmp dword [edi + 0x7c], 0
je 0x654237
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 0x65423e
mov esi, dword [ebp - 4]
jmp 0x6541fd
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
leave
ret 8

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

Function at 0x6546ff
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 0x654773
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x65472d
cmp dword [esi + 0x40], edi
jae 0x65472d
push ecx
call fcn.0066bdae
and dword [esi + 0x3c], 0
pop ecx
jmp 0x654731
test eax, eax
jne 0x654741
lea eax, [edi + edi]
push eax
call fcn.0066c07b
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push eax
call fcn.0066d9b0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x654770
push ebp
lea ebp, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ebp
call fcn.006547ce
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x654756
pop ebp
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x6547a2
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x65478e
mov dword [esi + 0x14], 0x30000
jmp 0x6547c6
push edi
add ecx, edx
push ebx
push ecx
call fcn.0066d9b0
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x6547c8
mov eax, dword [esi + 4]
test eax, eax
je 0x6547bf
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 0x6547c8
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
ret 8