joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007aad0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400ad5c0]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rbx, rcx
call sub.MSVCP140.dll__Thrd_id
mov edx, eax
movabs r9, 0x100000001b3
movzx r8d, al
movabs rax, 0xcbf29ce484222325
xor r8, rax
mov eax, edx
imul r8, r9
shr eax, 8
movzx ecx, al
mov eax, edx
xor r8, rcx
shr eax, 0x10
imul r8, r9
movzx ecx, al
mov eax, dword [rbx + 0x60bc]
xor r8, rcx
imul r8, r9
shr rdx, 0x18
xor r8, rdx
imul r8, r9
cmp rax, r8
je 0x14007ab65
movzx eax, byte [rbx + 0x60b8]
nop
test al, al
jne 0x14007ab65
mov eax, 1
lea rcx, [rbx + 0x60c0]
xchg byte [rbx + 0x60b8], al
call sub.MSVCP140.dll__Cnd_broadcast
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.14007bab0
add rsp, 0x30
pop rbx
ret

Function at 0x14007ad60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x14007adc1
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14007ad80
mov ecx, dword [r9]
jmp 0x14007aeab
cmp ecx, 0x4e0
jb 0x14007aeab
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14007ade0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14007ae30
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
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
add rsp, 8
ret
Function at 0x14007b170
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
cmp byte [0x1400b3800], 0
lea rsi, [0x1400ac220]
mov qword [rsp + 0x40], r14
mov edi, edx
mov r14d, ecx
jne 0x14007b279
mov byte [0x1400b3800], 1
call sub.MSVCP140.dll__Query_perf_frequency
mov rbx, rax
call sub.MSVCP140.dll__Query_perf_counter
mov r9, rax
cmp rbx, 0x989680
jne 0x14007b1c0
imul rax, r9, 0x64
jmp 0x14007b23d
cmp rbx, 0x16e3600
jne 0x14007b21f
movabs r10, 0xb2f4fc0794908cf3
mov rax, r10
imul r9
mov rax, r10
lea r8, [r9 + rdx]
sar r8, 0x18
mov rcx, r8
shr rcx, 0x3f
add r8, rcx
imul rcx, r8, 0x16e3600
sub r9, rcx
imul rcx, r9, 0x3b9aca00
imul rcx
add rdx, rcx
sar rdx, 0x18
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, r8, 0x3b9aca00
add rax, rdx
jmp 0x14007b23d
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov rcx, rax
mov dword [0x1400ac224], eax
mov edx, 1
nop dword [rax + rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [rsi + rdx*4 + 4], ecx
inc rdx
cmp rdx, 0x270
jb 0x14007b250
mov dword [0x1400ac220], 0x270
mov ebp, 0x80000000
mov qword [rsp + 0x50], rsi
cmp r14d, ebp
lea eax, [r14 - 0x80000000]
lea esi, [r14 + rbp]
mov r14, qword [rsp + 0x40]
cmovae esi, eax
lea ecx, [rdi + rbp]
cmp edi, ebp
lea eax, [rdi - 0x80000000]
cmovae ecx, eax
sub ecx, esi
cmp ecx, 0xffffffff
jne 0x14007b2bc
lea rcx, [rsp + 0x50]
call fcn.14007ad60
mov ecx, eax
jmp 0x14007b2fb
lea edi, [rcx + 1]
lea rcx, [rsp + 0x50]
mov ebx, edi
call fcn.14007ad60
mov ecx, eax
imul rcx, rbx
cmp ecx, edi
jae 0x14007b2f7
mov eax, edi
xor edx, edx
neg eax
div edi
mov edi, edx
cmp ecx, edx
jae 0x14007b2f7
lea rcx, [rsp + 0x50]
call fcn.14007ad60
mov ecx, eax
imul rcx, rbx
cmp ecx, edi
jb 0x14007b2e3
shr rcx, 0x20
mov rbx, qword [rsp + 0x48]
lea edx, [rsi + rcx]
cmp edx, ebp
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + rbp]
cmovae eax, ecx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x14007c760
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007c7aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007c7aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007c7aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007c7aa
cmp dword [rcx + 0x84], 0xe
jbe 0x14007c7aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007c7ac
xor al, al
add rsp, 0x28
ret
Function at 0x14019f520
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14019f52d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14019f53d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14019f525
lea eax, [rcx + 1]
jmp 0x14019f54b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14019f55e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14019f544
sub eax, 3
jb 0x14019f57e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14019f5cd
sar eax, 1
movsxd rbp, eax
jb 0x14019f5b4
jmp 0x14019f58c
add ebx, ebx
jne 0x14019f58a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14019f5b4
inc ecx
add ebx, ebx
jne 0x14019f59a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14019f5b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14019f5ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14019f59c
add ecx, 2
jmp 0x14019f5b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14019f4e2
jmp 0x14019f52d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc5800
mov dl, 0x27
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14019f61d
cmp rsi, rcx
jae 0x14019f625
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14019f604
cmp al, 0x8f
ja 0x14019f604
cmp byte [rsi - 2], 0xf
je 0x14019f60a
sub al, 0xe8
cmp al, 1
ja 0x14019f5ee
cmp rsi, rcx
jae 0x14019f625
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14019f5f4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14019f625
lodsb al, byte [rsi]
jmp 0x14019f604
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x19d000]
mov eax, dword [rdi]
or eax, eax
je 0x14019f682
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1bd0c8]
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 0x14019f632
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 0x14019f67c
mov qword [rbx], rax
add rbx, 8
jmp 0x14019f652
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 0x14019f6bc
cmp al, 0xef
ja 0x14019f6ae
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14019f68e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14019f69d
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 + 0x23f]
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 0x14019f710
sub rsp, 0xffffffffffffff80
jmp 0x140060110
Function at 0x1415f0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1415f01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1415f0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415f006f
add dl, dl
jne 0x1415f0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415f00f6
xor eax, eax
add dl, dl
jne 0x1415f00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415f01ad
add dl, dl
jne 0x1415f00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1415f00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1415f007e
mov eax, 1
add dl, dl
jne 0x1415f0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415f00fb
sub eax, ebx
mov ebx, 1
jne 0x1415f014c
mov ecx, 1
add dl, dl
jne 0x1415f012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415f013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415f0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415f007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1415f0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415f0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415f015d
cmp eax, 0x7d00
jae 0x1415f019b
cmp eax, 0x500
jb 0x1415f0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415f007e
cmp eax, 0x7f
ja 0x1415f019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415f007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1415f01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1415f007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140017c10
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140017c3e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140018f60
cmp byte [0x14004d090], 0
jne 0x140017c89
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017c79
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14004d090], 1
mov qword [0x14004d088], rax
jmp 0x140017c90
mov rax, qword [0x14004d088]
mov byte [0x14004d090], 1
jmp 0x140017c90
mov rax, qword [0x14004d088]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140017caf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140018fd4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018ff6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140018ff6
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x140018ff6
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140018cc0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14004a4c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor eax, eax
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
or r9d, 0x2001f
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
call fcn.140018760
mov ebx, eax
test eax, eax
jne 0x140018de7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140018dc1
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140018cc0
mov ebx, eax
test eax, eax
jne 0x140018de7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140018d70
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140018dd6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call fcn.140017c10
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140018df7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140027300
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018f60
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140017c3e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140018f60
cmp byte [0x14004d090], 0
jne 0x140017c89
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017c79
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14004d090], 1
mov qword [0x14004d088], rax
jmp 0x140017c90
mov rax, qword [0x14004d088]
mov byte [0x14004d090], 1
jmp 0x140017c90
mov rax, qword [0x14004d088]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140017caf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140018fd4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018ff6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140018ff6
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x140018ff6
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1400191f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14004a4c0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.140027410
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001929c
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001929c
call fcn.140017230
mov ebx, eax
jmp 0x1400193c4
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400192bd
call fcn.140017230
jmp 0x1400193b3
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400192e0
call fcn.140017230
jmp 0x1400193b3
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140019302
mov ebx, 0x8007000e
jmp 0x1400193b5
mov ecx, eax
test eax, eax
je 0x14001933a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140019330
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14001933a
lea rcx, [rsp + 0x70]
call fcn.140017110
jmp 0x140019344
mov ecx, 0x80070216
call fcn.140017440
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140019357
cmp qword [rsp + 0x70], 0
jne 0x140019366
mov ebx, 0x8007000e
jmp 0x1400193b5
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140019390
call fcn.140017230
jmp 0x1400193b3
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140019010
mov ebx, eax
test rdi, rdi
je 0x1400193c4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400193db
lea rcx, [rsp + 0x70]
call fcn.140017d00
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140027300
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140019c00
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14004a4c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140027300
add rsp, 0x48
ret

Function at 0x140019c50
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x140019c68
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x140019c74
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x140019c70
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x14001df40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x2c0
mov rax, qword [0x14004a4c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, qword [0x14004d2d0]
mov r14, rcx
movzx edx, dx
mov r8d, 0xf0
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001e16d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001e16d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001e16d
mov qword [rsp + 0x2b8], rsi
mov qword [rsp + 0x2b0], r12
mov qword [rsp + 0x2a8], r13
mov qword [rsp + 0x2a0], r15
mov r13d, 0x403
mov r12d, 0x1234
xor r15d, r15d
mov qword [rsp + 0x2f0], rbp
nop dword [rax]
movzx esi, word [rbx]
cmp r15w, si
je 0x14001e127
movzx eax, word [rbx + 2]
mov ebp, dword [rbx + 4]
add rbx, 8
cmp r13w, ax
jne 0x14001e09b
lea rcx, [rsp + 0x180]
xor edx, edx
mov r8d, pe_nt_image_headers64
call fcn.140027410
lea rax, [rsp + 0x188]
lea rcx, [rsp + 0x180]
mov r8d, 3
mov rdx, rbx
mov qword [rsp + 0x180], rax
call fcn.14001f1d0
mov rax, qword [rsp + 0x180]
mov rcx, qword [r14 + 8]
movzx edx, si
xor r9d, r9d
mov r8d, 0x143
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rsp + 0x180]
cmp rax, 0xffffffffffffffff
lea rax, [rsp + 0x188]
cmove edi, r15d
cmp rcx, rax
je 0x14001e11c
call fcn.140026350
jmp 0x14001e11c
cmp r12w, ax
jne 0x14001e11c
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r8d, 3
mov rdx, rbx
mov dword [rsp + 0x140], 1
mov qword [rsp + 0x148], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
call fcn.14001f1d0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x150], rcx
cmp rcx, rax
je 0x14001e0f1
call fcn.140026350
mov rcx, qword [r14 + 8]
lea rax, [rsp + 0x140]
movzx edx, si
xor r9d, r9d
mov r8d, 0x40b
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r15d
add rbx, rbp
test edi, edi
jne 0x14001dff0
mov rbp, qword [rsp + 0x2f0]
mov r12, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2b8]
mov r13, qword [rsp + 0x2a8]
mov r15, qword [rsp + 0x2a0]
mov eax, edi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140027300
add rsp, 0x2c0
pop r14
pop rdi
pop rbx
ret
mov eax, edi
jmp 0x14001e151
Function at 0x14001e690
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x14004a4c0]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea ecx, [rbx + 0x1e]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp di, ax
jne 0x14001e734
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, ebx
nop dword [rax + rax]
cmp ax, word [rsp + rcx*8 + 0x20]
jne 0x14001e6ec
mov rbx, qword [rsp + rcx*8 + 0x20]
cmp ax, word [rsp + rcx*8 + 0x28]
jne 0x14001e6f8
mov rbx, qword [rsp + rcx*8 + 0x28]
cmp ax, word [rsp + rcx*8 + 0x30]
jne 0x14001e704
mov rbx, qword [rsp + rcx*8 + 0x30]
cmp ax, word [rsp + rcx*8 + 0x38]
jne 0x14001e710
mov rbx, qword [rsp + rcx*8 + 0x38]
cmp ax, word [rsp + rcx*8 + 0x40]
jne 0x14001e71c
mov rbx, qword [rsp + rcx*8 + 0x40]
cmp ax, word [rsp + rcx*8 + 0x48]
jne 0x14001e728
mov rbx, qword [rsp + rcx*8 + 0x48]
add rcx, 6
cmp rcx, 0x1e
jl 0x14001e6e0
jmp 0x14001e789
mov rax, rbx
cmp di, word [rsp + rax*8 + 0x20]
jne 0x14001e743
mov rbx, qword [rsp + rax*8 + 0x20]
cmp di, word [rsp + rax*8 + 0x28]
jne 0x14001e74f
mov rbx, qword [rsp + rax*8 + 0x28]
cmp di, word [rsp + rax*8 + 0x30]
jne 0x14001e75b
mov rbx, qword [rsp + rax*8 + 0x30]
cmp di, word [rsp + rax*8 + 0x38]
jne 0x14001e767
mov rbx, qword [rsp + rax*8 + 0x38]
cmp di, word [rsp + rax*8 + 0x40]
jne 0x14001e773
mov rbx, qword [rsp + rax*8 + 0x40]
cmp di, word [rsp + rax*8 + 0x48]
jne 0x14001e77f
mov rbx, qword [rsp + rax*8 + 0x48]
add rax, 6
cmp rax, 0x1e
jl 0x14001e737
mov rax, rbx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140027300
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret