joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100004028
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [0x1000390e0]
mov rbx, qword [0x1000390f0]
mov rdi, qword [0x1000390e8]
mov rsi, qword [0x1000390d0]
lea eax, [rdx - 1]
mov r11d, r8d
mov r10d, edx
lea r8, [rcx + rax*4]
test edx, edx
je 0x1000040a2
mov edx, r11d
mov eax, r11d
shr rax, 0x10
movzx ecx, al
mov eax, r11d
mov r11d, dword [rdi + rcx*4]
shr rax, 8
movzx eax, al
xor r11d, dword [rbx + rax*4]
mov rax, rdx
shr rax, 0x18
xor r11d, dword [rsi + rax*4]
movzx eax, dl
xor r11d, dword [r9 + rax*4]
xor r11d, dword [r8]
sub r8, 4
add r10d, 0xffffffff
jne 0x100004064
mov eax, r11d
shr rax, 0x10
movzx ecx, al
mov eax, r11d
mov edx, dword [rdi + rcx*4]
mov rdi, qword [rsp + 0x18]
shr rax, 8
movzx eax, al
mov ecx, r11d
xor edx, dword [rbx + rax*4]
mov rbx, qword [rsp + 8]
shr rcx, 0x18
xor edx, dword [rsi + rcx*4]
mov rsi, qword [rsp + 0x10]
movzx ecx, r11b
xor edx, dword [r9 + rcx*4]
xor edx, r11d
mov eax, edx
ret
Function at 0x100004420
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
mov dword [rsp + 0x40], 8
mov edi, ebp
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x10003904c], 0x7d6
mov esi, eax
lea r12d, [rbp + 1]
jl 0x10001bb10
cmp qword [rbx + 0x1c8], rbp
je 0x10000449a
cmp qword [rbx + 0x1d0], rbp
je 0x10000449a
mov rax, qword [rbx + 0x1d0]
cmp rax, rbp
je 0x10001bb32
xor ecx, ecx
call rax
jmp 0x100004485
cmp eax, ebp
je 0x100004aaf
mov ecx, dword [rbx + 4]
cmp edi, ebp
jne 0x10001bb39
mov edi, ecx
or edi, r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, 0xfffffffe
mov r11d, eax
mov eax, dword [rbx + 0xc]
and r11d, r8d
cmp dword [rbx + 8], eax
je 0x100007f6e
cmp edi, dword [rbx + 4]
jne 0x100010733
mov dword [rbx + rax*4 + 0x38], r11d
jmp 0x1000044cb
mov dword [rbx + 4], edi
mov dword [rbx], r11d
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
mov eax, esi
mov ecx, esi
sub eax, dword [rbx + 4]
cmp eax, 0xea60
jb 0x10000448d
jmp 0x100004490
mov dword [rbx + 4], edi
mov dword [rbx + rax*4 + 0x38], edi
add dword [rbx + 0xc], r12d
mov ecx, dword [rbx + 0xc]
mov dword [rbx], r11d
mov dword [rbx + rcx*4 + 0x38], r11d
jmp 0x1000044d1
mov ecx, dword [rbx + rax*4 + 0x38]
mov rdx, rax
mov eax, edi
and ecx, r8d
and eax, r8d
cmp eax, ecx
jb 0x10001bb4c
mov ecx, dword [rbx + 0xc]
mov eax, dword [rbx + 8]
add ecx, r12d
cmp ecx, 0x64
cmove ecx, ebp
mov dword [rbx + 0xc], ecx
cmp ecx, eax
je 0x10001bb58
mov dword [rbx + rcx*4 + 0x38], edi
mov ecx, dword [rbx + 0xc]
mov eax, dword [rbx + 8]
add ecx, r12d
cmp ecx, 0x64
cmove ecx, ebp
mov dword [rbx + 0xc], ecx
cmp ecx, eax
je 0x10001bb68
mov dword [rbx + rcx*4 + 0x38], r11d
jmp 0x1000044cb
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetLastInputInfo]
cmp eax, ebp
je 0x10000445d
mov edi, dword [rsp + 0x44]
cmp edi, ebp
cmove edi, r12d
jmp 0x10000445d
mov eax, ebp
jmp 0x100004485
mov eax, esi
sub esi, edi
sub eax, ecx
cmp esi, eax
ja 0x100004498
jmp 0x10000449a
lea eax, [rdi - 1]
mov dword [rbx + rdx*4 + 0x38], eax
jmp 0x10001074a
inc eax
cmp eax, 0x64
cmove eax, ebp
mov dword [rbx + 8], eax
jmp 0x100010764
inc eax
cmp eax, 0x64
cmove eax, ebp
mov dword [rbx + 8], eax
jmp 0x100010782
Function at 0x1000044ec
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rsi, rcx
add rcx, 0x140
call fcn.100004420
mov ebx, dword [rsi + 0x144]
and ebx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, ebx
mov rcx, qword [0x100039198]
test rcx, rcx
je 0x100018381
cmp edi, 0x15f90
jb 0x100004a67
add rsi, 0xc0
xor edx, edx
mov rcx, rsi
call fcn.1000043bc
jmp 0x10000455b
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x40]
call fcn.100002e60
nop
xor edi, edi
xor ebp, ebp
test rdi, rdi
jne 0x1000045a6
test rbp, rbp
jne 0x1000045b5
test rsi, rsi
je 0x1000045b5
mov rdi, qword [rsi]
test rdi, rdi
je 0x1000045b5
mov rax, qword [rdi + 8]
cmp byte [rax + 0x1c], 0
jne 0x10000456e
mov ebx, dword [rax + 0x14]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
jbe 0x10000456e
jmp 0x1000183b4
mov rbp, rdi
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1000183af
lea rcx, [rsp + 0x40]
call fcn.100002ef4
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100004548
lea edx, [rax + 2]
lea rax, [0x100029d38]
cmp dword [rax], edi
jb 0x10000849a
add rsi, 0xc0
mov rcx, rsi
call fcn.1000043bc
jmp 0x10000455b
sub rax, 4
add edx, 0xffffffff
jne 0x100004a81
jmp 0x100004a89
mov edx, 2
lea rax, [0x100029d38]
cmp dword [rax], edi
jae 0x10001839a
sub rax, 4
add edx, 0xffffffff
jne 0x10001838d
add rsi, 0xc0
mov rcx, rsi
call fcn.1000043bc
nop
jmp 0x10000455b
jmp 0x100004585
xor ebx, ebx
mov rdx, qword [rdi]
test rbp, rbp
je 0x1000183d1
mov rbx, qword [rdi + 8]
and qword [rdi + 8], 0
and qword [rdi], 0
mov qword [rbp], rdx
jmp 0x1000183ec
mov rcx, qword [rsi]
test rcx, rcx
je 0x1000183ec
mov rax, qword [rcx]
mov rbx, qword [rcx + 8]
and qword [rcx + 8], 0
and qword [rcx], 0
mov qword [rsi], rax
mov rdi, rdx
test rbx, rbx
je 0x10001842f
lea rax, [0x1000298d8]
mov qword [rbx + 0x28], rax
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x10001840e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x30], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x100018426
mov edx, 1
call fcn.100020194
mov rcx, rbx
call qword [case.0x10000aeca.0]
dec dword [rsi + 0x7c]
jmp 0x10000456e
Function at 0x100009684
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 0xb0]
lea rax, [r11 + 8]
mov rbx, r8
mov qword [r11 - 0x20], rax
lea rax, [r11 - 0x18]
lea r9, [r11 + 0x20]
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [r11 - 0x28], rax
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x10000c209
cmp dword [rsp + 0x68], 4
jne 0x10000c209
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
mov eax, 1
jmp 0x1000096db
add rsp, 0x40
pop rbx
ret
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000096db

Function at 0x100009cc0
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push r12
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x100012639
test rcx, rcx
je 0x100012643
and qword [rdx], 0
and qword [rsp + 0x48], 0
and dword [rsp + 0x90], 0
and dword [rsp + 0x98], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100012694
mov ecx, dword [rsp + 0x90]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [0x100039920]
mov r12, rax
mov qword [rsp + 0x48], rax
jmp 0x100009d7c
test r12, r12
je 0x10001268a
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsi], rax
test rax, rax
je 0x100012680
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x98]
mov r8, rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x100012667
xor ebx, ebx
jmp 0x100009ddc
mov rcx, r12
call qword [case.0x10000aeca.0]
jmp 0x100009de7
mov eax, ebx
add rsp, 0x60
pop r12
pop rsi
pop rbx
ret
mov eax, 0x80004003
jmp 0x100009de9
mov eax, 0x80070057
jmp 0x100009de9
call fcn.100009e00
mov ebx, eax
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll_free]
and qword [rsi], 0
jmp 0x100009ddc
mov ebx, 0x8007000e
jmp 0x100009ddc
mov ebx, 0x8007000e
jmp 0x100009de7
mov ecx, eax
call fcn.10001c4c8
mov ebx, eax
jmp 0x100009de7
Function at 0x10000a96c
Capabilities:
Hash data using crc32b

Disassembly:
add rsp, 0x28
ret
inc edx
mov dword [r10], r8d
add r10, 4
cmp edx, 0x100
jae 0x10000a1e2
xor r8d, r8d
lea r9, [rsp]
xor ecx, ecx
mov eax, edx
shr eax, cl
test al, 1
jne 0x10000a95a
inc ecx
add r9, 4
cmp ecx, 8
jb 0x10000a945
jmp 0x10000a927
xor r8d, dword [r9]
jmp 0x10000a94d
add eax, eax
xor eax, r9d
jmp 0x10000a9a7
sub rsp, 0x28
mov r10, rdx
mov eax, 1
mov r9d, 0x4c11db7
test r8d, r8d
je 0x10000a994
mov ecx, r8d
bt eax, 0x1f
jb 0x10000a9b3
add eax, eax
sub rcx, 1
jne 0x10000a986
lea rcx, [rsp]
mov edx, 8
bt eax, 0x1f
mov dword [rcx], eax
jb 0x10000a95f
add eax, eax
add rcx, 4
sub rdx, 1
jne 0x10000a99d
jmp 0x10000a93c
add eax, eax
xor eax, r9d
jmp 0x10000a98e
Function at 0x10000b4ec
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1000390b0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10001c0a4
cmp dword [rsp + 0x24], 5
jb 0x10000b587
jmp 0x10000b583
mov byte [rbx + 0x18], sil
lea rax, [0x10002a228]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.10000b5e4
movzx ecx, byte [0x100039048]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x100039048], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.100001c80
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp dword [rsp + 0x30], esi
jne 0x10000b587
cmp dword [rsp + 0x24], 4
ja 0x10000b583
jne 0x10000b587
cmp dword [rsp + 0x28], 0
ja 0x10000b583
jmp 0x10000b587

Function at 0x10000b740
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10000b787
cmp rcx, 0xffffffffffffffff
je 0x10000b787
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000b785
cmp dword [rcx + 0x3c], edx
jl 0x10000b785
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000b785
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 0x10000b787
mov rax, rdx
add rsp, 0x18
ret
Function at 0x10000bfb0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x90
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, r8
mov esi, edx
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r12d, r12d
cmp qword [rdi + 0xb0], r12
je 0x10001a058
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0xb0], eax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xb0]
mov r8, qword [rbx + 8]
mov edx, esi
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
je 0x10001a06a
cmp eax, r12d
jne 0x10000cb35
mov eax, dword [rbx + 0x10]
dec eax
mov ecx, dword [rsp + 0xb0]
cmp ecx, eax
ja 0x10001a09b
mov dword [rbx + 0x14], ecx
mov rdx, rcx
mov rcx, qword [rbx + 8]
mov word [rcx + rdx*2], r12w
mov eax, 1
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop r12
pop rdi
pop rsi
ret
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10000c068
lea ecx, [r12 + 6]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10000c068
mov eax, dword [rsp + 0xb0]
add eax, eax
mov dword [rsp + 0xb0], eax
mov edx, dword [rsp + 0xb0]
cmp edx, dword [rbx + 0x10]
jbe 0x10001a08f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
jmp 0x10000bff5
mov edx, 0x800700ce
lea rcx, [rsp + 0x70]
call fcn.10001c3a0
lea rcx, [rsp + 0x50]
mov rdx, rax
mov r8d, 0x20
call sub.msvcrt.dll_memcpy
lea rdx, [0x100030eb8]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x10000cb4c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
cmp dword [0x10003905c], 0
je 0x10001a379
lea rax, [r11 + 8]
mov ebx, 1
lea r8, str.UseLowPriorityConfiguration
mov qword [r11 - 0x18], rax
lea rax, [r11 + 0x10]
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea r9d, [rbx + 0xf]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x50], 4
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x10000cbb0
mov eax, dword [rsp + 0x58]
neg eax
sbb ecx, ecx
and ebx, ecx
and dword [0x10003905c], 0
mov dword [0x100039058], ebx
jmp 0x10000cbbf
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov ebx, dword [0x100039058]
jmp 0x10000cbbf
Function at 0x10000d118
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x90
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, r8
mov esi, edx
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r12d, r12d
cmp qword [rdi + 0xb0], r12
je 0x10001a0d4
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0xa0], eax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xa0]
mov r8, qword [rbx + 8]
mov edx, esi
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.KERNEL32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x10001a0e6
cmp eax, r12d
jne 0x10000d1e4
mov eax, dword [rbx + 0x10]
dec eax
mov ecx, dword [rsp + 0xa0]
cmp ecx, eax
ja 0x10001a117
mov dword [rbx + 0x14], ecx
mov rdx, rcx
mov rcx, qword [rbx + 8]
mov word [rcx + rdx*2], r12w
mov eax, 1
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10000d1ca
lea ecx, [r12 + 6]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10000d1ca
mov eax, dword [rsp + 0xa0]
add eax, eax
mov dword [rsp + 0xa0], eax
mov edx, dword [rsp + 0xa0]
cmp edx, dword [rbx + 0x10]
jbe 0x10001a10b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
jmp 0x10000d163
mov edx, 0x800700ce
lea rcx, [rsp + 0x70]
call fcn.10001c3a0
lea rcx, [rsp + 0x50]
mov rdx, rax
mov r8d, 0x20
call sub.msvcrt.dll_memcpy
lea rdx, [0x100030eb8]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x10000d570
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x10001a150
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10000d598
add rsp, 0x38
ret
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10001a179
mov ecx, eax
jmp 0x10000d58e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
jmp 0x10000d598
Function at 0x100010dec
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1000390b0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x100039098]
test eax, eax
jne 0x100010e7d
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10001bb78
mov ecx, dword [rsp + 0x30]
mov edx, dword [rsp + 0x24]
xor eax, eax
lea r8d, [rax + 1]
mov dword [0x100039098], eax
sub ecx, r8d
je 0x10001bbf0
cmp ecx, r8d
jne 0x100010e7d
cmp edx, 5
je 0x10001bb91
cmp edx, 4
jbe 0x10001bbe3
mov eax, 0x20
jmp 0x100010e77
mov dword [0x100039098], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.100001c80
add rsp, 0x158
ret
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop
jmp 0x100010e3c
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x10001bbd9
sub ecx, r8d
je 0x10001bbc4
cmp ecx, r8d
je 0x10001bbab
lea eax, [rdx + 0xf]
jmp 0x100010e77
cmp word [rsp + 0x134], r8w
mov ecx, 0x10
cmovae eax, ecx
or eax, 4
jmp 0x100010e77
mov edx, 8
lea ecx, [rdx - 6]
cmp word [rsp + 0x134], cx
cmovae eax, edx
jmp 0x10001bbbc
mov eax, 4
jmp 0x100010e77
mov ecx, 2
mov eax, ecx
mov dword [0x100039098], ecx
cmp edx, 4
jne 0x100010e7d
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x10001bc0f
cmp ecx, 0xa
je 0x10001bc0f
cmp ecx, 0x5a
jne 0x100010e7d
mov eax, r8d
jmp 0x100010e77

Function at 0x10001c6ac
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1000390b0]
xor rax, rsp
mov qword [rsp + 0x270], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x10001c7b0
test rcx, rcx
je 0x10001c726
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test ebx, ebx
mov qword [rsp + 0x48], rcx
jmp 0x10001c74c
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.10001c6ac
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x10001c7b0
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10001c734
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x10001c79e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.10001c5fc
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x10001c7bb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.100001c80
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10001cea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1000390b0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
cmp rax, rbx
jne 0x10001cf14
call fcn.100009e00
mov ebx, eax
jmp 0x10001d055
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x10001cf37
call fcn.100009e00
mov ebx, eax
jmp 0x10001d04b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x10001cf5c
call fcn.100009e00
mov ebx, eax
jmp 0x10001d04b
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x10001cf95
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x10001cf8b
lea rcx, [rsp + 0x70]
call fcn.100020138
nop
mov eax, 0x8007000e
jmp 0x10001d06e
mov ecx, eax
cmp rcx, rbx
je 0x10001cfd3
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x10001cfc9
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x10001cfd3
lea rcx, [rsp + 0x70]
call fcn.1000201e0
mov rax, qword [rsp + 0x70]
jmp 0x10001cfdd
mov ecx, 0x80070057
call fcn.10001c498
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x10001cff4
cmp rax, rbx
jne 0x10001d000
mov ebx, 0x8007000e
jmp 0x10001d04b
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x10001d027
call fcn.100009e00
mov ebx, eax
jmp 0x10001d04b
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.10001dbd8
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x10001d06c
lea rcx, [rsp + 0x70]
call fcn.100020138
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.100001c80
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x100020450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rcx
mov ecx, dword [rcx + 0x28]
mov r9d, ecx
imul r9d, dword [rdi + 0x18]
xor eax, eax
lea r8, [0x100029eb0]
mov rdx, r8
cmp dword [rdx], 0
je 0x1000204a0
cmp dword [rdx], r9d
jae 0x10002049c
inc eax
add rdx, 4
cmp eax, 0x1a
jb 0x100020485
jmp 0x1000204a0
mov r9d, dword [r8 + rax*4]
mov dword [rsp + 0x28], ecx
mov eax, dword [rdi + 0x2c]
mov dword [rsp + 0x20], eax
mov r8, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x58]
call fcn.1000097e0
nop
mov rbx, rdi
mov qword [rsp + 0x30], rbx
and dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 1
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
test rbx, rbx
je 0x1000205fb
lea rcx, [rsp + 0x40]
call fcn.100002d84
mov r11d, eax
test eax, eax
jne 0x100020571
mov ecx, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
cmp dword [rsp + 0x3c], 0
je 0x100020517
xor ecx, ecx
mov dword [rsp + 0x38], ecx
jmp 0x10002051d
inc ecx
mov dword [rsp + 0x38], ecx
and dword [rsp + 0x3c], 0
cmp ecx, dword [rbx + 0x18]
jae 0x1000205fb
mov eax, ecx
shl rax, 5
add rax, qword [rbx + 0x30]
cmp dword [rax + 0x18], 0
je 0x100020561
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.100002d84
mov r11d, eax
mov ecx, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
test r11d, r11d
je 0x100020508
test r11d, r11d
je 0x1000205fb
jmp 0x100020576
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
neg rax
sbb rcx, rcx
and rcx, qword [rsp + 0x48]
je 0x10002058f
mov rcx, qword [rcx + 0x10]
neg rdx
sbb rax, rax
and rax, qword [rsp + 0x48]
jne 0x1000205a5
lea r8, [0x10003a230]
jmp 0x1000205a9
lea r8, [rax + 8]
mov r8, qword [r8]
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.100006190
test eax, eax
jne 0x1000204e5
mov edx, 0x8007000e
lea rcx, [rsp + 0x30]
call fcn.10001c3a0
lea rcx, [rsp + 0x98]
mov rdx, rax
mov r8d, 0x20
call sub.msvcrt.dll_memcpy
lea rdx, [0x100030eb8]
lea rcx, [rsp + 0x98]
call sub.msvcrt.dll__CxxThrowException
int3
mov rax, qword [rsp + 0x60]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x10], rax
mov eax, dword [rsp + 0x70]
mov dword [rdi + 0x18], eax
mov eax, dword [rsp + 0x74]
mov dword [rdi + 0x1c], eax
mov eax, dword [rsp + 0x78]
mov dword [rdi + 0x20], eax
mov eax, dword [rsp + 0x7c]
mov dword [rdi + 0x24], eax
mov eax, dword [rsp + 0x80]
mov dword [rdi + 0x28], eax
mov eax, dword [rsp + 0x84]
mov dword [rdi + 0x2c], eax
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x100020667
lea rbx, [rcx - 8]
lea r9, [0x10000e2f8]
mov r8d, dword [rbx]
mov edx, 0x20
call fcn.10000e7ec
mov rcx, rbx
call qword [case.0x10000aeca.0]
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x30], rax
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x58]
call fcn.10000e2b0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret