joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426670
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push edi
mov edi, dword [esi + 0xc]
mov ebx, dword [edi + 0x124]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4266d1
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0xffffffff
jne 0x426702
push str.Error_accept__ing_server_connect
push esi
call fcn.00414090
add esp, 8
pop edi
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push esi
call fcn.004141d0
mov dword [edi + 0x20c], 0
mov ecx, dword [esp + 0x10]
push 1
push ecx
call fcn.00442450
lea edx, [esp + 0x18]
push edx
push 1
push edi
push esi
call fcn.0043deb0
add esp, 0x20
test eax, eax
jne 0x4267a1
cmp dword [esi + 0x1cc], eax
je 0x42679f
push 1
push esi
call fcn.00415010
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1d0]
mov edx, dword [esi + 0x1cc]
push 1
push eax
push ecx
call edx
push 0
push esi
mov ebx, eax
call fcn.00415010
add esp, 0x1c
test ebx, ebx
je 0x42679f
push 1
push esi
call fcn.00416400
push 1
push edi
push esi
call fcn.004163e0
add esp, 0x14
pop edi
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x8c
ret
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop ebx
xor ecx, esp
call fcn.0044c8e4
add esp, 0x8c
ret
Function at 0x429fb0
Capabilities:
Check http status code

Disassembly:
push ebx
mov bl, al
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebp
mov ebp, dword [esi + 0xc]
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
cmp eax, 2
je 0x429fe5
push str.Couldnt_set_desired_mode
push esi
call fcn.00414090
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x429ffc
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.004141d0
add esp, 0xc
cmp bl, 0x13
jne 0x42a011
push ebp
push esi
call fcn.00429f30
add esp, 8
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x14
jne 0x42a023
mov ebx, esi
call fcn.00427220
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x15
jne 0x42a03c
mov bl, 0xd
push 1
mov eax, esi
call fcn.00429440
add esp, 4
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x16
jne 0x42a051
mov bl, 0xe
push 1
mov eax, esi
call fcn.00429440
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop ebp
pop ebx
ret

Function at 0x432f90
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x432fd2
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xf8], 0
jne 0x432fbf
push 0
call fcn.00432f90
mov edx, dword [esi + 0x70]
add esp, 4
test eax, eax
setne cl
inc cl
mov byte [edx + 0xf8], cl
mov eax, dword [esi + 0x70]
xor ecx, ecx
cmp byte [eax + 0xf8], 2
pop esi
sete cl
mov eax, ecx
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x432fee
xor esi, esi
xor eax, eax
test esi, esi
setg al
pop esi
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
setg al
pop esi
ret

Function at 0x433a70
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x45e008]
mov edi, eax
add esp, 8
test edi, edi
je 0x433a38
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x433a50
cmp esi, ebx
je 0x433a50
cmp esi, 0x8000
ja 0x433a50
cmp esi, ebx
jb 0x433a49
push esi
push edi
call dword [0x45e008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x433a00
push ebp
call dword [0x45e004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x45e004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x4339e0
Function at 0x433ab0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x433c69
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x433c46
push ebx
push ebp
mov eax, dword [edi + 0x14]
test eax, eax
je 0x433b1e
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433b10
sub eax, edx
lea ebx, [eax + 1]
jmp 0x433b20
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x433b2d
lea ebp, [eax + 0xe]
jmp 0x433b39
cmp eax, 0x17
jne 0x433bd3
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x433bd3
mov eax, dword [edi + 0x10]
test eax, eax
je 0x433bd3
cmp eax, ebp
jb 0x433bd3
lea edx, [ebx + ebp + 0x20]
push edx
call dword [section..data]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x433be0
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x18]
push ebp
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
test ebx, ebx
je 0x433bb9
mov eax, dword [esi + 0x18]
add eax, ebp
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x14]
push ebx
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x433bc4
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x433bcf
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x433b03
jmp 0x433be8
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x433bf9
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], 0
je 0x433c3f
mov eax, dword [esp + 8]
test eax, eax
je 0x433c23
jmp 0x433c10
mov esi, dword [eax + 0x1c]
push eax
call dword [0x45e004]
add esp, 4
mov eax, esi
test esi, esi
jne 0x433c10
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
cmp dword [esp + 8], 0
jne 0x433c59
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
Function at 0x436380
Capabilities:
Move file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00418480
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
push edx
mov dword [esp + 0x28], ecx
call dword [sym.imp.MSVCR100.dll__strdup]
mov esi, eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 0xc
push 1
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x436438
lea ecx, [ecx]
lea ecx, [esp + 0x24]
push ecx
call fcn.00418480
mov edx, dword [esp + 0x24]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00418520
add esp, 0x20
test edx, edx
ja 0x436460
jb 0x43641e
cmp eax, 0x3e8
ja 0x436460
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x4363d0
mov edi, dword [sym.imp.MSVCR100.dll_free]
test esi, esi
je 0x436448
push esi
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x436456
push eax
call edi
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [sym.imp.MSVCR100.dll_free]
test esi, esi
je 0x436470
push esi
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43647e
push eax
call edi
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret

Function at 0x4365e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push esi
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x436637
mov ecx, dword [esp + 8]
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
test eax, eax
jne 0x436640
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, 2
pop esi
pop ecx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x436660
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
xor ebp, ebp
push esi
push edi
mov ecx, 0x2b
cmp ebx, ebp
je 0x43671c
mov edi, dword [esp + 0x1c]
lea esp, [esp]
mov esi, ebx
cmp ebx, 4
jb 0x43668c
mov esi, 4
mov ecx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.0040f930
add esp, 0xc
cmp eax, 4
jne 0x4366f8
cmp dword [0x45ea00], ebp
jne 0x436733
push 0xf0000040
push 1
push ebp
push ebp
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4366f3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push ebp
test eax, eax
jne 0x436724
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov ecx, eax
cmp eax, ebp
jne 0x43671e
mov eax, dword [esp + 0x20]
cmp esi, ebp
je 0x436714
mov byte [edi], al
inc edi
shr eax, 8
dec ebx
dec esi
jne 0x436706
mov dword [esp + 0x20], eax
cmp ebx, ebp
jne 0x436680
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x4366f8
mov eax, dword [0x45e9fc]
imul eax, eax, 0x41c64e6d
add eax, 0x3039
mov dword [0x45e9fc], eax
rol eax, 0x10
mov dword [esp + 0x20], eax
xor ecx, ecx
jmp 0x436702
Function at 0x438650
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000040
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x438730
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x438711
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x438711
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x438710
cmp esi, dword [esp + 0xc]
jb 0x438710
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x43871f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x438730
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret
Function at 0x43a4d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x43a4f4
cmp eax, 0xffffffff
jne 0x43a4f6
xor eax, eax
ret

Function at 0x43ae50
Capabilities:
Get socket status

Disassembly:
sub esp, 8
push esi
mov esi, eax
test ebx, ebx
je 0x43ae5f
cmp dword [ebx], 0
jne 0x43ae71
test edi, edi
je 0x43ae68
cmp dword [edi], 0
jne 0x43ae71
test esi, esi
je 0x43aed9
cmp dword [esi], 0
je 0x43aed9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.004492a0
add esp, 0xc
test esi, esi
je 0x43ae91
cmp dword [esi], 0
jne 0x43ae93
xor esi, esi
test edi, edi
je 0x43aea0
cmp dword [edi], 0
je 0x43aea0
mov edx, edi
jmp 0x43aea2
xor edx, edx
test ebx, ebx
je 0x43aec2
cmp dword [ebx], 0
je 0x43aec2
push eax
mov eax, dword [esp + 0x14]
push esi
push edx
mov ecx, ebx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
add esp, 8
ret
push eax
mov eax, dword [esp + 0x14]
push esi
push edx
xor ecx, ecx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0043ae00
add esp, 8
pop esi
add esp, 8
ret

Function at 0x43c010
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x104], eax
push 4
lea eax, [esp + 4]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43c067
push 0x100
lea edx, [esp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040afd0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.004141d0
add esp, 0x18
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x108
ret
Function at 0x43c080
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0x7c0], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43c0d4
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.004141d0
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x18
ret
mov edx, dword [esi + 0x6e0]
push edx
mov dword [esp + 0xc], 1
call fcn.00413660
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x6e4]
push eax
call fcn.00413660
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x43c14d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.004141d0
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x18
ret

Function at 0x43c350
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x45ea10]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x43c3a1
push 3
push 2
push eax
push eax
push 6
call fcn.0043a770
add esp, 0x14
test eax, eax
je 0x43c395
mov dword [0x45ea10], 2
add esp, 0xc
ret
mov dword [0x45ea10], 1
jmp 0x43c3a6
cmp eax, 2
je 0x43c3ed
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43c3d4
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x43c3ec
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x43ca10
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x100], eax
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x10c]
mov ecx, dword [esi]
mov ecx, dword [ecx + 8]
push edi
mov edi, dword [esp + 0x11c]
push 0
push edx
push eax
mov dword [edi], 0
mov eax, dword [ecx + 0x98]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x43cab1
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x43ca7c
mov dword [edi], 0x51
jmp 0x43caad
push 0x100
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.0040afd0
mov edx, dword [esi + 4]
push eax
push str.Recv_failure:__s
push edx
call fcn.00414090
mov eax, dword [esi + 4]
mov dword [eax + 0xa38], ebx
add esp, 0x18
mov dword [edi], 0x38
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.0044c8e4
add esp, 0x104
ret

Function at 0x43cc00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push esi
mov esi, dword [eax + 8]
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0x80
call sub.MSVCR100.dll_memset
mov eax, dword [esi + 0x98]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43cc9c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [esp + 0x8c]
mov esi, eax
push ecx
push esi
call fcn.0040afd0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00414090
add esp, 0x1c
mov eax, 2
pop esi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x188
ret
mov eax, dword [esp + 4]
lea edx, [esi + 0x120]
push edx
add esi, 0xf0
push esi
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00416f80
add esp, 0x10
test eax, eax
jne 0x43cd12
mov esi, dword [sym.imp.MSVCR100.dll__errno]
push ebx
call esi
mov ebx, eax
call esi
push 0x100
lea edx, [esp + 0x90]
mov esi, eax
mov eax, dword [ebx]
push edx
push eax
call fcn.0040afd0
mov ecx, dword [esi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.00414090
add esp, 0x1c
pop ebx
mov eax, 2
pop esi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x188
ret
mov ecx, dword [esp + 0x188]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044c8e4
add esp, 0x188
ret
Function at 0x43da20
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
mov esi, dword [ebx + 8]
mov edx, dword [esi + 0x98]
mov edi, eax
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esi + 0x18]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x43da5b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ebx, [esi + 0xbc]
mov esi, eax
call fcn.0043c990
pop edi
pop esi
pop ebx
ret
push ebx
call fcn.0043cc00
mov eax, dword [esi + 0x98]
push 1
push eax
call fcn.00442450
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x440820
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4408c7
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov word [esp + 0x14], 0x208
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.00440790
mov ecx, esi
push 8
push ecx
call fcn.0044b790
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x4408d9
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044c8e4
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0044c8e4
add esp, 0x24
ret

Function at 0x4422b0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x4422e3
push 0x2e
push esi
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x4422e1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret