joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411b15
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x411b2e
mov eax, dword [ebp - 4]
jmp 0x411c08
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x411be3
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x450318]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x450318]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x450318]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x450318]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x450318]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x450318]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x450318]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x450318]
dec ebp
jne 0x411b4d
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x411bff
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x450318]
dec ecx
jne 0x411bed
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411c4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x411cd6
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
mov ebx, str.idex
push ebx
push eax
call edi
cmp dword [ebp - 8], 1
jne 0x411cd4
call fcn.004020a5
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004020e5
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax]
call edi
test eax, eax
jne 0x411cd4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
shr eax, 1
and word [ecx + eax*2], 0
mov ecx, dword [esi]
call fcn.00402090
mov edx, esi
call fcn.00401ff1
mov dword [ebp - 0xc], 1
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
pop esi
leave
ret 4

Function at 0x411d1b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0040e443
cmp dword [esi + 0x14], edi
jbe 0x411d66
push ebx
mov eax, esi
call fcn.004135c8
mov ecx, eax
push 7
pop ebx
xor edx, edx
mov eax, edi
div ebx
mov ax, word [edx*4 + 0x4502fc]
xor ax, word [ecx]
movzx ebx, ax
mov eax, esi
call fcn.004135c8
inc edi
mov word [eax], bx
cmp edi, dword [esi + 0x14]
jb 0x411d35
pop ebx
mov eax, esi
pop edi
leave
ret
Function at 0x4123c0
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x448260
call fcn.004465d1
mov eax, dword [0x4596a4]
mov ecx, 0x4596a4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea esi, [ebp - 0x14]
call fcn.00412567
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x10]
push str._skdumpcfg.dat
push eax
call fcn.00401e56
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00402012
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push str.tryno
push 0x4510fc
call edi
movzx esi, ax
test si, si
jne 0x41246e
lea esi, [ebp - 0x14]
call fcn.00412567
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x10]
push str._s_ressrcchsuplive.svr
push eax
call fcn.00401e56
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00402012
push dword [ebp - 0x10]
push 0
push str.TryNo
push str.Common
call edi
movzx esi, ax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402012
mov ax, si
call fcn.004466a9
ret

Function at 0x412482
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x4480d0
call fcn.004465d1
mov eax, dword [0x4596a4]
mov ecx, 0x4596a4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea esi, [ebp - 0x14]
call fcn.00412567
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x10]
push str._skdumpcfg.dat
push eax
call fcn.00401e56
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00402012
mov esi, dword [ebp - 0x10]
push esi
push 0
push str.productid2
push 0x4510fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx edi, ax
lea eax, [esi - 0x10]
call fcn.00402012
mov ax, di
call fcn.004466a9
ret

Function at 0x412662
Capabilities:
Read .ini file

Disassembly:
push 0
mov eax, 0x4481c4
call fcn.004465d1
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.004026d8
and dword [ebp - 4], 0
lea esi, [ebp + 8]
call fcn.00401cf9
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov ecx, dword [ebp + 8]
call fcn.00402090
mov edx, esi
call fcn.00401ff1
push str..txt
mov eax, esi
push eax
call fcn.00406223
push dword [ebp + 8]
push 0
push str.Time
push str.DumpKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402012
mov eax, esi
call fcn.004466a9
ret 4
Function at 0x412bbe
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x447b81
call fcn.004465d1
mov eax, dword [0x4596a4]
mov ecx, 0x4596a4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.00401e6a
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.004134a6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
mov dword [esp], 0x451aec
push ecx
mov ecx, eax
call fcn.00401ca1
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402012
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402012
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402012
call fcn.004466a9
ret

Function at 0x412c43
Capabilities:
Delete file
Read .ini file

Disassembly:
push 0x90
mov eax, 0x44815b
call fcn.0044663a
and dword [ebp - 0x9c], 0
mov eax, dword [0x4596a4]
mov esi, ecx
mov ecx, 0x4596a4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x9c], eax
and dword [ebp - 4], 0
test esi, esi
jne 0x412c8d
lea esi, [eax - 0x10]
mov eax, esi
call fcn.00401dfe
add eax, 0x10
mov dword [edi], eax
jmp 0x412d53
push esi
lea eax, [ebp - 0x98]
push eax
call fcn.004026d8
lea esi, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00401cf9
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp - 0x98]
call fcn.00402090
mov edx, esi
call fcn.00401ff1
push str.modulever.txt
mov eax, esi
push eax
call fcn.00406223
and word [ebp - 0x94], 0
push 0x80
lea eax, [ebp - 0x92]
push 0
push eax
call fcn.0042c4d0
add esp, 0xc
push dword [ebp - 0x98]
lea eax, [ebp - 0x94]
push 0x40
push eax
push 0x450dfc
push str.ModuleVer
push str.DumpKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00401c1c
mov esi, dword [ebp - 0x9c]
add esi, 0xfffffff0
mov eax, esi
call fcn.00401dfe
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x98]
add eax, 0xfffffff0
call fcn.00402012
mov eax, esi
call fcn.00402012
mov eax, edi
call fcn.004466bd
ret
Function at 0x4141bc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x414245
push ebx
call fcn.0042caf2
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x414236
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x44fd68
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x414236
cmp dword [ebp - 0xc], ebx
je 0x414236
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x414245
push dword [ebp - 4]
call fcn.0042ce65
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x41430e
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x44847b
call fcn.0044663a
and dword [ebp - 0x21c], 0
mov esi, ecx
mov dword [ebp - 0x220], esi
call fcn.00401bbc
and dword [ebp - 4], 0
and word [ebp - 0x218], 0
push 0x206
lea eax, [ebp - 0x216]
push 0
push eax
mov dword [ebp - 0x21c], 1
call fcn.0042c4d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00401c1c
push esi
call fcn.00414284
pop ecx
mov eax, esi
call fcn.004466bd
ret
Function at 0x414446
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x457064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0x120]
push edi
push eax
call fcn.0042c4d0
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x4144a7
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
cmp eax, edi
je 0x41455d
mov eax, dword [ebp - 0x110]
dec eax
je 0x414549
dec eax
jne 0x41455d
mov eax, dword [ebp - 0x11c]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x4144f6
cmp dword [ebp - 0x118], edx
jne 0x4144e0
xor eax, eax
cmp byte [ebp - 6], dl
setne al
add eax, 8
jmp 0x414545
cmp dword [ebp - 0x118], edi
jne 0x41452e
xor eax, eax
cmp byte [ebp - 6], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x414545
cmp eax, 5
jne 0x414520
cmp dword [ebp - 0x118], 2
jne 0x414507
push eax
jmp 0x414527
cmp dword [ebp - 0x118], 1
jne 0x414514
mov edi, ecx
jmp 0x41455d
cmp dword [ebp - 0x118], edi
jne 0x41455d
push 3
jmp 0x414527
cmp eax, 4
ja 0x41452a
push 4
pop edi
jmp 0x41455d
cmp eax, ecx
jb 0x41455d
cmp dword [ebp - 0x118], 2
jae 0x41453b
cmp eax, ecx
jbe 0x41455d
cmp byte [ebp - 6], dl
jne 0x41455d
call fcn.0041438b
mov edi, eax
jmp 0x41455d
mov eax, dword [ebp - 0x114]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042c46d
leave
ret
Function at 0x4154cf
Capabilities:
Read .ini file

Disassembly:
push 0x3c
mov eax, 0x4488f4
call fcn.0044663a
mov ebx, ecx
cmp dword [ebx + 0x90], 8
jb 0x4154eb
mov eax, dword [ebx + 0x7c]
jmp 0x4154ee
lea eax, [ebx + 0x7c]
push eax
xor esi, esi
push esi
push str.productid
mov edi, str.ProductInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 7
pop ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
mov word [ebp - 0x44], si
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], si
mov ecx, 0x90000
cmp eax, ecx
mov byte [ebp - 4], 1
ja 0x41553d
je 0x41558d
sub eax, 0x11000
je 0x41554b
sub eax, 0x1000
je 0x41554b
dec eax
jmp 0x415549
cmp eax, 0xa0000
je 0x41558d
cmp eax, 0xa016e
jne 0x41558d
mov eax, 0x451154
lea esi, [ebp - 0x48]
call fcn.00407939
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c572
cmp dword [ebx + 0x90], 8
pop ecx
jb 0x415570
mov eax, dword [ebx + 0x7c]
jmp 0x415573
lea eax, [ebx + 0x7c]
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x41557f
lea ecx, [ebp - 0x28]
push eax
push ecx
push str.TryNo
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebx + 0x90], 8
jb 0x41559b
mov ebx, dword [ebx + 0x7c]
jmp 0x41559e
add ebx, 0x7c
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4155aa
lea eax, [ebp - 0x44]
push ebx
push eax
push str.Channel
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00402890
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.00402890
xor eax, eax
inc eax
call fcn.004466bd
ret
Function at 0x4159e9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x120089
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x415a36
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x415a2f
cmp dword [ebp - 4], esi
jg 0x415a2f
jl 0x415a2c
cmp dword [ebp - 8], 0x1400000
ja 0x415a2f
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x419ac8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x457064]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x419b09
cmp byte [ebp - 0x194], 2
jne 0x419b03
cmp byte [ebp - 0x193], 2
je 0x419b0c
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c46d
leave
ret

Function at 0x41a625
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x41a649
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x41a67a
cmp dword [esi + 8], 0
jne 0x41a66a
push 0x44a49c
push dword [eax + 8]
call fcn.00430be6
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x41a66a
or eax, 0xffffffff
jmp 0x41a6a0
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00430b07
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41a688
cmp edi, dword [ebp + 0xc]
jbe 0x41a69e
test ebx, ebx
jne 0x41a698
push dword [esi + 8]
call fcn.004307ef
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x422315
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x422344
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x422465
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x422485
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4224be
cmp eax, 2
jg 0x4224be
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x44b390
push 2
push eax
call fcn.00430ef9
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00430ef9
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4226f6
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4226d0
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4226f5
push ebx
push esi
call fcn.0042b7dc
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004225f0
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x422da5
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x457064]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x422ec2
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x422e22
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0042b7dc
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004225f0
add esp, 0x18
jmp 0x422ec9
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x422e55
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0042b7dc
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x422e14
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.00422d6c
test eax, eax
jne 0x422e8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0042b7dc
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x422e15
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.00422d6c
test eax, eax
jne 0x422ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0042b7dc
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x422e85
mov esi, dword [ebp - 0x78]
push esi
call fcn.00422d1d
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c46d
add ebp, 0x90
leave
ret

Function at 0x422ee1
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x422f26
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042b7dc
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0042257d
add esp, 0x14
jmp 0x422f33
push str.TCP_NODELAY_set_n
push esi
call fcn.0042257d
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4244cb
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x42463d
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x424622
push ebx
push edi
jmp 0x424513
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4245b6
cmp dword [esi + 0x18], 0
je 0x4245b6
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4245b6
push 0x10
pop edi
cmp eax, edi
jb 0x4245b6
push 0x20
call dword [section..data]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4245c6
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [section..data]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4245cf
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x42459d
push eax
call dword [0x45700c]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4245df
cmp dword [ebp - 4], 0
jne 0x4245a6
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4245b0
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x424510
jmp 0x4245f8
mov dword [ebp - 8], 8
jmp 0x4245f8
push ebx
mov dword [ebp - 8], 8
call dword [0x457004]
jmp 0x4245f7
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x457004]
push ebx
call dword [0x457004]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x42460a
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x42461d
push dword [ebp - 4]
call fcn.0042448f
pop ecx
mov dword [ebp - 4], esi
jmp 0x424631
cmp dword [ebp - 4], esi
jne 0x424631
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x42498f
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x457010]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x424a41
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.0042484b
test eax, eax
pop ecx
pop ecx
je 0x424a41
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.0041b072
push dword [ebp + 8]
call dword [0x45700c]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x424a41
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x424a41
lea eax, [esi + 0x10]
push eax
push 0x4248bf
call fcn.0042c004
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x424a5b
call fcn.004327cf
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.0042493d
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x424a5e
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret