joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49cd00
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x53a490
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, ecx
push edi
push ebp
lea ecx, [esp + 0x2c]
call fcn.00492a10
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0
call fcn.00476780
lea eax, [esi + 0xc]
lea ecx, [esp + 0x28]
push eax
call fcn.004766b0
mov eax, dword [esp + 0x28]
lea edx, [esi + 0x18]
push 4
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x28]
lea edx, [esi + 0x34]
push 4
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
push ebp
lea ecx, [esp + 0x10]
lea edi, [esi + 0x38]
call fcn.00492a10
lea eax, [edi + 0xc]
lea ecx, [edi + 8]
push eax
lea edx, [edi + 4]
push ecx
push edx
push edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.00458240
mov ecx, eax
call fcn.00458240
mov ecx, eax
call fcn.00458240
mov ecx, eax
call fcn.00458240
add edi, 0x10
mov ecx, eax
push edi
call fcn.004766b0
mov eax, dword [esp + 0xc]
mov byte [esp + 0x20], 0
test eax, eax
je 0x49cdcc
mov ecx, dword [eax]
push 0x7fffffff
push 1
push eax
call dword [ecx + 4]
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x54]
push 4
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x58]
push 4
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x24]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
sub edx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
mov ecx, dword [eax]
push 4
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49ce30
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esi + 0x28]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x18]
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x5c]
mov eax, dword [esp + 0x28]
sub ecx, edx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
mov edx, dword [eax]
push 4
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49ce64
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esi + 0x5c]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x18]
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x28]
sub ecx, edx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov edx, dword [eax]
push 4
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49ce98
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esi + 0x68]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x18]
mov eax, dword [esp + 0x28]
pop edi
pop esi
mov dword [esp + 0x18], 0xffffffff
test eax, eax
pop ebp
je 0x49ceb8
mov ecx, dword [eax]
push 0x7fffffff
push 1
push eax
call dword [ecx + 4]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x49ced0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x53a4b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, ecx
push edi
push ebp
lea ecx, [esp + 0x30]
call fcn.00492a10
xor ebx, ebx
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], ebx
call fcn.004766f0
lea eax, [esi + 0xc]
lea ecx, [esp + 0x2c]
push eax
call fcn.00476620
mov eax, dword [esp + 0x2c]
lea edx, [esi + 0x18]
push 4
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x2c]
lea edx, [esi + 0x34]
push 4
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push ebp
lea ecx, [esp + 0x1c]
lea edi, [esi + 0x38]
call fcn.00492a10
lea eax, [edi + 0xc]
lea ecx, [edi + 8]
push eax
lea edx, [edi + 4]
push ecx
push edx
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 1
call fcn.0049d0b0
mov ecx, eax
call fcn.0049d0b0
mov ecx, eax
call fcn.0049d0b0
mov ecx, eax
call fcn.0049d0b0
add edi, 0x10
mov ecx, eax
push edi
call fcn.00476620
mov eax, dword [esp + 0x18]
mov byte [esp + 0x24], bl
cmp eax, ebx
je 0x49cf9a
mov ecx, dword [eax]
push 0x7fffffff
push 1
push eax
call dword [ecx + 4]
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x54]
push 4
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x58]
push 4
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x24]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push 4
mov edx, dword [eax]
push ecx
push eax
lea edi, [esi + 0x28]
call dword [edx + 0x14]
mov edx, dword [esp + 0x10]
push ebx
push edx
mov ecx, edi
call fcn.00405470
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x49d005
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [edi]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push 4
mov ecx, dword [eax]
push edx
push eax
lea edi, [esi + 0x5c]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x14]
push ebx
push eax
mov ecx, edi
call fcn.00405470
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x49d040
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [edi]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push 4
mov ecx, dword [eax]
push edx
push eax
add esi, 0x68
call dword [ecx + 0x14]
mov eax, dword [esp + 0x18]
push ebx
push eax
mov ecx, esi
call fcn.00405470
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x49d07b
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esi]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
cmp eax, ebx
mov dword [esp + 0x18], 0xffffffff
pop ebx
je 0x49d09c
mov ecx, dword [eax]
push 0x7fffffff
push 1
push eax
call dword [ecx + 4]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4a29d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53ab6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
push esi
mov dword [ebx], 0x547238
mov dword [ebx + 4], ebp
mov ecx, dword [eax]
lea esi, [ebx + 0xc]
push edi
mov dword [esp + 0x10], ebx
mov dword [ebx + 8], ecx
mov dword [esp + 0x14], esi
lea edi, [esi + 8]
lea edx, [esp + 0x40]
push ebp
push edx
mov ecx, edi
mov dword [esp + 0x40], ebp
mov dword [esi], ebp
mov dword [esi + 4], ebp
call fcn.005124c0
push 0x10
mov byte [esp + 0x3c], 2
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
lea ecx, [eax + 0x10]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [edi], ecx
add esp, 4
mov word [eax], bp
mov edx, dword [esp + 0x48]
mov dword [esp + 0x38], 3
mov eax, dword [edx]
mov dword [ebx], 0x547ce8
mov dword [ebx + 0x18], eax
call dword [sym.imp.kernel32.dll_GetACP]
push eax
call fcn.004c2b90
add esp, 4
lea ecx, [esp + 0x48]
push ebp
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.005124c0
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x40]
lea eax, [esp + 0x40]
not ecx
dec ecx
push eax
add ecx, ebp
mov byte [esp + 0x3c], 5
push ecx
push ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], dl
call fcn.004012f0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x40], 6
call fcn.004059b0
add esp, 8
cmp eax, esi
mov byte [esp + 0x38], 7
je 0x4a2b21
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esi]
cmp eax, edx
je 0x4a2b05
cmp ecx, dword [esi + 4]
je 0x4a2b01
mov di, word [eax]
add eax, 2
mov word [ecx], di
add ecx, 2
cmp eax, edx
jne 0x4a2ade
mov eax, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00458bb0
jmp 0x4a2b21
cmp eax, edx
jne 0x4a2b13
mov eax, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00458bb0
jmp 0x4a2b21
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040fe20
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
sub edx, eax
lea ecx, [esp + 0x2c]
sar edx, 1
push edx
push eax
mov byte [esp + 0x40], 8
call fcn.004fdfd0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 9
call fcn.00418e50
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc

Function at 0x4a7a30
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov ecx, esi
mov eax, esi
or ecx, 0x20
shr ecx, 5
cmp esi, ecx
jb 0x4a7a66
push ebx
push edi
mov edi, dword [esp + 0x10]
mov edx, eax
mov ebx, eax
shl edx, 5
shr ebx, 2
add edx, ebx
xor ebx, ebx
mov bl, byte [edi]
sub esi, ecx
add edx, ebx
xor eax, edx
inc edi
cmp esi, ecx
jae 0x4a7a49
pop edi
pop ebx
pop esi
ret

Function at 0x4afe90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
add esp, 0x190
ret
Function at 0x4aff10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 4]
push edi
push eax
push 0xf003f
push 0
push 0x57c140
push 0x80000001
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
lea ecx, [esp + 0xc]
mov esi, eax
mov eax, dword [esp + 8]
push ecx
lea edx, [esp + 0x14]
push 0x57f7c4
neg esi
push edx
push 0
sbb esi, esi
push 0x57c138
push eax
neg esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aff80
mov edi, 0x57f7c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x13
je 0x4affdf
push 0x57f7c4
call fcn.004b0030
add esp, 4
test esi, esi
je 0x4affb8
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x57c140
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
mov edi, 0x57f7c4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x57f7c4
push 1
push eax
mov eax, dword [esp + 0x18]
push 0x57c138
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, dword [sym.imp.msvcrt.dll_memmove]
push 4
push 0x57f7c9
push 0x57f7c8
call esi
push 4
push 0x57f7ce
push 0x57f7cc
call esi
push 4
push 0x57f7d3
push 0x57f7d0
call esi
add esp, 0x24
mov byte [0x57f7d4], 0
mov eax, 0x57f7c4
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4b3040
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x120
push ebx
push esi
mov esi, dword [esp + 0x12c]
xor ebx, ebx
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], ebx
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x4b30d3
mov eax, dword [esi]
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x24]
push ecx
push ebx
push ebx
push edx
push 0x40
call sub.wsock32.dll_select
cmp eax, 0xffffffff
je 0x4b30d3
cmp eax, ebx
je 0x4b30d3
mov edx, dword [esi]
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push 0xff
push 0x57f900
push edx
call sub.wsock32.dll_recvfrom
cmp eax, 0xffffffff
je 0x4b3079
lea ecx, [esp + 0x14]
mov byte [eax + 0x57f900], bl
push ecx
push eax
push 0x57f900
push esi
call fcn.004b3480
add esp, 0x10
jmp 0x4b3079
pop esi
pop ebx
add esp, 0x120
ret
Function at 0x4b32f0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x110
xor eax, eax
lea ecx, [esp + 0x10]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x4b32fc
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
push edi
mov byte [esp + 0x10], 0
xor esi, esi
lea edi, [esp + 0x20]
mov ebp, 0x100
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x124]
and eax, 0xff
xor ecx, ecx
mov cl, byte [eax + edx]
xor edx, edx
mov dl, byte [edi]
add esi, ecx
add edx, esi
and edx, 0x800000ff
jns 0x4b334e
dec edx
or edx, 0xffffff00
inc edx
inc eax
mov byte [esp + 0x14], dl
cdq
idiv ebx
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esp + esi + 0x20]
push eax
push edi
mov byte [esp + 0x18], dl
call fcn.004b3460
add esp, 8
inc edi
dec ebp
jne 0x4b3321
mov eax, dword [esp + 0x130]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x18], esi
jle 0x4b344a
xor edi, edi
xor ebx, ebx
mov edx, dword [esp + 0x12c]
xor ecx, ecx
mov cl, byte [esi + edx]
lea eax, [ecx + edi + 1]
and eax, 0x800000ff
jns 0x4b33ad
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x10], al
xor ecx, ecx
mov edi, dword [esp + 0x10]
and edi, 0xff
mov cl, byte [esp + edi + 0x20]
lea ebp, [esp + edi + 0x20]
add ecx, ebx
and ecx, 0x800000ff
jns 0x4b33d7
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
and ebx, 0xff
lea eax, [esp + ebx + 0x20]
push eax
push ebp
mov dword [esp + 0x24], eax
call fcn.004b3460
mov eax, dword [esp + 0x24]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov cl, byte [ebp]
add edx, ecx
and edx, 0x800000ff
jns 0x4b3416
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x12c]
and edx, 0xff
mov dl, byte [esp + edx + 0x20]
mov cl, byte [esi + eax]
xor cl, dl
mov byte [esi + eax], cl
mov eax, dword [esp + 0x18]
inc eax
movsx esi, ax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x130]
cmp esi, eax
jl 0x4b338f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

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

Disassembly:
sub esp, 0x50
or ecx, 0xffffffff
xor eax, eax
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b38b5
push ebx
mov ebx, dword [esp + 0x60]
push esi
lea ecx, [esp + 0x10]
mov edi, dword [ebx + 0xe0]
inc edi
mov eax, edi
mov dword [ebx + 0xe0], edi
push eax
mov eax, dword [ebx + 0xdc]
push eax
push 0x57c590
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [esp + 0x6c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebx]
push ebp
push ecx
call sub.wsock32.dll_sendto
pop esi
mov byte [ebp], 0
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4b3d30
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x100
lea edx, [esp]
push ebx
push esi
mov esi, dword [esp + 0x10c]
mov ebx, dword [sym.imp.msvcrt.dll_sprintf]
push edi
mov ecx, dword [esi + 0xe4]
lea eax, [esi + 8]
push eax
push ecx
push 0x57c5d8
push edx
call ebx
mov eax, dword [esp + 0x124]
add esp, 0x10
test eax, eax
je 0x4b3d89
push eax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x57c5c4
lea eax, [esp + ecx + 0x14]
push eax
call ebx
add esp, 0xc
lea ecx, [esi + 0xec]
push 0x10
push ecx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi + 4]
push 0
not ecx
dec ecx
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call sub.wsock32.dll_sendto
call sub.kernel32.dll_GetTickCount
mov dword [esi + 0xd8], eax
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x4b6e60
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x6fc
push ebx
push ebp
mov ebp, dword [sym.imp.msvcrt.dll_strstr]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x70c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0x10
mov eax, dword [esi + 0x88]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x30]
push ebx
push edx
push 0x40
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], 1
call sub.wsock32.dll_select
cmp eax, 0xffffffff
je 0x4b6f4b
cmp eax, ebx
je 0x4b6f4b
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esi + 0x88]
push ecx
push ebx
lea edx, [esp + 0x138]
push 0x5db
push edx
push eax
call sub.wsock32.dll_recvfrom
cmp eax, 0xffffffff
je 0x4b6e88
lea ecx, [esp + 0x12c]
push 0x57c5ac
push ecx
mov byte [esp + 0x70f], bl
call ebp
add esp, 8
test eax, eax
je 0x4b6e88
mov edx, dword [esp + 0x1a]
push edx
call sub.wsock32.dll_htons
and eax, 0xffff
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.004b6cd0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4b6e88
mov ecx, dword [esp + 0x1a]
push 5
push ecx
call sub.wsock32.dll_htons
mov edx, dword [esp + 0x20]
push eax
push edx
push esi
call fcn.004b6c80
add esp, 0x10
jmp 0x4b6e88
call sub.kernel32.dll_GetTickCount
sub eax, dword [esi + 0x8c]
cmp eax, 0xbb8
jbe 0x4b6f7e
mov eax, dword [esi + 0x88]
push eax
call sub.wsock32.dll_closesocket
push 3
push esi
mov dword [esi + 0x88], 0xffffffff
call fcn.004b6c60
add esp, 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6fc
ret
Function at 0x4b7da0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4baf00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
push 0xff
lea eax, [esi + 8]
push edi
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
push edi
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x4baf42
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x4baf3b
pop edi
pop esi
add esp, 0x10
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 8], ecx
push edx
mov dword [esp + 0x10], ecx
mov word [esp + 0xc], 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
call sub.wsock32.dll_htons_1
mov edi, 1
push 0
push edi
push 2
mov word [esp + 0x16], ax
call sub.wsock32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4baf8c
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
lea ecx, [esp + 0x20]
push 4
push ecx
push 8
push 0xffff
push eax
mov dword [esp + 0x34], edi
call sub.wsock32.dll_setsockopt
mov eax, dword [esi]
lea edx, [esp + 8]
push 0x10
push edx
push eax
call sub.wsock32.dll_connect
cmp eax, 0xffffffff
jne 0x4bafc8
mov ecx, dword [esi]
push ecx
call sub.wsock32.dll_closesocket
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov dword [esi + 4], edi
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 0x118]
test eax, eax
jle 0x4bb173
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push 0
push eax
push 0
push ecx
call fcn.004bb1b0
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
je 0x4bb173
mov eax, dword [esi + 0x118]
cmp eax, 0x400
jl 0x4bb13e
mov eax, 0x400
mov edx, dword [esi + 0x114]
lea edi, [esi + 0x114]
push 0
push eax
mov eax, dword [esi]
push edx
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4bb173
cmp eax, 0xffffffff
je 0x4bb173
push eax
push edi
call fcn.004bb180
mov eax, dword [esi + 0x118]
add esp, 8
test eax, eax
jg 0x4bb110
pop edi
pop esi
ret
Function at 0x4bb1b0
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x314
xor edx, edx
push ebx
push ebp
push esi
cmp eax, edx
push edi
je 0x4bb1de
mov eax, dword [esp + 0x328]
mov ecx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x18]
jmp 0x4bb1ec
mov eax, dword [esp + 0x328]
xor edi, edi
mov ecx, 1
cmp dword [esp + 0x330], edx
je 0x4bb20c
mov dword [esp + 0x120], eax
mov dword [esp + 0x11c], ecx
lea ebx, [esp + 0x11c]
jmp 0x4bb20e
xor ebx, ebx
cmp dword [esp + 0x334], edx
je 0x4bb22e
mov dword [esp + 0x224], eax
mov dword [esp + 0x220], ecx
lea ebp, [esp + 0x220]
jmp 0x4bb230
xor ebp, ebp
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
push eax
push ebp
push ebx
push edi
push 0x40
mov dword [esp + 0x28], edx
call sub.wsock32.dll_select
mov esi, eax
cmp esi, 0xffffffff
je 0x4bb2f6
mov eax, dword [esp + 0x32c]
test eax, eax
je 0x4bb28f
test esi, esi
jle 0x4bb282
mov ecx, dword [esp + 0x328]
push edi
push ecx
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x4bb282
mov edx, dword [esp + 0x32c]
mov dword [edx], 1
jmp 0x4bb28f
mov eax, dword [esp + 0x32c]
mov dword [eax], 0
mov edi, dword [esp + 0x330]
test edi, edi
je 0x4bb2be
test esi, esi
jle 0x4bb2b8
mov ecx, dword [esp + 0x328]
push ebx
push ecx
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x4bb2b8
mov dword [edi], 1
jmp 0x4bb2be
mov dword [edi], 0
mov edi, dword [esp + 0x334]
test edi, edi
je 0x4bb2f6
test esi, esi
jle 0x4bb2f0
mov edx, dword [esp + 0x328]
push ebp
push edx
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x4bb2f0
mov dword [edi], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret
mov dword [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x314
ret

Function at 0x4bb310
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov ecx, dword [esi]
push 0
lea eax, [esp + 0x18]
push 0
push eax
push ecx
call fcn.004bb1b0
mov eax, dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x4bb3ae
lea ebp, [esi + 0x108]
push 0x1000
push ebp
call fcn.004bb3c0
add esp, 8
test eax, eax
je 0x4bb3ae
mov edi, dword [ebp]
mov ecx, dword [esi + 0x10c]
mov edx, dword [esi]
add edi, ecx
push 0
push 0x1000
push edi
push edx
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x4bb3a2
mov eax, dword [esi + 0x120]
test eax, eax
je 0x4bb388
lea eax, [esi + 0x124]
push eax
push ebx
push edi
call fcn.004c21c0
add esp, 0xc
mov eax, dword [esi + 0x10c]
mov ecx, dword [ebp]
add eax, ebx
mov dword [esi + 0x10c], eax
mov byte [ecx + eax], 0
jmp 0x4bb318
call sub.wsock32.dll_WSAGetLastError
mov dword [esi + 4], 2
pop edi
pop esi
pop ebp
pop ebx
ret