joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e280
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
mov ecx, 0x4690e3
push edi
call fcn.00447953
push 0
push esi
push 0
push 0
push closesocket
push closesocket
push 0
push 0
push 0xcf0000
push 0x452cc8
push 0x452cc8
push 0
mov dword [0x46243c], esi
mov dword [0x461880], esi
mov dword [0x4639a0], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x461838], eax
test eax, eax
jne 0x40e2e1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0041cc40
push 0
mov ecx, 0x462458
call fcn.00402d10
call fcn.0040c650
test eax, eax
je 0x40e300
mov dword [0x461858], eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
mov ecx, 0x462458
mov dword [0x46187c], edi
mov dword [0x461878], eax
call fcn.004027f0
cmp dword [0x4625fc], 0xf
mov ecx, 0x4625e8
mov esi, dword [0x4625f8]
cmova ecx, dword [0x4625e8]
cmp esi, 4
jne 0x40e3a4
mov edx, str.4.11
sub esi, esi
jb 0x40e361
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40e366
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40e350
cmp esi, 0xfffffffc
je 0x40e39a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40e393
cmp esi, 0xfffffffd
je 0x40e39a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40e393
cmp esi, 0xfffffffe
je 0x40e39a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40e393
cmp esi, 0xffffffff
je 0x40e39a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40e39a
sbb eax, eax
or eax, 1
jmp 0x40e39c
xor eax, eax
test eax, eax
je 0x40e491
push 4
push str.4.11
mov ecx, 0x4625e8
call fcn.00407c90
cmp dword [0x4625fc], 0xf
mov edx, 0x4625e8
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
cmova edx, dword [0x4625e8]
mov ecx, edx
mov dword [ebp - 0xc], 0
movups xmmword [ebp - 0x20], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e3e2
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.00407e40
mov edx, dword [0x461cd8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x40e42e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edx
push 0xf003f
push edx
push 0x4522a0
push edx
push str.SoftWareTestProgramNetScr
push reloc.d2d1.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e461
mov edx, dword [ebp - 4]
cmp dword [ebp - 0xc], 0xf
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
cmova ecx, dword [ebp - 0x20]
inc eax
push eax
push ecx
push 1
push 0
push 0x45233c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x461cd8], 0
jne 0x40e461
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
cmp ecx, 0xf
jbe 0x40e491
mov edx, dword [ebp - 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e487
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e49c
push ecx
push edx
call fcn.00421cfe
add esp, 8
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00430308
int3
Function at 0x411ee0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x4690e3
call fcn.00447953
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov eax, dword [edi + 0x4c]
cmp eax, dword [edi + 0x50]
je 0x411f2f
mov dword [edi + 0x50], eax
cmp byte [edi + 4], 0
je 0x412119
lea ebx, [edi + 0x68]
lea esi, [edi + 0x60]
nop
cmp dword [edi + 0x14], 0
jbe 0x411f4d
mov ecx, edi
call fcn.00411ac0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebx]
sub ecx, dword [esi]
mov edx, dword [ebx + 4]
sbb edx, dword [esi + 4]
call fcn.00447a00
mulsd xmm0, qword [0x461ce0]
cvttsd2si eax, xmm0
mov dword [esp + 0x28], eax
cmp eax, 0xea60
jl 0x412107
mov esi, dword [edi]
push dword [esi + 8]
call dword [sym.imp.pdh.dll_PdhCollectQueryData]
lea eax, [esp + 0x30]
push eax
push 0
push 0x200
push dword [esi + 0x10]
call dword [sym.imp.pdh.dll_PdhGetFormattedCounterValue]
movsd xmm0, qword [esp + 0x38]
lea eax, [esp + 0x30]
push eax
push 0
push 0x200
push dword [esi + 0x14]
movsd qword [esi + 0x28], xmm0
call dword [sym.imp.pdh.dll_PdhGetFormattedCounterValue]
movsd xmm0, qword [esp + 0x38]
lea eax, [edi + 0x60]
mulsd xmm0, qword [0x453cf0]
push eax
movsd qword [esi + 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsd xmm1, qword [0x453db0]
xorps xmm0, xmm0
movsd qword [edi + 0x70], xmm0
mov ecx, edi
movd xmm0, dword [esp + 0x28]
cvtdq2pd xmm0, xmm0
mov dword [edi + 0x58], 0
mov esi, dword [edi + 0x78]
add esi, dword [edi + 0x7c]
mulsd xmm0, qword [0x453d08]
divsd xmm1, xmm0
movsd qword [esp + 0x28], xmm1
call fcn.00412120
mov eax, dword [edi]
sub esp, 0x48
movsd xmm1, qword [esp + 0x70]
movups xmm0, xmmword [eax + 0x28]
movups xmmword [esp + 0x38], xmm0
movups xmm0, xmmword [edi + 0x90]
movups xmmword [esp + 0x28], xmm0
movd xmm0, dword [edi + 0x88]
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
movsd qword [esp + 0x20], xmm0
movd xmm0, dword [edi + 0x84]
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
movsd qword [esp + 0x18], xmm0
movd xmm0, dword [edi + 0x80]
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
movsd qword [esp + 0x10], xmm0
movd xmm0, dword [edi + 0x7c]
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
movsd qword [esp + 8], xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
movsd qword [esp], xmm0
push str._.3lf__.3lf__.3lf__.3lf__.3lf__.3lf__.3lf__.3lf__.3lf
push 0x5f
push 0x45ab35
call fcn.004013f0
add esp, 0x54
push 0
push str.STAT
push 0x40f
push dword [0x461838]
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [edi + 0x78], 0
lea esi, [edi + 0x60]
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov eax, dword [edi + 0x4c]
cmp eax, dword [edi + 0x50]
je 0x412107
mov dword [edi + 0x50], eax
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [edi + 4], 0
jne 0x411f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412320
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, 0x468fff
push edi
call fcn.00447953
mov edi, dword [ebp + 8]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
and ecx, eax
mov eax, dword [esi + 0xc]
lea edx, [eax + ecx*8]
mov eax, dword [edx + 4]
cmp eax, dword [esi + 4]
je 0x412397
mov ecx, dword [edi]
mov edx, dword [edx]
cmp ecx, dword [eax + 8]
je 0x41238e
cmp eax, edx
je 0x412397
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
jne 0x412382
pop edi
add eax, 0xc
pop esi
pop ebp
ret 4
push str.invalid_unordered_map_K__T__key
call fcn.00420a53
int3
Function at 0x4124f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov ecx, 0x469001
call fcn.00447953
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edx, eax
je 0x412656
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push esi
push edi
mov edi, dword [ebx + 0xc]
mov esi, edx
xor ecx, eax
mov dword [ebp - 0x18], edi
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0xc], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0x10
push eax
call fcn.00421cfe
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x14]
je 0x4125b3
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x412571
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x41264c
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
pop edi
mov dword [edx], esi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jne 0x4125c7
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [edx], eax
jmp 0x4125ca
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], ecx
cmp esi, eax
je 0x41264c
nop dword [eax]
nop dword [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0x10
push eax
call fcn.00421cfe
dec dword [ebx + 8]
add esp, 8
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp - 0x14]
je 0x41265d
cmp esi, eax
jne 0x412627
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x4125e0
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412790
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov ecx, 0x469001
call fcn.00447953
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax + 8]
movzx ecx, byte [eax + 0xa]
xor edx, 0x811c9dc5
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
imul edx, esi, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0xb]
imul edx, edx, 0x1000193
xor edx, ecx
imul ecx, edx, 0x1000193
mov edx, dword [edi + 0x18]
and edx, ecx
mov ecx, dword [edi + 0xc]
mov esi, dword [ecx + edx*8]
cmp dword [ecx + edx*8 + 4], eax
jne 0x412802
cmp esi, eax
jne 0x4127f9
mov eax, dword [edi + 4]
mov dword [ecx + edx*8], eax
mov dword [ecx + edx*8 + 4], eax
jmp 0x41280b
mov eax, dword [eax + 4]
mov dword [ecx + edx*8 + 4], eax
jmp 0x41280b
cmp esi, eax
jne 0x41280e
mov eax, dword [eax]
mov dword [ecx + edx*8], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
dec dword [edi + 8]
mov ecx, dword [eax + 4]
push 0x10
mov dword [ecx], esi
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push dword [ebp + 0xc]
call fcn.00421cfe
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebp
ret 8
Function at 0x412d30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
mov ecx, 0x469001
push edi
mov dword [ebp - 4], ebx
call fcn.00447953
mov eax, 0x1fffffff
mov edi, 1
bsr ecx, eax
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x412e99
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00412690
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x412e6c
nop dword [eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 8], edx
cmp edi, esi
jne 0x412df1
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x412e62
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x412e2b
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x412e23
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x412e5f
cmp edi, edx
je 0x412e3c
nop
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x412e75
cmp edi, edx
jne 0x412e30
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x412da0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x412e5f
push str.invalid_hash_bucket_count
call fcn.00420a33
int3
Function at 0x413930
Capabilities:
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, 0x4690e3
call fcn.00447953
mov eax, dword [esi + 8]
test eax, eax
je 0x413951
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x4139d4
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esi + 0x1c], xmm0
push 0x2714
mov word [esi + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x1e], ax
xorps xmm0, xmm0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 1
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4139d4
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4139d4
mov eax, dword [ecx + 0x18]
push ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x20], eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4139e0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x45a080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov ecx, 0x4690e3
call fcn.00447953
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0x10
push eax
push dword [edi + 8]
mov dword [ebp - 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
lea eax, [edi + 0x1c]
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x413a34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x413a6a
push 0
push 0x1388
push 0
lea eax, [ebp - 0x34]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x413a82
cmp eax, 0xffffffff
je 0x413a82
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x413a6f
or esi, 0xffffffff
jmp 0x413a84
test byte [ebp - 0x30], 0x10
je 0x413a82
cmp dword [ebp - 0x1c], 0
jne 0x413a82
mov esi, 1
jmp 0x413a84
xor esi, esi
push 0
push dword [ebp - 0x34]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push dword [ebp - 0x34]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push 0x8004667e
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, 1
mov eax, esi
sete cl
mov byte [edi + 0x678], cl
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042195a
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, 0x4690e3
push edi
call fcn.00447953
mov edx, dword [ebp + 8]
mov eax, edx
lea edi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413b00
push 0
sub eax, edi
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
pop edi
setne al
pop esi
pop ebp
ret 4
Function at 0x413ef0
Capabilities:
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, 0x4690e3
call fcn.00447953
mov eax, dword [esi + 8]
test eax, eax
je 0x413f11
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esi + 8], 0xffffffff
mov dword [esi + 0x30], eax
je 0x413f9c
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esi + 0x1c], xmm0
mov word [esi + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x1e], ax
xorps xmm0, xmm0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 1
movups xmmword [ebp - 0x10], xmm0
mov dword [ebp - 0x1c], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x413f9c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x413f9c
mov eax, dword [ecx + 0x18]
push ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x20], eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45a080]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, ecx
mov ecx, 0x4690e3
call fcn.00447953
mov eax, dword [edi + 8]
test eax, eax
je 0x413fe3
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 8], 0
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi + 8], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [edi + 8], 0xffffffff
mov dword [edi + 0x30], eax
je 0x414067
push dword [ebp + 8]
xorps xmm0, xmm0
mov eax, 2
movlpd qword [ebp - 0x10], xmm0
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov eax, dword [0x4618c4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_bind]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x30], eax
cmp esi, 0xffffffff
je 0x414067
mov byte [edi + 0x629], 0
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042195a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0042195a
mov esp, ebp
pop ebp
ret 4
Function at 0x414080
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], 0x100000
mov ecx, 0x4690e3
call fcn.00447953
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
push eax
push 0x1002
push 0xffff
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1002
push 0xffff
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x30], eax
cmp esi, 0xffffffff
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4141d0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45a080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x18], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov ecx, 0x4690e3
push esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x28], eax
call fcn.00447953
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x41423c
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x1006
push 0xffff
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 0x30], eax
cmp esi, 0xffffffff
je 0x41426b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x5dc
push dword [ebp - 0x18]
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call edi
mov dword [ebx + 0x30], eax
cmp esi, 0xffffffff
jne 0x414280
call edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042195a
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [0x4618c4]
je 0x41426b
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov byte [eax + esi], 0
test edi, edi
je 0x4142af
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x10
push edi
call fcn.0042a8b3
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x4142bc
movzx eax, word [ebp - 0x12]
mov dword [edx], eax
mov eax, ebx
pop edi
mov dword [eax + 0x2c], ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042195a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4142e0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45a080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], eax
push edi
mov ecx, 0x4690e3
mov dword [ebp - 0x1c], esi
call fcn.00447953
mov eax, dword [ebp + 8]
lea edi, [esi + 8]
mov dword [ebp - 0x18], eax
lea ebx, [esi + 0x30]
cmp eax, 0xffffffff
je 0x414343
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1006
push 0xffff
push dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
cmp esi, 0xffffffff
je 0x4143af
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x5dc
lea eax, [esi + 0x34]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
cmp edi, 0xffffffff
je 0x4143af
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [0x4618c4]
je 0x4143af
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x10
push dword [ebp - 0x24]
call fcn.0042a8b3
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [esi + 0x2c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042195a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042195a
mov esp, ebp
pop ebp
ret 8