joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007a590
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r8, r8
je 0x14007a6f2
cmp r8, 4
jb 0x14007a5d2
mov r9, r8
shr r9, 2
imul rax, r9, 0xfffffffffffffffc
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdx]
add rdx, 4
xor dword [rcx], eax
add rcx, 4
sub r9, 1
jne 0x14007a5c0
xor r10d, r10d
test r8, r8
je 0x14007a6f2
cmp r8, 8
jb 0x14007a6d4
lea r9, [rcx - 1]
lea rax, [rdx - 1]
add r9, r8
add rax, r8
cmp rcx, rax
ja 0x14007a604
cmp r9, rdx
jae 0x14007a6d4
mov r9, rdx
cmp r8, 0x40
jb 0x14007a698
mov r11, r8
mov qword [rsp], rbx
and r11d, 0x3f
mov rbx, r8
sub rbx, r11
lea rax, [rcx + 0x10]
sub r9, rcx
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [r9 + rax - 0x10]
movdqu xmm2, xmmword [r9 + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [r9 + rax - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [r9 + rax - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r10, rbx
jb 0x14007a630
mov rbx, qword [rsp]
cmp r11, 8
jb 0x14007a6cf
jmp 0x14007a69b
sub r9, rcx
mov r11, r8
and r11, 0xfffffffffffffff8
lea rax, [r10 + rcx]
nop word [rax + rax]
movq xmm0, qword [rax]
add r10, 8
movq xmm1, qword [r9 + rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp r10, r11
jb 0x14007a6b0
cmp r10, r8
jae 0x14007a6f2
sub rdx, rcx
lea r9, [r10 + rcx]
sub r8, r10
nop
movzx eax, byte [r9 + rdx]
xor byte [r9], al
lea r9, [r9 + 1]
sub r8, 1
jne 0x14007a6e0
add rsp, 8
ret
Function at 0x140085460
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1401151b0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14d, r8d
mov r12, rdx
mov qword [rsp + 0x28], rdx
mov rbx, rcx
add rcx, 8
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rcx, rax
mov qword [rsp + 0x30], rax
mov rax, qword [rax]
call qword [rax + 0x48]
mov r15d, eax
test eax, eax
je 0x14008564a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdi, rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rsi, rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
mov edi, eax
add edi, edi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x40]
add eax, edi
mov r13d, eax
mov rsi, qword [rbx + 0x28]
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x20], rdi
xor ebp, ebp
cmp rdi, r13
je 0x14008555e
test eax, eax
jne 0x140085513
mov r12d, ebp
jmp 0x14008551e
mov rcx, r13
call fcn.1400794f0
mov r12, rax
mov r8, rdi
cmp r13, rdi
cmovb r8, r13
test rsi, rsi
je 0x140085556
test r12, r12
je 0x140085542
test r8, r8
je 0x140085542
mov rdx, rsi
mov rcx, r12
call fcn.14008e360
mov rdi, rsi
xor eax, eax
mov rcx, qword [rsp + 0x20]
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.140013470
mov rsi, r12
mov r12, qword [rsp + 0x28]
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x18], 0xffffffffffffffff
cmp r14d, r15d
ja 0x140085592
test rsi, rsi
je 0x1400855bc
test r12, r12
je 0x1400855bc
test r14d, r14d
je 0x1400855bc
mov r8, r14
mov rdx, r12
mov rcx, rsi
call fcn.14008e360
jmp 0x1400855bc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdi, qword [rax]
mov r9, r14
mov r8, r12
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call qword [rdi + 0x60]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r14d, eax
mov r8d, r15d
sub r8d, r14d
mov ecx, r14d
add rcx, qword [rbx + 0x28]
xor edx, edx
call fcn.14008dfa0
test r15d, r15d
je 0x14008561f
mov rsi, rbp
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdi, qword [rbx + 0x28]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov edx, eax
add rdx, rdi
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rsi + rax]
xor cl, 0x5c
mov byte [rdx + rbp], cl
mov rax, qword [rbx + 0x28]
xor byte [rsi + rax], 0x36
lea rsi, [rsi + 1]
lea rbp, [rbp + 1]
sub r14, 1
jne 0x1400855e0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14008bbf0
mov rbx, qword [rsp + 0x108]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.HMAC:_can_only_be_used_with_a_block_based_hash_function
lea rcx, [rsp + 0x38]
call fcn.140003d60
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140005ba0
lea rdx, [0x140111b60]
lea rcx, [rsp + 0x60]
call fcn.14008e9d0
int3
Function at 0x14008ca88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008cad2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008cad2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008cad2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008cad2
cmp dword [rcx + 0x84], 0xe
jbe 0x14008cad2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14008cad4
xor al, al
add rsp, 0x28
ret

Function at 0x14009b374
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009b170

Function at 0x14009d278
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14008c8d0
sub rsp, rax
mov rax, qword [0x1401151b0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400afc30
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14009d2c7
mov rax, rbp
jmp 0x14009d3cf
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x11daa0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400b2e98
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x11daa0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14009d3cb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009d3cb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400b2e98
test rax, rax
js 0x14009d3cb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14009d3cb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14009d3bd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14009d3bd
cmp byte [rcx], 0xd
jne 0x14009d3a3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14009d3b2
cmp byte [rcx + 1], 0xa
jne 0x14009d3b2
inc rcx
jmp 0x14009d3b2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1155c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14009d385
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14009d3cf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008bbf0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400afd50
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400afd66
mov al, 1
jmp 0x1400afdc6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400afd77
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400afdc4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b897c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400afdc4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400afdc4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400afdc4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400afdc6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400b2238
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14011daa0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400b228f
cmp word [rdx], r13w
jne 0x1400b228f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400b2294
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400b23b9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400b23da
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400b22cd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400b22f4
cmp r9, r8
jae 0x1400b2304
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400b22ae
jmp 0x1400b23b9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b23ae
cmp dword [rsp + 0x80], esi
je 0x1400b23ae
lea r8, [0x14011daa0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400b2386
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400b2356
mov word [rbx], r13w
jmp 0x1400b23b6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400b2363
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400b23b6
cmp word [rsp + 0x70], r13w
jne 0x1400b2393
cmp rbx, r14
je 0x1400b2350
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400b2ea0
cmp word [rsp + 0x70], r13w
je 0x1400b23b9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14011daa0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400b23b3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400b23b9
Function at 0x1400b7c68
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400b7c98
xor eax, eax
jmp 0x1400b7d5b
mov rbp, rbx
cmp word [rax], si
je 0x1400b7cbd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b7ca4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b7ca0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400b54f8
movsxd r14, eax
test eax, eax
jne 0x1400b7cfb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b7c91
mov rcx, r14
call fcn.1400b2f44
mov rdi, rax
test rax, rax
jne 0x1400b7d14
xor ecx, ecx
call fcn.1400afbf4
jmp 0x1400b7cf0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400b54f8
test eax, eax
jne 0x1400b7d45
mov rcx, rdi
call fcn.1400afbf4
jmp 0x1400b7d4f
xor ecx, ecx
call fcn.1400afbf4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400baed0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400af830
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400baf71
cmp ebx, dword [rsp + 0x30]
je 0x1400baf6a
test esi, esi
je 0x1400baf6a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400baf45
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400baf52
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400baf2f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400baf56
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400baf73
mov eax, 1
jmp 0x1400baf73
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400beaf4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a2bf8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400beb7e
cmp byte [rbp - 0x21], r15b
je 0x1400beb79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400bebb4
call fcn.1400b17e4
test eax, eax
jne 0x1400beba0
cmp byte [rbp - 0x21], r15b
je 0x1400beb98
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400bebb4
cmp byte [rbp - 0x21], r15b
je 0x1400bebb1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400ac294
test eax, eax
jne 0x1400bec54
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a2bf8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400bebf3
cmp byte [rbp - 0x21], r15b
je 0x1400bec28
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400bec28
call fcn.1400b17e4
test eax, eax
jne 0x1400bec14
cmp byte [rbp - 0x21], r15b
je 0x1400bec0d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400bec28
cmp byte [rbp - 0x21], r15b
je 0x1400bec25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400ac294
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400bec54
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400bec57
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400bec65
mov rcx, rdi
call fcn.1400afbf4
cmp byte [rbp + 0x3f], r15b
je 0x1400bec74
mov rcx, qword [rbp + 0x27]
call fcn.1400afbf4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400bf7c0
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.1400b2ea0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400b2ea0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400bf910
cmp rax, 0xffffffffffffffff
je 0x1400bf910
xor edi, edi
test rbp, rbp
jle 0x1400bf8bb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b14a4
mov rbx, rax
test rax, rax
jne 0x1400bf848
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400bf8b1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ad888
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.1400b0bec
cmp eax, 0xffffffff
je 0x1400bf891
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400bf858
mov edx, r15d
mov ecx, r14d
call fcn.1400ad888
jmp 0x1400bf8b1
cmp byte [rsi + 0x38], dil
je 0x1400bf8a8
cmp dword [rsi + 0x34], 5
jne 0x1400bf8a8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400bf8b1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400afbf4
jmp 0x1400bf924
jns 0x1400bf924
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400b2ea0
cmp rax, 0xffffffffffffffff
jne 0x1400bf8dc
cmp byte [rsi + 0x30], dil
je 0x1400bf924
mov edi, dword [rsi + 0x2c]
jmp 0x1400bf924
mov ecx, r14d
call fcn.1400b897c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400bf924
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 0x1400bf924
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400bf91d
mov eax, dword [rsi + 0x2c]
jmp 0x1400bf922
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400b2ea0
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 0x414ac0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414c4b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x005c5498]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414b25
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414b34
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414b53
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414b63
cmp rbx, 0x1000
jae 0x414b2b
jmp 0x414bcd
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414b75
xor edx, edx
jmp 0x414bc4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x005c5498]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x414b59
jmp 0x414b48
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x005c5498]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004c8453]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004c893b]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004caad4]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x414c80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414ea6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x005c5498]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x414cf3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x414d02
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x414d25
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x414d35
cmp rbx, 0x1000
jae 0x414cf9
nop
jmp 0x414db8
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x414d4d
xor esi, esi
jmp 0x414daa
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x005c5498]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x414d2b
jmp 0x414d16
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x005c5498]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x414e40
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x004c8954]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x004c893b]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004c5316]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x414de0
call sym.runtime.printlock
lea rax, [0x004c8954]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004c893b]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004ca3b2]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS