joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4045c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42d6df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x42e364]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x40462b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x40462d
mov esi, edi
test esi, esi
je 0x4046f7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4046ec
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x40466f
cmp eax, 2
je 0x40466f
cmp eax, 6
je 0x40466f
cmp eax, 7
jne 0x4046ec
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.00414e00
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x4046d2
lea ecx, [esp + 0x14]
call fcn.00401680
cmp esi, dword [esp + 0x14]
je 0x4046c7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00415070
add esp, 4
jmp 0x404709
call fcn.00415070
add esp, 4
lea ecx, [esp + 0x10]
push 0x450350
call fcn.00401680
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x4046f7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x404709
push eax
lea ecx, [esp + 0x14]
call fcn.00401680
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00401000
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00401490
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x4049b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push esi
mov esi, dword [ebp + 8]
push 0x200
push 0
push eax
call fcn.004181b0
push esi
push 0x44f46c
lea eax, [ebp - 0x204]
push str._s_s
push eax
call fcn.00404960
add esp, 0x1c
lea eax, [ebp - 0x210]
xor esi, esi
mov dword [ebp - 0x210], esi
push eax
lea eax, [ebp - 0x204]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404aa9
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], esi
push eax
push esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x208], esi
push eax
push esi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x208]
cmp eax, 2
jb 0x404a9d
add eax, 2
xor ecx, ecx
mov dword [ebp - 0x208], eax
mov edx, 2
shr eax, 1
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414bd5
mov esi, eax
add esp, 4
test esi, esi
je 0x404a9d
lea eax, [ebp - 0x208]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041494e
mov esp, ebp
pop ebp
ret 8

Function at 0x404ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x204]
push edi
mov edi, dword [ebp + 0xc]
push 0x200
push 0
push eax
call fcn.004181b0
push esi
push 0x44f46c
lea eax, [ebp - 0x204]
push str._s_s
push eax
call fcn.00404960
add esp, 0x1c
mov dword [ebp - 0x208], 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
lea eax, [ebp - 0x204]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404b79
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], 4
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
xor ecx, ebp
pop edi
pop esi
call fcn.0041494e
mov esp, ebp
pop ebp
ret 8
Function at 0x404c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x44f46c
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ebx, [esi + 2]
test eax, eax
jne 0x404d0a
lea eax, [ebp - 8]
mov dword [ebp - 0xc], esi
push eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
push esi
push 0x433c50
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
cmp eax, ebx
jb 0x404d01
add eax, ebx
xor ecx, ecx
mov dword [ebp - 8], eax
shr eax, 1
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414bd5
mov esi, eax
add esp, 4
test esi, esi
je 0x404d01
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push 0x433c50
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x404d2e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
test ax, ax
jne 0x404d13
sub ecx, edx
sar ecx, 1
jne 0x404d76
push 2
push esi
call fcn.00414bc7
add esp, 8
xor ecx, ecx
mov eax, 3
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414bd5
add esp, 4
test eax, eax
je 0x404d66
xor ecx, ecx
mov dword [eax], ecx
mov word [eax + 4], cx
mov ecx, dword [0x433c5c]
mov dword [eax], ecx
mov cx, word [0x433c60]
mov word [eax + 4], cx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041494e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041494e
mov esp, ebp
pop ebp
ret
Function at 0x405590
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x451280], 0
mov esi, eax
mov dword [ebp - 8], esi
je 0x4055e1
push esi
push ebx
push dword [ebp - 4]
push str.SetForegroundWindowEx___08x____d___d_
push str.FuncLib
push 0xffffffffffffffff
push 0x4511f4
call fcn.00406390
add esp, 0x1c
push 1
push ebx
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp dword [0x451280], 0
mov dword [ebp - 4], eax
je 0x405626
push eax
push str.SetForegroundWindowEx_2___08x_
push str.FuncLib
push 0xffffffffffffffff
push 0x4511f4
call fcn.00406390
mov eax, dword [ebp - 4]
add esp, 0x14
test al, 8
jne 0x40564e
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push ebx
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push 1
lea eax, [esi + 4]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x14], xmm0
call fcn.00402060
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x405ab9
mov eax, dword [esi + 0x28]
cmp dword [eax - 8], 0
je 0x405ab1
push 0
push 0x80
push 4
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x405af9
test edi, edi
je 0x405af9
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, edi
mov dword [ebp - 8], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ad6
sub ecx, edx
lea eax, [ebp - 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x14]
call fcn.00402090
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041494e
mov esp, ebp
pop ebp
ret 4
Function at 0x405cc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c3f3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44d034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x10]
mov dword [edi], vtable.CTLogSysW.0
call fcn.00401fc0
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0
call fcn.00401a70
mov eax, dword [0x42e364]
mov dword [edi + 0x40], eax
lea esi, [edi + 0x44]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
lea ecx, [esi + 4]
mov dword [esi], vtable.CTLogToFileW.0
call fcn.00401fc0
mov eax, dword [0x42e364]
lea ecx, [esi + 0x28]
mov dword [ecx], eax
mov byte [ebp - 4], 5
mov dword [esi + 0x24], 0xffffffff
call fcn.00401360
mov dword [edi + 0x70], vtable.CTLogToDbgViewW.0
mov dword [edi + 0x74], vtable.CTLogToConsoleW.0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0xffffffff
lea eax, [edi + 0x84]
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.CTLogToMsgboxW.0
lea ecx, [eax + 4]
mov eax, dword [0x42e364]
mov dword [ecx], eax
mov byte [ebp - 4], 0xa
call fcn.00401360
mov dword [edi + 4], 0
mov eax, edi
mov dword [edi + 8], 2
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4065c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0xffffffff
jne 0x4065ea
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041494e
mov esp, ebp
pop ebp
ret
push esi
push 0x1c
call fcn.00414e00
mov esi, eax
add esp, 4
lea eax, [ebp - 8]
mov dword [ebp - 0x20], esi
push eax
lea eax, [ebp - 0x1c]
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
mov dword [esi], vtable.CXINetSocket.0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
push eax
push dword [edi + 0xc]
mov dword [ebp - 8], 0x10
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x406661
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041494e
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], eax
lea eax, [ebp - 0xc]
push 4
push eax
push 1
push 6
mov dword [ebp - 0xc], 1
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.0041494e
mov esp, ebp
pop ebp
ret
Function at 0x406690
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0xffffffff
jne 0x4066bc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041494e
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 0x20000000]
cmp eax, 0xfffffff
ja 0x4066d9
mov dword [esi + 0x18], edi
xor edi, edi
mov dword [esi + 0x14], 1
push dword [ebp + 8]
mov eax, 2
mov word [ebp - 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov word [ebp - 0x1a], ax
call edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x40674a
cmp dword [esi + 0x14], 0
je 0x40675e
push dword [esi + 0x18]
xor eax, eax
mov byte [ebp - 0xc], 0
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call edi
push 0
mov dword [ebp - 0xc], eax
call edi
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
push 0
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x40675e
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041494e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0041494e
mov esp, ebp
pop ebp
ret 8

Function at 0x406780
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x44d034]
xor eax, esp
mov dword [esp + 0x1a0], eax
cmp dword [0x4511ec], 0
push edi
mov edi, ecx
jne 0x4067bd
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [0x4511ec], eax
cmp dword [edi + 0xc], 0xffffffff
je 0x4067ca
mov ecx, edi
call fcn.00406910
mov eax, dword [ebp + 8]
sub eax, 1
je 0x40681c
sub eax, 1
jne 0x406830
push eax
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x406830
push 0
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push 0
push 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
push ecx
push 0x9800000c
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x406878
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x406847
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.0041494e
mov esp, ebp
pop ebp
ret 4
push 4
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 1
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0xc]
push eax
push 1
push 6
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0x1a4]
mov eax, 1
pop edi
xor ecx, esp
call fcn.0041494e
mov esp, ebp
pop ebp
ret 4
Function at 0x4068a0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 8]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x14], xmm0
mov esi, ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0041494e
mov esp, ebp
pop ebp
ret 8

Function at 0x406910
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0xffffffff
je 0x4069b2
cmp dword [edi + 0x14], 0
je 0x406982
push dword [edi + 0x18]
xor eax, eax
mov byte [ebp - 0xc], 0
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xd
push 0
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x406982
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041494e
mov esp, ebp
pop ebp
ret
push 1
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.0041494e
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0x10
push eax
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x406ab8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041494e
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [ebp - 0x16]
mov dword [esi], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 4]
mov word [edi], ax
xor ecx, ebp
pop edi
mov eax, 1
pop esi
call fcn.0041494e
mov esp, ebp
pop ebp
ret 8

Function at 0x406b30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 0x10
Function at 0x406ba0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_send]
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
pop ebp
ret 8

Function at 0x406be0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x14], 0xff
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
jne 0x406c1f
cmp dword [esi + 0x10], 0
lea eax, [esi + 0x10]
jne 0x406c1f
push 4
push eax
push 0x20
push 0xffff
push dword [esi + 0xc]
mov dword [eax], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0x10]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x14]
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041494e
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x44d034]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 4], eax
mov ecx, dword [ebp + 0x10]
push esi
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], ecx
nop dword [eax]
nop dword [eax + eax]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push dword [ebp + 0xc]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
je 0x406d23
jns 0x406ce4
call edi
cmp eax, 0x2746
jne 0x406d23
test esi, esi
jg 0x406cec
mov eax, dword [esp + 0xc]
jmp 0x406cb0
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x10]
push dword [esp + 0x1e]
mov dword [ecx], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041494e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041494e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406d40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
jne 0x406d63
mov dword [ebp + 8], 1
jmp 0x406d70
xor ecx, ecx
cmp eax, 0x7fffffff
cmova eax, ecx
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push 0xffff
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x406daf
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041494e
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
je 0x406dd3
push 4
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push 0xffff
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x406d9c
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0041494e
mov esp, ebp
pop ebp
ret 8

Function at 0x406e10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x44d034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x451da8], 0
push esi
mov esi, ecx
jne 0x406e92
push 0x110
lea eax, [ebp - 0x114]
mov dword [0x451da8], 1
push 0
push eax
call fcn.004181b0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x406e85
cmp dword [ebp - 0x114], 5
jb 0x406e85
mov ecx, 0x434044
mov dword [0x451da4], ecx
jmp 0x406e98
mov ecx, str.OCULAR_
mov dword [0x451da4], ecx
jmp 0x406e98
mov ecx, dword [0x451da4]
test esi, esi
mov eax, str.OCULAR_
pop esi
cmove eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041494e
mov esp, ebp
pop ebp
ret