joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005c230
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14008f080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14005c2c5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14005c326
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140036b30
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14006fbc0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14005c3e1
sub ecx, 1
je 0x14005c454
sub ecx, 1
je 0x14005c390
cmp ecx, 1
je 0x14005c373
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14007cb60]
call fcn.140036b30
jmp 0x14005c454
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14005bf60
test eax, eax
je 0x14005c454
jmp 0x14005c2fa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14005c454
sub rax, rsi
cmp rax, rbp
jae 0x14005c454
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140036cb0
jmp 0x14005c454
cmp r8d, 4
jle 0x14005c454
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14005c454
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140036a50
mov esi, eax
test eax, eax
je 0x14005c433
mov edx, 5
mov rcx, rbx
call fcn.14005cf20
mov eax, esi
jmp 0x14005c2fa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140045350
mov rcx, r14
call fcn.140045630
test eax, eax
je 0x14005c2f8
mov edx, 5
mov rcx, rbx
call fcn.14005cf20
mov eax, Ordinal_46
jmp 0x14005c2fa
Function at 0x14006f1f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str._r_a_]
mov rdi, rax
test rax, rax
jne 0x14006f232
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14006f279
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14006f2d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14006f290
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006f313
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400822ea]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400822eb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006f2e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14006f32c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14006f366
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14006f36b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14006f3b4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14006f3b4
dec r8
sub rdx, 1
jne 0x14006f39a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14007099c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400709e6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400709e6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400709e6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400709e6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400709e6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400709e8
xor al, al
add rsp, 0x28
ret
Function at 0x1400052e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

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, 0x30
mov rbp, rcx
mov edi, edx
mov rcx, qword gs:[0x60]
xor edx, edx
mov ebx, r8d
mov r14, r9
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 8]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140005332
mov ecx, 0xc000009a
jmp 0x1400053a5
lea r8, [rsp + 0x20]
mov edx, ebx
mov ecx, edi
call fcn.140006858
test eax, eax
js 0x1400053fb
mov rbx, qword [rsp + 0x20]
cmp qword [rbx + 0x28], 0
je 0x1400053c9
xor edi, edi
cmp dword [rbx + 0x30], edi
jbe 0x140005382
mov rax, qword [rbx + 0x28]
mov rdx, qword [rax + rdi*8]
test rdx, rdx
je 0x14000537b
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x1400053c3
inc edi
cmp edi, dword [rbx + 0x30]
jb 0x14000535b
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov ecx, 0xc000000d
mov rbx, qword [rsp + 0x40]
mov eax, ecx
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov eax, edi
xor ecx, ecx
jmp 0x140005417
test byte [rbx + 0x20], 2
je 0x1400053fb
mov edx, 0x2e
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
je 0x1400053fb
mov rdx, rsi
mov rcx, rbp
call fcn.14000d724
mov ecx, eax
test eax, eax
jns 0x14000541a
jmp 0x140005382
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.14000c7c0
mov ecx, eax
test eax, eax
js 0x140005382
mov rax, qword [rsp + 0x28]
mov qword [rsi], rax
mov rax, qword [rsp + 0x60]
mov qword [r14], rsi
mov dword [rax], 8
jmp 0x1400053a5
Function at 0x140005434
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov r14, r8
mov rcx, qword gs:[0x60]
mov r15, rdx
xor ebx, ebx
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea r8d, [rbx + 8]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140005489
mov ebx, 0xc000009a
jmp 0x1400055a0
lea rdx, str.true
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140005592
lea rdx, [0x14003bcf8]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140005592
lea rdx, [0x14003bd00]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140005592
lea rdx, [0x14003bd08]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140005592
lea rdx, str.false
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000558e
lea rdx, [0x14003bd1c]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000558e
lea rdx, [0x14003bd28]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000558e
lea rdx, [0x14003bd30]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000558e
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov ebx, 0xc000000d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x1400055a0
mov al, bl
jmp 0x140005594
mov al, 1
mov byte [rsi], al
mov qword [r15], rsi
mov dword [r14], 2
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14000752c
Capabilities:
Access peb ldr_data

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 eax, dword [rdx]
mov rbp, rcx
mov rcx, qword gs:[0x60]
mov r12, r8
mov r14, rdx
mov r15d, r9d
xor edx, edx
xor ebx, ebx
lea r8, [rax + rax*2]
mov rcx, qword [rcx + 0x30]
shl r8, 3
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14000758e
mov ebx, 0xc000009a
jmp 0x140007690
mov edi, ebx
cmp byte [rsp + 0x60], bl
je 0x1400075e2
cmp dword [r14], ebx
jbe 0x1400075e2
mov r8d, dword [r14]
mov rdx, rbp
mov rax, qword [rdx]
cmp rax, qword [0x14003c360]
jne 0x1400075d8
mov rax, qword [rdx + 8]
cmp rax, qword [0x14003c368]
jne 0x1400075d8
movups xmm0, xmmword [rdx]
mov eax, edi
inc edi
lea rcx, [rax + rax*2]
movups xmmword [rsi + rcx*8], xmm0
movsd xmm1, qword [rdx + 0x10]
movsd qword [rsi + rcx*8 + 0x10], xmm1
mov qword [rdx + 0x10], rbx
add rdx, 0x18
sub r8, 1
jne 0x1400075a1
mov r8d, ebx
test r15d, r15d
je 0x140007645
cmp dword [r14], ebx
jbe 0x14000763d
mov r9d, dword [r14]
mov rdx, rbp
cmp qword [rdx + 0x10], rbx
je 0x140007633
mov ecx, r8d
add rcx, rcx
mov rax, qword [r12 + rcx*8]
cmp rax, qword [rdx]
jne 0x140007633
mov rax, qword [r12 + rcx*8 + 8]
cmp rax, qword [rdx + 8]
jne 0x140007633
movups xmm0, xmmword [rdx]
mov eax, edi
inc edi
lea rcx, [rax + rax*2]
movups xmmword [rsi + rcx*8], xmm0
movsd xmm1, qword [rdx + 0x10]
movsd qword [rsi + rcx*8 + 0x10], xmm1
mov qword [rdx + 0x10], rbx
add rdx, 0x18
sub r9, 1
jne 0x1400075f5
inc r8d
cmp r8d, r15d
jb 0x1400075ea
mov eax, dword [r14]
xor edx, edx
mov rcx, rbp
lea r8, [rax + rax*2]
shl r8, 3
call sub.msvcrt.dll_memset
mov eax, edi
mov rdx, rsi
mov rcx, rbp
lea r8, [rax + rax*2]
shl r8, 3
call sub.msvcrt.dll_memcpy
mov dword [r14], edi
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400082f8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r12d, r12d
lea rax, [rbp - 0x10]
xor r9d, r9d
mov qword [rbp - 8], r12
xor r8d, r8d
mov dword [rbp - 0x10], r12d
mov edx, 0x12000004
mov qword [rsp + 0x20], rax
mov esi, r12d
mov r14d, r12d
mov r15, rcx
call fcn.140010554
mov ebx, eax
cmp eax, 0xc0000023
je 0x140008350
test eax, eax
cmovns r14d, dword [rbp - 0x10]
jmp 0x1400083aa
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rbp - 0x10]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140008381
mov ebx, 0xc000009a
jmp 0x1400084f7
lea rax, [rbp - 0x10]
mov r9, rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x12000004
mov rcx, r15
call fcn.140010554
mov ebx, eax
test eax, eax
js 0x1400083b1
mov r14d, dword [rbp - 0x10]
mov rsi, rdi
mov rdi, rsi
test ebx, ebx
jns 0x1400083dc
test rdi, rdi
je 0x1400083d4
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test ebx, ebx
js 0x1400084d4
xor r9d, r9d
lea r8, [rbp - 8]
mov edx, 0x1001030
mov ecx, 0x800
call fcn.1400011f4
mov ebx, eax
test eax, eax
js 0x1400084af
mov rcx, qword [rbp - 8]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140008404
mov rcx, qword gs:[0x60]
lea r14d, [r14 + rax*2]
add r14d, 2
xor edx, edx
mov r8d, r14d
mov ebx, r14d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140008446
mov ebx, 0xc000009a
jmp 0x1400084af
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 8]
lea r8, [0x14003bf60]
mov r9, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call fcn.14000851c
mov ebx, eax
test eax, eax
js 0x140008491
mov r9, rdi
mov dword [rsp + 0x20], r14d
xor r8d, r8d
mov edx, 0x12000004
mov rcx, r15
call fcn.140010834
mov ebx, eax
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp qword [rbp - 8], r12
je 0x1400084d4
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 8]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test rsi, rsi
je 0x1400084f7
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000c0e8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x14004f068]
xor rax, rsp
mov qword [rbp + 0x340], rax
xor ebx, ebx
or rdi, 0xffffffffffffffff
mov r15, rdx
mov r14, rcx
lea r12d, [rbx + 0x5c]
cmp word [rcx], r12w
je 0x14000c21d
mov rsi, rdi
inc rsi
cmp word [rcx + rsi*2], bx
jne 0x14000c137
cmp rsi, 0x103
jbe 0x14000c153
mov ebx, 0xc000000d
jmp 0x14000c2a1
mov r8, r14
lea rcx, [rbp + 0x130]
mov edx, 0x104
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
cmp word [rbp + rsi*2 + 0x12e], r12w
je 0x14000c1a8
cmp rsi, 0x103
jae 0x14000c149
mov word [rbp + rsi*2 + 0x130], r12w
lea rsi, [rsi*2 + 2]
cmp rsi, 0x208
jae 0x14000c2cf
mov word [rbp + rsi + 0x130], bx
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x130]
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
je 0x14000c25c
lea rcx, [rsp + 0x20]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x14000c1d6
cmp rax, 1
jbe 0x14000c218
cmp word [rsp + 0x22], r12w
jne 0x14000c1f7
mov ecx, 0x3f
mov word [rsp + 0x22], cx
cmp word [rsp + rax*2 + 0x1e], r12w
jne 0x14000c218
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x14000c2cf
mov word [rsp + rax + 0x20], bx
lea r14, [rsp + 0x20]
mov r8, rdi
inc r8
cmp word [r14 + r8*2], bx
jne 0x14000c220
mov rcx, qword gs:[0x60]
lea r8, [r8*2 + 2]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [r15], rax
test rax, rax
jne 0x14000c281
mov ebx, 0xc000009a
jmp 0x14000c2a1
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_QueryDosDeviceW]
nop dword [rax + rax]
test eax, eax
jne 0x14000c218
mov ebx, 0xc0000001
jmp 0x14000c2a1
inc rdi
cmp word [r14 + rdi*2], bx
jne 0x14000c281
lea rdx, [rdi + 1]
mov r8, r14
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.140030000
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140030208
int3
Function at 0x14000c2dc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x14004f068]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov eax, dword [0x14003c2d0]
mov rsi, rdx
mov dword [rsp + 0x20], eax
mov rdi, rcx
movzx eax, word [0x14003c2d4]
mov ebx, 0xc000000e
mov word [rsp + 0x24], ax
xor ebp, ebp
mov eax, 0x41
mov word [rsp + 0x20], ax
lea r14d, [rax - 0x40]
mov r8d, 0x40
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_QueryDosDeviceW]
nop dword [rax + rax]
test eax, eax
je 0x14000c36c
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000c382
movzx eax, word [rsp + 0x20]
add ax, r14w
mov word [rsp + 0x20], ax
cmp ax, 0x5a
ja 0x14000c3f2
jmp 0x14000c334
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], bp
jne 0x14000c38e
mov rcx, qword gs:[0x60]
lea r8, [r8*2 + 2]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsi], rax
test rax, rax
jne 0x14000c3ca
mov ebx, 0xc000009a
jmp 0x14000c3f2
lea rcx, [rsp + 0x20]
inc rbx
cmp word [rcx + rbx*2], bp
jne 0x14000c3cf
lea rdx, [r14 + rbx]
mov rcx, rax
lea r8, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ebx, ebp
mov eax, ebx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140030000
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000cf4c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov ecx, 0xfffffff5
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
nop dword [rax + rax]
or rbx, 0xffffffffffffffff
mov rsi, rax
cmp rax, rbx
je 0x14000d0ed
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileType]
nop dword [rax + rax]
xor r12d, r12d
mov edi, eax
test eax, eax
jne 0x14000cfb2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14000d0ed
btr edi, 0xf
cmp edi, 2
jne 0x14000d016
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleMode]
nop dword [rax + rax]
test eax, eax
jne 0x14000cfe7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 6
je 0x14000d016
inc rbx
cmp word [rbp + rbx*2], r12w
jne 0x14000cfe7
mov r8, rbx
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_WriteConsoleW]
nop dword [rax + rax]
jmp 0x14000d0ed
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
nop dword [rax + rax]
mov qword [rsp + 0x38], r12
mov r9d, ebx
mov qword [rsp + 0x30], r12
mov ecx, eax
mov dword [rsp + 0x28], r12d
mov r8, rbp
xor edx, edx
mov qword [rsp + 0x20], r12
mov r15d, eax
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
je 0x14000d0ed
mov rcx, qword gs:[0x60]
mov r8d, r14d
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000d0ed
mov qword [rsp + 0x38], r12
mov r9d, ebx
mov qword [rsp + 0x30], r12
mov r8, rbp
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
test eax, eax
je 0x14000d0cf
lea r8d, [rax - 1]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14000d8c8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
call fcn.14000eb28
xor r15d, r15d
mov ebx, eax
test eax, eax
jns 0x14000d907
mov r8d, eax
lea rdx, str.BcdSetSystemStoreDevice:_Failed_to_acquire_BCD_sync_mutant._Status:__x
lea ecx, [r15 + 4]
call fcn.14000d7c8
jmp 0x14000daa4
mov qword [rsp + 0x58], r15
mov rdi, r15
mov rsi, r15
test r14, r14
je 0x14000da3c
mov r12d, 2
cmp word [r14], r12w
jb 0x14000da3c
movzx ebx, word [r14]
xor edx, edx
mov rcx, qword gs:[0x60]
lea r8, [rbx + 2]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000d960
mov ebx, 0xc0000017
jmp 0x14000da9f
shr rbx, 1
mov rcx, rdi
mov word [rax + rbx*2], r15w
movzx r8d, word [r14]
mov rdx, qword [r14 + 8]
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400199d8
mov rsi, qword [rsp + 0x58]
test eax, eax
mov rbp, rdi
cmovns rbp, rsi
call fcn.140016eb4
cmp eax, r12d
je 0x14000d9a4
mov ebx, 0xc00000bb
jmp 0x14000d9ae
mov rcx, rbp
call fcn.140020794
mov ebx, eax
mov r8, rbp
test ebx, ebx
jns 0x14000d9ce
mov r9d, ebx
lea rdx, str.Unable_to_set_system_partition_to___s_._Status:__x
mov ecx, 4
call fcn.14000d7c8
jmp 0x14000da52
lea rdx, str.Set_system_partition_to___s_
mov ecx, r12d
call fcn.14000d7c8
mov edx, 6
lea rcx, [rsp + 0x60]
call fcn.14000f5ec
mov ebx, eax
test eax, eax
js 0x14000da00
mov rcx, qword [rsp + 0x60]
call fcn.14000e2c4
mov ebx, eax
jmp 0x14000da0a
cmp ebx, 0xc0000225
cmove ebx, r15d
test ebx, ebx
jns 0x14000da52
mov r8d, ebx
lea rdx, str.Unable_to_unload_store._Undoing_syspart_modifications._Status:__x
mov ecx, 4
call fcn.14000d7c8
call fcn.140016eb4
cmp eax, r12d
jne 0x14000da52
call fcn.14002066c
test eax, eax
jns 0x14000da52
call fcn.14002066c
jmp 0x14000da52
lea rdx, str.BcdSetSystemStoreDevice:_Invalid_parameter_supplied.
mov ecx, 4
call fcn.14000d7c8
mov ebx, 0xc000000d
test rdi, rdi
je 0x14000da7a
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x14000da9f
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
call fcn.14000ec0c
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret