joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180040ac0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180040af1
xor eax, eax
lea r8, [0x18003fde0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

Function at 0x1800415f0
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.0x180041611
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 0x18004163e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180041640
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180041699
test ecx, ecx
jle 0x180041679
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 0x180041699
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180041699
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
sub al, byte [rax + 0x4a]
iretd
Function at 0x1800416c0
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 0x1800416e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1800416f1
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 0x180041714
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180041716
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180041752
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 0x1800417ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18004178d
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 0x1800417ce
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 0x1800417ee
cmp rbx, rax
ja 0x1800417a0
test rbx, rbx
je 0x1800417ee
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
sar byte [rdi - 0x6e43fff7], cl
push rdx
stc
add dword [rax + 0x5c9c8ef2], eax
mov bl, 0xff
test eax, 0x7efff2ba
test dword [rdi + 0x2e], ecx
xlatb
stc
jae 0x180476f65
adc byte [rax - 0x5ff80028], ch
invalid
and al, bh
clc
jns 0x180476f64
cmp al, 0x5f
cmp dl, byte [rbx + rdx*2 - 1]
push r14
call qword [rdx]
jge 0x180476f3c
stc
fstpnce st(6), st(0)
stc
movabs word [0x56fcf4a402afcfc], ax
sub al, byte [rax + 0x4a]
iretd
outsd dx, dword [rsi]
invalid
invalid
Function at 0x180041c50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1803ce040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180041c7d
xor eax, eax
jmp 0x180041de9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180041cb7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180041cb7
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 0x180041de9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180041ddc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180041cfa
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 0x180041d25
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 0x180041de1
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 0x180041d94
sub eax, 1
je 0x180041d94
cmp eax, 2
jne 0x180041ddc
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 0x180041de1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180041dc2
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 0x180041ddc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180041de1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800457e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180042e00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1803ce040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180042ed3
cmp byte [rcx + 0x71], 0
je 0x180042ed3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180042ecf
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 0x180042e94
sub eax, 1
je 0x180042e98
cmp eax, 2
jne 0x180042ecf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800457e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180042ec6
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 0x180042ecf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180042e7c
xor al, al
jmp 0x180042e7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800457e0
add rsp, 0x60
pop rbx
ret
Function at 0x1800586f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2d8]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.180047530
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x180058746
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x18005879d
mov ebp, 0x4b0000
jmp 0x1800587ab
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.180049b10
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x1800587c1
mov eax, r12d
jmp 0x1800587ca
mov edx, edi
mov ecx, ebp
call fcn.180049b10
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x1800587e6
shl esi, 0x10
mov ecx, esi
jmp 0x1800588d5
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x180058844
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.180047530
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x180058834
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.180049900
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.180047530
add ebx, eax
jmp 0x1800588de
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x180058851
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x180058890
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.180047530
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x180058895
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.180049900
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.180047530
add ebx, eax
jmp 0x1800588de
cmp eax, r12d
jge 0x1800588ce
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.180047530
sub ebp, eax
sub r15d, esi
je 0x1800588ce
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.180049900
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.180047530
add ebx, eax
jmp 0x1800588de
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.180047530
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
call fcn.180047530
mov r15, qword [rsp + 0x30]
add eax, 0x8000
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
shr eax, 0x10
cwde
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
Function at 0x1800912c0
Capabilities:
Encrypt data using rc4 prga
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 [rcx + 0x20]
xor r14d, r14d
sub rax, 0x34
mov qword [rcx + 0x78], r14
mov qword [rcx + 0x28], rax
mov ebp, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r14w
mov esi, r14d
mov dword [rcx + 0x3c], r14d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r14w
cmp r14w, word [rcx + 0xb8]
jge 0x18009140b
movzx r10d, r14w
mov edi, r14d
mov rax, qword [rbx + 0xd0]
mov r9d, ebp
mov dword [rbx + 0x88], r14d
movzx edx, r10w
mov qword [rbx + 0x80], r14
mov rcx, rbx
movzx r8d, word [rdi + rax]
call fcn.180091780
test al, al
jne 0x1800914a6
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
movzx r10d, word [rdi + rax]
lea eax, [r8 - 1]
test edx, eax
jne 0x18009139b
cmp edx, dword [rbx + 0x60]
jl 0x18009139b
cmp edx, dword [rbx + 0x64]
jg 0x18009139b
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x18009139b
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x18009139b
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1800913be
test byte [r9 + 0x18], 8
je 0x1800913be
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1800913cf
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.180092140
test al, al
jne 0x1800914a6
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1800913f2
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc esi
add rdi, 2
inc r10w
cmp esi, eax
jl 0x180091324
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1800914aa
test rdx, rdx
je 0x1800914aa
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x180091448
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x18009144b
mov r10, r14
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x180091466
dec r11d
add r11d, eax
jmp 0x18009147d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.180092400
test al, al
jne 0x1800914a6
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.180092400
test al, al
jne 0x1800914a6
mov rdx, qword [rsi]
add di, bp
jne 0x180091430
jmp 0x1800914ae
mov al, 1
jmp 0x1800914b9
mov qword [rbx + 0x78], r14
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180001690
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov r12, r9
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x18000184d
test r9, r9
je 0x18000184d
movsxd r8, dword [rcx + 0x3d0]
xor edx, edx
mov rax, r9
div r8
test rdx, rdx
jne 0x18000184d
mov ecx, dword [rsp + 0x60]
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
cmp ecx, 1
jne 0x18000177a
mov r15d, ebp
test rax, rax
je 0x18000183e
lea r14, [rbx + 0x3f8]
mov rax, r14
cmp byte [rbx + 8], bpl
je 0x180001735
mov edx, ebp
test r8d, r8d
jle 0x180001735
mov r8, rsi
sub r8, r14
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
inc edx
xor byte [rax], cl
lea rax, [rax + 1]
cmp edx, dword [rbx + 0x3d0]
jl 0x180001720
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.180001860
movsxd r8, dword [rbx + 0x3d0]
mov rdx, rdi
mov rcx, r14
call fcn.1800370a0
movsxd r8, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc r15d
div r8
add rsi, r8
mov ecx, r15d
add rdi, r8
cmp rcx, rax
jb 0x180001705
jmp 0x18000183e
cmp ecx, 2
jne 0x18000180d
mov r14d, ebp
test rax, rax
je 0x18000183e
nop
mov r8, rdi
lea rdx, [rbx + 0x3f8]
mov rcx, rbx
call fcn.180001860
mov rcx, rdi
cmp byte [rbx + 8], bpl
je 0x1800017d5
mov edx, ebp
cmp dword [rbx + 0x3d0], edx
jle 0x1800017d5
mov r8, rsi
sub r8, rdi
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
inc edx
xor byte [rcx], al
lea rcx, [rcx + 1]
cmp edx, dword [rbx + 0x3d0]
jl 0x1800017c0
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rdi
call fcn.1800370a0
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc r14d
div rcx
add rsi, rcx
add rdi, rcx
mov ecx, r14d
cmp rcx, rax
jb 0x180001790
jmp 0x18000183e
test rax, rax
je 0x18000183e
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.180001860
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc ebp
div rcx
add rsi, rcx
add rdi, rcx
mov ecx, ebp
cmp rcx, rax
jb 0x180001812
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x180002750
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180002a40
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rax - 0x58], 0xfffffffffffffffe
mov rbp, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
xor edi, edi
mov dword [rax - 0x64], edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov dword [rax - 0x64], 1
mov ecx, 0x208
call fcn.1800198a4
mov r12, rax
movzx eax, di
mov rdi, r12
mov ecx, 0x104
rep stosw word [rdi], ax
mov r13d, 0x20019
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, eax
test eax, eax
jne 0x180002c8e
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test eax, eax
jne 0x180002c83
cmp dword [rsp + 0x30], 0x104
jbe 0x180002b67
mov rcx, r12
call fcn.1800191b4
mov ecx, dword [rsp + 0x30]
inc ecx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800198a4
mov r12, rax
mov ecx, dword [rsp + 0x30]
add ecx, 1
je 0x180002b67
movzx eax, di
mov rdi, r12
rep stosw word [rdi], ax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
mov r14d, dword [rsp + 0x30]
mov rsi, qword [rbx + 0x18]
cmp r14, rsi
ja 0x180002bc8
mov rbp, rbx
cmp rsi, 8
jb 0x180002ba7
mov rbp, qword [rbx]
mov qword [rbx + 0x10], r14
lea rdi, [r14 + r14]
mov r8, rdi
mov rdx, r12
mov rcx, rbp
call fcn.1800370a0
xor eax, eax
mov word [rdi + rbp], ax
jmp 0x180002c63
mov rdi, r14
or rdi, 7
mov rcx, rsi
shr rcx, 1
movabs rdx, 0x7ffffffffffffffe
mov rax, rdx
sub rax, rcx
cmp rsi, rax
jbe 0x180002bef
mov rdi, rdx
jmp 0x180002bfa
lea rax, [rcx + rsi]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
mov rcx, rbx
call fcn.1800027b0
mov rbp, rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], rdi
lea rdi, [r14 + r14]
mov r8, rdi
mov rdx, r12
mov rcx, rax
call fcn.1800370a0
xor eax, eax
mov word [rdi + rbp], ax
cmp rsi, 8
jb 0x180002c60
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180002c5b
add rdx, 0x27
mov rdi, qword [rcx - 8]
sub rcx, rdi
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002cc5
mov rcx, rdi
call fcn.1800191b4
mov qword [rbx], rbp
mov rcx, r12
call fcn.1800191b4
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r15d, 2
jne 0x180002cb1
cmp rsi, 0xffffffff80000002
jne 0x180002cb1
cmp r13d, 0x20019
jne 0x180002cb1
mov r13d, 0x20219
jmp 0x180002ac0
mov rax, rbx
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.18003abd4
int3
Function at 0x1800031a0
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor bl, bl
xor ebp, ebp
mov r12, r8
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], rbp
je 0x18000331f
cmp qword [rdx + 0x10], rbp
je 0x18000331f
cmp qword [rdx + 0x18], 0x10
mov rcx, rdx
mov qword [rsp + 0x80], r15
jb 0x1800031e1
mov rcx, qword [rdx]
lea rdx, [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov r15d, eax
test eax, eax
je 0x18000331a
mov ecx, r15d
mov qword [rsp + 0x78], r14
lea rdx, [0x18008b110]
call fcn.1800199d4
mov r14, rax
test rax, rax
je 0x1800032ff
cmp qword [rdi + 0x18], 0x10
jb 0x180003220
mov rdi, qword [rdi]
mov edx, dword [rsp + 0x70]
mov r9, r14
mov r8d, r15d
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1800032ea
lea r9, [rsp + 0x88]
mov rcx, r14
lea r8, [rsp + 0x30]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1800032ea
mov rax, qword [rsp + 0x30]
lea rdx, [0x18008b110]
mov ecx, 0x80
movzx edi, word [rax]
movzx eax, word [rax + 2]
shl edi, 0x10
or edi, eax
call fcn.1800199d4
mov rbp, rax
test rax, rax
je 0x1800032ea
cmp qword [rsi + 0x18], 0x10
jb 0x180003292
mov rsi, qword [rsi]
mov r9d, edi
mov qword [rsp + 0x20], rsi
lea r8, str.StringFileInfo_08lx_s
mov edx, 0x80
mov rcx, rbp
call fcn.1800033d0
lea r9, [rsp + 0x88]
mov rdx, rbp
lea r8, [rsp + 0x38]
mov rcx, r14
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1800032e8
mov rdx, qword [rsp + 0x38]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1800032d6
mov rcx, r12
call fcn.180002230
mov bl, 1
mov rcx, r14
call fcn.1800191b4
test rbp, rbp
je 0x1800032ff
mov rcx, rbp
call fcn.1800191b4
mov r14, qword [rsp + 0x78]
movzx eax, bl
mov r15, qword [rsp + 0x80]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx eax, bl
jmp 0x180003307
movzx eax, bl
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180004a60
Capabilities:
Check if file exists
Create directory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rdi, 0xffffffffffffffff
mov r13, rdx
mov rbx, rdi
mov rsi, rcx
xor bpl, bpl
nop
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x180004a80
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180004aa1
mov al, 1
add rsp, 0x20
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x50], r12
mov eax, 2
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], r15
lea r15, [rbx + 1]
mul r15
cmovo rax, rdi
mov rcx, rax
call fcn.1800198a4
xor r12d, r12d
mov r14, rax
test r15, r15
je 0x180004ae0
movzx eax, r12w
mov rdi, r14
mov rcx, r15
rep stosw word [rdi], ax
mov r8, rsi
mov rdx, r15
mov rcx, r14
call fcn.18003af0c
mov r15, qword [rsp + 0x68]
mov rdi, r12
nop word [rax + rax]
movzx esi, word [r14 + rdi*2]
cmp si, 0x5c
je 0x180004b11
cmp si, 0x2f
jne 0x180004b53
mov rcx, r14
mov word [r14 + rdi*2], r12w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180004b4e
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x180004b5d
mov rcx, qword [r13 + 0x38]
mov bpl, 1
test rcx, rcx
je 0x180004b4e
mov qword [rsp + 0x60], r14
lea rdx, [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov word [r14 + rdi*2], si
inc rdi
cmp rdi, rbx
jbe 0x180004b00
jmp 0x180004b60
xor bpl, bpl
mov rcx, r14
call fcn.1800191b4
mov r14, qword [rsp + 0x58]
movzx eax, bpl
mov r12, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180004c80
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800880c8]
xor rax, rsp
mov qword [rsp + 0x250], rax
movzx ebx, r8b
mov qword [rsp + 0x30], rcx
mov edi, edx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180037b70
mov edx, edi
lea rax, [rsp + 0x40]
bts edx, 0xf
mov qword [rsp + 0x20], rax
test bl, bl
cmove edx, edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rsi + 0x18], 7
test eax, eax
je 0x180004cfe
xor eax, eax
mov qword [rsi + 0x10], rax
mov word [rsi], ax
jmp 0x180004d2b
xor eax, eax
mov r8, 0xffffffffffffffff
mov qword [rsi + 0x10], rax
mov word [rsi], ax
lea rax, [rsp + 0x40]
inc r8
cmp word [rax + r8*2], 0
jne 0x180004d13
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180002d40
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180019940
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret