joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d860
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x48b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x40d892
push eax
call fcn.0046c1a8
add esp, 4
mov dword [esi + 4], 0
push ebx
lea eax, [ebp - 0x108]
push 0x47e55c
push eax
call fcn.0040dcb0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40d979
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 8], eax
call fcn.0046c1ad
add esp, 4
mov dword [esi + 4], eax
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x40d924
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x40d954
xor ecx, ecx
cmp dword [esi + 8], ecx
jbe 0x40d954
nop word [eax + eax]
mov eax, dword [esi + 4]
add byte [ecx + eax], 0x95
mov eax, dword [esi + 4]
xor byte [ecx + eax], 0xca
inc ecx
cmp ecx, dword [esi + 8]
jb 0x40d940
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x7c], eax
xor ecx, ebp
pop esi
mov al, 1
pop ebx
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret 8
push ebx
push str._s_file_not_found
call fcn.00418ae0
int3
Function at 0x412180
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x48b034]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov eax, 2
push esi
mov word [esp + 0x10], ax
mov esi, ecx
mov eax, dword [ebp + 0x24]
push edi
mov edi, dword [0x567594]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
xorps xmm0, xmm0
mov eax, dword [esi + 0x10018]
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov eax, dword [esi + 0x1001c]
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov eax, dword [esi + 0x1001c]
mov dword [eax + 0x14], esi
mov eax, dword [esi + 0x10018]
mov dword [eax + 0x14], esi
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 1
push 0
push 0
push 6
push 1
push 2
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
push 0x10
lea ecx, [esp + 0x18]
mov dword [esi], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4122ac
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push esi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, edi
jne 0x4122ac
push 0
push dword [esi + 0x10018]
lea eax, [esi + 0x18]
mov dword [esi + 8], 0
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x14]
lea eax, [esi + 8]
mov dword [esp + 0x14], 0xffff
push eax
push ecx
push 1
lea eax, [esp + 0x20]
mov dword [ecx], 0
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x4122da
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4122da
call esi
push eax
push str.WSARecv_WSAError:_d
call fcn.00411ef0
add esp, 8
xor bl, bl
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x4122e8
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4122de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4122de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov bl, 1
jmp 0x4122ae
push edx
push ecx
call fcn.0046bb99
add esp, 8
mov ecx, dword [esp + 0x24]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4123f0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
mov eax, dword [0x48b034]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
push 0x18
mov dword [esp + 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0046bb69
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [esp + 0x38]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x28]
lea edi, [eax + eax]
test edi, edi
jle 0x4124b8
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
push 0
push 0
push esi
push 0x412300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
jne 0x4124b3
push str.Cant_create_IOCPTH
call ebx
add esp, 4
sub edi, 1
jne 0x412490
mov ecx, dword [esp + 0x1cc]
mov eax, esi
pop edi
mov dword [esi + 0x10], fcn.00401f30
mov dword [esi + 0x14], fcn.00401f30
mov dword [esi + 0x18], fcn.00401f30
pop esi
pop ebx
xor ecx, esp
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret
Function at 0x412610
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46db33
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x48b034]
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 dword [ebp - 0x24], edi
push 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_WSAAccept]
mov ecx, eax
mov dword [ebp - 0x30], ecx
cmp ecx, 0xffffffff
je 0x41270f
mov esi, dword [edi]
xor ebx, ebx
mov esi, dword [esi]
cmp byte [esi + 0xd], bl
jne 0x4126d3
mov edi, dword [esi + 0x14]
test edi, edi
je 0x4127d1
inc ebx
cmp dword [edi + 4], 0xffffffff
je 0x41272b
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4126b4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4126b0
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x4126b0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4126a0
mov esi, eax
jmp 0x4126ca
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4126ca
nop
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4126c0
cmp byte [esi + 0xd], 0
je 0x412675
mov edi, dword [ebp - 0x24]
push 0x48
call fcn.0046bb69
add esp, 4
mov dword [ebp - 0x28], eax
push ebx
mov dword [ebp - 4], 1
mov ecx, eax
push dword [ebp - 0x30]
push edi
call fcn.00412800
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
push eax
call fcn.004128f0
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.0046bb5b
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
push 0
push edi
mov dword [edi + 4], ecx
push dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [edi + 0x3c]
push 0
cmp eax, dword [ecx + 0xc]
lea eax, [edi + 0x28]
push eax
lea ecx, [edi + 0x40]
sete bl
lea eax, [edi + 0x44]
mov dword [ecx], 0
push ecx
push eax
push 1
lea eax, [edi + 8]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x41277f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x41277f
xor al, al
jmp 0x412781
mov al, 1
test bl, bl
je 0x41279e
test al, al
je 0x41279e
mov ecx, dword [ebp - 0x24]
push 0
push dword [esi + 0x14]
mov eax, dword [ecx + 0x10]
call eax
add esp, 8
jmp 0x41270f
mov esi, dword [esi + 0x14]
cmp dword [esi + 4], 0xffffffff
je 0x41270f
mov eax, dword [esi + 0x3c]
push 0x47ef6c
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 8
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
jmp 0x41270f
push 0x48
call fcn.0046bb69
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
push ebx
mov dword [ebp - 4], 0
push dword [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00412800
mov dword [esi + 0x14], eax
jmp 0x41270f
Function at 0x412800
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, ecx
push edi
push 0xffff
mov dword [ebx], eax
call fcn.0046c1ad
mov ecx, dword [ebp + 8]
lea edi, [ebx + 8]
add esp, 4
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0xc]
lea esi, [ebx + 0x28]
mov dword [edi], 0xffff
xorps xmm0, xmm0
movups xmmword [ebx + 0x10], xmm0
push 0
movq qword [ebx + 0x20], xmm0
movups xmmword [esi], xmm0
push ebx
movq qword [esi + 0x10], xmm0
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 4], eax
push dword [ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebx + 0x3c]
push 0
push esi
cmp eax, dword [ecx + 0xc]
lea eax, [ebx + 0x40]
push eax
mov dword [eax], 0
sete byte [ebp + 0x13]
lea eax, [ebx + 0x44]
push eax
push 1
push edi
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x412895
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x412895
xor al, al
jmp 0x412897
mov al, 1
cmp byte [ebp + 0x13], 0
je 0x4128b8
test al, al
je 0x4128b8
mov eax, dword [ebx + 0x3c]
push 0
push ebx
mov eax, dword [eax + 0x10]
call eax
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 4], 0xffffffff
je 0x4128df
mov eax, dword [ebx + 0x3c]
push str.Cant_be_assigned
push ebx
mov eax, dword [eax + 0x18]
call eax
add esp, 8
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x4131d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413229
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x413229
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x413218
cmp esi, edx
jae 0x413229
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x413206
cmp esi, edx
jae 0x413229
cmp word [esi], 0
je 0x413229
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4162a0
Capabilities:
Create thread
Initialize winsock library
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48b034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x4802ac
push 0
push str.ConnectServer
push 0x480254
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
movzx eax, ax
mov word [0x567490], ax
test ax, ax
je 0x416464
cmp byte [0x5673b7], 0
jne 0x416432
push 0x56757c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, 0x202
push 0x5d9380
push eax
mov word [0x5d9378], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ax, word [0x5d9380]
cmp ax, word [0x5d9378]
je 0x416332
push str.Version_not_Allowed
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
jmp 0x416432
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 4
mov dword [0x567594], eax
push 0
push 0
push 0
push 0x411b10
push 0
push 0
call edi
sub esi, 1
jne 0x416350
movzx eax, word [0x567490]
mov ecx, 2
push eax
mov dword [0x65d2ac], 0x411970
mov dword [0x65d2b0], 0x411de0
mov dword [0x65d2b4], 0x411d60
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_htons]
push str.0.0.0.0
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
xor ecx, ecx
cmp eax, 0xffffffff
push 0x10
cmove eax, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [0x65d2a4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4163ea
push 0x47ef04
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
push esi
push esi
push str.Cant_create_IOCP_Bind
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x416432
push 0xa
push dword [0x65d2a4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x41641e
push 0x47ef34
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
push 0
push 0
push str.Cant_create_IOCP_Listen
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x416432
push 0
push 0
push 0x65d29c
push 0x4123e0
push 0
push 0
call edi
movzx ecx, word [0x567490]
mov byte [0x5673b7], 1
lea eax, [ecx + 1]
push eax
push ecx
push str._Silent_GameGuard_____Tunnel__:_ConnectServer_Public_Port__d___Redirect_Local_Port__d_Started_
push 8
call fcn.00418b60
add esp, 0x10
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret
push str._Silent_GameGuard_____Tunnel__:_ConnectServer_has_been_Disabled
push 0
call fcn.00418b60
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret
Function at 0x417660
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x417686
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x417697
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.00410250
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x4176c5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x4176a8
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x4176f1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x4176f7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x417708
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x41771e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x417990
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x80018
call fcn.0046c6d0
mov eax, dword [0x48b034]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x566000
mov dword [ebp - 0x80010], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x417b97
cmp ebx, 0x1388
jge 0x417b97
imul edi, ebx, 0x6c
mov dword [ebp - 0x80018], edi
mov eax, dword [edi + 0x5d9514]
test eax, eax
js 0x417b97
cmp eax, 0x1388
jge 0x417b97
cmp dword [edi + 0x5d9518], 0
je 0x417b97
cmp dword [edi + 0x5d952c], 0xffffffff
je 0x417b97
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x8000c]
push esi
push dword [ebp - 0x80010]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov al, byte [ebp - 0x8000c]
add esp, 0xc
cmp al, 0xc1
jne 0x417a45
push dword [ebp - 0x8000a]
lea edx, [esi - 3]
lea ecx, [ebp - 0x80009]
jmp 0x417a63
push dword [ebp - 0x80009]
cmp al, 0xc3
jne 0x417a5a
lea edx, [esi - 6]
lea ecx, [ebp - 0x80006]
jmp 0x417a63
lea edx, [esi - 4]
lea ecx, [ebp - 0x80008]
call fcn.00418e40
add esp, 4
cmp esi, 0x80000
jle 0x417a89
push esi
push ebx
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.00418b60
add esp, 0x10
jmp 0x417b97
mov edi, dword [edi + 0x5d9534]
mov eax, dword [edi + 0x20]
test eax, eax
jle 0x417afb
mov ecx, dword [edi + 0x180028]
lea eax, [ecx + esi]
cmp eax, 0x100000
jle 0x417abc
push eax
push ebx
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.00418b60
add esp, 0x10
jmp 0x417b8c
push esi
lea eax, [ebp - 0x8000c]
push eax
lea eax, [edi + 0x80028]
add eax, ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [edi + 0x180028], esi
push 0x566000
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret 0xc
push esi
lea ecx, [ebp - 0x8000c]
add eax, 0x24
push ecx
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 0x20], esi
lea eax, [edi + 0x24]
mov ecx, dword [edi + 0x20]
add esp, 0xc
mov dword [edi + 0x18], eax
lea eax, [edi + 0x14]
mov dword [eax], ecx
lea ecx, [ebp - 0x80014]
mov dword [edi + 0x80024], 0
push 0
push edi
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 0x80018]
mov dword [edi + 0x1c], 1
mov dword [ebp - 0x80014], 0
push dword [eax + 0x5d952c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x417adb
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x417adb
call esi
push eax
push 0x481748
push 1
call fcn.00418b60
add esp, 0xc
push ebx
mov ecx, 0x565f88
call fcn.00417bc0
push 0x566000
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417c60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [esi + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x417df0
cmp ebx, 0x1388
jge 0x417df0
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x417c9d
mov ecx, esi
jmp 0x417dea
mov esi, dword [ebp + 0x10]
imul ecx, ebx, 0x6c
add dword [esi + 0x80024], eax
mov edx, dword [esi + 0x80024]
mov dword [ebp + 0xc], ecx
mov ecx, dword [esi + 0x20]
cmp edx, ecx
jl 0x417d89
mov eax, dword [esi + 0x180028]
test eax, eax
jg 0x417cde
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esi + 0x80028]
lea ecx, [esi + 0x24]
cmp eax, 0x80000
jle 0x417d53
push 0x80000
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 0x24]
mov dword [esi + 0x14], 0x80000
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x180028]
sub eax, 0x80000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x80000
push eax
lea eax, [esi + 0x100028]
mov dword [esi + 0x80024], 0
push eax
lea eax, [esi + 0x80028]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [esi + 0x14]
add dword [esi + 0x180028], 0xfff80000
jmp 0x417d9f
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 0x24]
mov dword [esi + 0x80024], 0
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x180028]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x180028], 0
jmp 0x417d98
lea eax, [esi + 0x24]
add eax, edx
sub ecx, edx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x1c], 1
push 0
push esi
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x5d952c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x417df0
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x417df0
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00418b60
mov ecx, dword [ebp - 4]
add esp, 0xc
push ebx
call fcn.00417bc0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418500
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x200
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov edx, eax
cmovae ecx, dword [ebp + 8]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x418532
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, dword [ebp + 0x1c]
pop esi
cmp edx, 0x10
jb 0x41858c
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418582
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418582
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0046bb99
add esp, 8
pop ebp
ret

Function at 0x418ae0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x48b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, 0x100
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x104]
call fcn.00404980
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
nop dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp dword [pe_dos_header]

Function at 0x418d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm3, xmm0, 0
test edx, edx
jle 0x418e32
cmp edx, 0x40
jb 0x418e22
movaps xmm2, xmmword [0x483e20]
lea ecx, [esi + 0x20]
push edi
mov edi, edx
and edi, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm3
paddb xmm0, xmm3
pxor xmm0, xmm2
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
paddb xmm1, xmm0
pxor xmm1, xmm2
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
paddb xmm0, xmm3
pxor xmm0, xmm2
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
paddb xmm0, xmm3
pxor xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
cmp eax, edi
jl 0x418dd0
pop edi
cmp eax, edx
jge 0x418e32
mov cl, byte [eax + esi]
add cl, bl
xor cl, 0xa0
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x418e22
pop esi
pop ebx
pop ebp
ret
Function at 0x418e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm3, xmm0, 0
test edx, edx
jle 0x418ee2
cmp edx, 0x40
jb 0x418ed2
movaps xmm2, xmmword [0x483e20]
lea ecx, [esi + 0x20]
push edi
mov edi, edx
and edi, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
pxor xmm0, xmm2
psubb xmm0, xmm3
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
pxor xmm1, xmm0
psubb xmm1, xmm3
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
pxor xmm0, xmm2
psubb xmm0, xmm3
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
pxor xmm0, xmm2
psubb xmm0, xmm3
movups xmmword [ecx - 0x30], xmm0
cmp eax, edi
jl 0x418e80
pop edi
cmp eax, edx
jge 0x418ee2
mov cl, byte [eax + esi]
xor cl, 0xa0
sub cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x418ed2
pop esi
pop ebx
pop ebp
ret