joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61e483
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.004cb99d
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 0x61e4ba
push 0xfffffffffffffffe
pop eax
jmp 0x61e54f
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
push edi
call fcn.0061e44c
test eax, eax
je 0x61e4e3
push 0xa
push 0x561
call fcn.0058c7b7
push eax
mov ecx, esi
call fcn.0061ecea
or eax, 0xffffffff
jmp 0x61e54f
lea ecx, [ebp - 0x14]
call fcn.004cba03
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.0061e681
test eax, eax
jne 0x61e54f
lea ecx, [ebp - 0x14]
call fcn.004683fc
test al, al
je 0x61e515
push 0xa
push 0x579
jmp 0x61e4d1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0047a05f
lea eax, [ebp - 0x14]
push eax
push 0x6d27dc
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.004648f4
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x14]
push eax
push dword [edi]
call fcn.0061e557
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x61e557
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 0x6b77b5
call fcn.00640244
sub esp, 0x8c
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0x8004667e
push dword [ebp + 8]
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x61e58f
or eax, eax
jmp 0x61e670
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0047a05f
mov byte [ebp - 0xd], 1
call fcn.00478821
push dword [ebp - 0x18]
and dword [ebp - 4], 0
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x61e604
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x61e5fc
cmp esi, 0x2734
je 0x61e5fc
push esi
push 0x49a
call fcn.0058c7b7
push eax
mov ecx, ebx
call fcn.0061ec17
mov dword [ebp - 4], 1
jmp 0x61e668
push dword [ebp + 0xc]
call fcn.004768dc
mov dword [ebp - 4], 2
call fcn.00478862
push dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push dword [ebp + 8]
call fcn.0061ea5d
mov esi, eax
mov byte [ebp + 0x13], 1
call fcn.00478821
mov dword [ebp - 4], 3
test esi, esi
je 0x61e659
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x571
call fcn.0058c7b7
push eax
mov ecx, ebx
call fcn.0061ec17
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp + 0xc]
call fcn.00478440
mov dword [ebp - 4], 4
call fcn.00478862
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x61e74d
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 0x61e7ae
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.0061e9d9
test eax, eax
jne 0x61e7b2
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 0x61e7c7
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 0x61e7c3
test eax, eax
je 0x61e7c3
test esi, esi
jg 0x61e76b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
jmp 0x61e7ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x49b
call fcn.0058c7b7
push eax
mov ecx, ebx
call fcn.0061ec17
neg esi
mov eax, esi
jmp 0x61e7ba

Function at 0x61eae1
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 0x61eb37
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.0061ea5d
test eax, eax
jne 0x61eb3b
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 0x61eb50
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 0x61eb4c
test esi, esi
jg 0x61eafb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
jmp 0x61eb43
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x49c
call fcn.0058c7b7
push eax
mov ecx, ebx
call fcn.0061ec17
neg esi
mov eax, esi
jmp 0x61eb43
Function at 0x61f5f5
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0x7e8494], 0
mov dword [esp], 0x7327a4
mov dword [esp + 4], 0x61f170
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x61f419
mov dword [esp + 0x10], 0x7327bc
mov dword [esp + 0x14], fcn.0061f135
jne 0x61f74c
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x61f742
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.00672758
push str.ws2_32
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.006727b2
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test esi, esi
je 0x61f6b5
push 0x7327a4
push esi
call ebx
test eax, eax
jne 0x61f6b1
push esi
call ebp
mov esi, edi
test esi, esi
jne 0x61f706
lea eax, [esp + 0x134]
mov esi, 0x10c
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00672758
push str.wship6
lea eax, [esp + 0x38]
push esi
push eax
call fcn.006727b2
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x61f73e
push 0x7327a4
push esi
call ebx
test eax, eax
jne 0x61f702
push esi
call ebp
mov esi, edi
test esi, esi
je 0x61f73e
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 0x61f723
inc ebx
cmp ebx, 3
jl 0x61f708
jmp 0x61f728
push esi
call ebp
mov esi, edi
test esi, esi
je 0x61f73e
mov eax, dword [esp + edi + 0x14]
mov dword [edi + 0x7a5b0c], eax
add edi, 8
cmp edi, 0x18
jl 0x61f72c
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x7e8494], 1
movzx eax, word [esp + 0x230]
mov eax, dword [eax*8 + 0x7a5b0c]
add esp, 0x22c
ret 4

Function at 0x61f946
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 0x61f9c2
cmp word [esi + 8], 2
jne 0x61f9a4
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x61f9a4
mov edi, dword [esi + 0xc]
jmp 0x61f99e
push dword [eax]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0061f8a0
mov dword [ebp], eax
test eax, eax
je 0x61f9bd
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x61f97e
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.006728cc
add esp, 0x10
xor eax, eax
jmp 0x61f9e0
push 8
pop eax
jmp 0x61f9e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x61f9de
sub eax, 1
je 0x61f9ee
sub eax, 1
je 0x61f9e7
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
mov eax, 0x2afb
jmp 0x61f9e0
mov eax, 0x2afa
jmp 0x61f9e0
Function at 0x620c4f
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 0x620c9d
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 0x620c9d
xor al, al
jmp 0x620cc8
mov eax, dword [esi + 4]
test eax, eax
je 0x620cc6
cmp dword [eax + 0xc], 1
je 0x620cc6
mov ecx, dword [esi + 0x4c]
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0x9c], 0
mov byte [esi + 0xa6], 0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x621ba5
Capabilities:
Hide graphical window

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

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp byte [esi + 0x71], 0
je 0x6230ec
cmp byte [esi + 0x70], 0
je 0x6230ec
mov byte [esi + 0x70], 0
jmp 0x6230f7
push 0
push dword [esi + 0x50]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00620c21
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x62325d
mov eax, dword [0x7e85cc]
inc eax
and eax, reloc.WS2_32.dll_accept
jns 0x62311b
dec eax
or eax, 0xfffffffe
inc eax
mov dword [0x7e85cc], eax
je 0x62313a
cmp byte [ecx + 9], 0
jne 0x62313a
call fcn.006205d8
mov ecx, dword [esi + 0x4c]
push 0x6ac
call fcn.0062374f
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], 1
je 0x62325d
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x14]
push edi
push eax
mov eax, dword [esi + 0x4c]
push dword [eax + 4]
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x4c]
lea ecx, [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
push ecx
push dword [eax + 4]
call ebx
mov edi, dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x62319c
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x62325a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x4c]
push dword [eax + 0x34]
call ebp
mov eax, dword [esi + 0x4c]
push dword [eax + 0x34]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x6231e8
mov eax, dword [esi + 0x4c]
lea ecx, [esp + 0x10]
push ecx
push dword [eax + 0x34]
call ebx
test eax, eax
je 0x6231e8
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x62325a
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 0x623243
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
je 0x623243
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x623253
sub eax, 1
mov dword [esi + 0x9c], eax
jne 0x623253
push 0
mov ecx, esi
call fcn.00623bb3
jmp 0x623253
push 0
mov ecx, esi
call fcn.00623bb3
and dword [esi + 0x9c], 0
mov ecx, esi
call fcn.00620f97
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret 4
Function at 0x623bb3
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 0x623c1f
cmp dword [eax + 0xc], 1
je 0x623c1f
push ebx
mov bl, byte [ebp + 8]
cmp byte [esi + 0xa6], bl
je 0x623c1e
movzx eax, bl
neg eax
sbb eax, eax
and eax, 4
push eax
mov eax, dword [esi + 0x4c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x4c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x4c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [esi + 0xa6], bl
mov ecx, dword [esi + 0x4c]
push 0
call fcn.006239d2
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x6253ba
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 0x6253dc
mov eax, 0x200
jmp 0x62555d
mov ecx, dword [esp + 0x10]
mov edx, ecx
and edx, 1
push esi
mov esi, edx
test cl, 2
je 0x6253f0
or esi, 2
test cl, 4
je 0x6253f8
or esi, 4
mov eax, ecx
and eax, 0x10
je 0x625402
or esi, 0x10
test cl, 0x20
je 0x62540a
or esi, 0x20
neg eax
sbb eax, eax
and eax, 0xc0000000
add eax, 0x81000000
or esi, eax
test edx, edx
jne 0x625424
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 0x6254d4
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 0x6254d4
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x34]
cmp ebx, eax
jbe 0x6254d4
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 0x6254ce
cmp eax, 0x454e
je 0x6254ce
cmp eax, 0x454c
je 0x6254ce
cmp eax, 0x4550
jne 0x6254d4
or esi, 0x400000
mov eax, dword [esp + 0x58]
test eax, eax
je 0x6254de
mov dword [eax], esi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x6254e8
mov dword [eax], ebx
mov esi, dword [esp + 0x60]
pop ebp
pop ebx
test esi, esi
je 0x62552a
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0062669b
push dword [esp + 0x2c]
mov dword [esi], eax
push dword [esp + 0x2c]
mov dword [esi + 4], edx
call fcn.0062669b
push dword [esp + 0x1c]
mov dword [esi + 8], eax
push dword [esp + 0x1c]
mov dword [esi + 0xc], edx
call fcn.0062669b
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x62555a
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.0062663e
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 0x625c60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x625c6f
xor eax, eax
jmp 0x625d51
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
not ecx
cmp esi, 8
jb 0x625d30
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 + 0x732eb0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x732eb0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x732eb0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x732eb0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x732eb0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x732eb0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x732eb0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x732eb0]
sub edi, 1
jne 0x625c89
pop edi
test esi, esi
je 0x625d4c
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x732eb0]
inc edx
sub esi, 1
jne 0x625d34
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x626421
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
mov ebp, edi
mov ebx, edi
mov dword [esi + 0x6af80], 2
jmp 0x626607
cmp dword [esi + 0x6af90], 3
jb 0x626490
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 0x6264cc
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x6264cc
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x6264b7
mov dword [esi + 0x6afa0], eax
push ebp
push esi
call fcn.00626f7f
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x6264cc
mov ebx, eax
cmp ebx, 3
jb 0x62659c
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.00625f9f
sub dword [esi + 0x6af90], ebx
mov dword [esp + 0x14], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x626562
cmp dword [esi + 0x6af90], 3
jb 0x626562
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]
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 ebx, 1
jne 0x626508
mov eax, dword [esp + 0x14]
jmp 0x6265b8
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 [esp + 0x14]
jmp 0x6265be
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push edi
push esi
call fcn.00625f9f
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x6265f5
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x6265d6
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x6265d8
mov edx, edi
mov eax, dword [esi + 0x6af84]
push edi
sub eax, ecx
push eax
push edx
push esi
call fcn.006267eb
mov eax, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x626607
push esi
call fcn.006266bf
cmp dword [esi + 0x6af90], edi
jne 0x62643e
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x626625
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.006267eb
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x626e52
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]
push edi
push 7
pop ecx
lea eax, [ebx - 1]
cmp ecx, eax
push str.bad_pack_level
sbb al, al
inc al
push eax
push esi
call fcn.00625111
xor ebp, ebp
xor edi, edi
inc ebp
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x626e99
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.0065ab80
movzx eax, word [ebx*8 + 0x732e4a]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x732e48]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x732e4c]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x732e4e]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x626efd
mov eax, dword [esp + 0x1c]
or word [eax], 4
jmp 0x626f09
cmp ebx, 8
jl 0x626f09
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 0x626f6c
cmp eax, 0xffffffff
je 0x626f6c
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x626f47
push esi
call fcn.006266bf
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 0x626f4f
jmp 0x626f78
mov dword [esi + 0x6af8c], ebp
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x627d59
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 0x627db0
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x627ddb
sub esi, eax
cmp esi, dword [ebp + 0xc]
jbe 0x627d85
mov esi, dword [ebp + 0xc]
push esi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00658b30
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.00625c60
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x627ddd
cmp dword [edi + 0x7c], 0
je 0x627dd4
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 0x627ddb
mov esi, dword [ebp - 4]
jmp 0x627d9a
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x628283
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
mov eax, dword [eax*4 + 0x732eb0]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x732eb0]
mov dword [edx + 8], ecx
ret 8

Function at 0x6282cc
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 0x628341
cmp dword [esi + 0x3c], 0
je 0x6282fd
cmp dword [esi + 0x40], edi
jae 0x6282f7
push dword [esi + 0x3c]
call fcn.00640272
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x62830d
lea eax, [edi + edi]
push eax
call fcn.00640585
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.00658b30
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x62833e
push ebp
lea ebp, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ebp
call fcn.0062839c
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x628324
pop ebp
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x628370
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x62835c
mov dword [esi + 0x14], 0x30000
jmp 0x628394
push edi
add ecx, edx
push ebx
push ecx
call fcn.00658b30
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x628396
mov eax, dword [esi + 4]
test eax, eax
je 0x62838d
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 0x628396
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
ret 8