joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c660
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f969
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4be014]
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 esi, ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
test eax, eax
je 0x41c841
dec eax
add eax, ecx
cmp ecx, eax
je 0x41c841
cmp dword [eax], 0x1001700
je 0x41c6b8
dec eax
cmp ecx, eax
jne 0x41c6a6
jmp 0x41c841
movzx ebx, byte [eax - 1]
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x41c841
lea edi, [eax + 4]
nop
movzx eax, word [edi - 2]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov byte [esi + 0x576], al
push dword [edi]
call dword [sym.imp.WS2_32.dll_htonl]
mov byte [esi + 0x575], al
mov cl, byte [edi + 8]
mov byte [ebp - 0x15], cl
cmp al, byte [0x4be4ce]
jb 0x41c785
mov al, byte [esi + 0x574]
cmp al, 0x11
jne 0x41c713
cmp byte [esi + 0x576], bl
je 0x41c732
cmp al, 0x13
jne 0x41c71f
cmp byte [esi + 0x576], bl
je 0x41c73e
mov eax, dword [ebp - 0x14]
add edi, 0x17
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ebx
jb 0x41c6d0
jmp 0x41c841
mov byte [esi + 0x56f], 1
jmp 0x41c841
push 1
mov ecx, esi
mov byte [esi + 0x56d], 1
call fcn.00410cf0
cmp dword [0x4c0fd4], 0
mov dword [esi + 0x416], 1
je 0x41c841
cmp byte [esi + 0x5f7], 0
je 0x41c841
mov ecx, esi
call fcn.004121b0
mov ecx, esi
call fcn.004121b0
jmp 0x41c841
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], 0
movzx eax, byte [esi + 0x575]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [esi + 0x576]
push eax
lea eax, [ebp - 0x14]
push str._d__d__d_n
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
add esp, 0x14
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, byte [esi + 0x576]
mov ecx, 1
cmp al, 3
je 0x41c808
cmp al, 5
je 0x41c808
cmp al, 0xa
je 0x41c808
cmp al, 0xb
je 0x41c808
cmp al, 0xc
je 0x41c808
cmp al, 0x10
je 0x41c808
cmp al, 0x14
je 0x41c808
cmp al, 0x15
je 0x41c808
cmp al, 0x16
je 0x41c808
cmp al, 0x17
je 0x41c808
cmp al, 0x1a
je 0x41c808
cmp al, 0x1b
je 0x41c808
cmp al, 0x1c
je 0x41c808
cmp al, 0x1d
jne 0x41c80d
mov ecx, 2
push ecx
movzx eax, al
mov ecx, esi
push eax
movzx eax, byte [esi + 0x574]
push eax
call fcn.0041b9d0
movzx eax, byte [esi + 0x574]
mov ecx, esi
push eax
movzx eax, byte [esi + 0x576]
push eax
call fcn.0041b880
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
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.004429bd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41e080
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
mov eax, 0x55555556
imul ebx
push edi
mov edi, edx
mov dword [ebp - 0xc], ebx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 8], edi
lea edx, [edi + 1]
mov dword [ebp - 4], edx
test edx, edx
jle 0x41e1eb
mov eax, dword [ebp + 8]
lea edx, [ecx + 2]
mov ebx, dword [ebp - 4]
mov edi, 0x2f
push esi
lea esi, [eax + 2]
nop
mov cl, byte [edx - 2]
shr cl, 2
cmp cl, 0x19
ja 0x41e0d0
add cl, 0x41
jmp 0x41e0fe
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x41e0dc
add cl, 0x47
jmp 0x41e0fe
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x41e0e8
sub cl, 4
jmp 0x41e0fe
cmp cl, 0x3e
jne 0x41e0f1
mov cl, 0x2b
jmp 0x41e0fe
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi - 2], cl
mov cl, byte [edx - 2]
mov al, byte [edx - 1]
and cl, 3
shl cl, 4
shr al, 4
add cl, al
cmp cl, 0x19
ja 0x41e11c
add cl, 0x41
jmp 0x41e14a
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x41e128
add cl, 0x47
jmp 0x41e14a
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x41e134
sub cl, 4
jmp 0x41e14a
cmp cl, 0x3e
jne 0x41e13d
mov cl, 0x2b
jmp 0x41e14a
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi - 1], cl
mov al, byte [edx - 1]
mov cl, byte [edx]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
cmp al, 0x19
ja 0x41e164
add al, 0x41
jmp 0x41e190
lea ecx, [eax - 0x1a]
cmp cl, 0x19
ja 0x41e170
add al, 0x47
jmp 0x41e190
lea ecx, [eax - 0x34]
cmp cl, 9
ja 0x41e17c
sub al, 4
jmp 0x41e190
cmp al, 0x3e
jne 0x41e184
mov al, 0x2b
jmp 0x41e190
cmp al, 0x3f
mov ecx, 0x3d
cmove ecx, edi
mov al, cl
mov byte [esi], al
mov cl, byte [edx]
and cl, 0x3f
cmp cl, 0x19
ja 0x41e1a1
add cl, 0x41
jmp 0x41e1cf
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x41e1ad
add cl, 0x47
jmp 0x41e1cf
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x41e1b9
sub cl, 4
jmp 0x41e1cf
cmp cl, 0x3e
jne 0x41e1c2
mov cl, 0x2b
jmp 0x41e1cf
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi + 1], cl
add edx, 3
add esi, 4
sub ebx, 1
jne 0x41e0c0
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
pop esi
lea eax, [edi + edi*2]
sub ebx, eax
cmp ebx, 1
jne 0x41e201
mov eax, dword [ebp + 8]
mov word [eax + edi*4 + 2], 0x3d3d
jmp 0x41e20e
cmp ebx, 2
jne 0x41e210
mov eax, dword [ebp + 8]
mov byte [eax + edi*4 + 3], 0x3d
mov edi, edx
mov ecx, dword [ebp + 8]
lea eax, [edi*4]
pop edi
pop ebx
mov byte [eax + ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x41e4b0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
call fcn.0041e230
test eax, eax
je 0x41e4e6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebx
mov ecx, edi
call fcn.0041e230
test eax, eax
jne 0x41e4d7
push 4
push edi
push 0x700b
push 0xffff
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 0x98000004
push dword [esi + 0x1c]
mov dword [ebp - 0x18], 0x7530
mov dword [ebp - 0x14], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [edi + 4]
push 0
push 0
push 1
push dword [esi + 0x1c]
push edi
call dword [0x4c02a0]
cmp byte [ebp + 8], 0
je 0x41e5ca
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [edi + 4]
push ebx
call eax
push dword [edi + 4]
push 0
push 0
push 3
push dword [esi + 0x1c]
push edi
call dword [0x4c02a0]
mov edi, dword [esi + 0x1c]
cmp edi, 0xffffffff
je 0x41e68b
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x41e68b
mov dword [esi + 0x18], 2
cmp dword [edi + 0x20], 0
je 0x41e60f
push dword [esi + 0x20]
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
mov dword [esi + 0x30], 0
push 4
call dword [sym.imp.mfc140u.dll_operator]
mov dword [esi + 0x20], eax
add esp, 4
add eax, dword [esi + 0x30]
mov dword [ebp - 0x20], eax
mov eax, 4
sub eax, dword [esi + 0x30]
mov dword [esi + 0x2c], 4
jmp 0x41e61a
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4be720]
push 0
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 1
lea eax, [ebp - 0x24]
mov dword [ebp - 8], 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x41e6b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x41e6b0
cmp eax, 0x3e5
je 0x41e6b0
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [edi + 4]
push ebx
call eax
push dword [edi + 4]
push 0
push 0
push 3
push dword [esi + 0x1c]
push edi
call dword [0x4c02a0]
mov ecx, dword [esi + 0x1c]
call fcn.0041f970
push dword [esi + 0x20]
mov dword [esi + 0x1c], 0xffffffff
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
mov dword [esi + 0x20], 0
push 0x34
push esi
call fcn.00442e38
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004429bd
mov esp, ebp
pop ebp
ret 8
Function at 0x41e8f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push dword [esi + 0x20]
mov edi, dword [esi + 0x1c]
call dword [sym.imp.mfc140u.dll_operator_1]
push 0x34
push esi
mov dword [esi + 0x20], 0
call fcn.00442e38
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x41e970
cmp edi, 0xffffffff
je 0x41e95f
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebx + 4]
push 0
push 0
push 5
push edi
push ebx
call dword [0x4c02a0]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004429bd
mov esp, ebp
pop ebp
ret 8
Function at 0x41ee90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0
mov edi, ecx
push 0x7010
push 0xffff
push dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0
push 1
push dword [edi]
push edi
call dword [0x4c0298]
cmp byte [ebp + 8], 0
je 0x41eed1
push dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.0041f120
pop edi
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push dword [esi + 0x1c]
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
cmp dword [edi + 4], 0
je 0x41eef8
push 4
call dword [sym.imp.mfc140u.dll_operator]
mov dword [esi + 0x28], 4
jmp 0x41ef0a
push 0xffff
call dword [sym.imp.mfc140u.dll_operator]
mov dword [esi + 0x28], 0xffff
add esp, 4
mov dword [esi + 0x1c], eax
mov ecx, edi
mov dword [esi + 0x18], 2
mov dword [esi + 0x2c], 0
push esi
call fcn.0041f080
cmp eax, 1
jne 0x41ef34
push esi
push ecx
mov ecx, edi
call fcn.0041f120
pop esi
pop edi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push 0
push esi
mov dword [ebp - 0xc], 0
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x24]
mov dword [esi + 0x14], ecx
push eax
push 1
lea eax, [ebp - 0x14]
mov dword [esi + 0x18], 2
push eax
push dword [ecx]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x41f0fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x41f0fe
cmp eax, 0x3e5
je 0x41f0fe
mov eax, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004429bd
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004429bd
mov esp, ebp
pop ebp
ret 4

Function at 0x41f120
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x41f177
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41f177
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x41f177
push 1
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41f177
push dword [esi + 0x1c]
call dword [sym.imp.mfc140u.dll_operator_1]
push 0x30
push esi
mov dword [esi + 0x1c], 0
call fcn.00442e38
add esp, 0xc
push 0
push 0
push 3
push dword [edi]
push edi
call dword [0x4c0298]
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x41f1bb
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov dword [edi], 0xffffffff
xor ecx, ebp
pop edi
pop esi
call fcn.004429bd
mov esp, ebp
pop ebp
ret 8
Function at 0x41f1e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x41f229
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi], 0xffffffff
xor ecx, ebp
pop esi
call fcn.004429bd
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
push edi
mov edi, ecx
cmp esi, 0x3e80000
jbe 0x41f28c
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004429bd
mov esp, ebp
pop ebp
ret 0x14
push ebx
push 0x30
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.mfc140u.dll_operator_2]
push 0x30
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], 4
cmp dword [edi + 4], 0
je 0x41f2f5
add esi, 4
push esi
call dword [sym.imp.mfc140u.dll_operator]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x28], esi
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
push ecx
push dword [ebp - 0x10]
add eax, 4
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x10
jmp 0x41f307
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x28], esi
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0xc], eax
push 0
push ebx
push 0
lea eax, [ebx + 0x24]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x41f352
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x41f352
push 0x30
push ebx
call fcn.00442e38
add esp, 8
mov eax, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004429bd
mov esp, ebp
pop ebp
ret 0x14
xor esi, esi
cmp dword [edi + 8], 1
jne 0x41f383
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x7d0
jg 0x41f375
push 1
call ebx
cmp dword [edi + 8], 1
je 0x41f360
jmp 0x41f383
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004429bd
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41f3a0
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x41f3dd
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004429bd
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x402], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0x3ff], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x3fe], al
lea eax, [ebp - 0x3fc]
mov byte [ebp - 0x400], dl
shr edx, 0x18
push eax
mov word [ebp - 0x404], 0x104
mov byte [ebp - 0x401], cl
mov byte [ebp - 0x3fd], dl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
add eax, 9
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x41f3c8
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41f3c8
cmp byte [ebp - 0x404], 0
jne 0x41f3c8
mov ecx, dword [ebp - 4]
xor eax, eax
cmp byte [ebp - 0x403], 0x5a
pop edi
sete al
xor ecx, ebp
dec eax
pop esi
call fcn.004429bd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41f4b0
Capabilities:
Print debug messages
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x410], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push 4
push eax
push dword [edi]
mov dword [ebp - 0x404], 0x2000205
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x41f516
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004429bd
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x64
call ebx
mov esi, dword [sym.imp.WS2_32.dll_recv]
lea eax, [ebp - 0x404]
push 0
push 0x400
push eax
push dword [edi]
call esi
test eax, eax
jle 0x41f629
cmp byte [ebp - 0x404], 5
jne 0x41f629
mov al, byte [ebp - 0x403]
mov ecx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp al, 2
jne 0x41f63f
mov esi, dword [ebp - 0x408]
push esi
call ecx
push dword [ebp - 0x40c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x402]
push esi
mov byte [ebp - 0x403], bl
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
mov byte [ebp - 0x404], 1
call ebx
mov esi, eax
lea ecx, [ebp - 0x404]
mov eax, dword [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
mov byte [ebp + esi - 0x402], al
add esi, 3
add ecx, esi
push ecx
call ebx
add esp, 0x18
add esi, eax
lea eax, [ebp - 0x404]
push 0
push esi
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x41f629
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call ebx
mov esi, dword [sym.imp.WS2_32.dll_recv]
lea eax, [ebp - 0x404]
push 0
push 0x400
push eax
push dword [edi]
call esi
mov dword [ebp - 0x408], eax
test eax, eax
je 0x41f629
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x408]
test eax, eax
jle 0x41f629
cmp byte [ebp - 0x403], 0
je 0x41f645
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004429bd
mov esp, ebp
pop ebp
ret 0x10
test al, al
jne 0x41f629
jmp 0x41f64b
mov ecx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x410]
call ecx
push eax
push dword [ebp - 0x410]
mov byte [ebp - 0x400], al
lea eax, [ebp - 0x3ff]
push eax
mov dword [ebp - 0x404], 0x3000105
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, edx
shr ecx, 8
mov byte [ebp + eax - 0x3ff], cl
mov byte [ebp + eax - 0x3fe], dl
add eax, 7
push 0
push eax
lea eax, [ebp - 0x404]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x41f629
push 0xc8
call ebx
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [edi]
call esi
test eax, eax
jle 0x41f629
cmp byte [ebp - 0x404], 5
jne 0x41f629
movzx eax, byte [ebp - 0x403]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
pop ebx
pop edi
call fcn.004429bd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41f970
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp esi, 0xffffffff
jne 0x41f999
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004429bd
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004429bd
mov esp, ebp
pop ebp
ret

Function at 0x41fc20
Capabilities:
Create thread
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x4be014]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [0x4be720], 0x200
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41fc78
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004429bd
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [0x4c02a0], 0x427b30
mov dword [0x4c0298], 0x428bd0
call esi
mov dword [0x4c02a8], eax
push 0
test eax, eax
je 0x41fcb9
push 0
push 0
push 0xffffffffffffffff
call esi
mov dword [0x4c029c], eax
test eax, eax
jne 0x41fcdc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004429bd
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x20]
mov ecx, 5
add eax, 2
cmp eax, ecx
cmovl eax, ecx
xor esi, esi
mov dword [0x4c02a4], eax
test eax, eax
jle 0x41fd47
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
nop
push 0
push 0
push 0
push 0x41f9e0
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
push 0
push 0
push 0
push 0x41fb20
push 0
push 0
call ebx
add esp, 0x18
push eax
call edi
inc esi
cmp esi, dword [0x4c02a4]
jl 0x41fd10
mov ecx, dword [esp + 0x1c4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004429bd
mov esp, ebp
pop ebp
ret 4

Function at 0x41fe00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x41fe54
push esi
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x41fe4d
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.004429bd
mov esp, ebp
pop ebp
ret