joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ea40
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, eax
cmp dword [ebx + 0x42c], 0
push esi
je 0x45eac6
mov edx, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push edi
mov esi, pe_nt_image_headers32
push edx
mov dword [ebp - 4], 1
mov dword [ebp - 8], esi
call ebx
test eax, eax
jne 0x45eabc
cmp dword [ebp - 4], 3
jne 0x45eabc
push esi
mov dword [ebp - 8], esi
call fcn.004a8a24
mov esi, eax
add esp, 4
test esi, esi
je 0x45eabc
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push esi
lea ecx, [ebp - 4]
push ecx
push 0
push edi
push edx
call ebx
test eax, eax
jne 0x45eab3
cmp dword [ebp - 4], 3
je 0x45eaf3
push esi
call fcn.004a9011
add esp, 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x96
call fcn.004a8a24
add esp, 4
add ebx, 0x430
push ebx
push 0x96
mov esi, eax
push esi
push 0x4ce44c
push edi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45eb00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x42c], 0
je 0x45eb42
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24]
push 0x4d6440
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, 0x430
push esi
lea ecx, [ebp - 0x24]
push ecx
push edi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 8

Function at 0x45eb80
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x42c], 0
push edi
mov edi, eax
je 0x45ec16
mov eax, esi
call fcn.0045e960
mov eax, dword [esi + 0x108]
test eax, eax
je 0x45ebdd
cmp dword [esi + 0x42c], 0
je 0x45ebc5
push 0xfe
push edi
push 3
push 0
push str.group1
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x45ebdd
lea eax, [esi + 0x430]
push eax
push edi
push str.group1
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esi + 0x42c], 0
je 0x45ec2e
mov eax, dword [esi + 0x108]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45ebf9
push eax
call edi
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x45ec06
push eax
call edi
mov esi, dword [esi + 0x104]
test esi, esi
je 0x45ec2e
push esi
call edi
pop edi
pop esi
ret
add esi, 0x430
push esi
push edi
push str.group1
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
ret
Function at 0x45ecc0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x42c], 0
push edi
mov edi, eax
je 0x45ed56
mov eax, esi
call fcn.0045e960
mov eax, dword [esi + 0x108]
test eax, eax
je 0x45ed1d
cmp dword [esi + 0x42c], 0
je 0x45ed05
push 0xfe
push edi
push 3
push 0
push str.group2
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x45ed1d
lea eax, [esi + 0x430]
push eax
push edi
push str.group2
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esi + 0x42c], 0
je 0x45ed6e
mov eax, dword [esi + 0x108]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45ed39
push eax
call edi
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x45ed46
push eax
call edi
mov esi, dword [esi + 0x104]
test esi, esi
je 0x45ed6e
push esi
call edi
pop edi
pop esi
ret
add esi, 0x430
push esi
push edi
push str.group2
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
ret

Function at 0x45ee00
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x42c], 0
push edi
mov edi, eax
je 0x45ee96
mov eax, esi
call fcn.0045e960
mov eax, dword [esi + 0x108]
test eax, eax
je 0x45ee5d
cmp dword [esi + 0x42c], 0
je 0x45ee45
push 0xfe
push edi
push 3
push 0
push str.group3
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x45ee5d
lea eax, [esi + 0x430]
push eax
push edi
push str.group3
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esi + 0x42c], 0
je 0x45eeae
mov eax, dword [esi + 0x108]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45ee79
push eax
call edi
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x45ee86
push eax
call edi
mov esi, dword [esi + 0x104]
test esi, esi
je 0x45eeae
push esi
call edi
pop edi
pop esi
ret
add esi, 0x430
push esi
push edi
push str.group3
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
ret
Function at 0x45f270
Capabilities:
Read .ini file

Disassembly:
push ebx
lea ebx, [esi + 0x430]
call fcn.0040c260
push ebx
xor ebx, ebx
push ebx
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x42c], eax
mov eax, esi
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
call fcn.0045ec40
mov dword [esi + 0x110], eax
mov eax, esi
call fcn.0045ed80
mov dword [esi + 0x114], eax
mov eax, esi
call fcn.0045eec0
mov dword [esi + 0x118], eax
mov eax, dword [esi + 0x11c]
mov ecx, esi
call fcn.0045ef40
mov dword [esi + 0x11c], eax
mov eax, dword [esi + 0x120]
mov ecx, esi
call fcn.0045f050
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x124]
mov ecx, esi
call fcn.0045f160
mov ecx, dword [esi + 0x110]
mov dword [esi + 0x124], eax
cmp ecx, ebx
je 0x45f351
lea edx, [esi + 0x128]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x45f336
mov eax, dword [esi + 0x110]
push eax
call fcn.004a9011
add esp, 4
jmp 0x45f357
mov byte [esi + 0x128], bl
mov ecx, dword [esi + 0x114]
cmp ecx, ebx
je 0x45f382
lea edx, [esi + 0x228]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x45f367
mov ecx, dword [esi + 0x114]
push ecx
call fcn.004a9011
add esp, 4
jmp 0x45f388
mov byte [esi + 0x228], bl
mov ecx, dword [esi + 0x118]
cmp ecx, ebx
je 0x45f3b5
lea edx, [esi + 0x328]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x45f398
mov edx, dword [esi + 0x118]
push edx
call fcn.004a9011
add esp, 4
mov eax, esi
pop ebx
ret
mov byte [esi + 0x328], bl
mov eax, esi
pop ebx
ret
Function at 0x45fc40
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c55ab
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4ea5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea esi, [edi + 4]
mov dword [edi + 0x23cc], eax
cmp dword [esi + 8], 0
mov dword [ebp + 0xc], 1
jl 0x45fc85
call fcn.00460250
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
test eax, eax
js 0x45fd08
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x45fd08
call fcn.00460530
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov eax, dword [edx + 0x168]
mov ecx, ebx
call eax
mov ecx, dword [edi + 0x23cc]
push eax
call fcn.004602b0
test eax, eax
je 0x45fd08
mov eax, dword [esi + 8]
test eax, eax
js 0x45fd08
push 5
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x45fd08
push 0x6c
call fcn.004a90a2
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x45fd1e
push eax
call fcn.0045fd50
jmp 0x45fd20
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x23d0], eax
test eax, eax
je 0x45fd08
mov edx, dword [eax]
push ebx
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4601f0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
cmp dword [esi + 8], 0
mov dword [ebp - 4], 1
jl 0x460209
call fcn.00460250
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
test eax, eax
jns 0x460223
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x46021c
call fcn.00460530
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x460330
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x4ea5e0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
jl 0x4603d7
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, 2
push edi
mov word [esp + 8], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x4603ab
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x46038f
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
jne 0x4603a3
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 8]
push 0x10
lea ecx, [esp + 8]
push ecx
push edx
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x46038f
call fcn.00460530
or eax, 0xffffffff
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 4

Function at 0x4603f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
test eax, eax
js 0x46049a
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push 0x1001
push 0xffff
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [ebp - 4]
mov edx, dword [esi + 8]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x1001
push 0xffff
push edx
mov dword [ebp - 8], 0x8000
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 8]
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
test edi, edi
js 0x46049a
push 0x23c8
call fcn.004a90a2
add esp, 4
test eax, eax
je 0x46048a
mov esi, eax
call fcn.0045ffa0
mov esi, eax
test esi, esi
je 0x46048a
mov dword [esi + 8], edi
call fcn.00460530
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x460500
Capabilities:
Resolve dns

Disassembly:
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x460526
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x460524
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x460524
mov eax, dword [eax]
mov eax, dword [eax]
ret
xor eax, eax
ret
Function at 0x460530
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [esi + 8]
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x2c]
push eax
push 1
push 6
push ecx
or ebx, 0xffffffff
mov dword [ebp - 0x2c], 1
call edi
test eax, eax
je 0x460568
xor ebx, ebx
mov eax, dword [esi + 8]
push 4
lea edx, [ebp - 0x2c]
push edx
push 8
push 0xffff
push eax
call edi
test eax, eax
jne 0x4605ce
push eax
push eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [esi + 8]
push 0xc
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push 0x98000004
push ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x2710
mov dword [ebp - 0x18], 0x3e8
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4605d0
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
xor edx, edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
mov word [ebp - 0x14], dx
mov edx, dword [esi + 8]
push ecx
push edx
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [ebp - 0x10]
movzx ecx, word [ebp - 0x12]
lea edx, [ebp - 0x28]
mov dword [esi + 0x23b0], eax
push edx
lea eax, [ebp - 0x14]
mov dword [esi + 0x23b4], ecx
mov ecx, dword [esi + 8]
push eax
lea edi, [esi + 0x23ac]
push ecx
mov dword [edi], 5
call dword [sym.imp.WS2_32.dll_getpeername]
movzx eax, word [ebp - 0x12]
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x23bc], eax
mov eax, dword [esi + 0x23a8]
mov dword [esi + 0x23b8], edx
mov byte [ebp - 0x21], 1
test eax, eax
je 0x46066e
push 0
push 1
push 0
lea ecx, [ebp - 0x21]
push ecx
push 2
push edi
call eax
test eax, eax
mov byte [esi + 0x23c0], 0
mov eax, ebx
jne 0x460677
jmp 0x460670
mov eax, ebx
mov byte [esi + 0x23c0], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x460690
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x5447a0], 2
jae 0x4606a2
xor eax, eax
pop ebp
ret 4
mov edx, dword [edi + 8]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp + 8]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [ebp + 8], eax
call esi
cmp eax, 0xffffffff
jne 0x4606d1
xor eax, eax
pop esi
pop ebp
ret 4
mov ecx, dword [edi + 8]
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
push ecx
call esi
inc eax
neg eax
sbb eax, eax
pop esi
pop ebp
ret 4
Function at 0x460810
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [esi + 0x239c]
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
add eax, edi
cmp eax, dword [esi + 0x23c4]
jb 0x4608e6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x23c4]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x239c]
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x74]
push ebx
push edx
call fcn.004b29a0
mov eax, dword [esi + 0x23c4]
mov edi, dword [esi + 8]
add esp, 0xc
push eax
lea ecx, [esi + 0x74]
push ecx
call fcn.004610a0
add esp, 8
test al, al
jne 0x46087f
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x23c4]
mov ecx, dword [esi + 0x239c]
mov ebx, eax
sub ebx, ecx
add ebx, dword [ebp + 8]
sub ecx, eax
add ecx, dword [ebp + 0xc]
mov dword [esi + 0x239c], 0
mov dword [esp + 0xc], ecx
cmp ecx, eax
jb 0x4608e4
lea esp, [esp]
mov edi, dword [esi + 8]
push eax
push ebx
call fcn.004610a0
add esp, 8
test al, al
je 0x460875
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x23c4]
sub ecx, eax
add ebx, eax
mov dword [esp + 0xc], ecx
cmp ecx, eax
jae 0x4608b0
mov edi, ecx
jmp 0x4608e6
mov edi, ecx
mov edx, dword [esi + 0x239c]
push edi
lea eax, [esi + edx + 0x74]
push ebx
push eax
call fcn.004b29a0
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [esi + 0x239c], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
cmp dword [ecx + 8], eax
je 0x460b6d
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push esi
push edi
xor edi, edi
lea esp, [esp]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push edx
mov edx, dword [ecx + 8]
push eax
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x460b68
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x460b68
push 0x3e8
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 2
jl 0x460b30
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x460fd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, 1
lea esp, [esp]
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0xffffffff
je 0x461031
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push 0
push ebx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x461024
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x461024
push 0x3e8
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 2
jl 0x460feb
test esi, esi
jle 0x46102f
add dword [ebp + 0xc], esi
sub ebx, esi
jmp 0x461040
je 0x46104f
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
jne 0x461070
test ebx, ebx
jne 0x460fe0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
push str.vsocket.cpp_:_zero_bytes_read3_n
mov eax, 4
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
call esi
push eax
push str.vsocket.cpp_:_HTTP_socket_error:__d_n
mov eax, 4
mov ecx, 0x4ecb00
call fcn.00403230
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4610a0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], ebx
cmp dword [ebp + 0xc], ebx
jbe 0x461193
nop
xor esi, esi
lea ecx, [ebp - 0x120]
push ecx
push 0
mov eax, 1
lea edx, [ebp - 0x110]
push edx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x120], eax
push 0
lea eax, [edi + 1]
push eax
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x11c], 0
call dword [sym.imp.WS2_32.dll_select]
mov cl, byte [0x544753]
inc esi
test eax, eax
jne 0x461135
test cl, cl
jne 0x461135
cmp esi, 0x14
jl 0x4610d2
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp esi, 0x14
jge 0x461123
test cl, cl
jne 0x461123
test eax, eax
js 0x461123
cmp eax, 1
jg 0x461123
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x461179
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x118]
push 0
sub ecx, ebx
push ecx
add edx, ebx
push edx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x114], eax
jmp 0x46117f
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x461123
cmp eax, 0xffffffff
je 0x461123
add ebx, eax
cmp ebx, dword [ebp + 0xc]
jb 0x4610d0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x461610
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ac
mov eax, dword [0x4ea5e0]
xor eax, esp
mov dword [esp + 0x3a8], eax
push edi
push 0
call fcn.004abb88
add eax, 0x40
push eax
call fcn.004acea3
add esp, 8
push 0x104
lea eax, [esp + 0x2a4]
push eax
push 0
mov dword [0x513794], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x461676
lea ecx, [esp + 0x2a0]
push 0x5c
push ecx
call fcn.004a9130
add esp, 8
mov byte [eax], 0
xor eax, eax
jmp 0x461680
mov cl, byte [esp + eax + 0x2a0]
mov byte [esp + eax + 0x198], cl
inc eax
test cl, cl
jne 0x461680
lea edi, [esp + 0x198]
dec edi
jmp 0x4616a0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4616a0
mov dx, word [0x4ce6f4]
lea eax, [esp + 0x198]
mov word [edi], dx
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4616c0
mov ecx, dword [0x4df78c]
mov edx, dword [0x4df790]
mov dword [eax], ecx
mov ecx, dword [0x4df794]
mov dword [eax + 4], edx
mov edx, dword [0x4df798]
mov dword [eax + 8], ecx
mov cx, word [0x4df79c]
mov dword [eax + 0xc], edx
mov dl, byte [0x4df79e]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
lea eax, [esp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x513794], eax
test eax, eax
jne 0x46171c
mov dword [0x513794], esi
call fcn.00461290
call fcn.00449a30
mov dword [0x517c58], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [esp + 8]
push ecx
push 2
mov dword [0x518264], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x46176f
mov dx, word [esp + 8]
mov word [0x5447a0], dx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, 1
pop edi
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
push 0x4d8a6c
push 0x518cd0
xor eax, eax
call fcn.00409310
mov ecx, dword [esp + 0x3b4]
add esp, 8
pop edi
xor ecx, esp
xor al, al
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x463e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x463e60
xor eax, eax
pop esi
pop ebp
ret
cmp dword [0x4eb5e4], 0
je 0x463e6e
call fcn.004643b0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
not eax
cmp ecx, 8
jb 0x463f42
mov edx, ecx
shr edx, 3
push edi
movzx edi, byte [esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x518e38]
movzx edi, byte [esi + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x518e38]
movzx edi, byte [esi + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x518e38]
movzx edi, byte [esi + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x518e38]
movzx edi, byte [esi + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x518e38]
movzx edi, byte [esi + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x518e38]
movzx edi, byte [esi + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x518e38]
movzx edi, byte [esi + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x518e38]
add esi, 8
sub ecx, 8
dec edx
jne 0x463e85
pop edi
test ecx, ecx
je 0x463f69
jmp 0x463f50
movzx edx, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x518e38]
inc esi
dec ecx
jne 0x463f50
not eax
pop esi
pop ebp
ret