joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58acd6
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 0x20]
mov eax, dword [edx + 0x20]
push esi
mov esi, dword [edx + 0x1064]
push edi
mov edi, dword [edx + 0x1058]
imul esi, edi
add esi, eax
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
jae 0x58ae0c
push ebx
mov edx, dword [edx + 0x1060]
add edx, eax
add edi, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jae 0x58ade7
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
movzx eax, byte [edi + 1]
movzx edi, byte [edi]
mov edx, eax
push 0xf
pop ecx
and edx, ecx
mov ebx, ebp
and ebx, ecx
add edx, ebx
mov ebx, edi
and ebx, ecx
add edx, ebx
mov ebx, esi
and ebx, ecx
lea edx, [edx + ebx + 2]
mov ecx, eax
and ecx, 0xffff00f0
mov ebx, ebp
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, edi
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, esi
and ebx, 0xffff00f0
shr edx, 2
lea ecx, [ecx + ebx + 0x20]
mov ebx, dword [esp + 0x14]
shr ecx, 2
xor dl, cl
mov ecx, 0xf0
and ax, cx
and bp, cx
and di, cx
and si, cx
and dl, 0xf
add eax, ebp
add eax, edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
inc ebx
inc ebx
inc edi
inc edi
cmp ebx, dword [esp + 0x24]
mov byte [eax], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jb 0x58ad35
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ebp, dword [edx + 0x1058]
mov edx, dword [ecx]
mov edi, dword [edx + 0x1058]
lea eax, [eax + edi*2]
cmp eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jb 0x58ad11
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret

Function at 0x594f49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx], esi
push edi
je 0x594f5c
call fcn.00594f2a
cmp dword [ebp + 0x14], esi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
jne 0x594f6d
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp dword [ebp + 0x10], esi
je 0x594f82
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
jne 0x594f92
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x594fc1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebx + 8], eax
je 0x594fc1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebx], eax
je 0x594fc1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebx + 4], eax
jne 0x594fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x594fd0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x5957d4
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x595842
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x5e2a30
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x595839
cmp dword [ebp - 0xc], 4
jne 0x595839
cmp dword [ebp - 0x10], edi
je 0x595839
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x615bd8], edi
xor eax, eax
jmp 0x595881
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x615bd8], edi
jge 0x59587c
lea eax, [ebp - 0x34]
push eax
mov dword [0x615bd8], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x59587c
cmp word [ebp - 0x14], 5
jb 0x59587c
call fcn.005957af
test eax, eax
je 0x59587c
emms
mov dword [0x615bd8], 1
mov eax, dword [0x615bd8]
pop edi
leave
ret

Function at 0x595a30
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x595a53
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x595a79
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x595a60
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x595b30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x595b62
push esi
call fcn.0059cd20
mov eax, dword [esi + 0x40]
test eax, eax
je 0x595b5b
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret 4
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x595be5
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x595bd0
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x595b8a
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x595bca
cmp eax, 2
je 0x595bd0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x595b80
cmp eax, 3
je 0x595bad
cmp eax, 1
jne 0x595b80
mov eax, dword [ecx + 4]
inc eax
mov edx, eax
mov dword [ecx + 4], eax
mov eax, dword [ecx + 8]
cmp edx, eax
jl 0x595b80
mov edx, dword [esi + 0x144]
add edx, eax
mov dword [ecx + 8], edx
jmp 0x595b80
xor eax, eax
pop esi
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.00595a30
pop esi
ret 4
cmp ecx, 0xcc
je 0x595bfc
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.00595a30
pop esi
ret 4
Function at 0x59f802
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x59f811
xor eax, eax
jmp 0x59f8f4
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x59f8d4
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x5e4f88]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x5e4f88]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x5e4f88]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x5e4f88]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x5e4f88]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x5e4f88]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x5e4f88]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x5e4f88]
inc edx
dec edi
jne 0x59f831
pop edi
test eax, eax
je 0x59f8ee
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x5e4f88]
inc edx
dec eax
jne 0x59f8d8
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc
Function at 0x5b9b50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x61fb00]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x118], eax
push edi
je 0x5b9c3d
cmp byte [esi], 0
je 0x5b9c3d
push 0x3a
push esi
call fcn.005ca7c0
add esp, 8
test eax, eax
jne 0x5b9b92
xor edi, edi
jmp 0x5b9bfe
cmp eax, esi
jne 0x5b9b9e
xor esi, esi
mov dword [esp + 0xc], esi
jmp 0x5b9bbf
mov edx, eax
sub edx, esi
mov ecx, edx
mov ebx, ecx
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0x10], 0
lea esi, [esp + 0x10]
lea ebx, [eax + 1]
mov edi, ebx
mov al, byte [edi]
test al, al
je 0x5b9be8
lea ebx, [ebx]
movsx eax, al
push eax
call fcn.005ca310
add esp, 4
test eax, eax
je 0x5b9c1b
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5b9bd0
push ebx
call fcn.005ca906
add esp, 4
test eax, eax
jl 0x5b9c1b
cmp eax, 0xffff
jg 0x5b9c1b
mov edi, eax
test esi, esi
je 0x5b9c47
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x5b9c47
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x5b9c30
xor eax, eax
mov ecx, dword [esp + 0x11c]
call fcn.005ce175
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
jmp 0x5b9c47
mov dword [esp + 0xc], 0
xor edi, edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5b9c54
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5b9c5e
mov word [eax], di
mov ecx, dword [esp + 0x11c]
mov eax, 1
call fcn.005ce175
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
sub esp, 0x14
mov eax, dword [0x61fb00]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
push eax
mov word [esp + 4], 2
call sub.WSOCK32.dll_htons
mov ecx, dword [esp + 0x1c]
push 0x10
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x20]
push 0
mov word [esp + 0xe], ax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
push edx
call sub.WS2_32.dll_sendto
mov ecx, dword [esp + 0x10]
call fcn.005ce175
add esp, 0x14
ret
Function at 0x5b9e90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x30
mov eax, dword [0x61fb00]
mov cx, word [0x61edec]
mov dl, byte [esi + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [0x61ede8]
push ebx
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
xor ebx, ebx
push eax
mov word [esp + 0x10], cx
mov byte [esp + 0x12], 2
mov byte [esp + 0x13], bl
mov byte [esp + 0x19], dl
call sub.WSOCK32.dll_htonl
mov dword [esp + 0x10], eax
cmp dword [esi + 4], 0xffffffff
setne cl
mov byte [esp + 0x16], cl
call fcn.005b9e20
push eax
call sub.WSOCK32.dll_ntohl
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x17], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x1a], al
mov al, byte [esp + 0x16]
shr ecx, 0x10
shr edx, 8
cmp al, bl
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], dl
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], bl
je 0x5b9f3e
cmp dword [esi + 0x14], ebx
jne 0x5b9f3e
mov ecx, dword [0x63d4fc]
mov edx, dword [esi + 4]
push 0x15
lea eax, [esp + 0xc]
push eax
push 0x6cfd
push ecx
push edx
mov byte [esp + 0x28], bl
call fcn.005b9dc0
add esp, 0x14
cmp dword [esi + 0x18], ebx
jne 0x5b9f66
mov ecx, dword [0x63d4fc]
mov edx, dword [esi]
push 0x15
lea eax, [esp + 0xc]
push eax
push 0x6cfd
push ecx
push edx
mov byte [esp + 0x28], 1
call fcn.005b9dc0
add esp, 0x14
cmp byte [esp + 0x16], bl
je 0x5b9f71
mov eax, dword [esi + 4]
jmp 0x5b9f73
mov eax, dword [esi]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x10], 0x10
call sub.WSOCK32.dll_getsockname
mov edx, dword [esp + 0x22]
inc eax
neg eax
sbb eax, eax
and eax, edx
push eax
call sub.WSOCK32.dll_ntohs
mov byte [esp + 0x1b], ah
mov byte [esp + 0x1c], al
cmp dword [esi + 0x1c], ebx
pop ebx
jne 0x5b9fcd
mov ecx, dword [0x63d500]
mov edx, dword [esi]
push 0x15
lea eax, [esp + 8]
push eax
push 0x6cfd
push ecx
push edx
mov byte [esp + 0x24], 2
call fcn.005b9dc0
add esp, 0x14
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esp + 0x2c]
add eax, 0x1f4
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], 0x1e
call fcn.005ce175
add esp, 0x30
ret
Function at 0x5b9ff0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x28
mov eax, dword [0x61fb00]
mov edx, dword [esi + 8]
mov cx, word [0x61edec]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [0x61ede8]
push edi
push edx
mov dword [esp + 0xc], eax
mov word [esp + 0x10], cx
mov byte [esp + 0x12], 2
mov byte [esp + 0x13], 7
call sub.WSOCK32.dll_htonl
xor ecx, ecx
mov cx, word [esi + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
push ecx
call sub.WSOCK32.dll_htons
mov ecx, dword [esi + 0x10]
mov ebp, dword [esi + 4]
mov dl, byte [esi + 0x32]
cmp ecx, 2
mov word [esp + 0x18], ax
setne al
cmp ebp, 0xffffffff
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], al
jne 0x5ba060
mov ebp, dword [esi]
mov edi, dword [esi + 0x2c]
xor eax, eax
mov ax, word [esi + 0x30]
mov word [esp + 0x1c], 2
push eax
call sub.WSOCK32.dll_htons
push 0x10
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x14
lea edx, [esp + 0x18]
push edx
push ebp
mov word [esp + 0x36], ax
mov dword [esp + 0x38], edi
call sub.WS2_32.dll_sendto
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esp + 0x2c]
add eax, 0x2bc
pop edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], 0x14
pop ebp
call fcn.005ce175
add esp, 0x28
ret

Function at 0x5ba0c0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [0x63d4fc]
test eax, eax
push esi
jne 0x5ba0f2
mov eax, dword [str.natneg1.gamespy.com]
push eax
mov esi, eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x5ba0ed
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x5ba0ed
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [0x63d4fc], eax
mov eax, dword [0x63d500]
test eax, eax
jne 0x5ba123
mov eax, dword [str.natneg2.gamespy.com]
push eax
mov esi, eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x5ba11e
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x5ba11e
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [0x63d500], eax
mov ecx, dword [0x63d4fc]
test ecx, ecx
pop esi
je 0x5ba138
test eax, eax
je 0x5ba138
mov eax, 1
ret
xor eax, eax
ret

Function at 0x5ba140
Capabilities:
Create udp socket

Disassembly:
push esi
call fcn.005b9d10
mov esi, eax
call fcn.005ba0c0
test eax, eax
jne 0x5ba158
mov eax, 3
pop esi
ret
push ebx
xor ebx, ebx
cmp esi, ebx
jne 0x5ba167
pop ebx
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x11
mov dword [esi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x24]
push 2
push 2
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
mov dword [esi + 0x20], ebx
mov byte [esi + 0x32], bl
mov dword [esi + 0x2c], ebx
mov word [esi + 0x30], bx
mov dword [esi + 0x24], ebx
jne 0x5ba1c4
push edi
mov edi, esi
call fcn.005b9d70
pop edi
pop ebx
mov eax, 2
pop esi
ret
call fcn.005b9e90
pop ebx
xor eax, eax
pop esi
ret
Function at 0x5ba200
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x2c
mov eax, dword [0x61fb00]
mov dword [esp + 0x28], eax
mov eax, dword [0x61ede8]
push esi
mov esi, edx
mov dl, byte [esi + 0xc]
push edi
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
mov edi, ecx
mov cx, word [0x61edec]
push eax
mov word [esp + 0x10], cx
mov byte [esp + 0x12], 2
mov byte [esp + 0x13], 6
mov byte [esp + 0x19], dl
call sub.WSOCK32.dll_htonl
xor ecx, ecx
mov cx, word [edi + 2]
mov dword [esp + 0x10], eax
push ecx
call sub.WSOCK32.dll_ntohs
mov edi, dword [edi + 4]
mov esi, dword [esi]
mov word [esp + 0x20], 2
push eax
call sub.WSOCK32.dll_htons
push 0x10
lea edx, [esp + 0x24]
push edx
push 0
mov word [esp + 0x2e], ax
push 0x15
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x3c], edi
call sub.WS2_32.dll_sendto
mov ecx, dword [esp + 0x30]
pop edi
pop esi
call fcn.005ce175
add esp, 0x2c
ret
Function at 0x5ba570
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 0x28
mov eax, dword [0x61fb00]
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x10]
push edi
mov edi, 4
cmp eax, edi
mov dword [esp + 8], 0x10
jne 0x5ba5ac
mov edi, esi
call fcn.005b9d70
pop edi
pop esi
mov ecx, dword [esp + 0x24]
call fcn.005ce175
add esp, 0x28
ret
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5ba613
push eax
call fcn.005c2450
add esp, 4
test eax, eax
je 0x5ba613
mov edx, dword [esi]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x200
push 0x63d2f8
push edx
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x5ba613
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0x63d2f8
call fcn.005ba450
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp eax, edi
je 0x5ba613
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5ba613
mov edx, eax
push edx
call fcn.005c2450
add esp, 4
test eax, eax
jne 0x5ba5c0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x5ba61f
cmp eax, 2
jne 0x5ba663
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x5ba663
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jle 0x5ba64c
mov eax, dword [esi + 0x3c]
push eax
push 0
push 0xffffffffffffffff
push 2
call dword [esi + 0x38]
mov ecx, dword [esi + 8]
push ecx
call fcn.005ba1d0
add esp, 0x14
jmp 0x5ba663
inc eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x5ba65e
call fcn.005b9e90
jmp 0x5ba663
call fcn.005b9ff0
cmp dword [esi + 0x10], 3
jne 0x5ba6be
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x5ba6be
cmp dword [esi + 4], 0xffffffff
jne 0x5ba6b2
xor edx, edx
mov dx, word [esi + 0x30]
mov word [esp + 0xc], 2
push edx
call sub.WSOCK32.dll_htons
mov ecx, dword [esi + 0x3c]
mov word [esp + 0xe], ax
mov eax, dword [esi + 0x2c]
push ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
push edx
push eax
push 0
call dword [esi + 0x38]
add esp, 0x10
mov dword [esi], 0xffffffff
mov ecx, dword [esi + 8]
push ecx
call fcn.005ba1d0
add esp, 4
cmp dword [esi + 0x10], 1
jne 0x5ba6e7
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x5ba6e7
mov edx, dword [esi + 0x3c]
push edx
push 0
push 0xffffffffffffffff
push 1
call dword [esi + 0x38]
mov eax, dword [esi + 8]
push eax
call fcn.005ba1d0
add esp, 0x14
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
call fcn.005ce175
add esp, 0x28
ret
Function at 0x5ba8d0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
mov eax, dword [0x61fb00]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x114], eax
mov edi, ecx
xor eax, eax
lea ecx, [esp + 0x14]
mov edi, edi
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x5ba8f0
xor dl, dl
xor eax, eax
lea ecx, [esp + 0x14]
mov esi, 0x100
jmp 0x5ba910
mov ebx, dword [esp + 0x11c]
movzx ebp, byte [ecx]
movzx edx, dl
movzx ebx, byte [edx + ebx]
add ebx, eax
add ebx, ebp
and ebx, 0x800000ff
jns 0x5ba935
dec ebx
or ebx, 0xffffff00
inc ebx
lea eax, [edx + 1]
cdq
idiv edi
movzx eax, bl
mov bl, byte [ecx]
mov byte [esp + 0x13], bl
mov bl, byte [esp + eax + 0x14]
mov byte [ecx], bl
mov bl, byte [esp + 0x13]
inc ecx
dec esi
mov byte [esp + eax + 0x14], bl
jne 0x5ba910
mov eax, dword [esp + 0x124]
xor ebp, ebp
test eax, eax
jle 0x5baa00
xor esi, esi
xor edi, edi
xor eax, eax
lea ecx, [ecx]
mov ecx, dword [esp + 0x120]
mov dl, byte [eax + ecx]
movzx ecx, dl
lea ecx, [ecx + esi + 1]
and ecx, 0x800000ff
jns 0x5ba991
dec ecx
or ecx, 0xffffff00
inc ecx
movzx esi, cl
movzx ecx, byte [esp + esi + 0x14]
add ecx, edi
and ecx, 0x800000ff
jns 0x5ba9ab
dec ecx
or ecx, 0xffffff00
inc ecx
movzx edi, cl
mov bl, byte [esp + edi + 0x14]
mov cl, byte [esp + esi + 0x14]
mov byte [esp + esi + 0x14], bl
mov byte [esp + edi + 0x14], cl
movzx ecx, byte [esp + esi + 0x14]
movzx ebx, byte [esp + edi + 0x14]
add ecx, ebx
and ecx, 0x800000ff
jns 0x5ba9da
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, cl
mov cl, byte [esp + ecx + 0x14]
xor cl, dl
mov edx, dword [esp + 0x120]
inc ebp
mov byte [eax + edx], cl
mov ecx, dword [esp + 0x124]
movsx eax, bp
cmp eax, ecx
jl 0x5ba970
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
call fcn.005ce175
add esp, 0x108
ret
Function at 0x5bb4e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x808
mov eax, dword [0x61fb00]
push 0x10
lea ecx, [esi + 0xc4]
push ecx
mov dword [esp + 0x80c], eax
mov eax, dword [esi + 0x84]
push 0
push 5
lea edx, [esp + 0x10]
mov dword [esp + 0x11], eax
mov eax, dword [esi]
push edx
push eax
mov byte [esp + 0x18], 8
mov dword [esp + 0x818], 5
call sub.WS2_32.dll_sendto
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esp + 0x804]
mov dword [esi + 0xac], eax
call fcn.005ce175
add esp, 0x808
ret
Function at 0x5bb7c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x61fb00]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xbc]
test eax, eax
mov dword [esp], 0x10
je 0x5bb83c
mov eax, dword [esi]
push eax
call fcn.005c2450
add esp, 4
test eax, eax
je 0x5bb83c
lea esp, [esp]
mov eax, dword [esi]
lea ecx, [esp]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0xff
push 0x63d520
push eax
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x5bb82d
lea ecx, [esp + 4]
push ecx
push eax
push 0x63d520
push esi
mov byte [eax + 0x63d520], 0
call fcn.005bb260
add esp, 0x10
mov edx, dword [esi]
push edx
call fcn.005c2450
add esp, 4
test eax, eax
jne 0x5bb7f0
mov ecx, dword [esp + 0x14]
call fcn.005ce175
add esp, 0x18
ret
Function at 0x5bd380
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esi + 4]
mov dword [esp + 0x14], edi
mov edi, dword [esi]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x1c], edi
xor edx, edx
mov dword [esp + 0x18], esi
mov edi, 0x20
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, ecx
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x1c]
xor esi, ebx
sub edx, 0x61c88647
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x18]
add eax, esi
mov esi, eax
shr esi, 5
add esi, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
dec edi
jne 0x5bd3b6
mov edx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 0x10
ret

Function at 0x5bd470
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esi + 8]
mov dword [esp + 0x14], edi
mov edi, dword [esi + 0xc]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x1c], edi
mov edx, 0xc6ef3720
mov dword [esp + 0x18], esi
mov edi, 0x20
lea esp, [esp]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, ecx
shr esi, 5
add esi, ebx
mov ebx, ecx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x1c]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x18]
sub eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
sub ecx, esi
add edx, 0x61c88647
dec edi
jne 0x5bd4b0
mov edx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
add esp, 0x10
ret