joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62fe2f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x6aadef
call fcn.00651da4
sub esp, 0x84
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1c], 0
je 0x62ff7d
lea edi, [esi + 0x24]
cmp dword [edi + 0x10], 0
je 0x62ff7d
push ebx
lea ebx, [esi + 0xc]
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042812e
and dword [ebp - 4], 0
push 0x6d278c
call fcn.004287c6
pop ecx
push eax
push 0x6d278c
lea ecx, [ebp - 0x3c]
call fcn.004285c7
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x3c]
call fcn.00428537
and dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov byte [ebp - 4], 1
cmp dword [esi + 0x4c], eax
je 0x62fee0
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00428657
mov edi, 0x6d1c94
push edi
call fcn.004287c6
pop ecx
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.004285c7
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00428537
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x90]
pop edi
push edi
push 0
push eax
call fcn.0066c620
or dword [esi + 0x54], 0xffffffff
add esp, 0xc
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x90], edi
jb 0x62ff10
mov ebx, dword [ebx]
cmp dword [ebp - 0x10], 8
mov ecx, dword [ebp - 0x24]
jae 0x62ff1c
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x62ff28
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x4c]
push edx
lea edx, [ebp - 0x90]
push edx
push ebx
xor ebx, ebx
push ebx
push 0x4008
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x62ff5f
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x62ff5f
mov dword [esi + 0x54], eax
mov esi, dword [esi + 0x54]
lea ecx, [ebp - 0x24]
push ebx
push 1
call fcn.004284eb
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.004284eb
mov eax, esi
pop ebx
jmp 0x62ff80
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x631107
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.004c86e3
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 0x63113e
push 0xfffffffffffffffe
pop eax
jmp 0x6311d3
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
push edi
call fcn.006310d0
test eax, eax
je 0x631167
push 0xa
push 0x569
call fcn.00595698
push eax
mov ecx, esi
call fcn.0063196e
or eax, 0xffffffff
jmp 0x6311d3
lea ecx, [ebp - 0x14]
call fcn.004c8749
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.00631305
test eax, eax
jne 0x6311d3
lea ecx, [ebp - 0x14]
call fcn.0046515a
test al, al
je 0x631199
push 0xa
push 0x581
jmp 0x631155
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00476cab
lea eax, [ebp - 0x14]
push eax
push 0x6e24e4
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.00461427
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x14]
push eax
push dword [edi]
call fcn.006311db
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x6311db
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 0x6c83c2
call fcn.00651da4
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 0x631213
or eax, eax
jmp 0x6312f4
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00476cab
mov byte [ebp - 0xd], 1
call fcn.00475363
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 0x631288
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x631280
cmp esi, 0x2734
je 0x631280
push esi
push 0x4a1
call fcn.00595698
push eax
mov ecx, ebx
call fcn.0063189b
mov dword [ebp - 4], 1
jmp 0x6312ec
push dword [ebp + 0xc]
call fcn.0047343f
mov dword [ebp - 4], 2
call fcn.004753a4
push dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push dword [ebp + 8]
call fcn.006316e1
mov esi, eax
mov byte [ebp + 0x13], 1
call fcn.00475363
mov dword [ebp - 4], 3
test esi, esi
je 0x6312dd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x579
call fcn.00595698
push eax
mov ecx, ebx
call fcn.0063189b
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp + 0xc]
call fcn.00474fa3
mov dword [ebp - 4], 4
call fcn.004753a4
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 0x6313d1
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 0x631432
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.0063165d
test eax, eax
jne 0x631436
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 0x63144b
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 0x631447
test eax, eax
je 0x631447
test esi, esi
jg 0x6313ef
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 0x63143e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x4a2
call fcn.00595698
push eax
mov ecx, ebx
call fcn.0063189b
neg esi
mov eax, esi
jmp 0x63143e

Function at 0x631765
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 0x6317bb
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.006316e1
test eax, eax
jne 0x6317bf
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 0x6317d4
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 0x6317d0
test esi, esi
jg 0x63177f
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 0x6317c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x4a3
call fcn.00595698
push eax
mov ecx, ebx
call fcn.0063189b
neg esi
mov eax, esi
jmp 0x6317c7
Function at 0x632279
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0x7fff64], 0
mov dword [esp], 0x744f54
mov dword [esp + 4], 0x631df4
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x63209d
mov dword [esp + 0x10], 0x744f6c
mov dword [esp + 0x14], fcn.00631db9
jne 0x6323d0
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x6323c6
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.006846d8
push str.ws2_32
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.00684732
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 0x632339
push 0x744f54
push esi
call ebx
test eax, eax
jne 0x632335
push esi
call ebp
mov esi, edi
test esi, esi
jne 0x63238a
lea eax, [esp + 0x134]
mov esi, 0x10c
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.006846d8
push str.wship6
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00684732
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x6323c2
push 0x744f54
push esi
call ebx
test eax, eax
jne 0x632386
push esi
call ebp
mov esi, edi
test esi, esi
je 0x6323c2
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 0x6323a7
inc ebx
cmp ebx, 3
jl 0x63238c
jmp 0x6323ac
push esi
call ebp
mov esi, edi
test esi, esi
je 0x6323c2
mov eax, dword [esp + edi + 0x14]
mov dword [edi + 0x7bafac], eax
add edi, 8
cmp edi, 0x18
jl 0x6323b0
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x7fff64], 1
movzx eax, word [esp + 0x230]
mov eax, dword [eax*8 + 0x7bafac]
add esp, 0x22c
ret 4

Function at 0x6325ca
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 0x632646
cmp word [esi + 8], 2
jne 0x632628
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x632628
mov edi, dword [esi + 0xc]
jmp 0x632622
push dword [eax]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00632524
mov dword [ebp], eax
test eax, eax
je 0x632641
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x632602
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.0068484c
add esp, 0x10
xor eax, eax
jmp 0x632664
push 8
pop eax
jmp 0x632664
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x632662
sub eax, 1
je 0x632672
sub eax, 1
je 0x63266b
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
mov eax, 0x2afb
jmp 0x632664
mov eax, 0x2afa
jmp 0x632664
Function at 0x6335a0
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 0x6335ee
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 0x6335ee
xor al, al
jmp 0x633619
mov eax, dword [esi + 4]
test eax, eax
je 0x633617
cmp dword [eax + 0xc], 1
je 0x633617
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
mov esp, ebp
pop ebp
ret

Function at 0x6344f8
Capabilities:
Hide graphical window

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

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp byte [esi + 0x79], 0
je 0x635a3f
cmp byte [esi + 0x78], 0
je 0x635a3f
mov byte [esi + 0x78], 0
jmp 0x635a4a
push 0
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00633572
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x635bb0
mov eax, dword [0x80005c]
inc eax
and eax, reloc.WS2_32.dll_accept
jns 0x635a6e
dec eax
or eax, 0xfffffffe
inc eax
mov dword [0x80005c], eax
je 0x635a8d
cmp byte [ecx + 9], 0
jne 0x635a8d
call fcn.00633023
mov ecx, dword [esi + 0x54]
push 0x6ac
call fcn.006360a2
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], 1
je 0x635bb0
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 eax, dword [esi + 0x54]
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 0x635aef
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x635bad
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 0x635b3b
mov eax, dword [esi + 0x54]
lea ecx, [esp + 0x10]
push ecx
push dword [eax + 0x3c]
call ebx
test eax, eax
je 0x635b3b
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x635bad
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 0x635b96
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call edi
test eax, eax
je 0x635b96
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x635ba6
sub eax, 1
mov dword [esi + 0xa4], eax
jne 0x635ba6
push 0
mov ecx, esi
call fcn.006364ee
jmp 0x635ba6
push 0
mov ecx, esi
call fcn.006364ee
and dword [esi + 0xa4], 0
mov ecx, esi
call fcn.006338e8
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret 4
Function at 0x6364ee
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 0x63655a
cmp dword [eax + 0xc], 1
je 0x63655a
push ebx
mov bl, byte [ebp + 8]
cmp byte [esi + 0xae], bl
je 0x636559
movzx eax, bl
neg eax
sbb eax, eax
and eax, 4
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 byte [esi + 0xae], bl
mov ecx, dword [esi + 0x54]
push 0
call fcn.0063630d
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x637c60
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 0x637c82
mov eax, 0x200
jmp 0x637e03
mov ecx, dword [esp + 0x10]
mov edx, ecx
and edx, 1
push esi
mov esi, edx
test cl, 2
je 0x637c96
or esi, 2
test cl, 4
je 0x637c9e
or esi, 4
mov eax, ecx
and eax, 0x10
je 0x637ca8
or esi, 0x10
test cl, 0x20
je 0x637cb0
or esi, 0x20
neg eax
sbb eax, eax
and eax, 0xc0000000
add eax, 0x81000000
or esi, eax
test edx, edx
jne 0x637cca
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 0x637d7a
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 0x637d7a
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x34]
cmp ebx, eax
jbe 0x637d7a
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 0x637d74
cmp eax, 0x454e
je 0x637d74
cmp eax, 0x454c
je 0x637d74
cmp eax, 0x4550
jne 0x637d7a
or esi, 0x400000
mov eax, dword [esp + 0x58]
test eax, eax
je 0x637d84
mov dword [eax], esi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x637d8e
mov dword [eax], ebx
mov esi, dword [esp + 0x60]
pop ebp
pop ebx
test esi, esi
je 0x637dd0
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00638f41
push dword [esp + 0x2c]
mov dword [esi], eax
push dword [esp + 0x2c]
mov dword [esi + 4], edx
call fcn.00638f41
push dword [esp + 0x1c]
mov dword [esi + 8], eax
push dword [esp + 0x1c]
mov dword [esi + 0xc], edx
call fcn.00638f41
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x637e00
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.00638ee4
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 0x638506
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x638515
xor eax, eax
jmp 0x6385f7
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
not ecx
cmp esi, 8
jb 0x6385d6
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 + 0x745630]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x745630]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x745630]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x745630]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x745630]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x745630]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x745630]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x745630]
sub edi, 1
jne 0x63852f
pop edi
test esi, esi
je 0x6385f2
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x745630]
inc edx
sub esi, 1
jne 0x6385da
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x638cc7
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 0x638ead
cmp dword [esi + 0x6af90], 3
jb 0x638d36
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 0x638d72
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x638d72
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x638d5d
mov dword [esi + 0x6afa0], eax
push ebp
push esi
call fcn.00639825
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x638d72
mov ebx, eax
cmp ebx, 3
jb 0x638e42
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.00638845
sub dword [esi + 0x6af90], ebx
mov dword [esp + 0x14], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x638e08
cmp dword [esi + 0x6af90], 3
jb 0x638e08
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 0x638dae
mov eax, dword [esp + 0x14]
jmp 0x638e5e
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 0x638e64
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push edi
push esi
call fcn.00638845
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x638e9b
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x638e7c
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x638e7e
mov edx, edi
mov eax, dword [esi + 0x6af84]
push edi
sub eax, ecx
push eax
push edx
push esi
call fcn.00639091
mov eax, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x638ead
push esi
call fcn.00638f65
cmp dword [esi + 0x6af90], edi
jne 0x638ce4
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x638ecb
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.00639091
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x6396f8
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.006379b7
xor ebp, ebp
xor edi, edi
inc ebp
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x63973f
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.0066c620
movzx eax, word [ebx*8 + 0x7455ca]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x7455c8]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x7455cc]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x7455ce]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x6397a3
mov eax, dword [esp + 0x1c]
or word [eax], 4
jmp 0x6397af
cmp ebx, 8
jl 0x6397af
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 0x639812
cmp eax, 0xffffffff
je 0x639812
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x6397ed
push esi
call fcn.00638f65
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 0x6397f5
jmp 0x63981e
mov dword [esi + 0x6af8c], ebp
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc