joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fcf8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47df38]
cmp byte [eax + 0xc], 0
je 0x43fe65
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43fe5e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47eb2c], 0
jne 0x43fd4c
push 0x43fe6c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43fe74
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47eb2c], eax
cmp dword [0x47cb9c], 0
jne 0x43fe47
push 0x43fe84
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47cb9c], eax
cmp dword [0x47cb9c], 0
je 0x43fe47
push 0x43fe90
mov eax, dword [0x47cb9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47eb30], eax
push 0x43fea0
mov eax, dword [0x47cb9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47eb34], eax
push 0x43feb4
mov eax, dword [0x47cb9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47eb38], eax
push 0x43fecc
mov eax, dword [0x47cb9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47eb3c], eax
push 0x43fee4
mov eax, dword [0x47cb9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47eb40], eax
push 0x43fef8
mov eax, dword [0x47cb9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47eb44], eax
push 0x43ff10
mov eax, dword [0x47cb9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47eb48], eax
push 0x43ff28
mov eax, dword [0x47cb9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47eb4c], eax
push 0x43ff44
mov eax, dword [0x47cb9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47eb50], eax
push 0x43ff50
mov eax, dword [0x47cb9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47eb54], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fe65
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x443d18
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.00404524
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x443d67
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.00404794
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44b510
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b560]
test si, 4
je 0x44b524
or bl, 1
test si, 8
je 0x44b52e
or bl, 4
test si, 1
je 0x44b538
or bl, 8
test si, 2
je 0x44b542
or bl, 0x10
test si, 0x10
je 0x44b54c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b55b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44b564
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b59c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b57d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b58c
or bl, 4
test esi, 0x20000000
je 0x44b597
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451c78
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451c8a
add esp, 0xfffffff0
call fcn.00403a4c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c514
mov eax, dword [0x47d994]
mov dword [eax + 4], ebx
mov dword [eax], 0x45201c
mov eax, dword [0x47d9a4]
mov dword [eax + 4], ebx
mov dword [eax], 0x452028
mov eax, ebx
call fcn.00452034
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412f08]
call fcn.004036e4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412f08]
call fcn.004036e4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412f08]
call fcn.004036e4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412f08]
call fcn.004036e4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412f08]
call fcn.004036e4
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, 0x44e44c
push eax
push 0
push 0
mov eax, dword [0x47dbe4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e66c]
call fcn.0041fe04
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e66c]
call fcn.0041fe04
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e66c]
call fcn.0041fe04
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004524a8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452370
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452370
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452370
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451dc7
call fcn.00403aa4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x452130
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452300
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4522e1
mov dl, 1
mov eax, dword [0x41356c]
call fcn.004036e4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404524
lea eax, [ebp - 0x118]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov ebx, eax
call sub.kernel32.dll_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0x10], eax
dec ebx
test ebx, ebx
jl 0x4522d0
inc ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.00440058
test al, al
jne 0x4521cd
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4522c3
xor edx, edx
push ebp
push 0x4522bc
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4521ed
mov ebx, dword [ebp - 0x10]
jmp 0x4521ef
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
mov edx, 0x452310
lea eax, [ebp - 0x258]
call fcn.00409c30
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4522a5
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x452348
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4522a5
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00404794
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x18]
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 - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4522a5
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00404794
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4522c3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x4521ae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00417f48
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 0x452307
lea eax, [ebp - 0x264]
call fcn.00404524
ret
Function at 0x452c48
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47eb78]
cmp byte [eax + 0xa5], 0
jne 0x452cb9
cmp dword [0x47eb90], 0
jne 0x452c7a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452c04
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47eb90], eax
cmp dword [0x47eb8c], 0
jne 0x452c95
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47eb8c], eax
cmp dword [0x47eb94], 0
jne 0x452cb9
push esp
push 0
push 0
push 0x452ba8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x47eb94], eax
pop edx
ret

Function at 0x45334c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47eb78]
cmp dword [eax + 0x30], 0
je 0x4533f6
cmp dword [ebx + 0x94], 0
jne 0x4533f0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4532dc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4533f0
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 0x4533b6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4533f0
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.00415734
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4533c5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453f54
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 0x453f89
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.00404614
jmp 0x453f96
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404578
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454fbc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454ffd
mov eax, esi
call fcn.0043b6c8
test al, al
je 0x454ffd
mov eax, dword [ebx + 0x84]
call fcn.0043b3f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454ffd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b3f0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45630c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004049d4
xor eax, eax
push ebp
push 0x45638a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049e4
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x456355
mov eax, dword [ebx + 4]
call fcn.004049e4
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456391
lea eax, [ebp - 4]
call fcn.00404524
ret

Function at 0x4573b8
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x457561
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402e74
cmp word [ebx + 0xa2], 0
je 0x457400
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x457417
lea eax, [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x45741c
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x80], 0
jne 0x45742c
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x45743a
mov eax, dword [ebx + 0x80]
call fcn.004049e4
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x7c]
call fcn.004049e4
push eax
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00456ad8
mov eax, dword [ebp - 0x18]
call fcn.004049e4
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x74]
call fcn.004049e4
push eax
mov eax, dword [ebp - 0x14]
call fcn.004049e4
push eax
mov eax, ebx
call fcn.00456c24
push eax
mov eax, ebx
call fcn.00456bf8
push eax
mov eax, ebx
call fcn.00456bac
push eax
push 0xf01ff
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00456990
mov eax, dword [ebp - 0x1c]
call fcn.004049e4
push eax
mov eax, dword [ebx + 8]
call fcn.004049e4
push eax
push esi
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 8], 0
jne 0x4574c6
call fcn.0040dfac
xor edx, edx
push ebp
push 0x45753f
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x457504
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x4574fa
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x457528
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457546
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x457570
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x45759c
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004049e4
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4575c1
call fcn.0040dfac
xor eax, eax
push ebp
push 0x4575f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4575e1
call fcn.0040dfac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4575ff
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x458b68
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x458bf1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x47eba4
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x458bdb
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040bfbc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x458c08
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x47ddb8]
mov dl, 1
mov eax, dword [0x457ecc]
call fcn.0040c8f0
call fcn.00403eb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458bf8
lea eax, [ebp - 0x1c]
call fcn.00404524
ret

Function at 0x4592bc
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004591e0
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040391c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x459320
call fcn.00458ab0
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x459312
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040391c
pop esi
pop ebx
ret

Function at 0x459344
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, edx
mov eax, ebx
call fcn.004049e4
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp + 4], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call fcn.00403104
cmp dword [esp + 4], 0
je 0x459396
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 8], cl
mov cl, byte [edx + 1]
mov byte [esp + 9], cl
mov cl, byte [edx + 2]
mov byte [esp + 0xa], cl
mov al, byte [edx + 3]
mov byte [esp + 0xb], al
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret
Function at 0x45947c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4594ad
mov ecx, dword [0x47df10]
mov dl, 1
mov eax, dword [0x457ecc]
call fcn.0040c8b4
call fcn.00403eb4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4594da
mov ecx, dword [0x47dbb0]
mov dl, 1
mov eax, dword [0x457ecc]
call fcn.0040c8b4
call fcn.00403eb4
xor eax, eax
push ebp
push 0x45955b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.0040391c
cmp byte [ebp + 8], 0
je 0x459535
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004593e4
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045923c
jmp 0x459551
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00458d9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459578
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45975c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00459064
xor eax, eax
push ebp
push 0x4598ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4598b8
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4597a8
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4597b2
call fcn.00403f60
jmp 0x4598d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00418004
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4598ad
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x459860
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x45984d
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040391c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00459714
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4598e0]
cmp dl, byte [eax + 0x28]
je 0x4598b4
call fcn.0040c7d8
jmp 0x4598b4
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00418024
jmp 0x4598b4
cmp edi, ebx
jge 0x45987c
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00418024
jmp 0x4597b2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00418004
cmp edx, dword [esp + 4]
jne 0x45989c
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4597b2
push ebp
call fcn.00459714
pop ecx
jmp 0x4598b4
push ebp
call fcn.00459714
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4598d5
mov eax, dword [ebp - 4]
call fcn.00459070
ret
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4598e4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459a06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00459064
xor eax, eax
push ebp
push 0x4599e9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x459934
call fcn.00403f60
jmp 0x4599f0
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4599d3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4599d3
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040391c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4599d3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bfbc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x459a20
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x47ddb8]
mov dl, 1
mov eax, dword [0x457ecc]
call fcn.0040c8f0
call fcn.00403eb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4599f0
mov eax, dword [ebp - 4]
call fcn.00459070
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459a0d
lea eax, [ebp - 0x28]
call fcn.00404524
ret