joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006864
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
lea rcx, [rbp + 7]
mov rbx, rax
lea r8d, [rdx + 0x48]
call fcn.18007f140
lea rax, [0x1800047ac]
mov qword [rbp + 0x1f], rbx
lea rdi, str.BritishFlag
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 7]
mov qword [rbp + 0x47], rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
and qword [rsp + 0x58], 0
lea r8, str.British_Flag
mov qword [rsp + 0x50], rbx
mov eax, 0x80000000
and qword [rsp + 0x48], 0
mov r9d, 0xcf0000
and qword [rsp + 0x40], 0
mov rdx, rdi
mov dword [rsp + 0x38], 0xc8
xor ecx, ecx
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x180101d50], rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x180101d50]
call qword [sym.imp.USER32.dll_UpdateWindow]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
jmp 0x18000694c
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x180006938
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180019008
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [rcx]
mov ebx, 0x270
mov ecx, dword [r9]
cmp ecx, ebx
jne 0x180019073
lea r8, [r9 + 8]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x180019036
mov ecx, dword [r9]
jmp 0x180019141
cmp ecx, 0x4e0
jb 0x180019141
lea rbx, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [rbx]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx + 0x630]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x180019099
lea rbx, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [rbx]
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx - 0xd50]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x1800190da
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0x18006aa5c
Capabilities:
Get file size

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180057400
sub rsp, rax
mov rax, qword [0x1800a30c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18006a93c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800704cb
mov rax, rbp
jmp 0x1800705d3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x101550]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180071e9c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x101550]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800705cf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800705cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180071e9c
test rax, rax
js 0x1800705cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800705cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800705c1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800705c1
cmp byte [rcx], 0xd
jne 0x1800705a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800705b6
cmp byte [rcx + 1], 0xa
jne 0x1800705b6
inc rcx
jmp 0x1800705b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa34d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180070589
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800705d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180057220
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18007123c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180101550]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180071293
cmp word [rdx], r13w
jne 0x180071293
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180071298
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800713bd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800713de
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800712d1
mov rdx, r9
mov word [rbx], cx
jmp 0x1800712f8
cmp r9, r8
jae 0x180071308
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800712b2
jmp 0x1800713bd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800713b2
cmp dword [rsp + 0x80], esi
je 0x1800713b2
lea r8, [0x180101550]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18007138a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18007135a
mov word [rbx], r13w
jmp 0x1800713ba
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180071367
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800713ba
cmp word [rsp + 0x70], r13w
jne 0x180071397
cmp rbx, r14
je 0x180071354
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180071ea4
cmp word [rsp + 0x70], r13w
je 0x1800713bd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180101550]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800713b7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800713bd
Function at 0x1800751b8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800751e8
xor eax, eax
jmp 0x1800752ab
mov rbp, rbx
cmp word [rax], si
je 0x18007520d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800751f4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800751f0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800738a0
movsxd r14, eax
test eax, eax
jne 0x18007524b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800751e1
mov rcx, r14
call fcn.18006ce68
mov rdi, rax
test rax, rax
jne 0x180075264
xor ecx, ecx
call fcn.18006ce2c
jmp 0x180075240
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800738a0
test eax, eax
jne 0x180075295
mov rcx, rdi
call fcn.18006ce2c
jmp 0x18007529f
xor ecx, ecx
call fcn.18006ce2c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180078020
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18006af60
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800780c1
cmp ebx, dword [rsp + 0x30]
je 0x1800780ba
test esi, esi
je 0x1800780ba
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180078095
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800780a2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18007807f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800780a6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800780c3
mov eax, 1
jmp 0x1800780c3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18007ca54
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180071ea4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180071ea4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18007cba4
cmp rax, 0xffffffffffffffff
je 0x18007cba4
xor edi, edi
test rbp, rbp
jle 0x18007cb4f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18006cdb4
mov rbx, rax
test rax, rax
jne 0x18007cadc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18007cb45
mov edx, 0x8000
mov ecx, r14d
call fcn.18007c8d8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18006ee98
cmp eax, 0xffffffff
je 0x18007cb25
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18007caec
mov edx, r15d
mov ecx, r14d
call fcn.18007c8d8
jmp 0x18007cb45
cmp byte [rsi + 0x38], dil
je 0x18007cb3c
cmp dword [rsi + 0x34], 5
jne 0x18007cb3c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18007cb45
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18006ce2c
jmp 0x18007cbb8
jns 0x18007cbb8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180071ea4
cmp rax, 0xffffffffffffffff
jne 0x18007cb70
cmp byte [rsi + 0x30], dil
je 0x18007cbb8
mov edi, dword [rsi + 0x2c]
jmp 0x18007cbb8
mov ecx, r14d
call fcn.180075974
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18007cbb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18007cbb8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18007cbb1
mov eax, dword [rsi + 0x2c]
jmp 0x18007cbb6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180071ea4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18007d3e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18007d408
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18007d408
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
sub rax, 0x10
mov qword [rsp + 0x20], rax
mov dx, 0x5c
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x50]
call fcn.1400011b0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call fcn.1400010b0
test eax, eax
jne 0x140001084
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
jmp 0x1400010a4
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
cmp qword [rsp + 0x28], rax
jne 0x140001033
xor eax, eax
add rsp, 0x58
ret
Function at 0x140001220
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001256
xor eax, eax
jmp 0x1400013bd
mov rax, qword [rsp + 0x10]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
cmp dword [rax], 0x4550
je 0x140001286
xor eax, eax
jmp 0x1400013bd
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x18]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0xc0]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov dword [rsp], 0
jmp 0x140001323
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
cmp dword [rsp], eax
jae 0x1400013bb
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
mov word [rsp + 4], ax
movzx eax, word [rsp + 4]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400013a6
inc rax
test dl, dl
jne 0x140001393
xor eax, eax
jmp 0x1400013ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400013b6
mov rax, qword [rsp + 0x40]
jmp 0x1400013bd
jmp 0x14000131b
xor eax, eax
add rsp, 0x148
pop rdi
pop rsi
ret
Function at 0x140008a40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x8c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x838], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
lea rbx, [rbp - 0x40]
mov r8d, 0x800
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x834], 0x800
mov dword [rbp + 0x830], 0
mov rcx, qword [rdi]
mov r8, qword [rdi + 8]
lea rax, [rbp + 0x834]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x830]
mov qword [rsp + 0x20], rax
xor edx, edx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, 2
je 0x140008af9
test eax, eax
jne 0x140008b59
mov ebx, dword [rbp + 0x834]
dec rbx
mov rdi, rbx
shr rdi, 1
cmp rbx, 0x802
jae 0x140008c2d
cmp rbx, 2
jae 0x140008b08
mov r14d, 2
xor ebx, ebx
jmp 0x140008b2e
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140008b48
and ebx, 0xffe
movzx eax, byte [0x14009b181]
mov edx, 2
mov rcx, rbx
call fcn.140002d80
test rax, rax
je 0x140008c41
mov r14, rax
lea rdx, [rbp - 0x40]
mov rcx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi], rdi
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
mov rax, rsi
add rsp, 0x8c0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, eax
call fcn.14003b5c0
mov qword [rbp + 0x820], rax
mov dword [rbp + 0x828], edx
lea rax, [rbp + 0x820]
mov qword [rbp + 0x7c0], rax
lea rax, [0x14003bfc0]
mov qword [rbp + 0x7c8], rax
lea rax, str.Fail_to_get_reg_value_
mov qword [rbp + 0x7d0], rax
mov qword [rbp + 0x7d8], 1
mov qword [rbp + 0x7f0], 0
lea rax, [rbp + 0x7c0]
mov qword [rbp + 0x7e0], rax
mov qword [rbp + 0x7e8], 1
lea rcx, [rbp + 0x808]
lea rdx, [rbp + 0x7d0]
call fcn.1400638c0
cmp qword [rbp + 0x820], 0
je 0x140008bef
lea rcx, [rbp + 0x820]
call fcn.14003b7d0
movups xmm0, xmmword [rbp + 0x808]
movaps xmmword [rbp + 0x7d0], xmm0
mov rax, qword [rbp + 0x818]
mov qword [rbp + 0x7e0], rax
lea rcx, [rbp + 0x7d0]
call fcn.14006c730
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000001
mov qword [rsi], rax
jmp 0x140008b48
lea r8, str.srcutils_regedit.rs
mov edx, 0x400
mov rcx, rdi
call fcn.140072ca0
mov ecx, 2
mov rdx, rbx
call fcn.140072670
int3
Function at 0x140008cd0
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rax, r8
shr rax, 0x20
jne 0x140008db3
mov rax, qword [rcx]
mov r9, qword [rcx + 8]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rdx
xor esi, esi
mov rcx, rax
mov rdx, r9
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140008da6
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14003bf50
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x18], edx
lea rax, [rbp + 0x10]
mov qword [rbp], rax
lea rax, [0x14003bfc0]
mov qword [rbp + 8], rax
lea rax, str.Fail_to_write_reg_value_
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x10], 0
mov rax, rbp
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x30]
call fcn.1400638c0
lea rcx, [rbp - 0x48]
call fcn.14006c730
mov rsi, rax
cmp qword [rbp + 0x10], 0
je 0x140008da6
lea rcx, [rbp + 0x10]
call fcn.14003b7d0
mov rax, rsi
add rsp, 0xa8
pop rsi
pop rbp
ret
lea rax, str.C:Usersmateusz.cargo_registry_srcindex.crates.io_6f17d22bba15001fwindows_0.57.0_srcWindowsWin32SystemRegistrymod.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140074da0]
lea r9, [0x140074dd0]
lea r8, [rbp - 0x30]
mov edx, 0x2b
call fcn.140072c00
int3

Function at 0x140008e10
Capabilities:
Delete registry value

Disassembly:
push rbp
push rsi
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140008ec5
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14003bf50
mov qword [rbp], rax
mov dword [rbp + 8], edx
mov rax, rbp
mov qword [rbp - 0x10], rax
lea rax, [0x14003bfc0]
mov qword [rbp - 8], rax
lea rax, str.HQ_a_
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rcx, [rbp - 0x58]
lea rdx, [rbp - 0x40]
call fcn.1400638c0
lea rcx, [rbp - 0x58]
call fcn.14006c730
cmp qword [rbp], 0
je 0x140008ec7
mov rcx, rbp
mov rsi, rax
call fcn.14003b7d0
mov rax, rsi
jmp 0x140008ec7
xor eax, eax
add rsp, 0x98
pop rsi
pop rbp
ret
Function at 0x1400143c0
Capabilities:
Get file system object information

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x340
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2b8], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x58], 0
lea rdx, [0x140076458]
lea r8, [rbp - 0x58]
mov ecx, 4
call qword [sym.imp.shell32.dll_SHGetImageList]
test eax, eax
js 0x1400144c6
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x1400144f5
mov qword [rbp + 0x2a0], rax
mov qword [rbp + 0x298], 0
mov qword [rbp + 0x2b0], rax
add rsi, rdi
mov qword [rbp + 0x260], rdi
mov qword [rbp + 0x268], rsi
mov word [rbp + 0x270], 0
mov dword [rbp + 0x278], 1
lea rcx, [rbp + 0x280]
lea rdx, [rbp + 0x260]
call fcn.1400119a0
lea rcx, [rbp - 0x58]
call fcn.14003b730
xor ebx, ebx
mov rsi, qword [rbp + 0x288]
lea rdi, [rbp - 0x58]
mov r14, qword [sym.imp.shell32.dll_SHGetFileInfoW]
nop word cs:[rax + rax]
cmp ebx, 3
jae 0x1400144fc
mov dword [rsp + 0x20], 0x4000
mov rcx, rsi
mov edx, 0x80
mov r8, rdi
mov r9d, 0x2b8
call r14
test rax, rax
jne 0x14001451d
inc ebx
xor ecx, ecx
mov edx, 0x1c9c380
call fcn.140044ec0
jmp 0x140014490
mov ecx, eax
call fcn.14003bf50
mov qword [rbp + 0x2a0], rax
mov dword [rbp + 0x2a8], edx
mov qword [rbp + 0x298], 1
xor esi, esi
test rax, rax
jne 0x140014597
jmp 0x1400145a3
xor esi, esi
jmp 0x1400145a3
mov rdx, qword [rbp + 0x280]
test rdx, rdx
je 0x140014519
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.140002d90
xor esi, esi
jmp 0x140014575
mov edi, dword [rbp - 0x50]
mov rdx, qword [rbp + 0x280]
test rdx, rdx
je 0x14001453d
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.140002d90
lea rcx, [rbp - 0x58]
lea rdx, [rbp + 0x2b0]
mov r8d, edi
mov r9d, 1
call fcn.14003b750
mov rsi, qword [rbp - 0x58]
mov rdi, qword [rbp - 0x50]
test rsi, rsi
je 0x140014571
test rdi, rdi
je 0x140014571
lea rcx, [rbp - 0x50]
call fcn.14003b7d0
xor rsi, 1
lea rcx, [rbp + 0x2b0]
call fcn.14003b7d0
cmp qword [rbp + 0x298], 0
je 0x1400145a3
mov rax, qword [rbp + 0x2a0]
test rax, rax
je 0x1400145a3
lea rcx, [rbp + 0x2a0]
call fcn.14003b7d0
mov rax, rsi
mov rdx, rdi
add rsp, 0x340
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret