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

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 2]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 2
jb 0x18000226a
mov rax, rcx
ret

Function at 0x180004238
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 5]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 5
jb 0x18000423e
mov rax, rcx
ret

Function at 0x180004254
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x56]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x2b
jb 0x18000425a
mov rax, rcx
ret

Function at 0x180004278
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x24]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x12
jb 0x18000427e
mov rax, rcx
ret

Function at 0x18000429c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x18]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0xc
jb 0x1800042a2
mov rax, rcx
ret

Function at 0x1800042c0
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x16]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0xb
jb 0x1800042c6
mov rax, rcx
ret

Function at 0x1800042e4
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x1a]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0xd
jb 0x1800042ea
mov rax, rcx
ret

Function at 0x180004308
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 8]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 4
jb 0x18000430e
mov rax, rcx
ret

Function at 0x18000432c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xa]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 5
jb 0x180004332
mov rax, rcx
ret
Function at 0x180002370
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
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, 0x20
mov rax, qword gs:[0x60]
mov r14, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov edi, dword [rdx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x180002417
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x180002417
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x1c4272fc
lea rcx, [rbx + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180002412
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1800023f0
cmp r8d, 0xcd72ddfa
je 0x18000241c
test r9d, r9d
jne 0x1800023d0
mov rax, qword [rax]
jmp 0x1800023a0
mov eax, dword [rdi + 0x24]
mov ecx, dword [rdi + 0x1c]
add rax, r10
add rcx, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
mov rcx, r14
add rdx, r10
call rdx
mov rcx, 0xffffffffffffffff
lea rbp, [rax + 1]
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.18000fcf0
mov rcx, qword gs:[0x60]
mov rsi, rax
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax + rax]
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov r11d, dword [rdx + r10 + 0x88]
add r11, r10
cmp r11, r10
je 0x1800024e7
mov r9d, dword [r11 + 0x18]
test r9d, r9d
je 0x1800024e7
mov edi, dword [r11 + 0x20]
nop word [rax + rax]
dec r9d
mov r8d, 0xa747cafb
lea rax, [rdi + r9*4]
mov edx, dword [rax + r10]
add rdx, r10
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x1800024e2
nop
movsx eax, al
lea rdx, [rdx + 1]
xor eax, r8d
imul r8d, eax, 0x1000193
movzx eax, byte [rdx - 1]
test al, al
jne 0x1800024c0
cmp r8d, 0x334262cb
je 0x1800024ec
test r9d, r9d
jne 0x1800024a0
mov rcx, qword [rcx]
jmp 0x180002470
mov ecx, dword [r11 + 0x24]
mov r8, rbp
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rdx, r14
add rax, r10
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180002530
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1800025d7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1800025d7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x860d1d56
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1800025d2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x1800025b0
cmp r8d, 0xc20bdc0a
je 0x1800025dc
test r9d, r9d
jne 0x180002590
mov rax, qword [rax]
jmp 0x180002560
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [rsp + 0x30]
add rax, r10
call rax
movd xmm0, dword [rsp + 0x30]
mov rax, rsi
movd xmm2, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x38]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm2, xmm2
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm2
movsd qword [rsi], xmm1
movsd qword [rsi + 8], xmm0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400084a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r11
push rdi
push r13
mov r11d, 0x60
mov rdi, qword gs:[r11]
push rdx
mov r11, rdi
add r11, 0x10
mov rdx, qword [r11]
add rdi, 0x18
mov r13, qword [rdi]
add r13, 0x10
mov rdi, qword [r13]
push r10

Function at 0x1400084f6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r13, rdi
add r13, 0x30
mov r11, qword [r13]
cmp r11, 0
je 0x14000850f
mov r13, qword [rdi + 0x60]
mov r10, qword [r13]
and r10d, 0xdf00df
mov r13, qword [r13 + 0xc]
or al, 0x45
shl ebp, 8
add r13d, r10d
shl r13d, 2
sub r13d, 0xc914cd2c
cmp r13, 0
je 0x140008517
invalid
mov rdi, qword [rdi]
jmp 0x1400084cf
mov edi, dword [r11 + 0x3c]
add rdi, r11
add rdi, 0x10
mov r13d, dword [rdi + 0x78]
add r13, r11
push rcx
mov r10d, dword [r13 + 0x20]
add r10, r11
mov ecx, dword [r10]
add rcx, r11
mov edi, dword [rcx + 0xb]
add edi, 0xff8b9c9b
test edi, edi
jne 0x140008546
jmp 0x140008554
inc r10
inc r10
inc r10
inc r10
jmp 0x140008531
mov edi, dword [r13 + 0x20]
sub r10, r11
sub r10, rdi
shr r10d, 1
mov edi, dword [r13 + 0x24]
add rdi, r10
add rdi, r11
mov r10d, dword [rdi]
shl r10d, 0x10
shr r10d, 0xe
mov edi, dword [r13 + 0x1c]
add rdi, r10
add rdi, r11
mov r10d, dword [rdi]
add r10, r11
movabs rdi, 0x8c000
add byte [rax], al
add byte [rdx + 3], cl
cli
push r11
push rdx
push rdi
push rcx
push rcx
push rdi
mov rcx, rdi
mov edx, 0x55000
mov r9, rsp
sub r8, r8
add r8, 0x40
call r10
pop r13
pop rcx
pop rcx
pop rdi
pop rdx
movabs r11, 0x1507
mov r13d, 0x3b2c0
push r10
mov r10d, 0x1e
imul r11d, r10d
movabs r10, 0x34f
add r10, rdx
add r11, r10
call fcn.140008607
mov edi, 0xcd000
mov r11d, 0x63e21
add r11, rdx
add rdi, rdx
mov r13d, 0x3ad0
call fcn.140008607
pop r10
jmp 0x140008634
mov r11d, 0x8000000
mov r13d, 0x108
mov edi, 0x8c000
mov r10d, 0xf
imul r13d, r10d
add r13d, 0x88
add rdi, rdx
sub rdi, r13
mov r13, rdi
sub r13, r11
movabs r11, 0x68a21
add r11, rdx
mov r10d, dword [r11]
xor r10d, 0xe76da09c
pushfq
movabs al, byte [0xd28545caff4de76d]
je 0x140008693
add r10, rdi
mov rcx, qword [r10]
add rcx, r13
invalid
invalid
Function at 0x140008502
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r13, rdi
add r13, 0x30
mov r11, qword [r13]
cmp r11, 0
je 0x14000850f
mov r13, qword [rdi + 0x60]
mov r10, qword [r13]
and r10d, 0xdf00df
mov r13, qword [r13 + 0xc]
or al, 0x45
shl ebp, 8
add r13d, r10d
shl r13d, 2
sub r13d, 0xc914cd2c
cmp r13, 0
je 0x140008517
invalid
mov rdi, qword [rdi]
jmp 0x1400084cf
mov edi, dword [r11 + 0x3c]
add rdi, r11
add rdi, 0x10
mov r13d, dword [rdi + 0x78]
add r13, r11
push rcx
mov r10d, dword [r13 + 0x20]
add r10, r11
mov ecx, dword [r10]
add rcx, r11
mov edi, dword [rcx + 0xb]
add edi, 0xff8b9c9b
test edi, edi
jne 0x140008546
jmp 0x140008554
inc r10
inc r10
inc r10
inc r10
jmp 0x140008531
mov edi, dword [r13 + 0x20]
sub r10, r11
sub r10, rdi
shr r10d, 1
mov edi, dword [r13 + 0x24]
add rdi, r10
add rdi, r11
mov r10d, dword [rdi]
shl r10d, 0x10
shr r10d, 0xe
mov edi, dword [r13 + 0x1c]
add rdi, r10
add rdi, r11
mov r10d, dword [rdi]
add r10, r11
movabs rdi, 0x8c000
add byte [rax], al
add byte [rdx + 3], cl
cli
push r11
push rdx
push rdi
push rcx
push rcx
push rdi
mov rcx, rdi
mov edx, 0x55000
mov r9, rsp
sub r8, r8
add r8, 0x40
call r10
pop r13
pop rcx
pop rcx
pop rdi
pop rdx
movabs r11, 0x1507
mov r13d, 0x3b2c0
push r10
mov r10d, 0x1e
imul r11d, r10d
movabs r10, 0x34f
add r10, rdx
add r11, r10
call fcn.140008607
mov edi, 0xcd000
mov r11d, 0x63e21
add r11, rdx
add rdi, rdx
mov r13d, 0x3ad0
call fcn.140008607
pop r10
jmp 0x140008634
mov r11d, 0x8000000
mov r13d, 0x108
mov edi, 0x8c000
mov r10d, 0xf
imul r13d, r10d
add r13d, 0x88
add rdi, rdx
sub rdi, r13
mov r13, rdi
sub r13, r11
movabs r11, 0x68a21
add r11, rdx
mov r10d, dword [r11]
xor r10d, 0xe76da09c
pushfq
movabs al, byte [0xd28545caff4de76d]
je 0x140008693
add r10, rdi
mov rcx, qword [r10]
add rcx, r13
invalid
invalid

Function at 0x140008744
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x140008791
cmp rcx, 0xffffffffffffffff
je 0x140008791
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008789
cmp dword [rcx + 0x3c], edx
jl 0x140008789
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008789
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008791
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001de0
Capabilities:
Execute command

Disassembly:
push rbp
push rsi
sub rsp, 0x58
mov rbp, qword [rcx + 0x10]
mov rsi, rcx
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rbp
cmp rax, 6
jb 0x140001f6a
cmp qword [rsi + 0x18], 0xf
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x50], r14
jbe 0x140001e24
mov rsi, qword [rsi]
lea r14, [rbp + 6]
mov ebx, 0xf
lea rdi, [rsp + 0x20]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
cmp r14, rbx
jbe 0x140001ec2
mov rbx, r14
or rbx, 0xf
cmp rbx, rcx
jbe 0x140001e84
movabs rax, 0x8000000000000000
mov rbx, rcx
add rax, 0x27
mov rcx, rax
call fcn.140003c70
test rax, rax
je 0x140001f40
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001ebd
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140001eac
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001f70
jmp 0x140001e65
test rcx, rcx
je 0x140001ebb
call fcn.140003c70
mov rdi, rax
jmp 0x140001ebd
xor edi, edi
mov qword [rsp + 0x20], rdi
mov eax, dword [str.mkdir]
lea rcx, [rdi + 6]
mov qword [rsp + 0x30], r14
mov r8, rbp
mov qword [rsp + 0x38], rbx
mov rdx, rsi
mov dword [rdi], eax
movzx eax, word [0x1400056cc]
mov word [rdi + 4], ax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r14], 0
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x38]
mov ebx, eax
cmp rdx, 0xf
jbe 0x140001f4c
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f47
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f47
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003cac
mov rdi, qword [rsp + 0x80]
test ebx, ebx
mov rbx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x50]
sete al
add rsp, 0x58
pop rsi
pop rbp
ret
call fcn.140001d00
int3
call fcn.140001c60
int3
Function at 0x1400027c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400027e1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000280e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002810
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002869
test ecx, ecx
jle 0x140002849
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002869
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002869
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140002890
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400028b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400028c1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400028e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400028e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002922
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400029be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000295d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000299e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400029be
cmp rbx, rax
ja 0x140002970
test rbx, rbx
je 0x1400029be
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002e20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002e4d
xor eax, eax
jmp 0x140002fb9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002e87
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002e87
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002fb9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002fac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002eca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002ef5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002fb1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002f64
sub eax, 1
je 0x140002f64
cmp eax, 2
jne 0x140002fac
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002fb1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002f92
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002fac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002fb1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003c50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003470
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003543
cmp byte [rcx + 0x71], 0
je 0x140003543
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000353f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003504
sub eax, 1
je 0x140003508
cmp eax, 2
jne 0x14000353f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003c50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003536
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000353f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400034ec
xor al, al
jmp 0x1400034ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003c50
add rsp, 0x60
pop rbx
ret

Function at 0x1400045d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000461a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000461a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000461a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000461a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000461a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000461c
xor al, al
add rsp, 0x28
ret
Function at 0x100005444
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push r12
push r13
sub rsp, 0x30
and dword [rax + 8], 0
and qword [rax + 0x20], 0
and dword [rax + 0x18], 0
mov dword [rax + 0x10], 4
mov rcx, qword [0x100018120]
lea r12, [0x100018120]
lea r13, [0x100004260]
cmp rcx, r12
je 0x10000549b
cmp byte [rcx + 0x19], 4
jb 0x10000549b
test byte [rcx + 0x1c], 1
je 0x10000549b
mov rcx, qword [rcx + 0x10]
mov edx, 0x1a
mov r8, r13
call fcn.100004b08
lea rax, [rsp + 0x68]
lea rdx, [0x100004290]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x100018158], 0xea60
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x10000550f
mov rcx, qword [0x100018120]
cmp rcx, r12
je 0x1000055ea
cmp byte [rcx + 0x19], 4
jb 0x1000055c5
test byte [rcx + 0x1c], 1
je 0x1000055c5
mov rcx, qword [rcx + 0x10]
mov edx, 0x1b
mov r9d, eax
mov r8, r13
call fcn.100004b2c
jmp 0x1000055be
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, [0x1000042e8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x100005571
mov rcx, qword [0x100018120]
cmp rcx, r12
je 0x1000055b3
cmp byte [rcx + 0x19], 1
jb 0x1000055b3
test byte [rcx + 0x1c], 1
je 0x1000055b3
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r9d, eax
mov r8, r13
call fcn.100004b2c
jmp 0x1000055b3
cmp dword [rsp + 0x50], 4
jne 0x10000558b
cmp dword [rsp + 0x58], 4
jne 0x10000558b
mov eax, dword [rsp + 0x60]
mov dword [0x100018158], eax
jmp 0x1000055b3
mov ebx, 0x139f
mov rcx, qword [0x100018120]
cmp rcx, r12
je 0x1000055b3
test byte [rcx + 0x1c], 1
je 0x1000055b3
mov rcx, qword [rcx + 0x10]
mov edx, 0x1d
mov r8, r13
call fcn.100004b08
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100018120]
cmp rcx, r12
je 0x1000055ea
cmp byte [rcx + 0x19], 4
jb 0x1000055ea
test byte [rcx + 0x1c], 1
je 0x1000055ea
mov rcx, qword [rcx + 0x10]
mov edx, 0x1e
mov r9d, ebx
mov r8, r13
call fcn.100004b2c
add rsp, 0x30
pop r13
pop r12
pop rbx
ret