joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e52d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push 0
push 0x4000
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
push esi
push dword [esp + 0xc]
push str.ReTranslator::SimpleRead1__X__read__d_bytes
push 0x4ae590
call fcn.0042872e
add esp, 0x10
test esi, esi
jle 0x41e564
mov eax, esi
pop esi
ret
jge 0x41e577
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41e577
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret

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

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 4]
push edi
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 0x10]
test edi, edi
jle 0x41e5d3
mov eax, 0x4000
cmp edi, eax
jg 0x41e59a
mov eax, edi
push 0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, eax
push ebp
push dword [ebx]
push str.ReTranslator::SimpleSend___X__send__d_bytes
push 0x4ae590
call fcn.0042872e
add esp, 0x10
test ebp, ebp
jle 0x41e5e4
cmp ebp, edi
mov ecx, esi
jne 0x41e5da
mov eax, dword [esi]
call dword [eax + 8]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
push 0
call fcn.004290d8
jmp 0x41e5d3
jge 0x41e5f3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41e5d3
xor al, al
jmp 0x41e5d5
Function at 0x41e5f7
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x24]
mov eax, dword [esi]
mov ecx, dword [edi]
xor ebx, ebx
xor edx, edx
inc ebx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x208], ebx
cmp dword [ebp + edx*4 - 0x204], ecx
je 0x41e631
inc edx
cmp edx, ebx
jb 0x41e623
cmp edx, ebx
jne 0x41e645
mov dword [ebp - 0x200], ecx
mov dword [ebp - 0x208], 2
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0x14]
je 0x41e65d
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x104], 1
mov eax, dword [esi + 0x34]
sub eax, dword [esi + 0x38]
je 0x41e695
mov edx, dword [ebp - 0x104]
xor eax, eax
test edx, edx
jbe 0x41e67f
cmp dword [ebp + eax*4 - 0x100], ecx
je 0x41e67f
inc eax
cmp eax, edx
jb 0x41e671
cmp eax, edx
jne 0x41e695
cmp edx, 0x40
jae 0x41e695
mov dword [ebp + eax*4 - 0x100], ecx
inc dword [ebp - 0x104]
xor ebx, ebx
lea eax, [ebp - 0x104]
push ebx
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jle 0x41e719
cmp eax, 4
jg 0x41e719
lea eax, [ebp - 0x208]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41e6da
lea eax, [esi + 0x28]
push eax
push dword [esi]
call fcn.0041e738
pop ecx
test al, al
pop ecx
je 0x41e733
lea eax, [ebp - 0x208]
push eax
push dword [edi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41e6fd
lea eax, [esi + 4]
push eax
push dword [edi]
call fcn.0041e738
pop ecx
test al, al
pop ecx
je 0x41e733
mov ecx, edi
call fcn.0041e57c
test al, al
je 0x41e733
mov ecx, esi
call fcn.0041e57c
test al, al
jne 0x41e608
jmp 0x41e733
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReTranslate__1_error_d__d
push 0x4ae590
call fcn.00428716
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x4000
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
add ecx, edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
push 0
push edi
mov ecx, esi
call dword [eax + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41e777
push eax
push 0
mov ecx, esi
call fcn.00428f8b
mov al, 1
jmp 0x41e7a9
jge 0x41e7a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41e773
cmp eax, 0x2746
je 0x41e7a7
cmp eax, 0x2745
je 0x41e7a7
push eax
push str.ReTranslator::SimpleRead__1_error_d
push 0x4ae590
call fcn.00428716
add esp, 0xc
xor al, al
pop edi
pop esi
ret

Function at 0x41eb30
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edx, 0x3ff
mov ecx, 0x4a2404
and eax, edx
xor esi, esi
mov di, word [ecx]
and di, dx
cmp ax, di
je 0x41eb66
add ecx, 0x18
inc esi
cmp ecx, 0x4a25b4
jl 0x41eb46
mov ax, word [0x4a2404]
pop edi
pop esi
ret
lea eax, [esi + esi*2]
mov ax, word [eax*8 + 0x4a2404]
jmp 0x41eb63
Function at 0x420071
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
mov byte [eax], bl
mov eax, dword [ebp + 0xc]
push edi
push 0xf003f
push ebx
mov byte [eax], bl
mov eax, dword [ebp + 0x10]
push ebx
mov edi, ecx
mov byte [eax], bl
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x420103
push 0xf01ff
lea ecx, [edi + 4]
call fcn.0042b08a
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x4200f8
lea eax, [ebp - 0x1c]
mov byte [esi], 1
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4200f3
cmp dword [ebp - 0x18], 4
jne 0x4200e7
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
cmp dword [ebp - 0x18], 1
jne 0x4200f3
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
push edi
call ebx
jmp 0x4200fe
mov eax, dword [ebp + 8]
mov byte [eax], 1
push dword [ebp + 0x14]
call ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42010a
Capabilities:
Create service
Persist via windows service

Disassembly:
mov eax, 0x47f928
call fcn.0047bfa0
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x20]
push ebx
push eax
mov esi, ecx
call fcn.0040bb0d
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x24]
push 0x4a2dbc
push eax
call fcn.0042c1f2
push str.___service
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.0042c187
add esp, 0x20
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0042bea3
mov ecx, esi
call fcn.0042b08a
push eax
lea ecx, [ebp - 0x14]
call fcn.0042bf63
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.0042c384
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0042bea3
lea ecx, [esi + 4]
call fcn.0042b08a
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042bf63
lea ecx, [esi + 8]
mov byte [ebp - 4], 5
call fcn.0042b08a
push eax
lea ecx, [ebp - 0x18]
call fcn.0042bf63
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.0042b08a
push eax
push 1
push 2
push 0x10
push 0xf01ff
lea ecx, [ebp - 0x18]
call fcn.0042b08a
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042b08a
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
jne 0x420237
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x420217
lea eax, [ebp - 0x28]
push str.The_Ammyy_service_is_already_registered
push eax
call fcn.0042777f
pop ecx
lea eax, [ebp - 0x28]
pop ecx
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
lea eax, [ebp - 0x28]
push str.ERROR__d_CreateServiceW___while_registering_the_Ammyy_service
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x28]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
mov ecx, esi
call fcn.00420286
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0042bea3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0042bea3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042bea3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0042bea3
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x420286
Capabilities:
Manipulate safe mode programs

Disassembly:
mov eax, 0x47f94c
call fcn.0047bfa0
push ecx
push ecx
add ecx, 4
lea eax, [ebp - 0x10]
push ecx
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
push eax
call fcn.0042ac2e
add esp, 0xc
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
je 0x420309
lea ecx, [ebp + 8]
call fcn.00429883
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042b08a
push eax
push reloc.WS2_32.dll_bind
lea ecx, [ebp + 8]
call fcn.004287ae
push str.Service
lea ecx, [ebp - 0x14]
call fcn.0042a960
push eax
push 0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00428a22
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042a8ed
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0042874c
jmp 0x42031e
lea ecx, [ebp - 0x10]
call fcn.0042b08a
push eax
push reloc.WS2_32.dll_bind
call fcn.00428a74
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a8ed
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x420338
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
push 0xf01ff
lea ecx, [ebx + 4]
call fcn.0042b08a
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4204ac
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x24]
push eax
push edi
call esi
test eax, eax
jne 0x4203a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 8]
push str.ERROR__d_QueryServiceStatus__
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x20], 1
je 0x420432
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4203fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 8]
push str.ERROR__d_ControlService__
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x20], 3
jne 0x420407
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push edi
call esi
test eax, eax
jne 0x4203ee
cmp dword [ebp - 0x20], 1
je 0x420432
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 8]
push str.The_Ammyy_service_could_not_be_stopped
push eax
call fcn.0042777f
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp + 0xc], 0
je 0x42049e
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x420495
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, 0x430
lea eax, [ebp - 8]
jne 0x420478
push str.The_Ammyy_service_is_already_marked_for_removing
push eax
call fcn.0042777f
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push str.The_Ammyy_service_could_not_be_removed__error_d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
mov ecx, ebx
call fcn.00420286
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 8]
push str.The_Ammyy_service_could_not_be_found
push eax
call fcn.0042777f
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x4204ca
Capabilities:
Start service

Disassembly:
mov eax, 0x47f960
call fcn.0047bfa0
sub esp, 0x10
push esi
push 0xf01ff
add ecx, 4
call fcn.0042b08a
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x420513
lea eax, [ebp - 0x14]
push str.The_Ammyy_service_could_not_be_found
push eax
call fcn.0042777f
pop ecx
lea eax, [ebp - 0x14]
pop ecx
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x420564
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp + 8]
push edi
push eax
call fcn.0040bdbf
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push edi
push str.ERROR__d___S__while_starting_the_AMMYY_service
push eax
call fcn.0042777f
add esp, 0x18
lea eax, [ebp - 0x1c]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x420889
Capabilities:
Delete service
Query service status
Start service

Disassembly:
mov eax, 0x47f9e8
call fcn.0047bfa0
sub esp, 0x8c
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
jge 0x4208c9
lea eax, [ebp - 0x54]
push str.JustLunch___Invalid_Session
push eax
call fcn.0042777f
pop ecx
lea eax, [ebp - 0x54]
pop ecx
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x420903
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x30]
push str.OpenSCManager___error__d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push 1
push eax
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00420338
jmp 0x42091d
push 2
mov ecx, ebx
pop edi
mov dword [ebp - 0x14], esi
push dword [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.0042010a
lea ecx, [ebx + 4]
call fcn.0042b08a
push 0xf01ff
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], esi
jne 0x420976
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x5c]
push str.OpenService___error__d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x5c]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 8]
lea eax, [ebp - 0x98]
push 0x4a2f90
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
lea eax, [ebp - 0x98]
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4209d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push str.StartService___error__d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x38]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x420a08
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push str.QueryServiceStatus___error__d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x40]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x74], 1
je 0x420a18
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4209d3
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x420a49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x4c]
push str.DeleteService___error__d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x18]
call esi
push 0
mov ecx, ebx
call fcn.00420286
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x423066
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x47fe84
call fcn.0047bfa0
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.0042a0a2
and dword [ebp - 4], 0
push 1
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.0042b08a
push eax
push 0x4a1238
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a8ed
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x42328f
lea eax, [ebp - 8]
push str.CreateInternal__1
push eax
call fcn.0042777f
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4232c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.Error__d_socket__
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret

Function at 0x4233e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
xor edx, edx
mov ecx, 0x3e8
push edi
div ecx
xor edi, edi
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
imul edx, edx, 0x3e8
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x114]
push edi
push eax
push edi
mov dword [ebp - 0xc], edx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
jne 0x42343a
or eax, 0xffffffff
pop edi
pop esi
leave
ret 4
jle 0x423483
lea eax, [ebp - 0x114]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x423483
push edi
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x423434
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.accept___error_d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.select___error_d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 8]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x4234a9
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
pop esi
je 0x4234e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
leave
ret 8
Function at 0x42353b
Capabilities:
Connect socket
Get socket status

Disassembly:
mov eax, 0x47ff38
call fcn.0047bfa0
sub esp, 0x22c
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.00423259
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00423264
push ebx
push dword [ebp - 0x10]
call fcn.00424226
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
push dword [ebp + 0xc]
mov word [ebp - 0x30], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp - 0x10]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x30]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
xor esi, esi
inc esi
test eax, eax
je 0x42365c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x423671
mov eax, dword [ebp + 0x10]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x20], eax
imul edx, edx, 0x3e8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edx
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x238]
push eax
push ebx
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jl 0x423698
cmp eax, esi
jg 0x423698
cmp eax, ebx
je 0x42368e
cmp eax, esi
jne 0x423625
lea eax, [ebp - 0x134]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x42368e
lea eax, [ebp - 0x238]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x42365c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str.select___error_d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x18]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push dword [ebp - 0x10]
call fcn.00424226
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00423339
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042325f
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp - 0x10]
call fcn.004232cb
jmp 0x423671
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str.select___error_d
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0x18]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x4236be
Capabilities:
Set socket configuration

Disassembly:
push dword [esp + 4]
call fcn.004236cd
pop ecx
jmp fcn.00423717

Function at 0x4236cd
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
lea ecx, [ebp - 4]
inc eax
push 4
push ecx
push eax
push 6
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x423715
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0xc]
push str.ERROR__d_disabling_Nagles_algorithm
push eax
call fcn.0042777f
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x48e0c0
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret