joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4527a0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4527bc
cmp dword [esi + 4], 0
je 0x4527e9
test byte [ebx + 0x55], 1
jne 0x4527db
mov eax, ebx
call fcn.00451340
test eax, eax
jne 0x4527db
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4528f9
mov edx, esi
mov eax, ebx
call fcn.004522c4
jmp 0x4528f9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4528f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00454610
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0044efdc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004527a0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00454610
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4528f9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459030
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4744d0]
cmp byte [eax + 0xc], 0
je 0x45919d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459196
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x475ba4], 0
jne 0x459084
push 0x4591a4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4591ac
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475ba4], eax
cmp dword [0x473e14], 0
jne 0x45917f
push 0x4591bc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x473e14], eax
cmp dword [0x473e14], 0
je 0x45917f
push 0x4591c8
mov eax, dword [0x473e14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475ba8], eax
push 0x4591d8
mov eax, dword [0x473e14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475bac], eax
push 0x4591ec
mov eax, dword [0x473e14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475bb0], eax
push 0x459204
mov eax, dword [0x473e14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475bb4], eax
push 0x45921c
mov eax, dword [0x473e14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475bb8], eax
push 0x459230
mov eax, dword [0x473e14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475bbc], eax
push 0x459248
mov eax, dword [0x473e14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475bc0], eax
push 0x459260
mov eax, dword [0x473e14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475bc4], eax
push 0x45927c
mov eax, dword [0x473e14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475bc8], eax
push 0x459288
mov eax, dword [0x473e14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x475bcc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45919d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45d12c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004047ac
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45d17b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404a1c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4648d4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x464924]
test si, 4
je 0x4648e8
or bl, 1
test si, 8
je 0x4648f2
or bl, 4
test si, 1
je 0x4648fc
or bl, 8
test si, 2
je 0x464906
or bl, 0x10
test si, 0x10
je 0x464910
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46491f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x464928
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x464960]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x464941
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x464950
or bl, 4
test esi, 0x20000000
je 0x46495b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46b008
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46b01a
add esp, 0xfffffff0
call fcn.00403cfc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042198c
mov eax, dword [0x474130]
mov dword [eax + 4], ebx
mov dword [eax], 0x46b3ac
mov eax, dword [0x47413c]
mov dword [eax + 4], ebx
mov dword [eax], 0x46b3b8
mov eax, ebx
call fcn.0046b3c4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41676c]
call fcn.00403968
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41676c]
call fcn.00403968
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41676c]
call fcn.00403968
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41676c]
call fcn.00403968
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41676c]
call fcn.00403968
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4677e0
push eax
push 0
push 0
mov eax, dword [0x4742b4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x423400]
call fcn.00424b74
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x423400]
call fcn.00424b74
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x423400]
call fcn.00424b74
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046b7e4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46b6c0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46b6c0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46b6c0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46b157
call fcn.00403d54
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46b4a4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46b64f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46b630
mov dl, 1
mov eax, dword [0x416dd0]
call fcn.00403968
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047ac
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46b61f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00459390
test al, al
je 0x46b612
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46b660
lea eax, [ebp - 0x254]
call fcn.00409728
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46b612
xor eax, eax
push ebp
push 0x46b60b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46b698
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46b5f4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a1c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46b5f4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b612
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46b515
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b3f0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b656
lea eax, [ebp - 0x260]
call fcn.004047ac
ret

Function at 0x46bf84
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x475bf0]
cmp byte [eax + 0xa5], 0
jne 0x46bff5
cmp dword [0x475c08], 0
jne 0x46bfb6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46bf40
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x475c08], eax
cmp dword [0x475c04], 0
jne 0x46bfd1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x475c04], eax
cmp dword [0x475c0c], 0
jne 0x46bff5
push esp
push 0
push 0
push 0x46bee4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x475c0c], eax
pop edx
ret
Function at 0x46c0ec
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46c103
add esp, 0xfffffff0
call fcn.00403cfc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042198c
mov eax, dword [0x4742a0]
cmp word [eax + 2], 0
jne 0x46c12b
mov eax, dword [0x4742a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046d7c4
mov eax, dword [0x474364]
cmp word [eax + 2], 0
jne 0x46c145
mov eax, dword [0x474364]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046d9bc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41676c]
call fcn.00403968
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41676c]
call fcn.00403968
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x423ee0]
call fcn.0042b3ec
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46c2cc
mov eax, dword [0x4741a0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b7bc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46df6c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4741a0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cf34
test eax, eax
je 0x46c23a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409108
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cf5c
test eax, eax
je 0x46c24e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a1c
mov eax, dword [0x47406c]
cmp byte [eax], 0
jne 0x46c282
mov eax, ebx
call fcn.0046c3f4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0046e148
mov eax, ebx
call fcn.0046eb0c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46c2c2
call fcn.00403d54
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c674
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x475bf0]
cmp dword [eax + 0x30], 0
je 0x46c71e
cmp dword [ebx + 0x94], 0
jne 0x46c718
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46c604
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46c718
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46c6de
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46c718
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419018
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46c6ed
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46d280
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46d2b5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040489c
jmp 0x46d2c2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404800
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46e324
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46e365
mov eax, esi
call fcn.00454914
test al, al
je 0x46e365
mov eax, dword [ebx + 0x84]
call fcn.00454610
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46e365
push 0
mov eax, dword [ebx + 0x84]
call fcn.00454610
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46f268
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x4c]
mov edx, 0x44
call fcn.00407434
lea eax, [ebp - 0x5c]
mov edx, 0x10
call fcn.00407434
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov ax, word [ebp - 8]
mov word [ebp - 0x1c], ax
xor edx, edx
push ebp
push 0x46f38a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x46f33e
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.00404c6c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x46f303
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404210
jmp 0x46f391
test esi, esi
je 0x46f30c
mov eax, dword [ebp - 0x54]
mov dword [esi], eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
je 0x46f325
cmp eax, 0x102
jne 0x46f334
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404210
jmp 0x46f391
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46f35b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f391
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x46f375
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x46f382
push eax
call sub.kernel32.dll_CloseHandle_1
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
ret
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10001000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1a0
mov esi, ecx
lea edi, [esp + 0x1b0]
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x10001079
lea ebx, [esp + 4]
mov word [ebx - 4], 2
movzx eax, word [edi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx - 2], ax
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10001059
mov eax, dword [edi]
push ebx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov eax, esp
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
setne bl
jmp 0x1000107b
xor ebx, ebx
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x1000108f
inc eax
push eax
push dword [edi]
call fcn.10003928
add esp, 8
mov eax, ebx
add esp, 0x1a0
pop esi
pop edi
pop ebx
ret 0x1c

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

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x2014
call fcn.1000c270
mov esi, ecx
mov edi, dword [esp + 0x2028]
call fcn.10013062
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
xor edi, edi
mov dword [esp + 0x10], eax
sar eax, 0x1f
mov dword [esp + 0xc], eax
mov ebp, ecx
test ecx, ecx
je 0x100011b2
mov eax, 0x1ff0
cmp ebp, eax
mov ebx, 0x1ff0
cmovl ebx, ebp
mov ecx, dword [esi + 8]
call fcn.100011c4
mov ecx, dword [esp + 0x2028]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebx
add eax, edi
push ebx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.10010d30
add esp, 0xc
mov eax, ebx
add eax, 0x10
je 0x10001180
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
lea edi, [esp + 0x14]
mov dword [esp], eax
mov ebp, eax
push 0
push ebp
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10001189
add edi, eax
sub ebp, eax
jne 0x10001166
jmp 0x1000118f
mov dword [esp], 0
jmp 0x10001197
xor eax, eax
dec eax
mov dword [esp], eax
mov edi, dword [esp + 8]
mov ebp, dword [esp + 4]
push dword [esi + 8]
call fcn.1000d9ba
add esp, 4
add edi, ebx
mov ecx, ebp
sub ecx, ebx
cmp dword [esp], 0xffffffff
jne 0x100010f6
test ebp, ebp
sete al
add esp, 0x2014
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10001438
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x1000ba70
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [eax + 8], 0
push 0x10
call fcn.1000c0e2
add esp, 4
xor esi, esi
inc esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax], vtable.std::_Ref_count_obj2_struct_std::atomic_bool__.0
mov ecx, eax
add ecx, 0xc
mov byte [eax + 0xc], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x4c]
mov dword [edx], ecx
lea ecx, [ebp + 8]
add ecx, 0x30
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x48]
mov esi, dword [ebp - 0x20]
mov dword [eax], esi
lea esi, [ebp - 0x28]
push ecx
push edx
push eax
lea eax, [ebp + 0x10]
push eax
push 3
push esi
call fcn.1000772a
add esp, 0x18
xor eax, eax
lea edx, [ebp - 0x3c]
mov dword [edx - 8], eax
mov dword [edx - 4], eax
mov ecx, dword [ebp - 0x34]
lock inc dword [ecx + 4]
movsd xmm0, qword [ebp - 0x30]
movsd qword [edx - 8], xmm0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [edx], ecx
mov byte [edx + 4], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0x20
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x54]
lea edx, [ebp + 8]
push edx
push eax
call fcn.100075fc
mov esi, dword [ebp - 0x54]
lea ecx, [esi + 0x18]
lea edi, [ebp - 0x44]
push edi
call fcn.10003cb8
add esi, 0x20
mov ecx, esi
lea esi, [ebp - 0x3c]
push esi
call fcn.10003cf6
mov ecx, esi
call fcn.100015fe
mov esi, dword [edi + 4]
test esi, esi
je 0x1000154a
lock dec dword [esi + 4]
jne 0x1000154a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock dec dword [esi + 8]
jne 0x1000154a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.100015fe
mov esi, dword [ebp - 0x2c]
test esi, esi
lea edi, [ebp + 0x10]
lea ebx, [ebp + 8]
je 0x10001578
lock dec dword [esi + 4]
jne 0x10001578
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock dec dword [esi + 8]
jne 0x10001578
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x1000158c
xor eax, eax
cmp ecx, edi
setne al
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret 0x34