joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e930
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100737b8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100880b0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x100880b0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea ecx, [eax + 0x360]
mov dword [esp + 0x18], esi
call fcn.1001caa0
xor ebx, ebx
cmp eax, ebx
je 0x1001eaf0
cmp esi, ebx
je 0x1001eaf0
mov ecx, dword [eax + 0x28]
cmp ecx, ebx
je 0x1001eaf0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x58], ebx
lea esi, [esp + 0x1c]
call fcn.10036f30
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x1001e9c8
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.10005b10
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x1001ea3c
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x280
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100460a9
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x1001ea31
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.10006360
jmp 0x1001eaf0
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x1001eabb
jmp 0x1001ea50
mov eax, 6
cmp dword [edi + 0x190], eax
jne 0x1001eab1
cmp dword [edi + 0x1a0], eax
jne 0x1001eab1
lea esi, [edi + 0x1ac]
jmp 0x1001ea70
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x1001ea7f
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1001eaa2
cmp dl, bl
je 0x1001ea9e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1001eaa2
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x1001ea82
xor eax, eax
jmp 0x1001eaa7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1001eb12
mov esi, dword [esi]
cmp esi, ebx
jne 0x1001ea70
mov edi, dword [edi]
cmp edi, ebx
jne 0x1001ea50
mov edi, dword [esp + 0x10]
push edi
call fcn.10047870
add esp, 4
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x1001eae0
mov edx, dword [esp + 0x30]
push edx
call fcn.100464bc
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10046377
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x18]
push 6
add edi, 0x194
push edi
push edx
call fcn.10019070
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call fcn.10047870
add esp, 4
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x1001eb51
mov ecx, dword [esp + 0x30]
push ecx
call fcn.100464bc
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov eax, 1
jmp 0x1001eaf2
Function at 0x1002c0c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100753bd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x100880b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esi], vtable.IFile.0
xor ebx, ebx
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x24]
lea eax, [esi + 0x30]
push ecx
push eax
mov dword [esp + 0x18], eax
call fcn.100303d0
mov byte [esp + 0x1c], 2
lea edx, [esi + 0x58]
push edx
call fcn.100290c0
mov byte [esp + 0x1c], 3
or eax, 0xffffffff
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esp + 0x1c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 4

Function at 0x1002c160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1007536d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x100880b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.IFile.0
mov dword [esp + 0x1c], 2
call fcn.1002c4a0
mov byte [esp + 0x1c], 1
lea ecx, [esi + 0x58]
call fcn.10018be0
xor ebx, ebx
mov byte [esp + 0x1c], bl
lea eax, [esi + 0x30]
mov dword [esp + 0x10], eax
mov byte [esp + 0x1c], bl
push eax
call fcn.1002ed20
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esi + 0x2c], 0x10
jb 0x1002c1dc
mov eax, dword [esi + 0x18]
push eax
call fcn.100464bc
add esp, 4
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x1002d5f0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x10076818
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100880b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0x58]
xor esi, esi
cmp ecx, esi
je 0x1002d63e
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], esi
call eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
push ecx
push ebp
push ebx
mov ecx, edi
call fcn.1002cba0
mov esi, eax
test esi, esi
je 0x1002d66b
mov dword [esp + 0x28], 0xffffffff
jmp 0x1002d760
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
mov ecx, edi
call eax
test eax, eax
jne 0x1002d74d
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x1002d691
mov ecx, 0x40000000
lea edx, [eax + 1]
lea esi, [eax + 0x7f]
jmp 0x1002d6a0
mov ecx, bind
mov edx, 3
mov esi, 0x8000000
cmp dword [ebx + 0x18], 0x10
jb 0x1002d6ab
mov eax, dword [ebx + 4]
jmp 0x1002d6ae
lea eax, [ebx + 4]
push 0
push esi
push edx
push 0
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [edi + 0x98], eax
jne 0x1002d6f6
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x1c], 0
je 0x1002d6ec
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, 0xfffffff3
jmp 0x1002d77f
cmp dword [edi + 4], 1
push 0
jne 0x1002d72b
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebp
push eax
mov dword [edi + 0x10], ebp
call esi
mov ecx, dword [edi + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [edi + 0x98]
push 0
push 0
push 0
push edx
call esi
jmp 0x1002d750
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [edi + 0x10], eax
jne 0x1002d750
mov dword [esp + 0x28], ebx
lea esi, [esp + 0x14]
call fcn.10018b50
mov eax, 0xfffffffd
jmp 0x1002d77f
or ebx, 0xffffffff
mov eax, dword [esp + 0x38]
push eax
call fcn.1002c730
mov esi, eax
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x1c], 0
je 0x1002d77d
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc

Function at 0x1002d7f0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov esi, ecx
jne 0x1002d803
pop edi
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0xc]
call fcn.1002d7a0
test eax, eax
je 0x1002d7fc
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x98]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, esi
call fcn.1002d7d0
mov eax, dword [esp + 0x14]
pop edi
pop esi
ret 0xc
Function at 0x1002d850
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1002d85b
ret 0xc
mov ecx, dword [ecx + 0x98]
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0xc]
ret 0xc
Function at 0x10034f80
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebp, 0x811c9dc5
cmp esi, 0xfffffffe
je 0x10034fa5
test esi, esi
je 0x10034fa0
cmp esi, dword [esp + 0x1c]
je 0x10034fa5
call fcn.1004606a
cmp edi, dword [esp + 0x20]
je 0x10035011
cmp esi, 0xfffffffe
mov ebx, edi
je 0x10034fd7
test esi, esi
jne 0x10034fbb
call fcn.1004606a
cmp dword [esi + 0x18], 0x10
jb 0x10034fc6
mov eax, dword [esi + 4]
jmp 0x10034fc9
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x10034fd7
call fcn.1004602b
add edi, 1
cmp esi, 0xfffffffe
je 0x10035004
test esi, esi
jne 0x10034fe8
call fcn.1004606a
cmp dword [esi + 0x18], 0x10
jb 0x10034ff3
mov eax, dword [esi + 4]
jmp 0x10034ff6
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x10035004
call fcn.1004602b
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x10034f91
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x10036270
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [edx]
push esi
mov ecx, 0x20
push edi
lea esp, [esp]
mov edi, eax
shr edi, 2
xor edi, eax
shr edi, 2
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
mov esi, eax
ror esi, 1
xor edi, eax
and esi, 0xfffffffe
and edi, 1
or esi, edi
sub ecx, 1
mov eax, esi
jne 0x10036280
pop edi
mov dword [edx], eax
pop esi
ret

Function at 0x10036600
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
cmp dword [esi + 4], 0xffffffff
mov dword [esi + 8], eax
jne 0x10036633
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x10036633
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
call fcn.100365e0
xor eax, eax
ret
mov eax, 1
ret
Function at 0x10036b40
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x10070a18
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x100880b0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp edi, esi
jne 0x10036b84
mov eax, 0x8009
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret
lea ecx, [edi + 0x10]
cmp ecx, esi
je 0x10036ba7
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
call eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], esi
mov ecx, dword [edi + 0x140]
cmp ecx, esi
je 0x10036c07
cmp dword [0x1008d290], esi
je 0x10036c07
push 1
mov dword [esp + 0x10], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push esi
lea eax, [esp + 0x14]
push eax
call edx
mov ecx, dword [esp + 0xc]
cmp ecx, esi
je 0x10036c07
mov eax, dword [0x1008d290]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [edi + 0x140]
push 1
mov dword [esp + 0x10], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push esi
lea eax, [esp + 0x14]
push eax
call edx
mov ecx, dword [esp + 0xc]
cmp ecx, esi
jne 0x10036bd8
cmp dword [edi + 8], 1
jne 0x10036c84
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x10036c7d
cmp dword [edi + 0xc], esi
je 0x10036c48
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [edi + 4]
push esi
push esi
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push esi
push esi
push 0x4004667f
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x10036c6c
push 4
lea edx, [esp + 0x10]
push edx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], si
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
cmp dword [0x1008d294], esi
jne 0x10036c91
call fcn.100368d0
mov dword [esp + 0x2c], 0xffffffff
cmp dword [esp + 0x20], esi
je 0x10036cb5
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret

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

Disassembly:
push ecx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [ecx + 4]
lea eax, [esp]
push eax
push esi
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, esi
pop ecx
ret
Function at 0x10036f60
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, dword [0x1008d290]
push esi
mov esi, eax
mov eax, 1
add ebp, 0x70
call fcn.10036600
test eax, eax
jne 0x10036f80
pop esi
xor eax, eax
pop ebp
ret
test ebx, ebx
je 0x10036f91
mov eax, dword [esi + 4]
push 0x10
push ebx
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [esi + 4]
push 0x10
push edi
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10036f7b
cmp dword [ebp + 4], 1
jne 0x10036fb2
call fcn.1003c680
test eax, eax
je 0x10036f7b
call fcn.10036de0
test eax, eax
je 0x10036f7b
call fcn.10036cd0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x12c], eax
mov edx, dword [edi]
mov dword [esi + 0x50], edx
mov eax, dword [edi + 4]
mov dword [esi + 0x54], eax
mov ecx, dword [edi + 8]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x5c], edx
pop esi
mov eax, 1
pop ebp
ret

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

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
sub eax, 0
je 0x10037ae1
sub eax, 1
jne 0x10037aeb
mov ecx, dword [ebx + 0x98]
cmp ecx, dword [ebx + 0x9c]
lea eax, [ebx + 0x60]
jne 0x10037ada
mov eax, 6
pop esi
pop ecx
ret
call fcn.10036050
jmp 0x10037aeb
movzx edx, word [esi + 0x103e]
mov dword [esi + 0x24], edx
push ebp
push edi
lea ebp, [ebx + 0x14c]
push ebp
xor edi, edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebx + 4]
push edi
push esi
push edi
lea eax, [esp + 0x18]
push eax
push ecx
add esi, 0x24
push esi
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x10037b75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x10037b33
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
cmp eax, 0x2733
je 0x10037b59
cmp eax, 8
je 0x10037b59
cmp eax, 0x2747
je 0x10037b59
push ebp
mov edi, 0x8002
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
push eax
push str.WSASend_____NERR_TOO_MANY_OUTSTANDING:__d
push 0
call fcn.1001e7b0
add esp, 0xc
push ebp
mov edi, 0x8005
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
Function at 0x100381e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0xe0]
sub esp, 8
cmp eax, ecx
push ebp
push esi
lea esi, [ebx + 0xa4]
jne 0x10038202
xor ebp, ebp
mov dword [esi + 0x38], ebp
jmp 0x1003821d
sub eax, ecx
push edi
mov edi, eax
mov eax, dword [esi + 0x34]
push edi
add ecx, eax
push ecx
push eax
call fcn.10048be0
add esp, 0xc
mov dword [esi + 0x38], edi
xor ebp, ebp
pop edi
mov eax, esi
mov dword [esi + 0x3c], ebp
call fcn.10036050
mov ecx, dword [ebx + 0xc4]
push ebp
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 4]
push ecx
lea edx, [ebx + 0xc8]
push edx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
pop esi
pop ebp
jne 0x1003828c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1003828c
cmp eax, 0x2733
je 0x10038283
cmp eax, 8
je 0x10038283
cmp eax, 0x2747
je 0x10038283
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x10038ec0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, eax
xor eax, eax
call fcn.10036600
test eax, eax
jne 0x10038ed6
xor eax, eax
pop esi
pop ecx
ret 4
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 8]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 4]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10038ecf
mov dword [esi + 0x50], bind
mov dword [0x1008d298], 0
mov eax, 1
pop esi
pop ecx
ret 4

Function at 0x1003a9c0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
jne 0x1003a9cc
xor al, al
ret 4
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
add eax, 1
ret 4

Function at 0x1003aa60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
jne 0x1003aa72
xor al, al
add esp, 8
ret 4
mov ecx, 4
mov dword [esp], ecx
mov dword [esp + 4], ecx
lea ecx, [esp]
push ecx
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
add esp, 8
ret 4

Function at 0x1003b7e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
test esi, esi
jne 0x1003b7f3
pop esi
xor al, al
pop ebp
ret 4
test ebp, ebp
mov dword [ecx + 4], 0xffffffff
jbe 0x1003b82a
push edi
mov edi, dword [ecx]
shl edi, 8
movzx edx, byte [esi]
mov eax, dword [ecx + 4]
xor edx, eax
and edx, 0xff
add edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x1008d2a0]
add esi, 1
sub ebp, 1
mov dword [ecx + 4], eax
jne 0x1003b804
pop edi
movzx edx, word [ecx + 6]
movzx ecx, word [ecx + 4]
push ebx
mov bl, dh
mov al, ch
add al, bl
pop ebx
add al, dl
pop esi
add al, cl
pop ebp
ret 4
Function at 0x1003c270
Capabilities:
Resolve dns

Disassembly:
push ecx
test esi, esi
jne 0x1003c279
xor eax, eax
pop ecx
ret
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1003c280
sub eax, edx
je 0x1003c275
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x1003c2b7
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1003c2a9
or eax, 0xffffffff
pop ecx
ret
cmp word [eax + 0xa], 4
jne 0x1003c2a4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop ecx
ret

Function at 0x1003c4b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x100880b0]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [esi + 4], 0
je 0x1003c4e6
mov eax, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.10046377
add esp, 0x198
ret 4
xor ecx, ecx
mov ch, byte [esp + 0x19c]
lea eax, [esp]
push eax
mov cl, bl
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1003c536
mov ax, word [esp]
cmp al, bl
jne 0x1003c530
cmp ah, byte [esp + 0x19c]
jne 0x1003c530
mov eax, 1
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.10046377
add esp, 0x198
ret 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
xor eax, eax
call fcn.10046377
add esp, 0x198
ret 4

Function at 0x1003c8c0
Capabilities:
Access peb ldr_data
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x10074dea
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100880b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
push esi
call fcn.1003c970
xor edi, edi
mov dword [esp + 0x38], edi
lea eax, [esp + 0xc]
push eax
mov dword [esi], vtable.CProactorIOCP.0
mov dword [esi + 0x4c], edi
mov dword [esi + 4], edi
mov dword [esi + 0x50], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x20]
add eax, eax
push eax
push edi
push edi
push 0xffffffffffffffff
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x4c], eax
mov dword [esp + 0x38], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret 4
Function at 0x1003ef40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
push esi
push edi
mov esi, ecx
jne 0x1003efa9
lea edi, [esi + 4]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebx], 0
jne 0x1003efa2
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ecx]
call ebx
mov ecx, dword [esi + 0x4c]
mov edi, eax
mov eax, dword [esi + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1003ef9e
call ebx
sub eax, edi
push eax
lea edi, [esi + 0x70]
call fcn.1003f1a0
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x1003ef70
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
cmp dword [esi + 4], 0xffffffff
mov byte [esi + 0xa8], 1
jne 0x10040fc5
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x10040fc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
pop esi
xor eax, eax
pop ebp
ret 4
xor eax, eax
test bp, bp
push edi
lea edi, [esi + 0xb8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov word [edi], 2
jbe 0x10041003
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 4]
push 0x10
push edi
push edx
mov word [esi + 0xba], ax
mov dword [esi + 0xbc], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x1004103b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
xor eax, eax
pop ebp
ret 4
call fcn.10041270
test eax, eax
je 0x10040fbe
mov eax, esi
call fcn.100412a0
pop esi
mov eax, 1
pop ebp
ret 4