joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180013ca0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
test rcx, rcx
je 0x180013cfd
test ebx, ebx
je 0x180013cfd
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180013cf2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x180013d12
lea rcx, str.__tcpip_write_exact_TCPIP_:_caught_an_EINTR__continuing
call sym.VBoxOGLhostcrutil.dll_crWarning
jmp 0x180013cf9
sub ebx, eax
cdqe
add rdi, rax
test ebx, ebx
jne 0x180013cc1
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
neg eax
add rsp, 0x20
pop rdi
ret

Function at 0x180013d30
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
lea r9, [rsp + 0x58]
mov edx, 0xffff
mov r8d, 0x1001
mov rbx, rcx
mov dword [rsp + 0x58], 0x10000
mov dword [rsp + 0x60], 0x10000
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x180013d9b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.180013a30
mov edx, dword [rsp + 0x58]
lea rcx, str.setsockopt__SO_SNDBUF_d___:__s
mov r8, rax
call sym.VBoxOGLhostcrutil.dll_crWarning
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x180013de0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.180013a30
mov edx, dword [rsp + 0x60]
lea rcx, str.setsockopt__SO_RCVBUF_d___:__s
mov r8, rax
call sym.VBoxOGLhostcrutil.dll_crWarning
lea r9, [rsp + 0x68]
mov edx, 0xffff
mov r8d, 4
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x180013e25
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.180013a30
mov edx, dword [rsp + 0x68]
lea rcx, str.setsockopt__SO_REUSEADDR_d___:__s
mov r8, rax
call sym.VBoxOGLhostcrutil.dll_crWarning
mov edx, 6
lea r9, [rsp + 0x30]
mov rcx, rbx
lea r8d, [rdx - 5]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x180013e68
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.180013a30
mov edx, dword [rsp + 0x30]
lea rcx, str.setsockopt__TCP_NODELAY_d___:__s
mov r8, rax
call sym.VBoxOGLhostcrutil.dll_crWarning
add rsp, 0x40
pop rbx
ret
Function at 0x1800141b0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov edi, r9d
mov esi, r8d
mov rbp, rdx
mov r12d, ecx
xor r14d, r14d
lea r13, [0x180032ae0]
lea r15, [0x180032e70]
mov qword [rsp + 0x80], rbx
nop dword [rax]
test esi, esi
jne 0x1800141ff
test edi, edi
jne 0x1800141ff
mov qword [rsp + 0x20], r14
jmp 0x180014211
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x180014326
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2714
jne 0x180014248
lea rcx, str.select_interrupted_by_an_unblocked_signal__trying_again
call sym.VBoxOGLhostcrutil.dll_crWarning
jmp 0x1800141f0
lea rdx, str.err_d
mov r8d, eax
mov rcx, r13
call qword [sym.imp.MSVCR100.dll_sprintf]
mov eax, ebx
sub eax, 0x2746
je 0x1800142ba
cmp eax, 7
je 0x1800142b1
mov qword [rsp + 0x30], r14
mov r9d, 0x400
mov r8d, ebx
xor edx, edx
mov ecx, 0x11ff
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [0x180032e70]
test rdx, rdx
je 0x1800142c9
mov r8d, 0x1ff
mov rcx, r13
call sym.VBoxOGLhostcrutil.dll_crStrncpy
mov byte [0x180032cdf], r14b
jmp 0x1800142c9
lea rdx, str.connection_refused
jmp 0x1800142c1
lea rdx, str.connection_reset
mov rcx, r13
call sym.VBoxOGLhostcrutil.dll_crStrcpy
mov rcx, r13
call sym.VBoxOGLhostcrutil.dll_crStrlen
movsxd rcx, eax
lea rax, [rcx + r13 - 1]
mov qword [0x180032e70], rax
cmp rax, r13
jbe 0x180014312
movsx ecx, byte [rax]
call qword [sym.imp.MSVCR100.dll_isspace]
test eax, eax
je 0x180014312
mov rax, qword [0x180032e70]
mov byte [rax], r14b
mov rax, qword [0x180032e70]
dec rax
mov qword [0x180032e70], rax
cmp rax, r13
ja 0x1800142e5
lea rcx, str.select_failed:__s
mov rdx, r13
call sym.VBoxOGLhostcrutil.dll_crError
jmp 0x1800141f0
mov rbx, qword [rsp + 0x80]
lea r11, [rsp + 0x50]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800144c0
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180026138]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rbx, rcx
mov esi, 2
lea edx, [r8 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x128], rax
mov rax, qword [0x180033010]
test rax, rax
je 0x180014513
mov edx, dword [rbx + 0x128]
lea ecx, [rsi - 1]
call rax
mov rcx, qword [rbx + 0x128]
call fcn.180013d30
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdi, rax
test rax, rax
jne 0x180014560
mov rdx, qword [rbx + 0x98]
lea rcx, str.Unknown_host:___s_
call sym.VBoxOGLhostcrutil.dll_crWarning
mov rax, qword [0x1800336a8]
movsxd r11, dword [rbx + 0x130]
mov qword [rax + r11*8], rdi
xor eax, eax
jmp 0x1800146a4
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call sym.VBoxOGLhostcrutil.dll_crMemset
movzx ecx, word [rbx + 0xa0]
mov word [rsp + 0x20], si
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rsp + 0x24]
mov r8d, 4
mov word [rsp + 0x22], ax
mov rdx, qword [rdi + 0x18]
mov rdx, qword [rdx]
call sym.VBoxOGLhostcrutil.dll_crMemcpy
cmp dword [rbx + 0x74], 0
je 0x1800145b0
lea rcx, str.There_shouldnt_be_any_brokered_connections_in_VirtualBox
call sym.VBoxOGLhostcrutil.dll_crError
mov rcx, qword [rbx + 0x128]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x18001469f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
je 0x180014617
cmp eax, 0x274d
je 0x180014617
cmp eax, 0x2714
jne 0x180014607
mov r8d, dword [rbx + 0xa0]
mov rdx, qword [rbx + 0x98]
lea rcx, str.connection_to__s:_d_interrupted__trying_again
call sym.VBoxOGLhostcrutil.dll_crWarning
jmp 0x1800145b0
mov ecx, eax
call fcn.180013a30
lea rcx, str.Couldnt_connect_to__s:_d___s
jmp 0x180014625
mov ecx, eax
call fcn.180013a30
lea rcx, str.Connection_refused_to__s:_d___s
mov r8d, dword [rbx + 0xa0]
mov rdx, qword [rbx + 0x98]
mov r9, rax
call sym.VBoxOGLhostcrutil.dll_crWarning
mov rdi, qword [rbx + 0x128]
test rdi, rdi
je 0x180014685
mov rax, qword [0x180033018]
test rax, rax
je 0x180014659
mov edx, edi
mov ecx, esi
call rax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180014685
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.180013a30
lea rcx, str.crCloseSocket__sock_d__:__s
mov rdx, rdi
mov r8, rax
call sym.VBoxOGLhostcrutil.dll_crWarning
mov rax, qword [0x1800336a8]
movsxd rcx, dword [rbx + 0x130]
mov qword [rax + rcx*8], 0
xor eax, eax
jmp 0x1800146a4
mov eax, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18001c120
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180015320
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, r8d
mov r8d, dword [rcx + 0x68]
lea r9, [r8 + 4]
cmp rbx, r9
jbe 0x18001534d
lea rcx, str.crUDPIPWriteExact__d_:_too_big_a_packet_for_mtu__d__dropping__
add r8d, 4
mov edx, ebx
add rsp, 0x30
pop rbx
jmp sym.VBoxOGLhostcrutil.dll_crWarning
lea rax, [rcx + 0x148]
mov rcx, qword [rcx + 0x140]
xor r9d, r9d
mov r8d, ebx
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x180015395
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
call fcn.180013a30
lea rcx, str.crUDPIPWriteExact__d_:__s
mov edx, ebx
mov r8, rax
call sym.VBoxOGLhostcrutil.dll_crWarning
add rsp, 0x30
pop rbx
ret
Function at 0x18001c747
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180026138]
jne 0x18001c13a
rol rcx, 0x10
test cx, 0xffff
jne 0x18001c136
repz ret
ror rcx, 0x10
jmp 0x18001c6a0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800331b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800332a8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18001c725
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800331b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18001c747
mov rax, qword [rsp + 0x88]
mov qword [0x1800332a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180033248], rax
mov rax, qword [0x1800332a8]
mov qword [0x180033120], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180033230], rax
mov dword [0x180033110], 0xc0000409
mov dword [0x180033114], 1
mov rax, qword [0x180026138]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180026140]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800331a8], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800215a8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800331a8], 0
jne 0x18001c7ce
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001060
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x69b5b39
mov rdi, rcx
jne 0x1400010c2
movsxd rax, dword [rcx + 4]
xor ebx, ebx
test eax, eax
je 0x1400010c2
mov rcx, rax
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400010c2
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
jne 0x1400010ac
mov ebx, 0xc0000001
jmp 0x1400010b3
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x1400010c7
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400010d4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x69b5b39
mov rsi, rcx
je 0x1400010f8
mov eax, 0xc0000001
jmp 0x1400011ad
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
mov edi, ebx
lea ecx, [rbx + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x1400011ab
test rdi, rdi
je 0x140001130
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x140001120
test rdi, rdi
je 0x1400011ab
mov r8d, dword [rdi]
test r8d, r8d
je 0x1400011a0
lea rdx, [rdi + 0x18]
test byte [rdx - 8], 1
je 0x140001195
cmp qword [rdx], 0x200000
jne 0x140001195
mov ecx, dword [0x140002240]
mov r9b, byte [0x140002244]
cmp dword [rdx + 8], ecx
jne 0x140001195
cmp byte [rdx + 0xc], r9b
je 0x1400011bd
inc ebx
add rdx, 0x20
cmp ebx, r8d
jb 0x14000116e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rsi + 8]
mov rax, qword [rdx - 0x10]
mov qword [rcx], rax
jmp 0x1400011ab
Function at 0x1400011cc
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x69b5b39
mov rbx, rcx
jne 0x140001290
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001290
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001290
mov rdi, qword [0x140004050]
test rdi, rdi
je 0x140001290
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rdi
mov rsi, qword [rbx + 0x18]
call fcn.140001b84
test rax, rax
je 0x140001290
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rbx + 0x10]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
cmp byte [rbx + 0x20], 0
movsxd r8, esi
je 0x140001273
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.140001d64
jmp 0x14000128c
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001295
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140001344
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp qword [0x140004058], 0
mov r13, rcx
jne 0x140001372
call fcn.140001664
cmp qword [0x140004080], 0
jne 0x140001381
call fcn.140001480
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalMemoryRanges]
mov rdx, qword [0x140004078]
xor r15d, r15d
mov rcx, qword [0x140004070]
lea rsi, [rax + 8]
lea r12, [rcx + rdx*8]
mov rbx, qword [rsi - 8]
test rbx, rbx
jne 0x1400013b2
cmp qword [rsi], rbx
je 0x140001460
mov rbp, qword [rsi]
sar rbp, 0xc
sar rbx, 0xc
add rbp, rbx
cmp rbx, rbp
jge 0x140001441
lea rdi, [rbx + rbx*2]
shl rdi, 4
mov rax, qword [0x140004080]
mov r14, qword [rdi + rax]
cmp r14, 2
jb 0x140001427
cmp qword [rdi + rax + 8], r12
jne 0x140001427
movabs rax, 0xffff800000000000
shr r14, 0xd
or r14, rax
lea rdx, [rsp + 0x58]
mov rax, rbx
shl rax, 0xc
mov qword [0x140004050], rax
mov ecx, dword [r13]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001427
cmp r14, qword [rsp + 0x58]
je 0x140001435
inc rbx
add rdi, 0x30
cmp rbx, rbp
jl 0x1400013cd
jmp 0x140001441
mov rcx, qword [0x140004050]
test rcx, rcx
jne 0x140001457
inc r15d
add rsi, 0x10
cmp r15d, 0xc8
jl 0x1400013a0
jmp 0x140001460
mov rax, qword [r13 + 8]
mov qword [rax], rcx
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140028974
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
movabs byte [0xab9897a17ca5a29f], al
outsd dx, dword [rsi]
invalid
Function at 0x231941ab2
Capabilities:
Get session integrity level

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp - 0x14], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rdx, [rbp - 0x10]
mov r8, rdx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
mov rax, qword [rbp - 0x10]
lea rcx, [rbp - 0x14]
lea rdx, [rbp - 8]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8, rcx
mov edx, 0x14
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rax
mov eax, dword [rbp - 0x14]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp - 4], 0
je 0x231941b3d
mov rax, qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call rax
test eax, eax
je 0x231941b3d
mov eax, 1
jmp 0x231941b42
mov eax, 0
movzx eax, al
add rsp, 0x50
pop rbp
ret

Function at 0x231941c27
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.231a13670
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
je 0x231941d65
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0xffffffff
je 0x231941d39
mov eax, dword [rbp - 0xc]
add eax, 1
mov eax, eax
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x1c]
mov r8d, dword [rbp - 0xc]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x231941d00
mov eax, dword [rbp - 0x1c]
cmp dword [rbp - 0xc], eax
jne 0x231941d00
mov eax, 1
jmp 0x231941d05
mov eax, 0
test al, al
je 0x231941d26
mov eax, dword [rbp - 0xc]
mov rdx, qword [rbp - 0x18]
add rax, rdx
mov byte [rax], 0
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.operator_char_const_
cmp qword [rbp - 0x18], 0
je 0x231941d39
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.operator_delete___void_
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x231941d65
nop
mov rax, qword [rbp + 0x20]
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x231941dbd
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xf0
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x70], 0x68
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x10]
lea rdx, [rbp - 0x90]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov edx, dword [rbp + 0x18]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x231941ec9
cmp dword [rbp + 0x20], 0
je 0x231941e89
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rcx, qword [rbp - 0x90]
lea rax, [rbp - 0x94]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x94]
add rsp, 0xf0
pop rbp
ret
Function at 0x2319429d2
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], r8d
mov dword [rbp + 0x38], r9d
mov ecx, dword [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp + 0x38], 0
je 0x231942afa
mov rdx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MoveFileA]
call rax
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.2319de690
lea rcx, [rbp - 0x31]
mov rdx, qword [rbp + 0x50]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 1]
mov rcx, rax
call fcn.2319de690
lea rcx, [rbp - 1]
mov rdx, qword [rbp + 0x50]
lea rax, [rbp - 0x30]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x30]
mov r8d, 0x8000000
mov rcx, rax
call sym.f_xpc_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____unsigned_long_
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 1]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x31]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov rdx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MoveFileA]
call rax
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
mov eax, dword [rbp + 0x30]
mov rcx, qword [rbp + 0x28]
mov rdx, rax
call sym.RtlSecureZeroMemory
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
jmp 0x231942b5c
add rsp, 0x98
pop rbx
pop rbp
ret