joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070e4]
mov rbx, rcx
test esi, esi
jle 0x140001b50
mov rax, qword [0x1400070e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001af5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a50
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001b72
mov rax, qword [0x1400070e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001aee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b00
add dword [0x1400070e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001a78
mov rax, qword [0x1400070e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400020e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007120]
test rbx, rbx
je 0x14000213c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002133
test rsi, rsi
je 0x140002133
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002118
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002350
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002368
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002370
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002380
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400023cd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400023c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400023cf
add rax, 0x28
cmp rax, r9
jne 0x1400023b0
xor eax, eax
ret

Function at 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002460
mov rdx, qword [0x140004410]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000244e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000244e
cmp word [rax + 0x18], 0x20b
jne 0x14000244e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002460
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002439
add rbx, 0x28
cmp rbx, rdi
je 0x140002460
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002430
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004410]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002490
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002498
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002490
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400024ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002490
add rax, 0x28
cmp rax, r9
jne 0x1400024d0
xor eax, eax
ret

Function at 0x1400024f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004410]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000250f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002518
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000250f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002530
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004410]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002550
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002558
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002550
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400025a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002597
test rcx, rcx
je 0x140002550
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002588
xor eax, eax
ret
Function at 0x1400025b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004410]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400025cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400025d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400025f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004410]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002610
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002618
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002610
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002610
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002664
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002670
add rdx, 0x28
cmp r9, rdx
jne 0x140002650
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002680
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004410]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400026a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400026b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400026a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400026a2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002705
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002718
add rdx, 0x28
cmp rdx, r10
jne 0x1400026f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002727
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002737
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000270e
test ecx, ecx
jg 0x140002720
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400029d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x88]
mov eax, eax
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x30]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x50], rax
mov dword [rbp - 4], 0
jmp 0x140002b1b
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x48]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x54], eax
mov edx, dword [rbp - 0x54]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x60]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], 0
mov rdx, qword [rbp - 0x68]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call method.hash.returnhash_char_
mov dword [rbp - 0x74], eax
mov eax, dword [rbp - 0x74]
cmp eax, dword [rbp + 0x20]
jne 0x140002b17
mov eax, dword [rbp - 4]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x50]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov eax, dword [rax]
mov eax, eax
mov qword [rbp - 0x70], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x70]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
jmp 0x140002b2f
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x14]
cmp dword [rbp - 4], eax
jb 0x140002a87
mov rax, qword [rbp - 0x10]
add rsp, 0xa0
pop rbp
ret
Function at 0x1400f9d20
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x1400f9d50
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400f9d5e
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401f2c70
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400f9d74
mov rdi, rdx
jmp 0x1400f9d35
jae 0x1400f9e61
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400f9d81
cvtsi2ss xmm0, rax
jmp 0x1400f9d96
mov rcx, rdx
call fcn.1401ee130
mov rdi, rax
jmp 0x1400f9d35
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.1402728d0
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1403bd838]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1400f9e49
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1400f9e49
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1400f9e51
mov rcx, rdx
call fcn.1401ee130
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x1400f9d3e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400fc550
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
invalid
invalid
Function at 0x1804ed058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1804ed1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1804ed089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1804ed06f
add dl, dl
jne 0x1804ed096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1804ed0f6
xor eax, eax
add dl, dl
jne 0x1804ed0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1804ed1ad
add dl, dl
jne 0x1804ed0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804ed0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804ed0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804ed0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1804ed0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1804ed07e
mov eax, 1
add dl, dl
jne 0x1804ed106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804ed113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1804ed0fb
sub eax, ebx
mov ebx, 1
jne 0x1804ed14c
mov ecx, 1
add dl, dl
jne 0x1804ed12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1804ed13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1804ed123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1804ed07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1804ed168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1804ed175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1804ed15d
cmp eax, 0x7d00
jae 0x1804ed19b
cmp eax, 0x500
jb 0x1804ed196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1804ed07e
cmp eax, 0x7f
ja 0x1804ed19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1804ed07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1804ed1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1804ed07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005d80
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1400b3668]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, 4
mov eax, eax
mov ecx, dword [0x1400b5428]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x1400b4c30], eax
jle 0x140005e25
lea rcx, [0x1400b4c30]
call fcn.140027ad0
cmp dword [0x1400b4c30], 0xffffffff
jne 0x140005e25
lea rdx, [0x140051e20]
lea rcx, [rsp + 0x38]
call fcn.14000cd80
nop
lea r8, [rsp + 0x38]
mov rdx, qword [0x1400b4bc8]
mov rcx, qword [rsp + 0x80]
call fcn.1400060c0
mov qword [0x1400b4c28], rax
lea rcx, [rsp + 0x38]
call fcn.14000e740
nop
lea rcx, [0x1400b4c30]
call fcn.140027a70
cmp qword [0x1400b4c28], 0
jne 0x140005e5c
lea rdx, str.____Failed_to_find_MmUnmapLockedPages
lea rcx, [0x1400b5020]
call fcn.140007530
mov qword [rsp + 0x30], rax
lea rdx, [0x14000c0b0]
mov rcx, qword [rsp + 0x30]
call fcn.14000efd0
xor al, al
jmp 0x140005e8a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x88]
mov r8, qword [0x1400b4c28]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call fcn.140008d90
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140027d50
add rsp, 0x78
ret
Function at 0x140006d30
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1400b3668]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rax, [0x140051278]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140006d7a
xor al, al
jmp 0x140006de5
mov rcx, qword [rsp + 0x70]
call fcn.14002ea90
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, str.name
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140006dd8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x140006de5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140027d50
add rsp, 0x68
ret
Function at 0x1400108b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1400b3668]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x1400108ed
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400108f4
mov al, 1
jmp 0x140010a4c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140015d00
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140015d00
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.140015d50
movzx eax, al
test eax, eax
je 0x14001094b
xor al, al
jmp 0x140010a4c
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call fcn.140018180
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400109ba
cmp dword [rsp + 0x30], 1
je 0x1400109c6
cmp dword [rsp + 0x30], 3
je 0x140010a3a
jmp 0x140010a4a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140010a11
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.14002fdb0
cmp qword [rsp + 0x48], rax
je 0x140010a11
xor al, al
jmp 0x140010a4c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140010a2b
mov dword [rsp + 0x34], 1
jmp 0x140010a33
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x140010a4c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140010a4c
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140027d50
add rsp, 0xa8
ret
Function at 0x140016ac0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x1400b3668]
xor rax, rsp
mov qword [rsp + 0xc0], rax
call fcn.140015d00
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x50]
call fcn.140015d50
movzx eax, al
test eax, eax
je 0x140016b16
lea rcx, [rsp + 0xe8]
call fcn.140016940
jmp 0x140016d8a
mov rcx, qword [rsp + 0xe0]
call fcn.140016fb0
test rax, rax
je 0x140016b82
mov rcx, qword [rsp + 0xe0]
call fcn.140016fb0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xe0]
call fcn.140015d20
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x140016b82
lea rcx, [rsp + 0xe8]
call fcn.140015f00
mov byte [rsp + 0x40], al
mov rcx, qword [rsp + 0xe0]
call fcn.140013010
movzx ecx, byte [rsp + 0x40]
mov byte [rax], cl
mov eax, dword [rsp + 0xe8]
jmp 0x140016d8a
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x80], 0
jne 0x140016b9e
call fcn.140015d00
jmp 0x140016d8a
mov rcx, qword [rsp + 0xe0]
call fcn.1400131e0
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x68], 0
jne 0x140016c14
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xe8]
call fcn.140015f00
mov byte [rsp + 0x41], al
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rsp + 0x41]
call fcn.14000a7b0
movzx eax, al
test eax, eax
je 0x140016c02
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x48], eax
jmp 0x140016c0b
call fcn.140015d00
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
jmp 0x140016d8a
mov qword [rsp + 0x78], 0x20
lea rcx, [rsp + 0xe8]
call fcn.140015f00
mov byte [rsp + 0x90], al
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb8]
lea rcx, [rsp + 0x91]
mov rdx, qword [rsp + 0xe0]
add rdx, 0x74
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call fcn.140016a40
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140016cc1
cmp dword [rsp + 0x44], 1
je 0x140016cc1
cmp dword [rsp + 0x44], 3
je 0x140016d46
jmp 0x140016d85
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140016d18
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x98]
call fcn.14002fdb0
cmp qword [rsp + 0x58], rax
je 0x140016d18
call fcn.140015d00
jmp 0x140016d8a
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x90]
cmp qword [rsp + 0x88], rax
je 0x140016d3f
mov eax, dword [rsp + 0xe8]
jmp 0x140016d8a
call fcn.140015d00
jmp 0x140016d8a
mov rax, qword [rsp + 0xe0]
mov rdx, qword [rax + 0x80]
movzx ecx, byte [rsp + 0x90]
call fcn.14000a7b0
movzx eax, al
test eax, eax
je 0x140016d76
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x4c], eax
jmp 0x140016d7f
call fcn.140015d00
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
jmp 0x140016d8a
call fcn.140015d00
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140027d50
add rsp, 0xd8
ret
Function at 0x140018560
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1400b3668]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140018594
xor eax, eax
jmp 0x14001878a
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x1400185c5
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1400187a0
jmp 0x14001878a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.140011c60
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140018673
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14000c1f0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.1400162a0
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140014400
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140016190
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14001877a
mov rcx, qword [rsp + 0x80]
call fcn.1400131e0
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x140018728
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002f848
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140018723
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14001878a
jmp 0x14001869f
cmp qword [rsp + 0x50], 0
jbe 0x14001877a
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002f848
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140027d50
add rsp, 0x78
ret