joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b54e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc518
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005c1b40
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 0x44]
push 0x104
push eax
push 0x661b18
push dword [ebp + 8]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x4b5595
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b5570
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00403f20
mov esi, 1
jmp 0x4b5597
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4b55b9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.005a8a55
mov esp, ebp
pop ebp
ret 8

Function at 0x4b7080
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4b711f
push 0x2c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.005c1b40
add esp, 0xc
mov dword [esp + 8], 0x30
lea eax, [esp + 8]
mov dword [esp + 0x1c], 0x400000
mov dword [esp + 0x30], str.Q360SoftMgrTimerWnd
mov dword [esp + 0x10], 0x4b7220
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x20]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x58]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b7129
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b9480
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x4b94b0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 0x14
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.005c1b40
push str._ElevPri
push esi
lea eax, [ebp - 0x80c]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x40
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.005c1b40
add esp, 0x28
mov dword [ebp - 0x864], 0x44
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x838], 1
xorps xmm0, xmm0
mov edi, 1
movups xmmword [ebp - 0x81c], xmm0
push eax
lea eax, [ebp - 0x864]
mov word [ebp - 0x834], di
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4b949c
push dword [ebp - 0x81c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x818]
call esi
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4b9580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4b962c
mov eax, dword [0x662fe4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x22], xmm0
push 0x38
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
movq qword [ebp - 0x12], xmm0
movq xmm0, qword [str.runas]
push 0
push eax
mov dword [ebp - 0xa], 0
mov word [ebp - 6], 0
movq qword [ebp - 0x24], xmm0
call fcn.005c1b40
add esp, 0xc
mov dword [ebp - 0x60], 0x3c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x4c], str._ElevPri
push eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4b962c
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b9640
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x67f790
push 0x5c2a50
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x68da90]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4b96ae
push 1
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4b96a9
mov ebx, 1
push eax
call edi
push esi
call edi
jmp 0x4b96b4
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x4b96bd
lea eax, [ebx + 1]
jmp 0x4b9720
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ebx
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], ebx
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4b9712
push 0x10020
push dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x4b9712
lea eax, [ebp - 0x38]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.004b9748
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret

Function at 0x4b9ad0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4b9b20
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4b9b1a
shr eax, 8
cmp al, 2
jne 0x4b9b1a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x4babf0
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
cmp dword [esi + 0x4c], 0xffffffff
je 0x4badf9
push ebx
mov eax, dword [esi + 0x4c]
cmp eax, 0x7c
je 0x4badf8
cmp eax, 0x29
jne 0x4bac28
cmp dword [esi + 0x10], 0
jne 0x4badf8
test dword [esi + 0x50], 0x10000000
je 0x4badfd
cmp eax, 0x2e
jne 0x4bac7f
push 5
lea ecx, [esi + 0x24]
call fcn.004bbe20
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x4bac73
cmp byte [eax], 0x5c
jne 0x4bac71
inc eax
cmp eax, ecx
je 0x4bac71
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x4bac5e
mov dl, byte [eax]
cmp dl, 0x28
je 0x4bac6f
cmp dl, 0x29
je 0x4bac6f
test cl, 0x10
jne 0x4bac71
mov cl, byte [eax]
cmp cl, 0x7b
je 0x4bac6f
cmp cl, 0x7d
jne 0x4bac71
mov dword [esi], eax
inc dword [esi]
mov ecx, esi
call fcn.004bc010
jmp 0x4bade5
cmp eax, 0x5c
jne 0x4bad24
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x4bacc4
cmp byte [eax], 0x5c
jne 0x4bacc2
inc eax
cmp eax, ecx
je 0x4bacc2
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x4bacaf
mov dl, byte [eax]
cmp dl, 0x28
je 0x4bacc0
cmp dl, 0x29
je 0x4bacc0
test cl, 0x10
jne 0x4bacc2
mov cl, byte [eax]
cmp cl, 0x7b
je 0x4bacc0
cmp cl, 0x7d
jne 0x4bacc2
mov dword [esi], eax
inc dword [esi]
mov ecx, esi
call fcn.004bc010
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x4bacf1
cmp byte [esi + 0x48], 0x62
jne 0x4bacf1
push 4
lea ecx, [esi + 0x24]
call fcn.004bbe20
mov ecx, esi
call fcn.004bbe90
jmp 0x4badec
test eax, eax
je 0x4bad18
cmp byte [esi + 0x48], 0x42
jne 0x4bad18
push 4
lea ecx, [esi + 0x24]
call fcn.004bbe20
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.004bbe90
jmp 0x4badec
mov ecx, esi
call fcn.004bae20
jmp 0x4bade5
cmp eax, 0x5b
jne 0x4bad47
mov ecx, esi
call fcn.004bbe90
mov ecx, esi
call fcn.004bb1d0
push 4
push 0x5d
mov ecx, esi
call fcn.004bbd60
jmp 0x4bade5
cmp eax, 0x28
jne 0x4bad71
mov ecx, esi
call fcn.004bbe90
mov ecx, esi
call fcn.004bc1c0
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.004bbd60
test bl, bl
je 0x4badec
jmp 0x4bade5
cmp eax, 0x5e
jne 0x4bad89
push 2
lea ecx, [esi + 0x24]
call fcn.004bbe20
mov ecx, esi
call fcn.004bbe90
jmp 0x4badec
cmp eax, 0x24
jne 0x4bada1
push 3
lea ecx, [esi + 0x24]
call fcn.004bbe20
mov ecx, esi
call fcn.004bbe90
jmp 0x4badec
cmp eax, 0x2a
je 0x4bae12
cmp eax, 0x2b
je 0x4bae12
cmp eax, 0x3f
je 0x4bae12
cmp eax, 0x7b
je 0x4bae12
cmp eax, 0x7d
jne 0x4badc3
test dword [esi + 0x50], 0x10000000
je 0x4bae04
cmp eax, 0x5d
jne 0x4badd1
test dword [esi + 0x50], 0x10000000
je 0x4bae0b
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004ba180
mov ecx, esi
call fcn.004bbe90
mov ecx, esi
call fcn.004bbee0
cmp dword [esi + 0x4c], 0xffffffff
mov cl, 1
jne 0x4bac00
pop ebx
mov al, cl
pop esi
ret
push 5
call fcn.005a5de0
push 6
call fcn.005a5de0
push 4
call fcn.005a5de0
push 0xa
call fcn.005a5de0
int3
Function at 0x4beff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4bf01c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4bf00d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4bf050
cmp dword [esi + 8], 0
jne 0x4bf040
push 0x661f84
push dword [eax + 8]
call fcn.005d499f
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4bf040
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.005d545b
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bf072
mov eax, dword [esi + 8]
test eax, eax
je 0x4bf06c
push eax
call fcn.005d5581
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4c3b40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4c3b5e
cmp dword [esi + 0x48], 0
je 0x4c3b5e
push 2
push 3
push esi
call fcn.004dbf00
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004d3750
add esp, 4
test esi, esi
je 0x4c3b7e
cmp dword [esi + 0x48], 0
je 0x4c3b7e
push 3
push esi
call fcn.004dbf40
add esp, 8
pop esi
pop ebp
ret
Function at 0x4c4a20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dc5c0
Function at 0x4cdf30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a0]
call fcn.004ce210
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x4cdfb4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4cdf8c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.004bc280
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004cdba0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x8658], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x1c4]
mov ebx, dword [ecx + edx*4 + 0x1a0]
add esi, eax
mov eax, dword [ecx + 0x2c0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x4ce2c6
cmp dword [ecx + edx*4 + 0x1b4], 0x4cde80
jne 0x4ce2c6
cmp dword [esi], 0
je 0x4ce25c
test edi, edi
je 0x4ce2c6
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004cd4c0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4ce2c6
test al, 1
je 0x4ce2c6
cmp dword [esi], 0
jne 0x4ce2af
push 0x8000
mov dword [esi + 4], 0x8000
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4ce2af
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4ce2c6
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4ce2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x4ce2f9
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4ce32f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x602258
push 2
push eax
call fcn.005d5c4d
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005d5c4d
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1e4], 0
je 0x4ce430
push eax
call fcn.004c4a20
add esp, 4
test eax, eax
jne 0x4ce452
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a0]
cmp eax, 0xffffffff
je 0x4ce42c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4ce452
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret
Function at 0x4ceb20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x694648]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4ceb71
push 3
push 2
push eax
push 6
call fcn.004f2670
add esp, 0x10
test al, al
je 0x4ceb65
mov dword [0x694648], 2
mov esp, ebp
pop ebp
ret
mov dword [0x694648], 1
jmp 0x4ceb76
cmp eax, 2
je 0x4cebb6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4ceb9d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4cebb6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x4cec80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4cecc8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004bc280
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004cdc40
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004cdc40
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4cedc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x4cef9a
cmp byte [edi + 0x286], 0
push esi
jne 0x4cef90
cmp byte [edi + 0x2a2], 0
jne 0x4cef90
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4cee58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004bc280
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004cdba0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.005c1b40
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4ceec1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004bc280
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004cdba0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x140]
push eax
lea esi, [edi + 0x112]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004cf4a0
add esp, 0xc
test al, al
jne 0x4cef12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004bc280
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004cdba0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x174]
push eax
lea eax, [edi + 0x144]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004cf4a0
add esp, 0xc
test al, al
jne 0x4cef90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004bc280
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004cdba0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
push edi
call fcn.004cea40
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x4cf830
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x48c], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4cf88d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004cdc40
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
push dword [esi + 0x490]
mov dword [ebp - 0x10], 1
call fcn.004daf90
push dword [esi + 0x494]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004daf90
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4cf8fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004cdc40
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005a8a55
mov esp, ebp
pop ebp
ret

Function at 0x4d08a0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x4d098c
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x4d091e
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6027c8]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6027c8]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x6027c8]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x6027c8]
mov byte [eax + 3], cl
jmp 0x4d096f
shl edx, 0x10
cmp esi, 2
jne 0x4d092e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6027c8]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x6027c8]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x4d095b
lea ecx, [esi + 0x3c]
jmp 0x4d0968
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x6027c8]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x4d08c0
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret