joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100123f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092276
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100b70e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.1006a580
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x100124b4
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x100124b4
call fcn.10010cb0
mov esi, eax
jmp 0x100125a1
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100124d7
call fcn.10010cb0
jmp 0x10012594
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x100124f5
call fcn.10010cb0
jmp 0x10012594
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10012516
mov esi, 0x8007000e
jmp 0x10012596
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.10010830
jmp 0x10012540
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x10012557
mov esi, 0x8007000e
jmp 0x10012596
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10012577
call fcn.10010cb0
jmp 0x10012594
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.10012290
mov esi, eax
test edi, edi
je 0x100125a1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x100125c0
lea ecx, [ebp - 0x420]
call fcn.10011990
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100524d2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10012e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx + 4]
xorps xmm0, xmm0
push esi
push edi
push 0
push 0
or eax, 0x2001f
movq qword [ebp - 0xc], xmm0
push eax
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [ecx]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.10011610
mov edi, dword [ebp - 0xc]
mov esi, eax
test esi, esi
jne 0x10012edc
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10012eaf
lea esi, [edx + 0xd]
jmp 0x10012edc
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012eb4
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x10012ee7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10012f00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x10012f19
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10012f25
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10012f20
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10012f60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10012f75
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10012f80
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100145f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x100b70e8]
xor eax, ebp
mov dword [ebp - 4], eax
push str.7272908C_4FC8_4707_96BC_931280D31790
push str.2C5F5502_2AE5_491A_BF74_E3CB931D1054
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x10014627
push 0
push 0
push 0x81b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1006a580
push 0x64
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.1006a580
add esp, 0x18
lea eax, [ebp - 0xcc]
push 0x32
push eax
push 0x10095e00
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
movq qword [ebp - 0xd8], xmm0
lea ecx, [ebp - 0xd8]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
call fcn.10011d60
test eax, eax
jne 0x100146cf
push eax
lea eax, [ebp - 0x68]
push eax
push str.________.PhotoviewerShellExt
lea ecx, [ebp - 0xd8]
call fcn.10012e50
push esi
push edi
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
push str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
movq qword [ebp - 0xe4], xmm0
lea ecx, [ebp - 0xe4]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
call fcn.10011d60
mov esi, dword [ebp - 0xe4]
test eax, eax
jne 0x1001473b
push 0x3a
push str.Photoviewer_Shell_externsion
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
mov ecx, 0x100b96e4
call fcn.10011800
mov edi, eax
test esi, esi
je 0x10014754
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x10014765
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100524d2
mov esp, ebp
pop ebp
ret
Function at 0x10014780
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x100b70e8]
xor eax, ebp
mov dword [ebp - 4], eax
push str.7272908C_4FC8_4707_96BC_931280D31790
push str.2C5F5502_2AE5_491A_BF74_E3CB931D1054
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x100147b7
push 0
push 0
push 0x81c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
movq qword [ebp - 0xd8], xmm0
lea ecx, [ebp - 0xd8]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
call fcn.10011d60
test eax, eax
jne 0x10014815
push str.________.PhotoviewerShellExt
lea ecx, [ebp - 0xd8]
call fcn.10011720
push esi
push edi
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
push str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
movq qword [ebp - 0xe4], xmm0
lea ecx, [ebp - 0xe4]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
call fcn.10011d60
mov esi, dword [ebp - 0xe4]
test eax, eax
jne 0x100148bb
push 0x64
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.1006a580
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1006a580
add esp, 0x18
lea eax, [ebp - 0x68]
push 0x32
push eax
push 0x10095e00
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xcc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
mov ecx, 0x100b96e4
call fcn.100118a0
mov edi, eax
test esi, esi
je 0x100148d4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x100148e5
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100524d2
mov esp, ebp
pop ebp
ret
Function at 0x100196e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100b70e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x105
push 0
push eax
mov dword [ebp - 0x110], 0
call fcn.1006a580
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x10c], 0
jne 0x10019747
xor ecx, ecx
jmp 0x10019759
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019750
sub ecx, edx
push ecx
lea eax, [ebp - 0x10c]
mov ecx, esi
push eax
call fcn.10005c10
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100524d2
mov esp, ebp
pop ebp
ret

Function at 0x1001b3a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100b70e8]
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 0x1001b3f0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1001b3ea
shr eax, 8
cmp al, 2
jne 0x1001b3ea
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100524d2
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.100524d2
mov esp, ebp
pop ebp
ret

Function at 0x100200d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100200ee
cmp dword [esi + 0x48], 0
je 0x100200ee
push 2
push 3
push esi
call fcn.10033910
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1002b140
add esp, 4
test esi, esi
je 0x1002010e
cmp dword [esi + 0x48], 0
je 0x1002010e
push 3
push esi
call fcn.10033950
add esp, 8
pop esi
pop ebp
ret
Function at 0x10029280
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 + 0x190]
call fcn.100295f0
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 0x10029304
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x100292dc
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.10035420
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.10028ef0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4684], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x100295f0
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 + 0x1b4]
mov ebx, dword [ecx + edx*4 + 0x190]
add esi, eax
mov eax, dword [ecx + 0x288]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x100296a6
cmp dword [ecx + edx*4 + 0x1a4], 0x100291d0
jne 0x100296a6
cmp dword [esi], 0
je 0x1002963c
test edi, edi
je 0x100296a6
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.10028870
add esp, 0x14
cmp eax, 0xffffffff
je 0x100296a6
test al, 1
je 0x100296a6
cmp dword [esi], 0
jne 0x1002968f
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x100b7004]
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 0x1002968f
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 0x100296a6
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100296b0
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 0x100296d9
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 0x1002970f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x100986a8
push 2
push eax
call fcn.100764a5
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100764a5
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1d4], 0
je 0x100297e3
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x100297df
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
Function at 0x10029ec0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b9bb8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10029f11
push 3
push 2
push eax
push 6
call fcn.10048150
add esp, 0x10
test al, al
je 0x10029f05
mov dword [0x100b9bb8], 2
mov esp, ebp
pop ebp
ret
mov dword [0x100b9bb8], 1
jmp 0x10029f16
cmp eax, 2
je 0x10029f56
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 0x10029f3d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10029f56
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 0x1002a020
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 0x1002a068
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10035420
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10028fa0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10028fa0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x1002a170
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100b70e8]
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 0x1002a34a
cmp byte [edi + 0x24e], 0
push esi
jne 0x1002a340
cmp byte [edi + 0x26a], 0
jne 0x1002a340
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 0x1002a208
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.10035420
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10028ef0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100524d2
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.1006a580
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 0x1002a271
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.10035420
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10028ef0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100524d2
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x130]
push eax
lea esi, [edi + 0x102]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.1002a850
add esp, 0xc
test al, al
jne 0x1002a2c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.10035420
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10028ef0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100524d2
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 + 0x164]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1002a850
add esp, 0xc
test al, al
jne 0x1002a340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.10035420
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10028ef0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100524d2
mov esp, ebp
pop ebp
ret
push edi
call fcn.10029de0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100524d2
mov esp, ebp
pop ebp
ret
Function at 0x1002abd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b70e8]
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 0x1002ac2d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10028fa0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100524d2
mov esp, ebp
pop ebp
ret
push dword [esi + 0x490]
mov dword [ebp - 0x10], 1
call fcn.10032880
push dword [esi + 0x494]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.10032880
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 0x1002ac9d
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.10028fa0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100524d2
mov esp, ebp
pop ebp
ret
Function at 0x10032830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.10032850
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.1007c5d2

Function at 0x10035080
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100351fb
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x100351e7
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x10035178
cmp dword [edi + 0x18], 0
je 0x10035178
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10035178
cmp eax, 0x10
jb 0x10035178
push 0x20
call dword [0x100b7004]
mov esi, eax
add esp, 4
test esi, esi
je 0x100351dc
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x100b7004]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x100351cb
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10035166
push eax
call dword [0x100b7010]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x100351b1
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x10035175
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x100350c0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x10035195
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x100351e3
push ebx
call fcn.10035040
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x100b7008]
push esi
call dword [0x100b7008]
add esp, 8
jmp 0x10035186
push esi
mov edi, 8
call dword [0x100b7008]
add esp, 4
jmp 0x10035186
mov edi, 8
jmp 0x10035186
test ebx, ebx
jne 0x100351f3
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10035c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.1007224a
add esp, 0x18
test eax, eax
je 0x10035c52
cmp eax, 0xffffffff
jne 0x10035c54
xor eax, eax
pop ebp
ret
Function at 0x100392b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100b70e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100392fd
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.10028ef0
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100524d2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10039325
shr eax, 8
test al, al
jne 0x10039325
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100524d2
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.10028ef0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.100524d2
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x190]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10039b98
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.10028ef0
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.10039440
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret