joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180013360
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [rsp + 0x80]
add rax, 8
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1800127d0
nop
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x30], 0
je 0x1800133c5
lea rdi, [rsp + 0x3d]
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x3d]
mov byte [rsp + 0x3c], al
lea rdx, [0x18006e068]
lea rcx, [rsp + 0x3c]
call fcn.18005017c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0x80]
lea r8, [0x180012fb0]
xor edx, edx
xor ecx, ecx
call fcn.180050320
mov rdx, rax
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x60], rdx
mov rcx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x38]
mov dword [rcx + 0x68], eax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x60], 0
jne 0x180013447
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
lea rdx, [0x18006e010]
lea rcx, [rsp + 0x40]
call fcn.18005017c
mov rax, qword [rsp + 0x80]
mov edx, dword [rax + 0x34]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x180013493
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x48], eax
lea rdx, [0x18006e010]
lea rcx, [rsp + 0x48]
call fcn.18005017c
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1800134d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
lea rdx, [0x18006e010]
lea rcx, [rsp + 0x50]
call fcn.18005017c
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x30], 1
mov rcx, qword [rsp + 0x30]
call fcn.1800127f0
add rsp, 0x70
pop rdi
ret

Function at 0x180013830
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1800744d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x18002dec0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rcx, str.dfmirage
call fcn.18002da20
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18002deed
xor eax, eax
jmp 0x18002dfc5
lea rdx, str.Screen.ForcedBpp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea rdx, str.Pointer.Enabled
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [rsp + 0x68], 0
je 0x18002df22
mov dword [rsp + 0x40], 3
jmp 0x18002df2a
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Cap.DfbBackingMode
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18002df67
xor eax, eax
jmp 0x18002dfc5
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Order.BltCopyBits.Enabled
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18002dfa4
xor eax, eax
jmp 0x18002dfc5
lea rdx, str.DISPLAY
mov rcx, qword [rsp + 0x60]
call fcn.180050bb0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x58
ret
Function at 0x18002dfd0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2d8
mov rax, qword [rsp + 0x2e0]
mov byte [rax], 0
mov dword [rsp + 0xf0], 0
lea r9, [rsp + 0x100]
lea r8, [rsp + 0xf0]
lea rdx, str.DemoForge_Mirage_Driver
lea rcx, str.Mirage_Driver
call fcn.18002d930
test eax, eax
jne 0x18002e01e
jmp 0x18002e1e4
mov r8d, 0x9c
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.18004eaa0
mov r11d, 0x9c
mov word [rsp + 0x74], r11w
xor eax, eax
mov word [rsp + 0x76], ax
lea r8, [rsp + 0x50]
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x78], 0x1c0000
mov byte [rsp + 0x50], 0
lea rcx, str.dfmirage
call fcn.18002da20
mov qword [rsp + 0x2c0], rax
cmp qword [rsp + 0x2c0], 0
jne 0x18002e08a
jmp 0x18002e1e4
mov dword [rsp + 0x2b0], 0
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Attach.ToDesktop
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rdx, str.Cap.DfbBackingMode
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea rdx, str.Order.BltCopyBits.Enabled
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, str.ChangeDisplaySettingsExA
lea rcx, str.User32.DLL
call fcn.18002e540
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
jne 0x18002e12b
jmp 0x18002e1e4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18002e177
mov r8d, 0x2000000
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov qword [rsp + 0x2b8], rax
cmp qword [rsp + 0x2b8], 0
je 0x18002e177
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.USER32.dll_SetThreadDesktop]
cmp dword [rsp + 0xb8], 0x18
jne 0x18002e18c
mov dword [rsp + 0xb8], 0x20
mov qword [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x104]
call qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.USER32.dll_CloseDesktop]
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x2d8
ret

Function at 0x18002e1f0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov byte [rax], 0
lea rcx, str.dfmirage
call fcn.18002da20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x18002e21c
jmp 0x18002e239
lea rdx, str.Cap.DfbBackingMode
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret
Function at 0x180031710
Capabilities:
Log keystrokes via polling

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x128
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, byte [rsp + 0x130]
movzx eax, byte [rsp + rax + 0x20]
and eax, 1
test eax, eax
je 0x18003176c
xor r9d, r9d
mov r8d, 1
xor edx, edx
movzx ecx, byte [rsp + 0x130]
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
mov r8d, 3
xor edx, edx
movzx ecx, byte [rsp + 0x130]
call qword [sym.imp.USER32.dll_keybd_event]
add rsp, 0x128
ret
Function at 0x180038270
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x148], 0
je 0x1800382ba
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x148], 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
add rcx, 0x160
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x14c], 0
je 0x1800382e9
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x14c], 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x150]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x28
ret

Function at 0x18003b800
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18003b88c
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x18003b88c
mov rcx, qword [rsp + 0x48]
call fcn.18004f640
lea rdx, [rax + rax + 1]
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18003b88c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.18003b6d0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x20]
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
add rsp, 0x38
ret

Function at 0x18003bee0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x30]
lea rcx, [0x18003bca0]
call qword [sym.imp.USER32.dll_EnumWindows]
add rsp, 0x28
ret

Function at 0x18003e910
Capabilities:
Power down monitor

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp dword [rsp + 0x38], 0
je 0x18003e95c
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov ecx, 0x56
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov r9d, 2
mov r8d, 0xf170
mov edx, 0x112
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageA]
jmp 0x18003e990
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x56
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov r9, 0xffffffffffffffff
mov r8d, 0xf170
mov edx, 0x112
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageA]
add rsp, 0x28
ret
Function at 0x18003ef40
Capabilities:
Log keystrokes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x28
cmp qword [rsp + 0x38], 0
je 0x18003ef72
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [rax + 0x420]
movzx ecx, byte [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
movzx edx, al
movzx ecx, byte [rsp + 0x30]
call qword [sym.imp.USER32.dll_keybd_event]
add rsp, 0x28
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
jne 0x18003f032
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
cmp qword [rsp + 0x28], 0
je 0x18003f006
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [rax + 0x420]
movzx ecx, byte [rsp + 0x20]
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
movzx edx, al
movzx ecx, byte [rsp + 0x20]
call qword [sym.imp.USER32.dll_keybd_event]
mov rax, qword [rsp + 0x50]
mov byte [rax + 8], 1
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18003f0d5
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
or eax, 2
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
cmp qword [rsp + 0x28], 0
je 0x18003f0a9
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [rax + 0x420]
movzx ecx, byte [rsp + 0x20]
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
movzx edx, al
movzx ecx, byte [rsp + 0x20]
call qword [sym.imp.USER32.dll_keybd_event]
mov rax, qword [rsp + 0x50]
mov byte [rax + 9], 1
add rsp, 0x48
ret
Function at 0x18003f0e0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 8]
test eax, eax
je 0x18003f164
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 4]
or eax, 2
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
cmp qword [rsp + 0x28], 0
je 0x18003f13f
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [rax + 0x420]
movzx ecx, byte [rsp + 0x20]
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
movzx edx, al
movzx ecx, byte [rsp + 0x20]
call qword [sym.imp.USER32.dll_keybd_event]
jmp 0x18003f1da
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 9]
test eax, eax
je 0x18003f1da
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
mov byte [rsp + 0x34], al
cmp qword [rsp + 0x38], 0
je 0x18003f1b7
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [rax + 0x420]
movzx ecx, byte [rsp + 0x34]
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
movzx edx, al
movzx ecx, byte [rsp + 0x34]
call qword [sym.imp.USER32.dll_keybd_event]
add rsp, 0x58
ret

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

Disassembly:
mov dword [rsp + 0x10], edx
mov byte [rsp + 8], cl
sub rsp, 0x38
movzx ecx, byte [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18003f20b
mov dword [rsp + 0x28], 1
jmp 0x18003f213
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18003f229
cmp dword [rsp + 0x48], 0
jne 0x18003f237
cmp dword [rsp + 0x20], 0
jne 0x18003f23c
cmp dword [rsp + 0x48], 0
jne 0x18003f23c
jmp 0x18003f2c3
cmp dword [rsp + 0x48], 0
je 0x18003f24d
mov dword [rsp + 0x24], 0
jmp 0x18003f255
mov dword [rsp + 0x24], 2
xor eax, eax
test rax, rax
je 0x18003f271
mov rax, qword [pe_dos_header]
mov edx, 1
xor ecx, ecx
call qword [rax + 0x420]
movzx ecx, byte [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
movzx edx, al
movzx ecx, byte [rsp + 0x40]
call qword [sym.imp.USER32.dll_keybd_event]
movzx ecx, byte [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18003f2b3
mov dword [rsp + 0x2c], 1
jmp 0x18003f2bb
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
add rsp, 0x38
ret
Function at 0x18004cd80
Capabilities:
Get session user name

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp dword [0x1800747c0], 2
jne 0x18004ce8d
call fcn.18004d2c0
test eax, eax
je 0x18004ce8d
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18004cdc1
xor eax, eax
jmp 0x18004cf1a
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetUserObjectInformationA]
cmp dword [rsp + 0x30], 0
jne 0x18004ce4a
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [0x1800747c4], 0
mov rcx, qword [0x1800747c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1800747c8], 0
lea rcx, [0x180065818]
call fcn.18004f640
mov r11, rax
mov eax, dword [rsp + 0x68]
cmp r11, rax
jb 0x18004ce2f
xor eax, eax
jmp 0x18004cf1a
lea rdx, [0x180065818]
mov rcx, qword [rsp + 0x60]
call fcn.180050bb0
mov eax, 1
jmp 0x18004cf1a
cmp dword [0x1800747c4], 0
jne 0x18004ce8d
lea rcx, [0x180065818]
call fcn.18004f640
mov r11, rax
mov eax, dword [rsp + 0x68]
cmp r11, rax
jb 0x18004ce72
xor eax, eax
jmp 0x18004cf1a
lea rdx, [0x180065818]
mov rcx, qword [rsp + 0x60]
call fcn.180050bb0
mov eax, 1
jmp 0x18004cf1a
mov eax, dword [0x1800747c0]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jbe 0x18004cf18
cmp dword [rsp + 0x48], 2
jbe 0x18004cea7
jmp 0x18004cf18
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x18004cf11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x4dd
jne 0x18004cf0d
lea rcx, [0x180065818]
call fcn.18004f640
mov r11, rax
mov eax, dword [rsp + 0x68]
cmp r11, rax
jb 0x18004cef3
xor eax, eax
jmp 0x18004cf1a
lea rdx, [0x180065818]
mov rcx, qword [rsp + 0x60]
call fcn.180050bb0
mov eax, 1
jmp 0x18004cf1a
xor eax, eax
jmp 0x18004cf1a
mov eax, 1
jmp 0x18004cf1a
xor eax, eax
add rsp, 0x58
ret

Function at 0x18004d5e0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov eax, 0x202
mov word [rsp + 0x1c0], ax
lea rdx, [rsp + 0x20]
movzx ecx, word [rsp + 0x1c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18004d620
mov rax, qword [rsp + 0x1e0]
mov dword [rax], 0
jmp 0x18004d63a
movzx eax, word [rsp + 0x20]
mov word [0x1800747d4], ax
mov rax, qword [rsp + 0x1e0]
mov dword [rax], 0xffffffff
mov rax, qword [rsp + 0x1e0]
add rsp, 0x1d8
ret
Function at 0x18004d6f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
lea rax, vtable.VSocket.0
mov qword [rcx], rax
mov rcx, qword [rsp + 0x40]
add rcx, 0x28
call fcn.180012790
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], r11d
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 8]
cmp rax, 0xffffffffffffffff
jne 0x18004d76f
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0xffffffff
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x18004d7e0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 1
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
jl 0x18004d806
mov rcx, qword [rsp + 0x50]
call fcn.18004d8a0
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r11, rax
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], r11d
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
jge 0x18004d834
xor eax, eax
jmp 0x18004d897
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 8]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 4
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x18004d863
xor eax, eax
jmp 0x18004d897
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 8]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x18004d892
xor eax, eax
jmp 0x18004d897
mov eax, 0xffffffff
add rsp, 0x48
ret

Function at 0x18004da90
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 8]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 0x1006
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x18004dad5
xor eax, eax
jmp 0x18004db0a
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 8]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 0x1005
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x18004db05
xor eax, eax
jmp 0x18004db0a
mov eax, 0xffffffff
add rsp, 0x48
ret
Function at 0x18004db10
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.18005169c
mov dword [rax], 0
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 8]
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x18004db74
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x2733
jne 0x18004db74
call fcn.18005169c
mov dword [rax], 0x2733
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x18004db80
Capabilities:
Get socket status

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x268
mov r8d, dword [rsp + 0x280]
mov rdx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x270]
call fcn.18004dd00
mov rax, qword [rsp + 0x270]
cmp qword [rax + 0x20], 0
je 0x18004dceb
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x258], 0
jmp 0x18004dbec
mov eax, dword [rsp + 0x258]
add eax, 1
mov dword [rsp + 0x258], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x258], eax
jae 0x18004dc16
mov ecx, dword [rsp + 0x258]
mov rax, qword [rsp + 0x270]
mov eax, dword [rax + 8]
cmp qword [rsp + rcx*8 + 0x48], rax
jne 0x18004dc14
jmp 0x18004dc16
jmp 0x18004dbdb
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x258], eax
jne 0x18004dc4c
cmp dword [rsp + 0x40], 0x40
jae 0x18004dc4c
mov rax, qword [rsp + 0x270]
mov ecx, dword [rax + 8]
mov eax, dword [rsp + 0x258]
mov qword [rsp + rax*8 + 0x48], rcx
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
xor eax, eax
test eax, eax
jne 0x18004dbce
mov dword [rsp + 0x250], 1
mov dword [rsp + 0x254], 0
mov rax, qword [rsp + 0x270]
mov ecx, dword [rax + 8]
add ecx, 1
lea rax, [rsp + 0x250]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18004dbc6
cmp dword [rsp + 0x30], 0
jl 0x18004dcb4
cmp dword [rsp + 0x30], 1
jle 0x18004dcb8
xor eax, eax
jmp 0x18004dcf0
mov rax, qword [rsp + 0x270]
mov ecx, dword [rax + 8]
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18004dce6
mov rcx, qword [rsp + 0x270]
call fcn.18004dee0
test eax, eax
jne 0x18004dce6
xor eax, eax
jmp 0x18004dcf0
jmp 0x18004dbb3
mov eax, 0xffffffff
add rsp, 0x268
ret

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.18005169c
mov dword [rax], 0
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 8]
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x18004e13d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18004e13d
call fcn.18005169c
mov dword [rax], 0x2733
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret