joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e6f93
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4e6fdd
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e6fdd
call fcn.0048d4c3
test eax, eax
je 0x4e6fdd
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.0040d9c4
xor eax, eax
inc eax
jmp 0x4e71f5
cmp dword [ebx + 4], 0x100
push edi
jne 0x4e71ec
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4e70da
push 0x11
call edi
test ax, ax
jl 0x4e70da
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e70da
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4e704d
cmp eax, 0x20
jbe 0x4e70da
cmp eax, 0x24
jbe 0x4e7040
cmp eax, 0x26
je 0x4e7040
cmp eax, 0x28
jne 0x4e70da
call fcn.0048d4c3
test eax, eax
je 0x4e70da
mov ecx, esi
call fcn.0041a14c
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.0048d4c3
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4e7082
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0040d9c4
jmp 0x4e71e7
call fcn.004030c0
test eax, eax
je 0x4e71e7
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.00416570
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4e70b0
xor edi, edi
jmp 0x4e70b3
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.004030c0
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4e71e7
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4e71b6
sub eax, 0x12
je 0x4e718e
sub eax, 0xb
je 0x4e70fc
dec eax
dec eax
jne 0x4e71ec
push 0x12
call edi
test ax, ax
jl 0x4e71ec
push 0x11
call edi
test ax, ax
jl 0x4e71ec
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e71ec
call fcn.0048d4c3
test eax, eax
jne 0x4e71e7
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.0048d48a
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041513a
test eax, eax
je 0x4e71e7
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0041513a
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4e71e7
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e71a2
push 0
call fcn.0048d48a
mov ecx, esi
call fcn.00415c80
test eax, eax
je 0x4e71ec
mov ecx, esi
call fcn.00415c80
jmp 0x4e71e0
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041513a
test eax, eax
je 0x4e71ec
push dword [esi + 0x20]
call edi
push eax
call fcn.0041513a
push 0
push esi
mov ecx, eax
call fcn.0045288c
mov ecx, eax
call fcn.0041a14c
xor eax, eax
inc eax
jmp 0x4e71f4
push ebx
mov ecx, esi
call fcn.00412ff1
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4ecddf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4ecdf7
mov edi, dword [esi + 0xc]
jmp 0x4ece37
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ece10
call fcn.0043f513
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ece25
call fcn.0043f513
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4ece37
call fcn.0043f513
call fcn.00433b15
cmp dword [eax + 0x3c], 0
je 0x4ece4c
push edi
mov ecx, ebx
call fcn.004ebc36
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004ecd05
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4ece6a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ece76
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x504dd8
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x5817b5
call fcn.00525379
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.00510eb9
push 0x15c
call fcn.0040d64a
pop ecx
mov ecx, eax
mov dword [ebp - 0x124], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x504e1c
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.005126f4
jmp 0x504e1e
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.00510e8b
call fcn.00433b15
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov byte [ebp + esi - 0x114], 0x5c
inc esi
mov dword [ebp - 0x124], esi
mov byte [ebp + esi - 0x114], bl
mov dword [ebp - 0x120], ebx
cmp edi, ebx
je 0x504fb8
cmp dword [edi + 4], ebx
jle 0x504fb8
lea ecx, [ebp - 0x118]
call fcn.00402b40
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x504f9c
lea ecx, [ebp - 0x11c]
call fcn.00402b40
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x504eed
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push 0x5a4c30
push eax
call fcn.00402dd0
add esp, 0xc
jmp 0x504f1f
jge 0x504f0d
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__s
push eax
call fcn.00402dd0
add esp, 0x10
jmp 0x504f1f
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00419c37
push 0x15c
call fcn.0040d64a
pop ecx
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x504f43
mov ecx, eax
call fcn.004ca9f3
mov esi, eax
jmp 0x504f45
xor esi, esi
push dword [ebp - 0x11c]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.00454254
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.00510e8b
mov ecx, dword [ebp - 0x11c]
inc dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00402b90
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00402b90
inc ebx
cmp ebx, dword [edi + 4]
jl 0x504e86
call fcn.005253fc
ret
Function at 0x50ea21
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x44
mov eax, 0x5822c8
call fcn.00525379
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
call fcn.00402b40
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, 0x13
jne 0x50ea4f
push str.Pause
jmp 0x50ea92
push 0x33
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.005256e0
add esp, 0xc
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
shl eax, 0x10
add esi, 0xffffffdf
or eax, 1
cmp esi, 0xe
ja 0x50ea81
or eax, 0x1000000
push 0x32
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
call fcn.00408fc0
lea ecx, [ebp - 0x48]
call fcn.00448b06
mov esi, dword [ebp - 0x48]
xor edi, edi
cmp dword [esi - 0xc], ebx
jle 0x50eaea
push edi
lea ecx, [ebp - 0x48]
call fcn.0044bb00
mov byte [ebp - 0x4c], al
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_IsCharLowerA]
test eax, eax
jne 0x50eacd
inc edi
cmp edi, dword [esi - 0xc]
jl 0x50eaac
jmp 0x50eaea
movsx eax, byte [ebp - 0x4c]
push eax
call fcn.005297fc
pop ecx
mov byte [ebp - 0x4c], al
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
push edi
call fcn.004e006d
mov esi, dword [ebp - 0x48]
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x50]
push esi
call fcn.00411870
cmp dword [ebp + 0x10], ebx
jne 0x50eb05
mov ecx, dword [ebp - 0x50]
push 0x2b
call fcn.00416522
lea ecx, [esi - 0x10]
call fcn.00402b90
call fcn.005253fc
ret 0xc

Function at 0x5174fc
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x576370
call fcn.00525310
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x5175d2
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x5175d2
cmp ebx, 0x43
je 0x51753e
cmp ebx, 0x2d
jne 0x5175d2
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5175d2
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402b40
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00402dd0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00402b90
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.004c4e3b
call fcn.005253e8
ret 4
Function at 0x519a42
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x519a82
test edi, edi
jl 0x519a82
cmp al, 0x20
je 0x519a77
cmp word [ebp + 8], 0x71
jne 0x519a82
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x5239a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5e0930]
jne 0x5239ac
repz ret
jmp fcn.0052b894

Function at 0x53b54d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0052e9fc
and dword [ebp - 4], 0
cmp dword [0x5e832c], 0
mov ebx, eax
jne 0x53b5fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x53b6af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5ae898
push edi
call esi
test eax, eax
je 0x53b6af
push eax
call fcn.0052e98a
mov dword [esp], 0x5ae888
push edi
mov dword [0x5e832c], eax
call esi
push eax
call fcn.0052e98a
mov dword [esp], 0x5ae874
push edi
mov dword [0x5e8330], eax
call esi
push eax
call fcn.0052e98a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5e8334], eax
call esi
push eax
call fcn.0052e98a
pop ecx
mov dword [0x5e833c], eax
test eax, eax
je 0x53b5fe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0052e98a
pop ecx
mov dword [0x5e8338], eax
mov eax, dword [0x5e8338]
cmp eax, ebx
je 0x53b656
cmp dword [0x5e833c], ebx
je 0x53b656
push eax
call fcn.0052ea05
push dword [0x5e833c]
mov esi, eax
call fcn.0052ea05
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x53b656
test edi, edi
je 0x53b656
call esi
test eax, eax
je 0x53b64d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x53b64d
test byte [ebp - 0xc], 1
jne 0x53b656
or dword [ebp + 0x10], 0x200000
jmp 0x53b68f
mov eax, dword [0x5e8330]
cmp eax, ebx
je 0x53b68f
push eax
call fcn.0052ea05
pop ecx
test eax, eax
je 0x53b68f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x53b68f
mov eax, dword [0x5e8334]
cmp eax, ebx
je 0x53b68f
push eax
call fcn.0052ea05
pop ecx
test eax, eax
je 0x53b68f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5e832c]
call fcn.0052ea05
pop ecx
test eax, eax
je 0x53b6af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x53b6b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x540b40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5e0930]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x540b92
mov eax, dword [esp]
cmp al, 2
jne 0x540b8c
shr eax, 8
cmp al, 2
jne 0x540b8c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005239a2
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.005239a2
add esp, 0x194
ret
Function at 0x54c9b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x54c9e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x54cb40
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x54cb5b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x54cb8f
cmp eax, 2
jg 0x54cb8f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x5b01c8]
push 2
push edx
call fcn.0052421c
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.0052421c
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
push ebx
mov ebx, dword [eax + ecx*4 + 0x190]
mov edx, ecx
shl edx, 4
push esi
lea esi, [edx + eax + 0x1b8]
mov edx, dword [eax + 0x310]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
je 0x54d1cf
cmp dword [eax + ecx*4 + 0x1a8], 0x54ceb0
jne 0x54d1cf
cmp dword [esi], 0
je 0x54d162
test edi, edi
je 0x54d1cf
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00540ff0
add esp, 0x14
cmp eax, 0xffffffff
je 0x54d1cf
test al, 1
je 0x54d1cf
cmp dword [esi], 0
jne 0x54d1ad
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x5e20a4]
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
je 0x54d1c8
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 0x54d1cf
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + ecx*4 + 0x190]
mov eax, esi
call fcn.0054d120
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x54d264
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x54d23b
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.005528a0
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.0054cd20
mov eax, dword [esi]
mov dword [eax + 0x4734], ebp
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x54f0e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x530], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x54f11e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0054cc90
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x534]
push edx
mov dword [esp + 0xc], 1
call fcn.00566180
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x538]
push eax
call fcn.00566180
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x54f197
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.0054cc90
add esp, 0x10
add esp, 0x14
ret
Function at 0x54f7d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5e0930]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x54f952
cmp dword [ebp + 0x270], 0
push ebx
push esi
jne 0x54f947
cmp dword [ebp + 0x2e0], 0
jne 0x54f947
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x54f869
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.005528a0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0054cd20
add esp, 0x18
jmp 0x54f950
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.005256e0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x54f8b6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.005528a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0054cd20
add esp, 0x18
jmp 0x54f950
lea edi, [ebp + 0x102]
lea ebx, [ebp + 0x130]
lea esi, [esp + 0x98]
call fcn.0054f790
test eax, eax
jne 0x54f8f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.005528a0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0054cd20
add esp, 0x18
jmp 0x54f950
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0x102]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x164]
lea edi, [ebp + 0x134]
lea esi, [esp + 0x18]
call fcn.0054f790
test eax, eax
jne 0x54f947
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.005528a0
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0054cd20
add esp, 0x18
jmp 0x54f950
push ebp
call fcn.0054f710
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.005239a2
add esp, 0x10c
ret

Function at 0x54f970
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x54f9b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.005528a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0054cc90
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0054cc90
add esp, 8
pop edi
pop esi
ret
Function at 0x54fb10
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x1d8], 0
je 0x54fb20
xor eax, eax
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x54fb1d
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x550620
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x5507d1
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x5507af
push esi
jmp 0x550670
cmp dword [edi + 4], 2
jne 0x550728
cmp dword [edi + 0x18], ebx
je 0x550728
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x550728
cmp eax, 0x10
jb 0x550728
push 0x20
call dword [0x5e20a4]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x550735
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x5e20a4]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x55073f
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x550715
push eax
call dword [0x5e20b0]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x550753
cmp dword [esp + 0x10], ebx
jne 0x55071f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x550726
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x550670
jmp 0x55076f
mov dword [esp + 0x14], 8
jmp 0x55076f
push esi
mov dword [esp + 0x18], 8
call dword [0x5e20a8]
add esp, 4
jmp 0x55076f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x5e20a8]
push esi
call dword [0x5e20a8]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x55077f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x5507a9
mov eax, dword [esp + 0xc]
push eax
call fcn.005505e0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x5507c2
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x551e60
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0052802f
add esp, 0x18
test eax, eax
je 0x551e83
cmp eax, 0xffffffff
jne 0x551e85
xor eax, eax
ret
Function at 0x55a1b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x5b03cc
push ecx
call fcn.0054cc90
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00559310
test eax, eax
jne 0x55a1e0
mov eax, esi
jmp fcn.005597b0
ret