joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000be60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
cmp edx, 1
jne 0x18000bfa6
cmp qword [0x180013028], rbx
jne 0x18000bfa6
lea rax, [0x180013520]
mov qword [0x180013520], 0xf4240
mov qword [0x180013030], rax
lea rdx, str.SDL3.dll
lea rax, [0x180013030]
mov qword [0x180013528], rbx
lea rcx, [rsp + 0x68]
mov qword [0x180013028], rax
mov byte [0x180013518], bl
call fcn.180003b00
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x18000bf3a
mov edx, 0x5a4d
mov rcx, rax
cmp word [rax], dx
cmovne rcx, rbx
test rcx, rcx
je 0x18000bf3a
movsxd r8, dword [rcx + 0x3c]
add r8, rax
cmp dword [r8], 0x4550
cmovne r8, rbx
test r8, r8
je 0x18000bf3a
movzx edx, word [r8 + 0x14]
movzx ecx, word [r8 + 6]
add rdx, 0x18
add rdx, r8
lea rcx, [rcx + rcx*4]
lea r8, [rdx + rcx*8]
cmp rdx, r8
je 0x18000bf3a
test dword [rdx + 0x24], 0x20000000
je 0x18000bf31
cmp dword [rdx], 0x7865742e
jne 0x18000bf31
cmp byte [rdx + 4], 0x74
je 0x18000bfc7
add rdx, 0x28
cmp rdx, r8
jne 0x18000bf16
mov rcx, rbx
mov rax, rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x28], rcx
lea rcx, [0x180013038]
mov qword [rsp + 0x20], rax
call fcn.180005f90
lea r9, [rsp + 0x20]
mov byte [0x180013518], 0xff
lea r8, [rsp + 0x68]
xor edx, edx
lea rcx, [0x180013038]
call fcn.180001010
mov rcx, qword [0x180013038]
mov byte [0x180013518], 1
test rcx, rcx
je 0x18000bfa6
mov rax, qword [rcx]
mov qword [0x180013040], rax
lea rax, [0x18000d0c3]
mov qword [rcx], rax
lea rdx, [0x18000c244]
lea rcx, section..text
mov rax, rdx
sub rax, rcx
cmp rdx, rcx
cmovb rax, rbx
add rsp, 0x40
pop rbx
ret
mov ecx, dword [rdx + 0xc]
add rcx, rax
mov eax, dword [rdx + 8]
jmp 0x18000bf40
Function at 0x1400b93a0
Capabilities:
Terminate process

Disassembly:
xor dword [rax + 0x2c], 0x70
add ebx, eax
mov al, 0x2b
xchg ebp, eax
pop rcx
hlt
cld
pop r11
jmp 0x1400b93ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400b93bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400b93a5
lea eax, [rcx + 1]
jmp 0x1400b93cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400b93de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400b93c4
sub eax, 3
jb 0x1400b93fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400b944d
sar eax, 1
movsxd rbp, eax
jb 0x1400b9434
jmp 0x1400b940c
add ebx, ebx
jne 0x1400b940a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b9434
inc ecx
add ebx, ebx
jne 0x1400b941a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b9434
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400b942d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400b941c
add ecx, 2
jmp 0x1400b9439
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400b9362
jmp 0x1400b93ad
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8a200
mov dl, 0x13
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400b949d
cmp rsi, rcx
jae 0x1400b94a5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400b9484
cmp al, 0x8f
ja 0x1400b9484
cmp byte [rsi - 2], 0xf
je 0x1400b948a
sub al, 0xe8
cmp al, 1
ja 0x1400b946e
cmp rsi, rcx
jae 0x1400b94a5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400b9474
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400b94a5
lodsb al, byte [rsi]
jmp 0x1400b9484
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb5000]
mov eax, dword [rdi]
or eax, eax
je 0x1400b950e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb91dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400b94b2
jns 0x1400b94e7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400b94f1
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400b9508
mov qword [rbx], rax
add rbx, 8
jmp 0x1400b94d2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400b9548
cmp al, 0xef
ja 0x1400b953a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400b951a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400b9529
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400b959c
sub rsp, 0xffffffffffffff80
jmp 0x140087ca0
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004b5300]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004b5310]
mov dword [rax], 1
mov rax, qword [0x004b5320]
mov dword [rax], 1
mov rax, qword [0x004b52f0]
mov dword [rax], 1
mov rax, qword [0x004b51e0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004b52e0]
mov dword [0x004ba008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004b52a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._wsetargv
mov rax, qword [0x004b5190]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x4aadd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004bd644]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4aaf58
mov rax, qword [0x004bd648]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4aae1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4aaea5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4aae00
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4aaf8d
mov rax, qword [0x004bd648]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004bd648]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4aaf70
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4aae9e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4aaf00
add dword [0x004bd644], 1
cmp edi, 8
jae 0x4aaed3
test dil, 4
jne 0x4aaf44
test edi, edi
je 0x4aaec8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4aaf5f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4aaec8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4aaeec
jmp 0x4aaec8
add rsi, qword [0x004bd648]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4aae9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4aaec8
xor esi, esi
jmp 0x4aae27
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4aaec8
mov rax, qword [0x004bd648]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4ab6e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004bd920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004bd900]
test rbx, rbx
je 0x4ab734
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4ab72b
test rsi, rsi
je 0x4ab72b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4ab710
lea rcx, [0x004bd920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4ab970
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4ab980
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4ab990
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4ab9d1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4ab9c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4ab9d3
add rax, 0x28
cmp rax, r9
jne 0x4ab9b4
xor eax, eax
ret

Function at 0x4aba70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004b51e0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4abadd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4abadd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4abadd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4abad4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4abadf
add rax, 0x28
cmp rax, r9
jne 0x4abac0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4abbe0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004b51e0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4abc00
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4abbf8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4abc5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4abc54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4abc64
add rax, 0x28
cmp rax, r9
jne 0x4abc40
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4abc80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004b51e0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4abcee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4abcee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4abcee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4abcee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x4abce5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4abcf5
add rcx, 0x28
cmp rcx, rax
jne 0x4abcd0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4abd08
jmp 0x4abcee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4abd16
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4abcee
test r9d, r9d
jg 0x4abd00
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4ac1c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140004600
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
jb 0x14000460e
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete al
add rsp, 0x28
ret

Function at 0x140004690
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x40], ebx
jb 0x1400046a6
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x10]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x30
pop rbx
ret

Function at 0x1400046e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x470
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1400a2160]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r14, rdx
mov rbp, rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov edi, r15d
mov qword [rsp + 0x30], r15
mov word [rsp + 0x60], r15w
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x62]
call sub.MSVCR120.dll_memset
mov esi, r15d
mov r9d, 0x400
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov rbx, qword [rsp + 0x28]
test eax, eax
jne 0x140004882
movabs r12, 0x7ffffffffffffff
nop dword [rax]
cmp rbx, rdi
jne 0x1400047f2
mov rax, rdi
sub rax, rbx
sar rax, 5
cmp rax, 1
jae 0x1400047f2
mov rcx, qword [rsp + 0x20]
sub rbx, rcx
sar rbx, 5
mov rax, r12
sub rax, rbx
cmp rax, 1
jb 0x140004874
inc rbx
sub rdi, rcx
sar rdi, 5
mov rcx, rdi
shr rcx, 1
mov rax, r12
sub rax, rcx
cmp rax, rdi
jae 0x1400047d1
mov rdi, r15
jmp 0x1400047d4
add rdi, rcx
cmp rdi, rbx
cmovb rdi, rbx
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140003d30
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140004849
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
cmp word [rsp + 0x60], 0
jne 0x14000481e
mov r8, r15
jmp 0x14000483b
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140004830
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140001c80
nop
add rbx, 0x20
mov qword [rsp + 0x28], rbx
inc esi
mov r9d, 0x400
lea r8, [rsp + 0x60]
mov edx, esi
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140004882
jmp 0x140004780
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rcx, qword [rsp + 0x20]
mov qword [r14], rcx
mov qword [r14 + 8], rbx
mov qword [r14 + 0x10], rdi
mov rax, r14
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140038f10
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140004ca0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
cmp qword [r8 + 0x18], 8
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x50], ebp
jb 0x140004cce
mov rdx, qword [r8]
jmp 0x140004cd1
mov rdx, rbx
lea rax, [rsp + 0x50]
lea r9, [rcx + 0x10]
mov rcx, qword [r14 + 0x10]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [r14 + 8], eax
test eax, eax
je 0x140004d00
xor al, al
jmp 0x140004d8c
mov qword [rsp + 0x58], rdi
mov edi, dword [rsp + 0x50]
mov dword [rsi], ebp
mov edx, dword [rsi + 4]
cmp edi, edx
jle 0x140004d43
mov eax, 2
cmp edx, eax
cmovl edx, eax
cmp edx, edi
jge 0x140004d43
movss xmm1, dword [0x140041c94]
nop dword [rax + rax]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvttss2si edx, xmm0
cmp edx, edi
jl 0x140004d30
mov rcx, rsi
call fcn.140004f30
mov dword [rsi], edi
cmp qword [rbx + 0x18], 8
mov rax, qword [rsi + 8]
mov rdi, qword [rsp + 0x58]
jb 0x140004d60
mov rbx, qword [rbx]
lea rcx, [rsp + 0x50]
lea r9, [rsi + 0x10]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, qword [r14 + 0x10]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [r14 + 8], eax
sete al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rsi
ret
Function at 0x140004da0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x460
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400a2160]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x38], ebx
lea rbp, vtable.Reg::Key.0
mov qword [rsp + 0x30], rbp
mov rdi, qword [rcx + 0x28]
mov qword [rsp + 0x40], rdi
cmp qword [rcx + 0x40], rbx
je 0x140004e2f
lea rdx, [rcx + 0x30]
cmp qword [rdx + 0x10], rbx
je 0x140004e2f
cmp qword [rdx + 0x18], 8
jb 0x140004e0a
mov rdx, qword [rdx]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 8
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x38], eax
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140004ec3
mov word [rsp + 0x50], bx
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x52]
call sub.MSVCR120.dll_memset
mov r9d, 0x400
lea r8, [rsp + 0x50]
mov edx, dword [rsi + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x140004e8d
mov qword [rsi + 0x28], rbx
lea rax, [rsi + 0x30]
mov qword [rax + 0x10], rbx
cmp qword [rax + 0x18], 8
jb 0x140004e83
mov rax, qword [rax]
mov word [rax], bx
mov rdi, qword [rsp + 0x40]
jmp 0x140004ec3
cmp word [rsp + 0x50], 0
je 0x140004eaa
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140004ea0
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140001c80
mov bl, 1
mov rdi, qword [rsp + 0x40]
jmp 0x140004ec5
xor bl, bl
mov qword [rsp + 0x30], rbp
mov eax, 0x80000000
add rax, rdi
cmp rax, 3
jbe 0x140004f00
lea rcx, [rsp + 0x30]
call qword [fcn.140004c90]
test al, al
je 0x140004f00
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x30]
call qword [rdx + 0x20]
nop
movzx eax, bl
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140038f10
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140005630
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rdx]
mov rdi, rcx
mov rcx, rdx
mov rbx, r8
mov rsi, rdx
call qword [rax + 0x18]
test al, al
jne 0x140005665
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp qword [rbx + 0x18], 8
mov eax, dword [rdi]
mov rcx, qword [rdi + 8]
jb 0x140005675
mov rbx, qword [rbx]
mov r9d, dword [rdi + 0x10]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi + 0x10]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov dword [rsi + 8], eax
mov rsi, qword [rsp + 0x48]
test eax, eax
sete al
add rsp, 0x30
pop rdi
ret
Function at 0x140026fe0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400a2160]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor esi, esi
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x20], esi
mov word [rsp + 0x50], si
call sub.MSVCR120.dll_memset
lea rcx, [rsp + 0x50]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140027085
mov qword [rsp + 0x288], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140012600
lea rdx, str.get_current_os_system_directory_failed:_d
mov rcx, rax
mov r8d, ebx
call sub.log4cpp.dll_public:_void___cdecl_log4cpp::Category::error_char_const____ptr64____ptr64
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
lea rdx, [0x140044b9c]
xor r8d, r8d
mov rcx, rdi
mov word [rdi], si
call fcn.140001c80
mov rbx, qword [rsp + 0x288]
jmp 0x1400270f7
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
cmp word [rsp + 0x50], si
jne 0x1400270a4
mov r8, rsi
jmp 0x1400270ba
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x1400270b0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140001c80
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
lea rdx, [rsp + 0x28]
mov rcx, rdi
mov word [rdi], si
call fcn.1400012b0
cmp qword [rsp + 0x40], 8
jb 0x1400270f7
mov rcx, qword [rsp + 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140038f10
mov rsi, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
Function at 0x140027d20
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x1c0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1400a2160]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rcx
lea rcx, [rsp + 0x68]
call fcn.140026fe0
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rax, qword [rsp + 0x68]
add rax, 6
lea r11, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae r11, qword [rsp + 0x68]
mov r9, qword [rbx + 0x30]
cmp r9, 8
jb 0x140027d8e
mov rdx, qword [rbx + 0x18]
jmp 0x140027d92
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x28]
lea r8, [rdx + rcx*2]
cmp r9, 8
jb 0x140027da6
mov rdx, qword [rbx + 0x18]
jmp 0x140027daa
lea rdx, [rbx + 0x18]
mov qword [rsp + 0x20], rax
mov r9, r11
lea rcx, [rbx + 0x18]
call fcn.140004fb0
lea rcx, [rbx + 0x80]
mov r8d, 6
lea rdx, [0x140047570]
call fcn.140001c80
lea rcx, [rbx + 0xa0]
mov r8d, 8
lea rdx, str.Software
call fcn.140001c80
mov dword [rsp + 0x90], 0x11c
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x9c]
mov dword [rbx + 0x48], eax
mov eax, dword [rsp + 0x94]
mov dword [rbx + 0x3c], eax
mov eax, dword [rsp + 0x98]
mov dword [rbx + 0x40], eax
mov eax, dword [rsp + 0xa0]
mov dword [rbx + 0x44], eax
movzx eax, byte [rsp + 0x1aa]
mov byte [rbx + 0x52], al
movzx eax, word [rsp + 0x1a8]
mov word [rbx + 0x50], ax
cmp word [rsp + 0xa4], 0
jne 0x140027e60
xor r8d, r8d
jmp 0x140027e7b
lea rax, [rsp + 0xa4]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140027e70
lea rcx, [rbx + 0x58]
lea rdx, [rsp + 0xa4]
call fcn.140001c80
movzx eax, word [rsp + 0x1a4]
mov word [rbx + 0x4c], ax
movzx eax, word [rsp + 0x1a6]
mov word [rbx + 0x4e], ax
movzx eax, word [rsp + 0x38]
mov word [rbx + 0x38], ax
cmp qword [rsp + 0x80], 8
jb 0x140027ec2
mov rcx, qword [rsp + 0x68]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov al, 1
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140038f10
add rsp, 0x1c0
pop rbx
ret