joyce8/EMBER2024-capa huggingface dataset:
Function at 0x582e96
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 0x582fcc
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 0x582fa7
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 0x582ef5
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 0x582ed1
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
Function at 0x58d95c
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 0x58d97d
mov eax, 0x8876086c
jmp 0x58da70
cmp dword [ebp + 0x7c], esi
je 0x58d9ff
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x58d9df
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.00623680
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 0x58d9ff
push esi
push 0x10000000
push 3
push esi
push 1
push closesocket
push dword [ebp + 0x78]
call dword [sym.imp.kernel32.dll_CreateFileW]
jmp 0x58da18
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 0x58da5e
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 0x58da5e
push esi
push dword [edi]
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x58da5e
cmp eax, esi
je 0x58da6b
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 0x58da6e
call dword [sym.imp.kernel32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x58da70
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 0x58db03
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 0x58db16
call fcn.0058dae4
cmp dword [ebp + 0x14], esi
mov edi, dword [sym.imp.kernel32.dll_FindResourceW]
jne 0x58db27
mov edi, dword [sym.imp.kernel32.dll_FindResourceA]
cmp dword [ebp + 0x10], esi
je 0x58db3c
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
jne 0x58db4c
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x58db7b
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SizeofResource]
test eax, eax
mov dword [ebx + 8], eax
je 0x58db7b
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
mov dword [ebx], eax
je 0x58db7b
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
mov dword [ebx + 4], eax
jne 0x58db88
call dword [sym.imp.kernel32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x58db8a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x58e38e
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 0x58e3fc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x638a5c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x58e3f3
cmp dword [ebp - 0xc], 4
jne 0x58e3f3
cmp dword [ebp - 0x10], edi
je 0x58e3f3
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [0x670bd8], edi
xor eax, eax
jmp 0x58e43b
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [0x670bd8], edi
jge 0x58e436
lea eax, [ebp - 0x34]
push eax
mov dword [0x670bd8], edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x58e436
cmp word [ebp - 0x14], 5
jb 0x58e436
call fcn.0058e369
test eax, eax
je 0x58e436
emms
mov dword [0x670bd8], 1
mov eax, dword [0x670bd8]
pop edi
leave
ret
Function at 0x5b42f0
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x5b4313
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 0x5b4339
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 0x5b4320
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 0x5b43f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5b4422
push esi
call fcn.005cd470
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5b441b
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 0x5b44a5
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5b4490
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x5b444a
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x5b448a
cmp eax, 2
je 0x5b4490
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5b4440
cmp eax, 3
je 0x5b446d
cmp eax, 1
jne 0x5b4440
mov eax, dword [ecx + 4]
inc eax
mov edx, eax
mov dword [ecx + 4], eax
mov eax, dword [ecx + 8]
cmp edx, eax
jl 0x5b4440
mov edx, dword [esi + 0x144]
add edx, eax
mov dword [ecx + 8], edx
jmp 0x5b4440
xor eax, eax
pop esi
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.005b42f0
pop esi
ret 4
cmp ecx, 0xcc
je 0x5b44bc
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.005b42f0
pop esi
ret 4
Function at 0x5cff52
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x5cff61
xor eax, eax
jmp 0x5d0044
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x5d0024
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 + 0x645358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x645358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x645358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x645358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x645358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x645358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x645358]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x645358]
inc edx
dec edi
jne 0x5cff81
pop edi
test eax, eax
je 0x5d003e
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x645358]
inc edx
dec eax
jne 0x5d0028
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc
Function at 0x6100e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x67e540]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x118], eax
push edi
je 0x6101cd
cmp byte [esi], 0
je 0x6101cd
push 0x3a
push esi
call fcn.00620e80
add esp, 8
test eax, eax
jne 0x610122
xor edi, edi
jmp 0x61018e
cmp eax, esi
jne 0x61012e
xor esi, esi
mov dword [esp + 0xc], esi
jmp 0x61014f
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 0x610178
lea ebx, [ebx]
movsx eax, al
push eax
call fcn.006209cf
add esp, 4
test eax, eax
je 0x6101ab
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x610160
push ebx
call fcn.00620fc6
add esp, 4
test eax, eax
jl 0x6101ab
cmp eax, 0xffff
jg 0x6101ab
mov edi, eax
test esi, esi
je 0x6101d7
push esi
call sub.ws2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x6101d7
push esi
call sub.ws2_32.dll_gethostbyname
test eax, eax
jne 0x6101c0
xor eax, eax
mov ecx, dword [esp + 0x11c]
call fcn.006245e9
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 0x6101d7
mov dword [esp + 0xc], 0
xor edi, edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6101e4
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6101ee
mov word [eax], di
mov ecx, dword [esp + 0x11c]
mov eax, 1
call fcn.006245e9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

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

Disassembly:
sub esp, 0x30
mov eax, dword [0x67e540]
mov cx, word [0x67d828]
mov dl, byte [esi + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [0x67d824]
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.006103b0
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 0x6104ce
cmp dword [esi + 0x14], ebx
jne 0x6104ce
mov ecx, dword [0x69be7c]
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.00610350
add esp, 0x14
cmp dword [esi + 0x18], ebx
jne 0x6104f6
mov ecx, dword [0x69be7c]
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.00610350
add esp, 0x14
cmp byte [esp + 0x16], bl
je 0x610501
mov eax, dword [esi + 4]
jmp 0x610503
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 0x61055d
mov ecx, dword [0x69be80]
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.00610350
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.006245e9
add esp, 0x30
ret
Function at 0x610580
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x28
mov eax, dword [0x67e540]
mov edx, dword [esi + 8]
mov cx, word [0x67d828]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [0x67d824]
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 0x6105f0
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.006245e9
add esp, 0x28
ret

Function at 0x610650
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [0x69be7c]
test eax, eax
push esi
jne 0x610682
mov eax, dword [str.natneg1.gamespy.com]
push eax
mov esi, eax
call sub.ws2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x61067d
push esi
call sub.ws2_32.dll_gethostbyname
test eax, eax
je 0x61067d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [0x69be7c], eax
mov eax, dword [0x69be80]
test eax, eax
jne 0x6106b3
mov eax, dword [str.natneg2.gamespy.com]
push eax
mov esi, eax
call sub.ws2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x6106ae
push esi
call sub.ws2_32.dll_gethostbyname
test eax, eax
je 0x6106ae
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [0x69be80], eax
mov ecx, dword [0x69be7c]
test ecx, ecx
pop esi
je 0x6106c8
test eax, eax
je 0x6106c8
mov eax, 1
ret
xor eax, eax
ret

Function at 0x6106d0
Capabilities:
Create udp socket

Disassembly:
push esi
call fcn.006102a0
mov esi, eax
call fcn.00610650
test eax, eax
jne 0x6106e8
mov eax, 3
pop esi
ret
push ebx
xor ebx, ebx
cmp esi, ebx
jne 0x6106f7
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 0x610754
push edi
mov edi, esi
call fcn.00610300
pop edi
pop ebx
mov eax, 2
pop esi
ret
call fcn.00610420
pop ebx
xor eax, eax
pop esi
ret
Function at 0x610790
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x2c
mov eax, dword [0x67e540]
mov dword [esp + 0x28], eax
mov eax, dword [0x67d824]
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 [0x67d828]
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.006245e9
add esp, 0x2c
ret
Function at 0x610b00
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 0x28
mov eax, dword [0x67e540]
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 0x610b3c
mov edi, esi
call fcn.00610300
pop edi
pop esi
mov ecx, dword [esp + 0x24]
call fcn.006245e9
add esp, 0x28
ret
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x610ba3
push eax
call fcn.00618a30
add esp, 4
test eax, eax
je 0x610ba3
mov edx, dword [esi]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x200
push 0x69bc78
push edx
call sub.ws2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x610ba3
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0x69bc78
call fcn.006109e0
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp eax, edi
je 0x610ba3
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x610ba3
mov edx, eax
push edx
call fcn.00618a30
add esp, 4
test eax, eax
jne 0x610b50
mov eax, dword [esi + 0x10]
test eax, eax
je 0x610baf
cmp eax, 2
jne 0x610bf3
call sub.kernel32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x610bf3
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jle 0x610bdc
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.00610760
add esp, 0x14
jmp 0x610bf3
inc eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x610bee
call fcn.00610420
jmp 0x610bf3
call fcn.00610580
cmp dword [esi + 0x10], 3
jne 0x610c4e
call sub.kernel32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x610c4e
cmp dword [esi + 4], 0xffffffff
jne 0x610c42
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.00610760
add esp, 4
cmp dword [esi + 0x10], 1
jne 0x610c77
call sub.kernel32.dll_GetTickCount
cmp eax, dword [esi + 0x28]
jbe 0x610c77
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.00610760
add esp, 0x14
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
call fcn.006245e9
add esp, 0x28
ret
Function at 0x610e60
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
mov eax, dword [0x67e540]
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 0x610e80
xor dl, dl
xor eax, eax
lea ecx, [esp + 0x14]
mov esi, 0x100
jmp 0x610ea0
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 0x610ec5
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 0x610ea0
mov eax, dword [esp + 0x124]
xor ebp, ebp
test eax, eax
jle 0x610f90
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 0x610f21
dec ecx
or ecx, 0xffffff00
inc ecx
movzx esi, cl
movzx ecx, byte [esp + esi + 0x14]
add ecx, edi
and ecx, 0x800000ff
jns 0x610f3b
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 0x610f6a
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 0x610f00
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
call fcn.006245e9
add esp, 0x108
ret
Function at 0x611a70
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x808
mov eax, dword [0x67e540]
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.006245e9
add esp, 0x808
ret
Function at 0x611d50
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x67e540]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xbc]
test eax, eax
mov dword [esp], 0x10
je 0x611dcc
mov eax, dword [esi]
push eax
call fcn.00618a30
add esp, 4
test eax, eax
je 0x611dcc
lea esp, [esp]
mov eax, dword [esi]
lea ecx, [esp]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0xff
push 0x69bea0
push eax
call sub.ws2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x611dbd
lea ecx, [esp + 4]
push ecx
push eax
push 0x69bea0
push esi
mov byte [eax + 0x69bea0], 0
call fcn.006117f0
add esp, 0x10
mov edx, dword [esi]
push edx
call fcn.00618a30
add esp, 4
test eax, eax
jne 0x611d80
mov ecx, dword [esp + 0x14]
call fcn.006245e9
add esp, 0x18
ret