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

Disassembly:
push 0xffffffffffffffff
push 0x10dbb9a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x10], 0x1a
push eax
call fcn.10cef600
mov ecx, dword [esi + 0x68]
add esp, 4
mov byte [esp + 0x10], 0x19
push ecx
call fcn.10cef600
mov edx, dword [esi + 0x64]
add esp, 4
mov byte [esp + 0x10], 0x18
push edx
call fcn.10cef600
mov eax, dword [esi + 0x60]
add esp, 4
mov byte [esp + 0x10], 0x17
push eax
call fcn.10cef600
mov ecx, dword [esi + 0x5c]
add esp, 4
mov byte [esp + 0x10], 0x16
push ecx
call fcn.10cef600
mov edx, dword [esi + 0x58]
add esp, 4
mov byte [esp + 0x10], 0x15
push edx
call fcn.10cef600
mov eax, dword [esi + 0x54]
add esp, 4
mov byte [esp + 0x10], 0x14
push eax
call fcn.10cef600
mov ecx, dword [esi + 0x50]
add esp, 4
mov byte [esp + 0x10], 0x13
push ecx
call fcn.10cef600
mov edx, dword [esi + 0x4c]
add esp, 4
mov byte [esp + 0x10], 0x12
push edx
call fcn.10cef600
mov eax, dword [esi + 0x48]
add esp, 4
mov byte [esp + 0x10], 0x11
push eax
call fcn.10cef600
add esp, 4
mov byte [esp + 0x10], 0x10
mov ecx, dword [esi + 0x44]
push ecx
call fcn.10cef600
mov edx, dword [esi + 0x40]
add esp, 4
mov byte [esp + 0x10], 0xf
push edx
call fcn.10cef600
mov eax, dword [esi + 0x3c]
add esp, 4
mov byte [esp + 0x10], 0xe
push eax
call fcn.10cef600
mov ecx, dword [esi + 0x38]
add esp, 4
mov byte [esp + 0x10], 0xd
push ecx
call fcn.10cef600
mov edx, dword [esi + 0x34]
add esp, 4
mov byte [esp + 0x10], 0xc
push edx
call fcn.10cef600
mov eax, dword [esi + 0x30]
add esp, 4
mov byte [esp + 0x10], 0xb
push eax
call fcn.10cef600
mov ecx, dword [esi + 0x2c]
add esp, 4
mov byte [esp + 0x10], 0xa
push ecx
call fcn.10cef600
mov edx, dword [esi + 0x28]
add esp, 4
mov byte [esp + 0x10], 9
push edx
call fcn.10cef600
mov eax, dword [esi + 0x24]
add esp, 4
mov byte [esp + 0x10], 8
push eax
call fcn.10cef600
mov ecx, dword [esi + 0x20]
add esp, 4
mov byte [esp + 0x10], 7
push ecx
call fcn.10cef600
mov edx, dword [esi + 0x1c]
add esp, 4
mov byte [esp + 0x10], 6
push edx
call fcn.10cef600
mov eax, dword [esi + 0x18]
add esp, 4
mov byte [esp + 0x10], 5
push eax
call fcn.10cef600
mov ecx, dword [esi + 0x14]
add esp, 4
mov byte [esp + 0x10], 4
push ecx
call fcn.10cef600
mov edx, dword [esi + 0x10]
add esp, 4
mov byte [esp + 0x10], 3
push edx
call fcn.10cef600
mov eax, dword [esi + 0xc]
add esp, 4
mov byte [esp + 0x10], 2
push eax
call fcn.10cef600
mov ecx, dword [esi + 8]
add esp, 4
mov byte [esp + 0x10], 1
push ecx
call fcn.10cef600
mov edx, dword [esi + 4]
add esp, 4
mov byte [esp + 0x10], 0
push edx
call fcn.10cef600
mov eax, dword [esi]
add esp, 4
mov dword [esp + 0x10], 0xffffffff
push eax
call fcn.10cef600
mov ecx, dword [esp + 0xc]
add esp, 4
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
Function at 0x10cf55f0
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x34
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
lea eax, [esp + 0x40]
lea ecx, [esp + 8]
push eax
mov dword [esi], 0
push ecx
mov dword [edi], 0
mov dword [esp + 0x48], 0x11
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x10cf5631
lea edx, [esp + 8]
push edx
call sym.PBVM90.dll_pbstg_strdup_malloc
mov dword [esi], eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x48], 0x20
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x10cf5659
lea edx, [esp + 0x1c]
push edx
call sym.PBVM90.dll_pbstg_strdup_malloc
mov dword [edi], eax
pop edi
pop esi
add esp, 0x34
ret
Function at 0x10d08f60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10dbbe4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0xc], ebx
mov cx, word [esp + 0x2c]
mov esi, dword [esp + 0x24]
xor eax, eax
mov dx, word [esp + 0x30]
mov dword [esp + 0x18], eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x28]
mov word [ebx + 0x10], cx
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x14], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov word [ebx + 0x12], dx
mov dword [ebx], 0x10dc33f8
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.libjsybheap.dll_Ordinal_13
add esp, 4
mov dword [ebx + 4], eax
call fcn.10bd19f0
test eax, eax
je 0x10d08fe2
mov ecx, dword [ebx + 4]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll__mbscpy]
add esp, 8
jmp 0x10d09002
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x14
Function at 0x10d295f4
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
mov dword [esi], 0x10dc4568
test eax, eax
je 0x10d29612
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10d2961f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10d2962c
push eax
call sym.PBVM90.dll_os_closelib
mov edi, dword [esi + 0x18]
push 0
push 0
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x10]
test eax, eax
push str.JAG_LOGFILE
jl 0x10d29667
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [0x10e2e0b0], eax
je 0x10d29691
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 0x10]
push edx
push str.CPB_Object::destroy_succeeded_for__s
jmp 0x10d29689
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [0x10e2e0b0], eax
je 0x10d29691
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x10]
push ecx
push str.CPB_Object::destroy_failed_for__s
call sym.PBVM90.dll_PBJagLog
add esp, 8
mov edx, dword [esi + 8]
mov ebx, dword [edx + 0x38]
test ebx, ebx
je 0x10d296f3
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x10d296df
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.pbjag90.dll
call sym.PBVM90.dll_os_openlib
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x24], eax
test ecx, ecx
jne 0x10d296df
push eax
push str.DebugNotify
call sym.PBVM90.dll_os_get_funcptr
mov edx, dword [esi + 0x24]
mov dword [esi + 0x28], eax
push edx
push str.DebugNotifyEvent
call sym.PBVM90.dll_os_get_funcptr
mov dword [esi + 0x2c], eax
test ebx, ebx
je 0x10d296f3
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x10d296f3
mov ecx, dword [esi + 0xc]
push 1
push edi
push ecx
call eax
mov eax, dword [esi + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esi + 0xc]
mov dword [esi + 0x10], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x10d301c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x10d301f3
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push str.WSAStartup_failed__n
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
jmp 0x10d301fd
mov dword [0x10e2e0e8], 1
mov edx, dword [esp + 0x194]
mov eax, 1
mov dword [0x10e2e0e4], edx
add esp, 0x190
ret
Function at 0x10d30a80
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ebp, [esi + 0x12c]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push 0
push eax
push ecx
push edx
call sub.WSOCK32.dll_recv
mov edi, eax
test edi, edi
jne 0x10d30af2
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x10d30b13
push 0x6000
mov dword [esi + 0x130], edi
call sub.WSOCK32.dll_htonl
push 0xff
mov dword [ebp], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 0x134], eax
mov eax, 0x10
mov dword [esi + 0x138], edi
sub eax, ebx
cmp edi, 0xffffffff
je 0x10d30b47
add ebx, eax
cmp eax, 0x10
jge 0x10d30b02
add dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
sub ecx, edi
cmp ebx, 0x10
mov dword [esp + 0x14], ecx
jge 0x10d30b84
jmp 0x10d30a9d
mov eax, dword [esi + 0x1c]
push 0x3a3
push 0x10e1b988
push 0x26e7
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
add esp, 0x10
mov ecx, esi
push 1
push 0
push 0
call fcn.10d31840
mov ax, 0x26e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov ecx, esi
call fcn.10d31810
mov ecx, dword [esi + 0x1c]
push 0x3b4
push eax
push 0x26e7
mov edx, dword [ecx]
push ecx
call dword [edx + 0x20]
add esp, 0x10
mov ecx, esi
push 1
push 0
push 0
call fcn.10d31840
mov ax, 0x26e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [ebp]
push eax
call sub.WSOCK32.dll_ntohl
cmp eax, 0x6000
mov dword [ebp], eax
je 0x10d30be1
push eax
call sub.WSOCK32.dll_htonl
xor ecx, ecx
mov dword [ebp], eax
mov dword [ebp], ecx
push 0x3e1
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
mov edx, dword [esi + 0x1c]
mov edi, dword [edx]
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov ecx, esi
call fcn.10d31810
push eax
mov eax, dword [esi + 0x1c]
push 0x26e7
push eax
call dword [edi + 0x20]
add esp, 0x10
mov ax, 0x26e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0x130]
push ecx
call sub.WSOCK32.dll_ntohl
mov edx, dword [esi + 0x134]
mov dword [esi + 0x130], eax
push edx
call sub.WSOCK32.dll_ntohl
mov dword [esi + 0x134], eax
mov eax, dword [esi + 0x138]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [esi + 0x138], eax
mov eax, dword [esi + 0x134]
cmp eax, 0xff
jne 0x10d30c63
mov eax, dword [esi + 0x130]
test eax, eax
jne 0x10d30c63
mov ecx, dword [esi + 0x140]
push 0xff
push 0x2706
mov edi, dword [ecx]
mov ecx, esi
call fcn.10d30d80
mov edx, dword [esi + 0x140]
push eax
push 0x40
push edx
call dword [edi + 0x14]
add esp, 0x10
mov ax, 0xff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0x130]
mov edx, dword [ebp]
mov eax, dword [esi + 0x140]
push ecx
push edx
push 0x2707
mov edi, dword [eax]
mov ecx, esi
call fcn.10d30d80
push eax
mov eax, dword [esi + 0x140]
push 0x40
push eax
call dword [edi + 0x14]
add esp, 0x14
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10d30f00
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, ecx
mov eax, dword [esi]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x14], ebx
call dword [eax + 0x20]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x28]
mov dword [esp + 0x10], ebx
mov ebx, dword [edi + 0x130]
mov ebp, eax
mov eax, dword [edi + 8]
push 0
push ebx
push ebp
push eax
call sub.WSOCK32.dll_recv
mov esi, eax
call sub.WSOCK32.dll_WSAGetLastError
cmp esi, 0xffffffff
jne 0x10d30f81
cmp eax, 0x2733
je 0x10d30f55
cmp eax, 0x2714
jne 0x10d30f81
push 0
push 0x14
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 8]
push 0
push ebx
inc edx
push ebp
push ecx
mov dword [esp + 0x24], edx
call sub.WSOCK32.dll_recv
mov esi, eax
call sub.WSOCK32.dll_WSAGetLastError
cmp esi, 0xffffffff
je 0x10d30f47
mov ecx, dword [esp + 0x10]
add ecx, esi
cmp esi, 0xffffffff
mov dword [esp + 0x10], ecx
je 0x10d30fd6
test esi, esi
je 0x10d30fd6
cmp esi, dword [edi + 0x130]
jge 0x10d30fb5
mov ebp, dword [esp + 0x1c]
push esi
mov ecx, ebp
mov edx, dword [ebp]
call dword [edx + 0x2c]
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax + 0x28]
mov ebp, eax
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x130]
sub ebx, esi
cmp ecx, eax
jl 0x10d30f2e
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edx, dword [edi + 0x1c]
push 0x525
mov esi, dword [edx]
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov ecx, edi
call fcn.10d31810
push eax
mov eax, dword [edi + 0x1c]
push 0x26e7
push eax
call dword [esi + 0x20]
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
mov ax, 0x26e7
pop ebx
add esp, 8
ret 4
Function at 0x10d31020
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0
mov ebp, ecx
push esi
call fcn.10d31190
mov edi, eax
test di, di
je 0x10d31072
mov eax, dword [ebp + 0x140]
mov ecx, edi
and ecx, 0xffff
mov esi, dword [eax]
push ecx
push 0x270a
mov ecx, ebp
call fcn.10d30d80
mov edx, dword [ebp + 0x140]
push eax
push 0x40
push edx
call dword [esi + 0x14]
add esp, 0x10
mov ax, di
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
jmp 0x10d31094
mov eax, dword [esp + 0x18]
cmp eax, 0x7fffffff
mov ebx, Ordinal_2
jg 0x10d310a2
mov ebx, eax
mov eax, dword [ebp + 0x28]
push 0
test eax, eax
push ebx
je 0x10d31103
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [ebp + 8]
push eax
push ecx
call sub.WSOCK32.dll_send
mov esi, eax
call sub.WSOCK32.dll_WSAGetLastError
cmp esi, 0xffffffff
jne 0x10d3111b
cmp eax, 0x2733
je 0x10d310d7
cmp eax, 0x2714
jne 0x10d31116
push 0
push 0x14
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov edx, dword [edi]
push 0
push ebx
mov ecx, edi
call dword [edx + 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_send
mov esi, eax
call sub.WSOCK32.dll_WSAGetLastError
cmp esi, 0xffffffff
je 0x10d310c9
jmp 0x10d31116
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_send
mov esi, eax
cmp esi, 0xffffffff
je 0x10d31154
test esi, esi
je 0x10d31154
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0x1c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, esi
add edx, esi
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jg 0x10d31090
mov eax, dword [edi]
push edi
call dword [eax + 8]
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov ecx, dword [ebp + 0x1c]
push 0x59b
mov esi, dword [ecx]
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov ecx, ebp
call fcn.10d31810
mov edx, dword [ebp + 0x1c]
push eax
push 0x26e6
push edx
call dword [esi + 0x20]
mov eax, dword [edi]
add esp, 0x10
push edi
call dword [eax + 8]
pop edi
pop esi
pop ebp
mov ax, 0x26e6
pop ebx
pop ecx
ret 4
Function at 0x10d31190
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
cmp eax, 1
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea ebp, [esp + 0x10]
jne 0x10d311ee
xor esi, esi
push 0x6000
mov dword [ebx + 0x120], esi
mov dword [ebx + 0x11c], 0x6000
mov dword [ebx + 0x124], 0xff
mov dword [ebx + 0x128], esi
mov dword [esp + 0x18], esi
call sub.WSOCK32.dll_htonl
push 0xff
mov dword [esp + 0x14], eax
call sub.WSOCK32.dll_htonl
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
jmp 0x10d3123e
mov esi, dword [esp + 0x24]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x10]
xor edi, edi
mov dword [ebx + 0x120], eax
mov dword [ebx + 0x11c], 0x6000
mov dword [ebx + 0x124], edi
mov dword [ebx + 0x128], edi
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
push eax
call sub.WSOCK32.dll_htonl
push 0x6000
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_htonl
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov edi, 0x10
mov dword [esp + 0x28], 0
mov eax, dword [ebx + 0x28]
push 0
test eax, eax
push edi
push ebp
je 0x10d3129e
mov eax, dword [ebx + 8]
push eax
call sub.WSOCK32.dll_send
mov esi, eax
call sub.WSOCK32.dll_WSAGetLastError
cmp esi, 0xffffffff
jne 0x10d312ae
cmp eax, 0x2733
je 0x10d31279
cmp eax, 0x2714
jne 0x10d312a9
push 0
push 0x14
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov ecx, dword [ebx + 8]
push 0
push edi
push ebp
push ecx
call sub.WSOCK32.dll_send
mov esi, eax
call sub.WSOCK32.dll_WSAGetLastError
cmp esi, 0xffffffff
je 0x10d3126b
jmp 0x10d312a9
mov edx, dword [ebx + 8]
push edx
call sub.WSOCK32.dll_send
mov esi, eax
cmp esi, 0xffffffff
je 0x10d312d1
test esi, esi
je 0x10d312d1
mov ecx, dword [esp + 0x28]
sub edi, esi
add ebp, esi
add ecx, esi
test edi, edi
mov dword [esp + 0x28], ecx
jg 0x10d3124b
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [ebx + 0x1c]
push 0x63b
mov esi, dword [eax]
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov ecx, ebx
call fcn.10d31810
mov ecx, dword [ebx + 0x1c]
push eax
push 0x26e6
push ecx
call dword [esi + 0x20]
add esp, 0x10
mov ax, 0x26e6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x10d31314
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov word [esp + 0xc], 2
push edi
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 2]
push ecx
call fcn.10d32960
mov edi, eax
add esp, 4
test edi, edi
jne 0x10d3135a
mov esi, dword [esi + 0x1c]
push 0x67f
push str.lpszComputerName
push 0x26f0
mov edx, dword [esi]
push esi
call dword [edx + 0x20]
add esp, 0x10
mov ax, 0x26f0
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov ebx, dword [sym.imp.MSVCRT.dll_isalpha]
xor eax, eax
mov al, byte [edi]
push eax
call ebx
add esp, 4
test eax, eax
push edi
je 0x10d313bb
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x10d3138a
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
push ecx
lea ecx, [esp + 0x18]
mov eax, dword [edx]
push eax
push ecx
jmp 0x10d31406
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x1c]
push 0x68f
mov ecx, dword [ecx + 2]
mov edx, dword [eax]
push ecx
push 0x26df
push eax
call dword [edx + 0x20]
add esp, 0x10
push edi
call sub.libjsybheap.dll_Ordinal_16
add esp, 4
mov ax, 0x26df
pop edi
pop esi
pop ebx
add esp, 0x14
ret
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10d313fa
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x1c]
push 0x69d
mov ecx, dword [ecx + 2]
mov edx, dword [eax]
push ecx
push 0x26df
push eax
call dword [edx + 0x20]
add esp, 0x10
push edi
call sub.libjsybheap.dll_Ordinal_16
add esp, 4
mov ax, 0x26df
pop edi
pop esi
pop ebx
add esp, 0x14
ret
lea edx, [esp + 0xc]
push 4
lea eax, [esp + 0x18]
push edx
push eax
call sym.PBVM90.dll_pbstg_huge_memcpy
push edi
call sub.libjsybheap.dll_Ordinal_16
mov ecx, dword [esi + 0x50]
add esp, 4
mov edx, dword [ecx + 6]
push edx
call fcn.10d32960
mov edi, eax
add esp, 4
test edi, edi
jne 0x10d3144f
mov esi, dword [esi + 0x1c]
push 0x6af
push str.ServiceName_string
push 0x26f0
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
add esp, 0x10
mov ax, 0x26f0
pop edi
pop esi
pop ebx
add esp, 0x14
ret
xor ecx, ecx
mov cl, byte [edi]
push ecx
call ebx
add esp, 4
test eax, eax
je 0x10d314b9
push 0x10e1b9b4
push edi
call sub.WSOCK32.dll_getservbyname
test eax, eax
je 0x10d31488
mov dx, word [eax + 8]
xor eax, eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
push 0x10
mov word [esp + 0x16], dx
mov dword [esp + 0x20], eax
push ecx
jmp 0x10d314df
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x1c]
mov ebx, 0x26e0
push 0x6c3
mov ecx, dword [ecx + 6]
mov edx, dword [eax]
push ecx
push ebx
push eax
call dword [edx + 0x20]
add esp, 0x10
push edi
call sub.libjsybheap.dll_Ordinal_16
add esp, 4
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push edi
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
push eax
call sub.WSOCK32.dll_htons
xor edx, edx
mov word [esp + 0x12], ax
mov dword [esp + 0x18], edx
lea eax, [esp + 0x10]
push 0x10
mov dword [esp + 0x20], edx
push eax
add esi, 0xc
push esi
call sym.PBVM90.dll_pbstg_huge_memcpy
push edi
call sub.libjsybheap.dll_Ordinal_16
add esp, 4
xor ebx, ebx
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x10d31730
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
push 4
mov eax, dword [esi + 8]
lea edi, [esi + 0x24]
push edi
push 0x1002
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x10d3175f
mov ecx, dword [esi + 0x1c]
push 0x756
mov edi, dword [ecx]
jmp 0x10d31784
mov eax, dword [esi + 8]
push 4
push edi
push 0x1001
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x10d317a9
mov ecx, dword [esi + 0x1c]
push 0x767
mov edi, dword [ecx]
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov ecx, esi
call fcn.10d31810
mov edx, dword [esi + 0x1c]
push eax
push 0x26e8
push edx
call dword [edi + 0x20]
add esp, 0x10
mov ax, 0x26e8
pop edi
pop esi
pop ecx
ret
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x10d31800
mov ecx, dword [esi + 8]
lea eax, [esp + 8]
push 4
push eax
push 1
push 6
push ecx
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x10d31800
mov edx, dword [esi + 0x1c]
push 0x77d
mov edi, dword [edx]
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov ecx, esi
call fcn.10d31810
push eax
mov eax, dword [esi + 0x1c]
push 0x26e8
push eax
call dword [edi + 0x20]
add esp, 0x10
mov ax, 0x26e8
pop edi
pop esi
pop ecx
ret
pop edi
xor ax, ax
pop esi
pop ecx
ret

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

Disassembly:
sub esp, 0x5b4
push ebx
push ebp
mov ebx, dword [esp + 0x5c4]
push edi
mov edi, ecx
xor ebp, ebp
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x10d3190a
push esi
push 1
push eax
call sub.WSOCK32.dll_shutdown
mov esi, 1
cmp esi, 0xffffffff
je 0x10d318c7
mov eax, dword [esp + 0x5c8]
push 0
test eax, eax
je 0x10d3189e
mov ecx, dword [edi + 8]
add eax, ebp
push ebx
push eax
push ecx
call sub.WSOCK32.dll_recv
mov esi, eax
test esi, esi
je 0x10d318b3
cmp esi, 0xffffffff
je 0x10d318b3
sub ebx, esi
add ebp, esi
jmp 0x10d318b3
mov eax, dword [edi + 8]
lea edx, [esp + 0x14]
push 0x5b4
push edx
push eax
call sub.WSOCK32.dll_recv
mov esi, eax
mov eax, dword [edi + 8]
mov dword [edi + 8], 0xffffffff
push eax
call sub.WSOCK32.dll_closesocket
test esi, esi
jne 0x10d3186e
mov eax, dword [esp + 0x5d0]
test eax, eax
je 0x10d318da
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
call dword [edx + 8]
lea esi, [edi + 0xfc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0xf8], 1
mov edi, dword [edi + 0x114]
test edi, edi
je 0x10d31902
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
pop ebp
xor ax, ax
pop ebx
add esp, 0x5b4
ret 0xc