joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416050
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e98da
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5348a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x5348c0]
mov dword [ebp - 4], 0
test edi, edi
jne 0x4161df
push 0x5c
call fcn.004ab698
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4161d7
mov dword [edi], vtable.Coordinators::AppSettingsBase.0
lea eax, [edi + 0x40]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
push eax
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x58], vtable.Utilities::Singleton_class_Coordinators::AppCommonSettings__class_Utilities::SingletonCreateUsingNew_.0
push 4
push str.Main
lea ecx, [edi + 4]
mov byte [ebp - 4], 3
mov dword [edi], vtable.Coordinators::AppCommonSettings.0
mov dword [edi + 0x58], vtable.Coordinators::AppCommonSettings.1.0
call fcn.00403090
lea eax, [ebp - 0x28]
push str..._server_
push eax
call fcn.004023a0
lea esi, [edi + 0x1c]
mov dword [ebp - 0x2c], eax
add esp, 8
cmp esi, eax
je 0x41616b
mov ecx, esi
call fcn.00401e30
mov eax, dword [ebp - 0x2c]
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x41619b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416191
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41620d
push edx
push ecx
call fcn.004ab6c8
add esp, 8
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jb 0x4161b7
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x12
push str.commonsettings.snc
mov ecx, esi
call fcn.00402f30
mov ecx, edi
call fcn.00418400
jmp 0x4161d9
xor edi, edi
mov dword [0x5348c0], edi
inc dword [0x5348c4]
push 0x5348a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ab970
mov esp, ebp
pop ebp
ret
call fcn.004c6d19
int3
Function at 0x417fb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x14]
lea ebx, [edi + 0x40]
xorps xmm0, xmm0
push eax
push dword [ebx]
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x20], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
add eax, 0xfffffffb
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
and ecx, 0xffff0000
movzx eax, ax
or ecx, eax
lea eax, [edi + 0x20]
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
test eax, eax
cmove edi, ecx
cmp byte [eax + 0x1c], cl
je 0x418039
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x41802a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41803e
test esi, esi
jne 0x418039
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41803e
cmp esi, 1
je 0x418054
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x20]
push eax
call fcn.004139c0
push 0
push 0
push 0x101f
push dword [ebx]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
call ebx
push 0
push 0
push 0x1200
push eax
call ebx
mov edi, eax
xor esi, esi
test edi, edi
je 0x41809e
mov eax, dword [ebp - 0x18]
xor edx, edx
div edi
movzx eax, ax
mov dword [ebp - 0x18], eax
push eax
mov eax, dword [ebp - 0x20]
push esi
push 0x101e
push dword [eax]
call ebx
mov eax, dword [ebp - 0x18]
inc esi
cmp esi, edi
jb 0x418088
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ab970
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4193e0
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0x11
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
test esi, esi
je 0x41947a
cmp esi, 0xffffffff
je 0x41947a
cmp dword [ebp + 0x10], 0
je 0x41942d
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x20
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
push dword [ebp + 8]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0xc]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x18]
push edi
push esi
call dword [sym.imp.WSOCK32.dll_sendto]
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ab970
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004ab970
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4199d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x419a2a
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0x3e8
push dword [esi + 8]
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x419a2a
push 1
push dword [esi + 8]
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x419a2a
push dword [esi + 8]
mov dword [esi + 4], 2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, 1
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
lea eax, [ebp - 0x204]
mov esi, ecx
push 0
push eax
call fcn.004c3810
mov edi, dword [sym.imp.WSOCK32.dll_recvfrom]
lea eax, [ebp - 0x218]
add esp, 0xc
mov dword [ebp - 0x218], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x214], xmm0
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x200
lea eax, [ebp - 0x204]
push eax
push dword [esi + 0x18]
call edi
test eax, eax
jle 0x419b18
nop dword [eax]
mov edx, dword [esi]
lea ecx, [ebp - 0x214]
push ecx
push eax
lea eax, [ebp - 0x204]
mov ecx, esi
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x419b18
push 0x200
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.004c3810
add esp, 0xc
mov dword [ebp - 0x218], 0x10
lea eax, [ebp - 0x218]
xorps xmm0, xmm0
movups xmmword [ebp - 0x214], xmm0
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x200
lea eax, [ebp - 0x204]
push eax
push dword [esi + 0x18]
call edi
test eax, eax
jg 0x419ab0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ab970
mov esp, ebp
pop ebp
ret
Function at 0x41c050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea1a4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5299c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.0041cf70
lea ecx, [ebx + 0x154]
mov dword [ebp - 4], 0
call fcn.00434110
lea edi, [ebx + 0x17c]
mov dword [edi], vtable.Utilities::SimpleThread.0
mov dword [edi + 4], 2
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
lea esi, [ebx + 0x194]
mov dword [ebx], vtable.AppSocket.0
mov dword [ebx + method.AppSocket.1.virtual_0], vtable.AppSocket.1.0
mov dword [edi], vtable.AppSocket.2.0
push 8
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004ab698
mov dword [esi], eax
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x1c], ecx
add esp, 4
mov dword [ebp - 0x18], edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
mov dword [ebx + 0x1c8], 3
mov dword [ebx + 0x1d8], 1
mov dword [ebx + 0x1dc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1cc], eax
cmp dword [edi + 4], 2
jne 0x41c1a4
lea eax, [edi + 0xc]
mov dword [edi + 0x10], 1
push eax
push 0
push edi
push 0x419b30
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 8], eax
test eax, eax
mov eax, ebx
je 0x41c1a6
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c210
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
push dword [ebx + 0x1cc]
mov dword [ebx], vtable.AppSocket.0
mov dword [ebx + method.AppSocket.1.virtual_0], vtable.AppSocket.1.0
mov dword [ebx + method.AppSocket.2.virtual_0], vtable.AppSocket.2.0
mov dword [ebx + 0x1dc], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push dword [ebx + 0x184]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0x102
jne 0x41c29f
push 1
push dword [ebx + 0x184]
mov dword [ebx + 0x18c], 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x41c29f
push dword [ebx + 0x184]
mov dword [ebx + 0x180], 2
call esi
mov dword [ebx + 0x184], 0
push dword [ebx + 0x1cc]
call esi
lea edi, [ebx + 0x194]
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x10], 0
je 0x41c327
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
test eax, eax
jne 0x41c2ca
xor edx, edx
jmp 0x41c2cc
mov edx, dword [eax]
mov eax, dword [edx + 8]
dec eax
shr ecx, 2
and ecx, eax
mov eax, dword [edx + 4]
mov edx, dword [edi + 0xc]
and edx, 3
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*4]
add dword [edi + 0x10], 0xffffffff
mov dword [ebp - 4], eax
jne 0x41c2f6
mov dword [edi + 0xc], 0
jmp 0x41c2f9
inc dword [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41c2b0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41c31a
push ecx
call fcn.004d109a
mov eax, dword [ebp - 4]
add esp, 4
push 8
push eax
call fcn.004ab6c8
add esp, 8
jmp 0x41c2b0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, edi
call fcn.0041c1c0
lea ecx, [ebx + 0x154]
mov dword [ebx + method.Utilities::SimpleThread.virtual_0], vtable.Utilities::SimpleThread.0
call fcn.004224d0
mov ecx, ebx
call fcn.0041d0f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c363
Capabilities:
Terminate thread

Disassembly:
sub ecx, 0x17c
jmp fcn.0041c370

Function at 0x41c4d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea1c0
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [esi - 0x154]
push 1
mov dword [ebp - 4], 0
call fcn.0041d330
movzx eax, word [esi - 0x14c]
mov ecx, 2
push eax
mov word [ebp - 0x24], cx
call dword [sym.imp.WSOCK32.dll_htons]
push ebx
mov word [ebp - 0x22], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x20], eax
lea ecx, [esi - 0x154]
lea eax, [ebp - 0x24]
push eax
call fcn.0041d2a0
mov eax, 1
jmp 0x41c55d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ab970
mov esp, ebp
pop ebp
ret 4
Function at 0x41d120
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea32b
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x13c]
push esi
mov dword [ebp - 0x120], esi
call ebx
mov eax, dword [edi + 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x41d24f
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
cmp eax, 0xffffffff
je 0x41d272
push esi
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x118], 0
mov ecx, eax
mov edx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x120], ecx
je 0x41d20e
cmp ecx, dword [edi + 0x120]
je 0x41d1f0
push 0x3e8
push dword [edi + 0x118]
call edx
cmp eax, 0x102
jne 0x41d1f0
push 0
push dword [edi + 0x118]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x118]
call ebx
mov ecx, dword [ebp - 0x120]
mov edx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi + 0x118], 0
mov eax, dword [edi + 0x11c]
test eax, eax
je 0x41d24f
cmp ecx, dword [edi + 0x124]
je 0x41d23d
push 0x3e8
push eax
call edx
cmp eax, 0x102
jne 0x41d23d
push 0
push dword [edi + 0x11c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x11c]
call ebx
mov dword [edi + 0x11c], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ab970
mov esp, ebp
pop ebp
ret
push str.Close
lea ecx, [ebp - 0x11c]
call fcn.0041d080
push 0x51a220
lea eax, [ebp - 0x11c]
push eax
call fcn.004c283c
int3

Function at 0x41d2a0
Capabilities:
Connect socket
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
je 0x41d30e
lea eax, [esi + 0x124]
push eax
push 0
push esi
push 0x41d6f0
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x11c], eax
mov ecx, esi
mov eax, dword [esi]
mov dword [esi + 0x128], 0
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ab970
mov esp, ebp
pop ebp
ret 4
push str.Connect
lea ecx, [ebp - 0x110]
call fcn.0041d080
push 0x51a220
lea eax, [ebp - 0x110]
push eax
call fcn.004c283c
int3
Function at 0x41d330
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push dword [ebp + 8]
mov esi, ecx
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi + 4], eax
pop esi
cmp eax, 0xffffffff
je 0x41d38a
push 4
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], 1
push ecx
push 1
push 6
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ab970
mov esp, ebp
pop ebp
ret 4
push str.Create
lea ecx, [ebp - 0x110]
call fcn.0041d080
push 0x51a220
lea eax, [ebp - 0x110]
push eax
call fcn.004c283c
int3

Function at 0x41d480
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x41d4eb
mov eax, dword [eax + 0xc]
push dword [ebp + 0x10]
mov esi, dword [eax]
mov eax, 2
mov word [ebp - 0x120], ax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esi]
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp - 4]
mov word [ebp - 0x11e], ax
xor ecx, ebp
movups xmm0, xmmword [ebp - 0x120]
mov eax, edi
movups xmmword [edi], xmm0
pop edi
pop esi
call fcn.004ab970
mov esp, ebp
pop ebp
ret
push str.GetHostByName
lea ecx, [ebp - 0x110]
call fcn.0041d080
push 0x51a220
lea eax, [ebp - 0x110]
push eax
call fcn.004c283c
int3
Function at 0x41d570
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea32b
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x13c]
push esi
mov dword [ebp - 0x120], esi
call ebx
mov eax, dword [edi + 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x41d69f
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
cmp eax, 0xffffffff
je 0x41d6c4
push esi
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x118], 0
mov ecx, eax
mov edx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x120], ecx
je 0x41d65e
cmp ecx, dword [edi + 0x120]
je 0x41d640
push 0x3e8
push dword [edi + 0x118]
call edx
cmp eax, 0x102
jne 0x41d640
push 0
push dword [edi + 0x118]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x118]
call ebx
mov ecx, dword [ebp - 0x120]
mov edx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi + 0x118], 0
mov eax, dword [edi + 0x11c]
test eax, eax
je 0x41d69f
cmp ecx, dword [edi + 0x124]
je 0x41d68d
push 0x3e8
push eax
call edx
cmp eax, 0x102
jne 0x41d68d
push 0
push dword [edi + 0x11c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x11c]
call ebx
mov dword [edi + 0x11c], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ab970
mov esp, ebp
pop ebp
ret 4
push str.Close
lea ecx, [ebp - 0x11c]
call fcn.0041d080
push 0x51a220
lea eax, [ebp - 0x11c]
push eax
call fcn.004c283c
int3
Function at 0x41dd90
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea426
mov eax, dword fs:[0]
push eax
sub esp, 0x65c
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x550], eax
mov edx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x54c], eax
mov ebx, edx
mov dword [ebp - 0x554], edx
mov dword [ebp - 4], edi
nop
mov esi, dword [eax + 0x110]
mov eax, dword [eax + 4]
push 0xfc
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x110]
push 0
push eax
mov dword [ebp - 0x118], 1
call fcn.004c3810
add esp, 0xc
mov dword [ebp - 0x55c], esi
lea eax, [ebp - 0x55c]
mov dword [ebp - 0x558], 0
push eax
push 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x41df3f
mov esi, dword [ebp - 0x550]
lea eax, [ebx + 0x10]
push 1
push eax
push ebx
mov ecx, esi
call fcn.0041da40
mov eax, dword [ebp + 0xc]
push 0
sub eax, edi
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
je 0x41df60
lea eax, [ebp - 0x55c]
push eax
push 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
je 0x41dfa2
test eax, eax
je 0x41df81
mov ebx, dword [ebp - 0x554]
add edi, esi
mov eax, dword [ebp - 0x550]
add ebx, edi
cmp edi, dword [ebp + 0xc]
jl 0x41dde0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ab970
mov esp, ebp
pop ebp
ret 8
push str.Send_timeout
lea ecx, [ebp - 0x224]
call fcn.0041d080
push 0x51a220
lea eax, [ebp - 0x224]
push eax
call fcn.004c283c
push str.Send
lea ecx, [ebp - 0x330]
call fcn.0041d080
push 0x51a220
lea eax, [ebp - 0x330]
push eax
call fcn.004c283c
push str.Send_timeout
lea ecx, [ebp - 0x43c]
call fcn.0041d080
push 0x51a220
lea eax, [ebp - 0x43c]
push eax
call fcn.004c283c
push str.Send
lea ecx, [ebp - 0x548]
call fcn.0041d080
push 0x51a220
lea eax, [ebp - 0x548]
push eax
call fcn.004c283c
int3
Function at 0x421a50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
mov eax, 0x4243a0
mov dword [ebp - 4], esi
sub eax, esi
sub eax, 0xa
mov dword [esi + 0x28], 0
push edi
mov dword [esi + 6], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xa
push esi
mov byte [esi], 0xb9
mov dword [esi + 1], esi
mov byte [esi + 5], 0xe9
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xa
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push eax
call edi
mov eax, dword [ebp - 4]
add esi, 0xa
mov dword [ebp - 8], 0
mov dword [esi + 1], eax
mov eax, fcn.00424c60
sub eax, esi
mov byte [esi], 0xb9
sub eax, 0xa
mov byte [esi + 5], 0xe9
mov dword [esi + 6], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xa
push esi
call ebx
push eax
call edi
mov eax, dword [ebp - 4]
lea esi, [eax + 0x14]
mov dword [ebp - 8], 0
mov dword [esi + 1], eax
mov eax, 0x42bd80
sub eax, esi
mov byte [esi], 0xb9
sub eax, 0xa
mov byte [esi + 5], 0xe9
mov dword [esi + 6], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xa
push esi
call ebx
push eax
call edi
mov eax, dword [ebp - 4]
lea esi, [eax + 0x1e]
mov dword [ebp - 8], 0
mov dword [esi + 1], eax
mov eax, 0x42a6e0
sub eax, esi
mov byte [esi], 0xb9
sub eax, 0xa
mov byte [esi + 5], 0xe9
mov dword [esi + 6], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xa
push esi
call ebx
push eax
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret