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

Disassembly:
sub esp, 0x24
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x20]
push ebp
mov ebp, dword [edx + 0x1058]
push edi
mov edi, dword [edx + 0x1064]
imul edi, ebp
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x20]
add edi, eax
cmp eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
jae 0x587a62
push ebx
push esi
mov esi, 0xff00
mov ebx, dword [esp + 0x14]
mov edx, dword [edx + 0x1060]
lea edx, [eax + edx*2]
mov dword [esp + 0x10], ebx
add ebp, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edx
jae 0x587a3c
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
movzx eax, word [ebp + 2]
movzx ebp, word [ebp]
mov dword [esp + 0x18], edx
mov ebx, eax
mov ecx, 0xff
and bx, cx
and dx, cx
add ebx, edx
mov edx, ebp
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, eax
and cx, si
and eax, esi
lea edx, [ebx + edx + 2]
mov ebx, dword [esp + 0x18]
and bx, si
shr edx, 2
add ecx, ebx
mov ebx, ebp
and bx, si
and ebp, esi
add ecx, ebx
mov ebx, edi
and bx, si
and edi, esi
lea ecx, [ecx + ebx + 0x200]
mov ebx, dword [esp + 0x1c]
shr ecx, 2
xor dl, cl
mov ecx, dword [esp + 0x18]
and ecx, esi
add eax, ecx
add eax, ebp
mov ebp, dword [esp + 0x20]
lea eax, [eax + edi + 0x200]
shr eax, 2
and edx, 0xffff00ff
xor edx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
add ebx, 4
add ebp, 4
cmp ebx, dword [esp + 0x28]
mov word [eax], dx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
jb 0x587987
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov edx, dword [ecx + 4]
mov edx, dword [edx + 0x1058]
add dword [esp + 0x14], edx
mov edx, dword [ecx]
mov ebp, dword [edx + 0x1058]
lea eax, [eax + ebp*2]
cmp eax, edi
mov dword [esp + 0x24], eax
jb 0x58795e
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x587a6a
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 0x587ba0
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 0x587b7b
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 0x587ac9
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 0x587aa5
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
Function at 0x592530
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x592551
mov eax, 0x8876086c
jmp 0x592644
cmp dword [ebp + 0x7c], esi
je 0x5925d3
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x5925b3
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.00628480
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x5925d3
push esi
push 0x10000000
push 3
push esi
push 1
push closesocket
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x5925ec
push esi
push 0x10000000
push 3
push esi
push 1
push closesocket
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x592632
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x592632
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x592632
cmp eax, esi
je 0x59263f
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x592642
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x592644
mov dword [edi + 8], esi
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8

Function at 0x5926d7
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 0x5926ea
call fcn.005926b8
cmp dword [ebp + 0x14], esi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
jne 0x5926fb
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp dword [ebp + 0x10], esi
je 0x592710
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
jne 0x592720
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x59274f
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebx + 8], eax
je 0x59274f
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebx], eax
je 0x59274f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebx + 4], eax
jne 0x59275c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x59275e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x592f62
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 0x592fd0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x63da5c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x592fc7
cmp dword [ebp - 0xc], 4
jne 0x592fc7
cmp dword [ebp - 0x10], edi
je 0x592fc7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x676bd8], edi
xor eax, eax
jmp 0x59300f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x676bd8], edi
jge 0x59300a
lea eax, [ebp - 0x34]
push eax
mov dword [0x676bd8], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x59300a
cmp word [ebp - 0x14], 5
jb 0x59300a
call fcn.00592f3d
test eax, eax
je 0x59300a
emms
mov dword [0x676bd8], 1
mov eax, dword [0x676bd8]
pop edi
leave
ret
Function at 0x5b8ed0
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x5b8ef3
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 0x5b8f19
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 0x5b8f00
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 0x5b8fd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5b9002
push esi
call fcn.005d2050
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5b8ffb
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 0x5b9085
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5b9070
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x5b902a
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x5b906a
cmp eax, 2
je 0x5b9070
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5b9020
cmp eax, 3
je 0x5b904d
cmp eax, 1
jne 0x5b9020
mov eax, dword [ecx + 4]
inc eax
mov edx, eax
mov dword [ecx + 4], eax
mov eax, dword [ecx + 8]
cmp edx, eax
jl 0x5b9020
mov edx, dword [esi + 0x144]
add edx, eax
mov dword [ecx + 8], edx
jmp 0x5b9020
xor eax, eax
pop esi
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.005b8ed0
pop esi
ret 4
cmp ecx, 0xcc
je 0x5b909c
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.005b8ed0
pop esi
ret 4
Function at 0x5d4b32
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x5d4b41
xor eax, eax
jmp 0x5d4c24
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x5d4c04
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 + 0x64a358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x64a358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x64a358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x64a358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x64a358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x64a358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x64a358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x64a358]
inc edx
dec edi
jne 0x5d4b61
pop edi
test eax, eax
je 0x5d4c1e
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x64a358]
inc edx
dec eax
jne 0x5d4c08
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc
Function at 0x614c80
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x684540]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x118], eax
push edi
je 0x614d6d
cmp byte [esi], 0
je 0x614d6d
push 0x3a
push esi
call fcn.00625a30
add esp, 8
test eax, eax
jne 0x614cc2
xor edi, edi
jmp 0x614d2e
cmp eax, esi
jne 0x614cce
xor esi, esi
mov dword [esp + 0xc], esi
jmp 0x614cef
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 0x614d18
lea ebx, [ebx]
movsx eax, al
push eax
call fcn.0062557f
add esp, 4
test eax, eax
je 0x614d4b
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x614d00
push ebx
call fcn.00625b76
add esp, 4
test eax, eax
jl 0x614d4b
cmp eax, 0xffff
jg 0x614d4b
mov edi, eax
test esi, esi
je 0x614d77
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x614d77
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x614d60
xor eax, eax
mov ecx, dword [esp + 0x11c]
call fcn.006293e9
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 0x614d77
mov dword [esp + 0xc], 0
xor edi, edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x614d84
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x614d8e
mov word [eax], di
mov ecx, dword [esp + 0x11c]
mov eax, 1
call fcn.006293e9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
sub esp, 0x14
mov eax, dword [0x684540]
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.006293e9
add esp, 0x14
ret
Function at 0x614fc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x30
mov eax, dword [0x684540]
mov cx, word [0x683828]
mov dl, byte [esi + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [0x683824]
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.00614f50
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 0x61506e
cmp dword [esi + 0x14], ebx
jne 0x61506e
mov ecx, dword [0x6a25fc]
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.00614ef0
add esp, 0x14
cmp dword [esi + 0x18], ebx
jne 0x615096
mov ecx, dword [0x6a25fc]
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.00614ef0
add esp, 0x14
cmp byte [esp + 0x16], bl
je 0x6150a1
mov eax, dword [esi + 4]
jmp 0x6150a3
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 0x6150fd
mov ecx, dword [0x6a2600]
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.00614ef0
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.006293e9
add esp, 0x30
ret
Function at 0x615120
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x28
mov eax, dword [0x684540]
mov edx, dword [esi + 8]
mov cx, word [0x683828]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [0x683824]
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 0x615190
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.006293e9
add esp, 0x28
ret

Function at 0x6151f0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [0x6a25fc]
test eax, eax
push esi
jne 0x615222
mov eax, dword [str.natneg1.gamespy.com]
push eax
mov esi, eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x61521d
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x61521d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [0x6a25fc], eax
mov eax, dword [0x6a2600]
test eax, eax
jne 0x615253
mov eax, dword [str.natneg2.gamespy.com]
push eax
mov esi, eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x61524e
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x61524e
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [0x6a2600], eax
mov ecx, dword [0x6a25fc]
test ecx, ecx
pop esi
je 0x615268
test eax, eax
je 0x615268
mov eax, 1
ret
xor eax, eax
ret

Function at 0x615270
Capabilities:
Create udp socket

Disassembly:
push esi
call fcn.00614e40
mov esi, eax
call fcn.006151f0
test eax, eax
jne 0x615288
mov eax, 3
pop esi
ret
push ebx
xor ebx, ebx
cmp esi, ebx
jne 0x615297
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 0x6152f4
push edi
mov edi, esi
call fcn.00614ea0
pop edi
pop ebx
mov eax, 2
pop esi
ret
call fcn.00614fc0
pop ebx
xor eax, eax
pop esi
ret
Function at 0x615330
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x2c
mov eax, dword [0x684540]
mov dword [esp + 0x28], eax
mov eax, dword [0x683824]
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 [0x683828]
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.006293e9
add esp, 0x2c
ret
Function at 0x6156a0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 0x28
mov eax, dword [0x684540]
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 0x6156dc
mov edi, esi
call fcn.00614ea0
pop edi
pop esi
mov ecx, dword [esp + 0x24]
call fcn.006293e9
add esp, 0x28
ret
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x615743
push eax
call fcn.0061d5c0
add esp, 4
test eax, eax
je 0x615743
mov edx, dword [esi]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x200
push 0x6a23f8
push edx
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x615743
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0x6a23f8
call fcn.00615580
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp eax, edi
je 0x615743
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x615743
mov edx, eax
push edx
call fcn.0061d5c0
add esp, 4
test eax, eax
jne 0x6156f0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x61574f
cmp eax, 2
jne 0x615793
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x615793
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jle 0x61577c
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.00615300
add esp, 0x14
jmp 0x615793
inc eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x61578e
call fcn.00614fc0
jmp 0x615793
call fcn.00615120
cmp dword [esi + 0x10], 3
jne 0x6157ee
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x6157ee
cmp dword [esi + 4], 0xffffffff
jne 0x6157e2
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.00615300
add esp, 4
cmp dword [esi + 0x10], 1
jne 0x615817
call sub.KERNEL32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x615817
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.00615300
add esp, 0x14
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
call fcn.006293e9
add esp, 0x28
ret
Function at 0x615a00
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
mov eax, dword [0x684540]
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 0x615a20
xor dl, dl
xor eax, eax
lea ecx, [esp + 0x14]
mov esi, 0x100
jmp 0x615a40
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 0x615a65
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 0x615a40
mov eax, dword [esp + 0x124]
xor ebp, ebp
test eax, eax
jle 0x615b30
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 0x615ac1
dec ecx
or ecx, 0xffffff00
inc ecx
movzx esi, cl
movzx ecx, byte [esp + esi + 0x14]
add ecx, edi
and ecx, 0x800000ff
jns 0x615adb
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 0x615b0a
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 0x615aa0
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
call fcn.006293e9
add esp, 0x108
ret