joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a9e0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x88
cmp byte [0x1400b8078], 0
jne 0x14000ac26
xor r9d, r9d
mov qword [rsp + 0xa0], rbx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov rbx, rax
test rax, rax
je 0x14000ac2e
mov qword [rsp + 0x80], rdi
xor eax, eax
lock cmpxchg qword [0x1400b8080], rbx
mov rdi, rax
jne 0x14000abff
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea rcx, [fcn.14000a670]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
lea rcx, [0x1400b8090]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
call fcn.14000edb0
call fcn.14000fc30
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [rsp + 0x78]
lea rcx, [0x1403412b0]
mov dword [0x1400b8258], eax
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
xor edi, edi
lea r8, [0x1403402b8]
mov r9d, edi
lea rdx, [0x1400b82b0]
mov r10d, edi
nop dword [rax]
movsxd rax, r10d
inc r9d
mov qword [r8 - 8], rdi
lea r8, [r8 + 0x10]
imul rcx, rax, 0x288
add r10d, 0x10
add rcx, rdx
mov qword [r8 - 0x10], rcx
cmp r9d, 0x100
jb 0x14000aaa0
lea rcx, [0x1400b8048]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov edx, 1
lea rcx, [0x140007560]
call qword [sym.imp.KERNEL32.DLL_SetConsoleCtrlHandler]
test eax, eax
je 0x14000abf8
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x7fffffff
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
mov qword [0x1400b8010], rax
test rax, rax
jne 0x14000ab26
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.14000e890
test eax, eax
jne 0x14000abf8
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, str.CONOUT_
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov qword [0x1400b55b8], rax
cmp rax, 0xffffffffffffffff
je 0x14000ab70
xor edx, edx
lea rcx, [0x140006740]
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
lea rcx, [0x1400b8018]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
test eax, eax
je 0x14000abaa
movsd xmm1, qword [0x1400aa0e0]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x90]
divsd xmm1, xmm0
jmp 0x14000abad
xorps xmm1, xmm1
mov rax, qword [0x140341360]
movsd qword [0x1400b8040], xmm1
test rax, rax
je 0x14000abe6
lea rdx, [0x1400103d0]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x40]
mov ecx, 2
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov byte [0x1400b8078], 1
jmp 0x14000ac16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x88
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14000e7d0
int3
Function at 0x14000d030
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
xor ebp, ebp
mov qword [rax - 0x10], rbp
mov rbx, r8
mov dword [rax - 0x18], ebp
mov rsi, rcx
mov dword [rax - 0x20], 0x10000
mov r9d, 0xff
mov rcx, qword [rdi + 0x120]
xor r8d, r8d
mov edx, 0x40040003
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14000d0e2
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x14000d09b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x14000d0a9
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14000d0d5
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14000d1c1
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x14000d1c1
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rdi
mov rcx, rsi
call fcn.14000c830
test eax, eax
je 0x14000d11c
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x14000d09b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x14000d0a9
xorps xmm0, xmm0
mov qword [rsp + 0x50], r14
movups xmmword [rbx + 0x40], xmm0
lea rdx, [rbx + 0x40]
movups xmmword [rbx + 0x50], xmm0
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
test eax, eax
jne 0x14000d1bc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x14000d1bc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x217
jne 0x14000d15d
mov rax, rbp
jmp 0x14000d191
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x14000d181
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x14000d18f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14000d1b4
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x14000d1b8
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov r14, qword [rsp + 0x50]
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000d420
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rsi, rcx
je 0x14000d46b
mov qword [rdx + 0x238], 0
lea rcx, [0x14000d1e0]
mov rdx, rdi
mov r8d, select
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
jmp 0x14000d51e
lea rcx, [rdi + 0x40]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
test dword [rdx + 0x58], 0x80000
je 0x14000d48e
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x1400b80d4]
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x14000d4be
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
jne 0x14000d522
test dword [rbx + 0x58], 0x80000
je 0x14000d579
cmp qword [rdi + 0x70], 0
jne 0x14000d4ef
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x14000d5b2
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x14000d579
mov rdx, qword [rdi + 0x58]
lea r8, [0x140008680]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x14000d579
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x14000d534
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x14000d542
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14000d56f
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14000d598
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14000d598
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14000d598
xor r9d, r9d
lea rdx, [0x14000df90]
lea r8d, [r9 + 0x32]
call fcn.140009960
or dword [rbx + 0x58], 0x10000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14000e7d0
int3
Function at 0x14000d6e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rcx, rbx
movaps xmm0, xmmword [rsp + 0x30]
mov edi, r9d
mov edx, r8d
lea r8, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call qword [rbx + 0x68]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14000d79f
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000d79f
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x70]
cmp edi, eax
mov qword [rsp + 0x20], 0
cmova edi, eax
mov r8d, edi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x14000d781
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov r8d, eax
call fcn.14000d640
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov edx, dword [rsp + 0x70]
lea r8, [rsp + 0x30]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
lea r8, [rsp + 0x30]
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x14000fc30
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x1400b5528]
xor rax, rsp
mov qword [rsp + 0x460], rax
xorps xmm0, xmm0
mov ebx, 2
movups xmmword [0x140341300], xmm0
xor ecx, ecx
mov word [0x140341300], bx
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x140341304]
mov word [0x140341302], ax
lea rcx, str.0.0.0.0
call fcn.14000be10
test eax, eax
jne 0x14000fe1e
lea r8, [0x140341320]
xor edx, edx
lea rcx, [0x1400aa018]
call fcn.140001360
test eax, eax
jne 0x14000fe1e
lea ecx, [rbx + 0x41]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x14000fe2d
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000fe46
mov qword [rsp + 0x480], rdi
xor r8d, r8d
mov edi, 1
mov ecx, ebx
mov edx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000fd57
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14000fe55
mov eax, dword [0x140341340]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x140341340], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x14000fe6a
jmp 0x14000fd7e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x14000febe
cmp eax, 0x273a
jbe 0x14000febe
cmp eax, 0x2740
jae 0x14000febe
xor r8d, r8d
mov edx, edi
lea ecx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000fdf5
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14000fe7f
mov eax, dword [0x14034133c]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x14034133c], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x14000fe94
jmp 0x14000fe25
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x14000fea9
cmp eax, 0x273a
jbe 0x14000fea9
cmp eax, 0x2740
jae 0x14000fea9
jmp 0x14000fe25
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rdi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140099bf0
add rsp, 0x470
pop rbx
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.14000e7d0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.14000e7d0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.14000e7d0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.14000e7d0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.14000e7d0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.14000e7d0
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.14000e7d0
int3
Function at 0x1400217c0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov ecx, select
call fcn.1400998c8
mov r9, rax
test rax, rax
je 0x140021803
mov rax, qword [rdi]
mov qword [r9], rax
mov rax, qword [rsi]
mov qword [r9 + 8], rax
jmp 0x140021806
xor r9d, r9d
mov qword [rsp + 0x50], r9
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
and dword [rsp + 0x20], 0
lea r8, [0x140021854]
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 0x140021845
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
and dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x14002c358
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov rax, qword [rdx + 0x28]
cmp byte [rax], 0x22
je 0x14002c397
cmp byte [rax], 0x5b
je 0x14002c392
cmp byte [rax], 0x66
je 0x14002c38d
cmp byte [rax], 0x6e
je 0x14002c388
cmp byte [rax], 0x74
je 0x14002c383
cmp byte [rax], 0x7b
jne fcn.14002b594
jmp fcn.14002bd58
jmp fcn.14002c2a0
jmp fcn.14002b4e8
jmp fcn.14002b388
jmp fcn.14002b1e4
xor r9d, r9d
jmp fcn.14002c050

Function at 0x14002cc40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400b5528]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14002ccaf
cmp byte [rcx + 0x71], 0
je 0x14002ccaf
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14002cd04
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14002ccc9
sub eax, 1
je 0x14002cccd
cmp eax, 2
jne 0x14002cd04
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140099bf0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14002ccfb
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14002cd04
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002ccb1
xor al, al
jmp 0x14002ccb1
Function at 0x14002d16c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400b5528]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14002d1a5
xor eax, eax
jmp 0x14002d2b8
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14002d1ce
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, qword [rax]
cmp qword [rax], r8
jae 0x14002d1ce
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14002d2b8
cmp qword [rcx + 0x80], 0
je 0x14002d2b6
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14002d209
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14002d22d
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
cmovne edi, esi
jmp 0x14002d2b6
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x14002d2b6
cmp eax, 1
jle 0x14002d27b
cmp eax, 3
jne 0x14002d2b6
movsx ecx, byte [rbp - 0x40]
jmp 0x14002d216
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14002d2a6
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14002d2b6
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
mov eax, esi
jne 0x14002d2b8
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140099bf0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14002d9f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14002da1d
xor eax, eax
jmp 0x14002db18
cmp qword [rcx + 0x68], 0
je 0x14002da2f
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14002db18
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14002da46
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002da48
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002da78
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rsi
add r14, rbx
sub rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov r8, rbp
cmp qword [rsi + 0x80], 0
je 0x14002db12
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14002dab3
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x14002daec
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x14002db31
cmp rbp, r15
ja 0x14002dac1
mov r8, rbx
test rbx, rbx
je 0x14002db12
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x14002db15
Function at 0x14002db38
Capabilities:
Write file on windows

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 r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14002db69
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14002dbdc
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14002db80
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14002db82
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14002dbd6
test ecx, ecx
jle 0x14002dbb1
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x14002dbd6
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002dbd6
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14002def4
Capabilities:
Manipulate user privileges

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov edi, ebx
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x28]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea esi, [rbx + 1]
cmp eax, esi
jne 0x14002dffa
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], ebx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rbp + 0x20]
test r9d, r9d
je 0x14002df65
mov edx, r9d
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov r9d, dword [rbp + 0x20]
mov rdi, rax
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test rdi, rdi
je 0x14002dffa
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x30]
mov r8d, 0xf0fff
lea rdx, [rbp - 0x30]
xor ecx, ecx
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
jne 0x14002dfed
lea rdx, str.SeLockMemoryPrivilege
lea rcx, [rbp - 0x40]
call fcn.14002e0bc
mov rdx, qword [rdi]
lea r8, [rbp - 0x50]
mov rcx, qword [rbp + 0x30]
mov r9d, esi
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x50], xmm0
call sub.ADVAPI32.dll_LsaAddAccountRights
mov rcx, qword [rbp + 0x30]
test eax, eax
cmove ebx, esi
call sub.ADVAPI32.dll_LsaClose
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, ebx
jmp 0x14002dffc
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002e130
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rdx, rcx
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x3000
jmp qword [sym.imp.KERNEL32.DLL_VirtualAlloc]

Function at 0x14002e1f4
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
lea r9, [rsp + 0x40]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
add rsp, 0x28
ret