joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004a2f0
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x14004a53e
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x1400b3040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x1400a15b0]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x14004a506
mov rcx, rbp
call fcn.140049890
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x14004a3c1
movsxd rdx, dword [rbp + 0x5dc8]
mov r8, qword [rbp + 0x5dd0]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x14004a3b1
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x14004a3a9
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x14004a3ac
mov rdx, rcx
test rdx, rdx
jne 0x14004a380
cmp r8, r10
je 0x14004a3c1
cmp dword [r8], r9d
jne 0x14004a3c1
mov rcx, qword [r8 + 8]
jmp 0x14004a3c3
xor ecx, ecx
mov qword [rbx + 0x18], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x50], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xc8]
and eax, 0xfffffe49
movss dword [rbx + 0x58], xmm1
or eax, 0x49
mov dword [rbx + 0xc8], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x5c], xmm0
test rcx, rcx
je 0x14004a457
cmp qword [rcx + 0x20], 0
jne 0x14004a44c
mov qword [rcx + 0x20], rbx
jmp 0x14004a457
cmp qword [rcx + 0x28], 0
jne 0x14004a457
mov qword [rcx + 0x28], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xbc], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x60], eax
mov ecx, dword [rdi - 6]
mov eax, dword [rbx + 0xc]
and ecx, 0xc1fc20
or eax, dword [rbx + 4]
or eax, ecx
mov dword [rbx + 8], ecx
mov dword [rbx + 0x10], eax
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14004a49c
nop word [rax + rax]
mov r9, rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x14004a490
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, 0x14
lea rcx, [rsp + 0x20]
call fcn.14002e190
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x14004a4f8
cmp r9b, 0x23
jne 0x14004a4db
cmp byte [r8], r9b
jne 0x14004a4db
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x14004a4c8
not ecx
call fcn.140036670
mov qword [rbx + 0x88], rax
add rdi, 0x24
sub rsi, 1
jne 0x14004a340
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400788c0
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140052680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
xor r14d, r14d
nop word [rax + rax]
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
mov rax, qword [rbx + 0x18]
mov word [rsp + 0x32], r14w
test rax, rax
je 0x1400526cd
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
jmp 0x1400526d2
mov dword [rsp + 0x24], r14d
mov eax, dword [rbx + 0x10]
shr eax, 0xa
test al, 1
je 0x1400526fd
mov rax, qword [rbx + 0x88]
test rax, rax
je 0x1400526fd
mov rax, qword [rax + 0x3a8]
test rax, rax
je 0x1400526fd
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x28], eax
jmp 0x140052702
mov dword [rsp + 0x28], r14d
mov eax, dword [rbx + 0xbc]
mov dword [rsp + 0x2c], eax
cmp qword [rbx + 0x20], r14
je 0x14005271c
movzx eax, byte [rbx + 0x60]
mov byte [rsp + 0x30], al
jmp 0x140052721
mov byte [rsp + 0x30], 0xff
cvttss2si ecx, dword [rbx + 0x48]
mov eax, dword [rbx + 8]
mov r8d, dword [rbp + 0x24]
and eax, 0xc1fc20
mov dword [rsp + 0x34], eax
mov byte [rsp + 0x31], sil
cvttss2si eax, dword [rbx + 0x4c]
mov word [rsp + 0x38], cx
cvttss2si ecx, dword [rbx + 0x50]
mov word [rsp + 0x3a], ax
cvttss2si eax, dword [rbx + 0x54]
mov word [rsp + 0x3c], cx
cvttss2si ecx, dword [rbx + 0x58]
mov word [rsp + 0x3e], ax
cvttss2si eax, dword [rbx + 0x5c]
mov word [rsp + 0x40], cx
mov ecx, dword [rbp + 0x20]
mov word [rsp + 0x42], ax
cmp ecx, r8d
jne 0x1400527a3
inc ecx
test r8d, r8d
je 0x14005278e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140052793
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rbp + 0x20]
call fcn.140053fc0
movsxd rax, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rdx, [rax + rax*8]
mov eax, dword [rsp + 0x40]
movups xmmword [rcx + rdx*4], xmm0
movups xmmword [rcx + rdx*4 + 0x10], xmm1
mov dword [rcx + rdx*4 + 0x20], eax
inc dword [rbp + 0x20]
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x1400527e2
lea r8d, [rsi + 1]
mov rcx, rbp
call fcn.140052680
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x1400527f2
inc esi
jmp 0x1400526b0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14006c590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov r11d, edx
and r11d, 7
je 0x14006c61f
cmp edx, r11d
jge 0x14006c60e
mov r8d, dword [rcx + 0x14]
mov eax, 1
mov ecx, edx
mov r9d, edx
shl eax, cl
cmp r8d, eax
jae 0x14006c604
mov r10, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r10
jb 0x14006c5cf
xor cl, cl
jmp 0x14006c5d8
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
lea edx, [r9 + 8]
mov ecx, r9d
mov dword [rbx + 0x10], edx
shl eax, cl
or r8d, eax
mov dword [rbx + 0x14], r8d
cmp edx, 0x18
jg 0x14006c60e
mov ecx, edx
mov eax, 1
shl eax, cl
mov r9d, edx
cmp r8d, eax
jb 0x14006c5c3
mov rax, qword [rbx + 8]
mov edx, r9d
mov qword [rbx], rax
mov eax, dword [rbx + 0x14]
mov ecx, r11d
shr eax, cl
sub edx, r11d
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x10], edx
xor r8d, r8d
mov r9d, edx
test edx, edx
jle 0x14006c662
mov eax, dword [rbx + 0x14]
lea rcx, [rsp + 0x30]
movzx r10d, al
nop word [rax + rax]
shr eax, 8
lea edx, [r9 - 8]
mov byte [rcx], r10b
lea rcx, [rcx + 1]
inc r8d
mov dword [rbx + 0x14], eax
mov r9d, edx
movzx r10d, al
test edx, edx
jg 0x14006c640
mov dword [rbx + 0x10], edx
jns 0x14006c688
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14006c6b7
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14006c6a1
xor dl, dl
jmp 0x14006c6aa
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14006c698
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x14006c664
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14006c721
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14006c73b
mov rcx, rbx
call fcn.14006ba20
test eax, eax
je 0x14006c714
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400796a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400796f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400796f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400796f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400796f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400796f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400796f4
xor al, al
add rsp, 0x28
ret
Function at 0x1400013d8
Capabilities:
Accept command line arguments

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
xor ebx, ebx
mov r15d, ebx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov rbp, rax
test rax, rax
je 0x140001574
lea r12d, [rbx + 2]
movzx ecx, word [rax]
cmp cx, 0x20
je 0x14000141f
cmp cx, 9
jne 0x140001424
add rax, r12
jmp 0x140001410
test cx, cx
je 0x140001574
test cx, cx
je 0x140001451
inc r15d
mov rcx, rax
call fcn.1400015b0
movzx ecx, word [rax]
cmp cx, 0x20
je 0x14000144c
cmp cx, 9
jne 0x14000142d
add rax, r12
jmp 0x14000143d
movsxd rcx, r15d
mov eax, 8
mul rcx
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.14000634c
mov rsi, rax
test rax, rax
je 0x14000156a
mov rdi, r14
inc rdi
cmp word [rbp + rdi*2], bx
jne 0x14000147e
inc rdi
mov rax, r12
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.14000634c
mov r14, rax
test rax, rax
je 0x140001562
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.140001350
test eax, eax
js 0x140001595
mov r8d, ebx
mov rax, r14
mov r9, rsi
cmp word [rax], bx
je 0x140001500
mov qword [r9], rax
mov rcx, rax
add r9, 8
inc r8d
call fcn.1400015b0
test rax, rax
je 0x140001500
cmp word [rax], bx
je 0x1400014fb
mov word [rax], bx
add rax, r12
cmp word [rax], 0x20
je 0x1400014ec
cmp word [rax], 9
je 0x1400014ec
test rax, rax
jne 0x1400014c8
movsxd rbp, r8d
test r8d, r8d
jle 0x14000153c
mov rdi, rbx
mov r12d, 0x22
mov rcx, qword [rsi + rdi*8]
cmp word [rcx], r12w
jne 0x140001534
add rcx, 2
mov edx, r12d
mov qword [rsi + rdi*8], rcx
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x140001534
mov word [rax], bx
inc rdi
cmp rdi, rbp
jl 0x140001511
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
mov r8d, 3
mov rdx, rsi
mov ecx, r15d
call qword [sym.imp.MSDTCTM.dll_Ordinal_4]
mov ebx, eax
mov rcx, r14
call fcn.14000638c
mov rcx, rsi
call fcn.14000638c
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
mov eax, ebx
jmp 0x140001576
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov ecx, eax
call fcn.140001758
lea rcx, str.failed_in_TracedStringCchCopyW
call fcn.140001cf0
int3
Function at 0x140001b20
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x98
call sub.msvcrt.dll_memset
test rbx, rbx
jne 0x140001b96
lea rax, [rbp - 0x30]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rax
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0x30]
and dword [rsp + 0x48], ebx
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, [fcn.140001b20]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0xc00000e5
mov dword [rsp + 0x34], 1
lea rcx, str.GenerateErrorDumps
call fcn.140001c44
test eax, eax
je 0x140001c07
mov rcx, qword [0x140010700]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
test eax, eax
jne 0x140001bc7
lea r8d, [rax + 0x7f]
lea rcx, str.ResetEvent_fails_in_CEventSem::Reset__
call fcn.140002404
xor r8d, r8d
lea rcx, [0x140001df0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x140001c07
mov rcx, qword [0x140010700]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObjectEx]
cmp eax, 0xffffffff
jne 0x140001c07
mov r8d, 0x74
lea rcx, str.WaitForSingleObjectEx_fails_in_CEventSem::Wait__
call fcn.140002404
mov rdx, qword [rbx + 8]
mov r8d, 1
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_RtlReportException]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b8]
add rsp, 0x5a0
pop rbp
ret

Function at 0x140001c44
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
and dword [rbp + 0x20], 0
lea rdx, str.SoftwareMicrosoftMSDTC
and dword [rbp + 0x18], 0
mov rbx, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
mov dword [rbp + 0x28], 4
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001cca
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x18]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x140001cc6
cmp dword [rbp + 0x20], 4
je 0x140001cca
and dword [rbp + 0x18], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140001cd9
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rbp + 0x18]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140002ac4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
sub rsp, 0x60
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], r14
mov rax, qword [0x14000e3b8]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov rcx, qword [rbp + 0x50]
xor r14d, r14d
mov rdi, r8
mov word [r8], r14w
lea r8, str.not_loaded
lea edx, [r14 + 0x32]
call fcn.140001350
mov rsi, qword [rbp + 0x60]
lea rcx, str.comsvcs.dll
mov word [rsi], r14w
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140002c91
xor r9d, r9d
lea edx, [r14 + 0x10]
lea r8d, [r14 + 1]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
test rax, rax
je 0x140002c91
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test rax, rax
je 0x140002c91
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov r9, rax
test rax, rax
je 0x140002c91
movzx r8d, word [rax]
mov ecx, r8d
shr ecx, 1
add ecx, r8d
mov edx, ecx
lea rax, [rcx + 0xf]
cmp rax, rdx
ja 0x140002b94
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400071c0
sub rsp, rax
mov rdx, r9
lea rbx, [rsp + 0x40]
mov rcx, rbx
call sub.msvcrt.dll_memcpy
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 0x10]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x140002c0a
mov rax, qword [rbp + 0x10]
lea r9, [0x140008080]
mov ecx, r14d
movzx edx, word [rax]
mov rax, r9
cmp dx, word [rax]
je 0x140002bf2
inc ecx
add rax, 0x10
cmp ecx, 0x27
jb 0x140002be0
jmp 0x140002c0a
mov r8d, ecx
mov edx, 5
add r8, r8
mov rcx, rdi
mov r8, qword [r9 + r8*8 + 8]
call fcn.140001350
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 8]
lea rdx, [0x140008c4c]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x140002c91
mov r10, qword [rbp + 8]
mov r9d, dword [r10 + 8]
cmp r9d, 0xffffffff
je 0x140002c6d
movzx r8d, word [r10 + 0xe]
mov edx, 0x32
movzx eax, word [r10 + 0xc]
mov rcx, qword [rbp + 0x50]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r8d
lea r8, str._u._u._u._u
movzx r10d, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], r10d
call fcn.1400019c4
mov r10, qword [rbp + 8]
test byte [r10 + 0x1c], 1
lea rax, [0x140009980]
lea r8, [0x140009988]
mov edx, 5
cmovne r8, rax
mov rcx, rsi
call fcn.140001350
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140006770
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
mov r14, qword [rbp + 0x48]
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140002d80
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
push rsi
push rdi
push r15
sub rsp, 0x50
mov eax, edx
mov r15d, 1
shr eax, 0x1e
mov esi, edx
movzx ebp, cx
cmp eax, r15d
jbe 0x140002dc4
lea ebx, [r15 + 1]
cmp eax, ebx
je 0x140002dc9
cmp eax, 3
jne 0x140002dbf
movzx ebx, r15w
jmp 0x140002dc9
mov ebx, r15d
jmp 0x140002dc9
mov ebx, 4
mov rax, qword [0x1400103d0]
test rax, rax
je 0x140002e4c
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x88]
call qword [0x140008938]
test eax, eax
js 0x140002e4c
mov rdi, qword [rsp + 0x88]
test rdi, rdi
je 0x140002e4c
and qword [rsp + 0x40], 0
mov rcx, rdi
mov r9, qword [rsp + 0x98]
mov rax, qword [rdi]
mov qword [rsp + 0x38], r9
mov r9d, esi
and dword [rsp + 0x30], 0
movzx r8d, bp
mov rax, qword [rax + 0x18]
movzx edx, bx
mov dword [rsp + 0x28], r15d
and qword [rsp + 0x20], 0
call qword [0x140008938]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140008938]
jmp 0x140002ea3
lea rdx, str.COM
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140002ea3
and qword [rsp + 0x40], 0
mov r9d, esi
mov rcx, qword [rsp + 0x98]
movzx r8d, bp
mov qword [rsp + 0x38], rcx
movzx edx, bx
and dword [rsp + 0x30], 0
mov rcx, rax
mov word [rsp + 0x28], r15w
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop rdi
pop rsi
ret
Function at 0x140002f38
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x14000e3b8]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov esi, r8d
mov r14, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x5a0]
call sub.msvcrt.dll_memset
mov edi, 0x20a
lea rcx, [rbp + 0x390]
mov r8d, edi
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, edi
lea rcx, [rbp + 0x180]
xor edx, edx
call sub.msvcrt.dll_memset
xor r15d, r15d
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x250
mov edi, r15d
call sub.msvcrt.dll_memset
mov r9, r14
mov qword [rsp + 0x20], rbx
lea r8, str._s_s.dmp
mov edx, 0x104
lea rcx, [rbp + 0x5a0]
call fcn.1400019c4
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov rbx, rax
mov r12d, 0x105
cmp rax, 0xffffffffffffffff
je 0x14000304f
inc edi
cmp word [rbp + 0x390], r15w
je 0x140003029
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x390]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jle 0x14000303d
lea r8, [rsp + 0x5c]
mov rdx, r12
lea rcx, [rbp + 0x390]
call fcn.140001350
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x140003007
cmp edi, esi
jb 0x1400030e8
lea rax, [rbp + 0x390]
mov r9, r14
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov rdx, r12
lea rcx, [rbp + 0x180]
call fcn.1400019c4
mov edi, 0x80
lea rcx, [rbp + 0x180]
mov edx, edi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
lea edx, [rdi - 0x52]
lea rcx, [rbp + 0x180]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x1400030e8
lea r8, str..txt
mov word [rax], r15w
mov rdx, r12
lea rcx, [rbp + 0x180]
call fcn.1400018ec
mov edx, edi
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
cmp rbx, 0xffffffffffffffff
je 0x1400030f7
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.140006770
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140003128
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rdi
lea rbp, [rax - 0x418]
sub rsp, 0x508
mov rax, qword [0x14000e3b8]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor edi, edi
lea r9, [rbp + 0x428]
mov r8, rcx
mov word [rbp - 0x20], di
lea rcx, [rbp - 0x20]
mov word [rbp + 0x3ee], di
mov edx, 0x208
call fcn.1400026a8
test eax, eax
js 0x140003243
xor edx, edx
lea r8d, [rdi + 0x68]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
lea eax, [rdi + 6]
mov dword [rsp + 0x70], 0x68
mov word [rbp - 0x50], ax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x58]
mov dword [rbp - 0x54], 0x81
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
je 0x14000322d
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
jmp 0x140003233
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140006770
add rsp, 0x508
pop rdi
pop rbp
ret
Function at 0x140003c20
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x7f0ea553
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]