joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006f348
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 0x14006f378
xor eax, eax
jmp 0x14006f43b
mov rbp, rbx
cmp word [rax], si
je 0x14006f39d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14006f384
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14006f380
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.14006c3c0
movsxd r14, eax
test eax, eax
jne 0x14006f3db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14006f371
mov rcx, r14
call fcn.14006955c
mov rdi, rax
test rax, rax
jne 0x14006f3f4
xor ecx, ecx
call fcn.14006807c
jmp 0x14006f3d0
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.14006c3c0
test eax, eax
jne 0x14006f425
mov rcx, rdi
call fcn.14006807c
jmp 0x14006f42f
xor ecx, ecx
call fcn.14006807c
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 0x1400725b0
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.140066a60
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 0x140072651
cmp ebx, dword [rsp + 0x30]
je 0x14007264a
test esi, esi
je 0x14007264a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140072625
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140072632
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14007260f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140072636
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140072653
mov eax, 1
jmp 0x140072653
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400767fc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140056718
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140076886
cmp byte [rbp - 0x21], r15b
je 0x140076881
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400768bc
call fcn.140068bd0
test eax, eax
jne 0x1400768a8
cmp byte [rbp - 0x21], r15b
je 0x1400768a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400768bc
cmp byte [rbp - 0x21], r15b
je 0x1400768b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400630d4
test eax, eax
jne 0x14007695c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140056718
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400768fb
cmp byte [rbp - 0x21], r15b
je 0x140076930
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140076930
call fcn.140068bd0
test eax, eax
jne 0x14007691c
cmp byte [rbp - 0x21], r15b
je 0x140076915
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140076930
cmp byte [rbp - 0x21], r15b
je 0x14007692d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400630d4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14007695c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14007695f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14007696d
mov rcx, rdi
call fcn.14006807c
cmp byte [rbp + 0x3f], r15b
je 0x14007697c
mov rcx, qword [rbp + 0x27]
call fcn.14006807c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400774d0
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.14006ba9c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006ba9c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140077620
cmp rax, 0xffffffffffffffff
je 0x140077620
xor edi, edi
test rbp, rbp
jle 0x1400775cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140068890
mov rbx, rax
test rax, rax
jne 0x140077558
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400775c1
mov edx, 0x8000
mov ecx, r14d
call fcn.140064688
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.140067b14
cmp eax, 0xffffffff
je 0x1400775a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140077568
mov edx, r15d
mov ecx, r14d
call fcn.140064688
jmp 0x1400775c1
cmp byte [rsi + 0x38], dil
je 0x1400775b8
cmp dword [rsi + 0x34], 5
jne 0x1400775b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400775c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14006807c
jmp 0x140077634
jns 0x140077634
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006ba9c
cmp rax, 0xffffffffffffffff
jne 0x1400775ec
cmp byte [rsi + 0x30], dil
je 0x140077634
mov edi, dword [rsi + 0x2c]
jmp 0x140077634
mov ecx, r14d
call fcn.14007005c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140077634
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007762d
mov eax, dword [rsi + 0x2c]
jmp 0x140077632
mov eax, 0x16
mov edi, eax
Function at 0x1400588b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400588bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400588cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400588b5
lea eax, [rcx + 1]
jmp 0x1400588db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400588ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400588d4
sub eax, 3
jb 0x14005890e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005895d
sar eax, 1
movsxd rbp, eax
jb 0x140058944
jmp 0x14005891c
add ebx, ebx
jne 0x14005891a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140058944
inc ecx
add ebx, ebx
jne 0x14005892a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140058944
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005893d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005892c
add ecx, 2
jmp 0x140058949
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140058872
jmp 0x1400588bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29c00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400589a9
cmp rsi, rcx
jae 0x1400589b1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140058990
cmp al, 0x8f
ja 0x140058990
cmp byte [rsi - 2], 0xf
je 0x140058996
sub al, 0xe8
cmp al, 1
ja 0x14005897a
cmp rsi, rcx
jae 0x1400589b1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140058980
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400589b1
lodsb al, byte [rsi]
jmp 0x140058990
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x56000]
mov eax, dword [rdi]
or eax, eax
je 0x140058a1a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x67440]
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 0x1400589be
jns 0x1400589f3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400589fd
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 0x140058a14
mov qword [rbx], rax
add rbx, 8
jmp 0x1400589de
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 0x140058a54
cmp al, 0xef
ja 0x140058a46
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140058a26
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140058a35
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 + 0x227]
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 0x140058aa8
sub rsp, 0xffffffffffffff80
jmp 0x14000c200
Function at 0x180003a77
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x180003c18
mov dword [rsp + 8], ecx
sub rsp, 0xa8
add byte [rax], al
add bl, ch
invalid
mov qword [rsp + 0x60], 0
mov rax, qword gs:[0x60]
cmp ax, ax
je 0x180003bf1
Function at 0x180006210
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x180033018]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r12, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r15d, r15d
xor r14d, r14d
call fcn.1800091d0
lea r8, [0x180029218]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.18000925c
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1800062c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x1800063b9
mov rcx, qword [rbp + 0x178]
lea edx, [rdi - 0x3b]
call fcn.180006098
mov esi, eax
jmp 0x18000639f
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.18000641c
mov esi, eax
test eax, eax
jns 0x1800062ff
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.18000605c
mov rcx, rbx
call fcn.1800061b0
jmp 0x18000639f
lea r8, [0x180029220]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.18000925c
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x180006348
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.180006098
mov esi, eax
jmp 0x1800062f2
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.18000641c
mov esi, eax
test eax, eax
jns 0x18000637c
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.18000605c
mov rcx, rdi
call fcn.1800061b0
jmp 0x1800062f2
mov rcx, rdi
call fcn.1800061b0
movsxd rax, dword [rsp + 0x24]
mov rcx, rbx
movsxd r14, dword [rsp + 0x20]
shl r14, 0x1f
or r14, rax
call fcn.1800061b0
xor esi, esi
test esi, esi
jns 0x1800063b9
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.18000605c
jmp 0x1800063be
mov r15, r14
xor esi, esi
test esi, esi
jns 0x1800063da
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x6b
call fcn.18000605c
mov eax, esi
jmp 0x1800063e7
mov rax, r15
shl rax, 2
mov qword [r12], rax
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.180024570
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x18000a72c
Capabilities:
Allocate thread local storage
Get thread local storage value
Log keystrokes via application hook
Set thread local storage value

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18000a80f
sub edx, 1
je 0x18000a775
cmp edx, 2
jne 0x18000a861
mov ecx, dword [0x180033034]
cmp ecx, 0xffffffff
je 0x18000a861
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
nop dword [rax + rax]
jmp 0x18000a861
mov qword [0x1800336e8], rcx
xor edx, edx
lea rcx, [0x180033710]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
nop dword [rax + rax]
test eax, eax
je 0x18000a80b
call fcn.18000af14
test eax, eax
je 0x18000a80b
cmp dword [0x180033034], 0xffffffff
jne 0x18000a861
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
nop dword [rax + rax]
mov dword [0x180033034], eax
cmp eax, 0xffffffff
je 0x18000a861
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov r8, qword [0x1800336e8]
lea rdx, [0x18000a6b0]
mov r9d, eax
mov ecx, 2
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
nop dword [rax + rax]
mov ecx, dword [0x180033034]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax + rax]
jmp 0x18000a861
xor eax, eax
jmp 0x18000a866
mov ecx, dword [0x180033034]
cmp ecx, 0xffffffff
je 0x18000a84e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
nop dword [rax + rax]
mov ecx, dword [0x180033034]
call qword [sym.imp.KERNEL32.dll_TlsFree]
nop dword [rax + rax]
or dword [0x180033034], 0xffffffff
lea rcx, [0x180033710]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop dword [rax + rax]
mov eax, 1
add rsp, 0x28
ret
Function at 0x18000b068
Capabilities:
Log keystrokes via polling

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, 0x20
mov rbx, rcx
mov r14d, 0x12
mov ecx, r14d
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
lea ecx, [r14 - 1]
movzx esi, ax
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
lea ecx, [r14 - 2]
movzx ebp, ax
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
movzx ecx, bl
lea r10d, [r14 - 0x11]
xor edx, edx
movzx r9d, ax
sub rcx, 0x10
je 0x18000b199
sub rcx, r10
je 0x18000b149
cmp rcx, r10
movzx ecx, word [0x180033754]
jne 0x18000b132
test si, si
jns 0x18000b1fe
bt rdi, 0x18
jae 0x18000b100
or cx, 9
jmp 0x18000b104
or cx, 0x41
mov word [0x180033754], cx
bt rdi, 0x1e
jb 0x18000b1f9
or ax, bp
mov r8d, 0xf
bt ax, r8w
jb 0x18000b132
mov dword [0x180033748], r10d
jmp 0x18000b1f9
mov dword [0x180033750], edx
mov dword [0x18003374c], edx
mov dword [0x180033748], edx
jmp 0x18000b1f9
test bp, bp
jns 0x18000b1f2
movzx ecx, word [0x180033754]
bt rdi, 0x18
jae 0x18000b166
or cx, r14w
jmp 0x18000b16e
mov eax, 0x82
or cx, ax
mov word [0x180033754], cx
bt rdi, 0x1e
jb 0x18000b1f9
movzx eax, r9w
mov r8d, 0xf
or ax, si
bt ax, r8w
jb 0x18000b132
mov dword [0x18003374c], r10d
jmp 0x18000b1f9
test r9w, r9w
jns 0x18000b1f2
movzx ecx, word [0x180033754]
mov rax, rdi
and eax, 0xff0000
cmp rax, 0x360000
jne 0x18000b1bc
or cx, 0x24
jmp 0x18000b1c4
mov eax, 0x104
or cx, ax
mov word [0x180033754], cx
bt rdi, 0x1e
jb 0x18000b1f9
movzx eax, bp
mov r8d, 0xf
or ax, si
bt ax, r8w
jb 0x18000b132
mov dword [0x180033750], r10d
jmp 0x18000b1f9
movzx ecx, word [0x180033754]
test si, si
js 0x18000b20d
mov eax, 0xffb6
and cx, ax
mov word [0x180033754], cx
test bp, bp
js 0x18000b223
mov r8d, 0xff6d
and cx, r8w
mov word [0x180033754], cx
test r9w, r9w
js 0x18000b238
mov edx, 0xfedb
and cx, dx
mov word [0x180033754], cx
mov rbx, qword [rsp + 0x30]
mov eax, r10d
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800104dc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x180033018]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, qword [r8]
xor r15d, r15d
mov ebx, r15d
mov r14, rdx
mov rsi, rcx
jmp 0x18001055b
lea r8, [rsp + 0x48]
mov word [rbp + 0x15e], r15w
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
nop dword [rax + rax]
test eax, eax
je 0x180010543
mov ebx, r15d
jmp 0x18001055b
lea r8, [rsp + 0x48]
mov rcx, rdi
lea rdx, [rsp + 0x60]
call fcn.1800104dc
mov ebx, eax
test eax, eax
jne 0x18001059f
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x180010519
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x1800105c6
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.180024570
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800105f8
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r15
push rbp
lea rbp, [rax - 0x1f8]
sub rsp, 0x2f0
mov rax, qword [0x180033018]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
and qword [rsp + 0x60], 0
lea rcx, [rbp - 0x30]
and qword [rsp + 0x58], 0
xor edx, edx
mov r8d, 0x208
xor ebx, ebx
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x7c]
lea rcx, [0x1800294c0]
call fcn.180021aa4
test eax, eax
je 0x180010834
mov eax, dword [0x18002ebd0]
lea rdx, [rsp + 0x70]
movsd xmm0, qword [str.CLSID_]
xor r9d, r9d
mov dword [rsp + 0x78], eax
xor r8d, r8d
lea rax, [rsp + 0x50]
movsd qword [rsp + 0x70], xmm0
mov qword [rsp + 0x40], rax
mov rcx, 0xffffffff80000000
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x180010806
lea rdi, str.Table_Driven_Text_Input_Processor
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
mov r15d, 1
mov r9d, r15d
xor r8d, r8d
xor edx, edx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x180010806
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rdx, str.InProcServer32
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x180010806
mov rcx, qword [0x1800336e8]
lea rdx, [rbp - 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
mov r9d, r15d
xor r8d, r8d
xor edx, edx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x180010806
lea rdi, str.Apartment
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rdx, [0x18002eb88]
mov r9d, r15d
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
cmove ebx, r15d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18001081c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180010832
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.180024570
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r15, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180012724
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x180033018]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, qword [rbp + 0x1b0]
xor esi, esi
mov r14, rdx
mov qword [rsp + 0x20], r9
mov ebx, esi
mov qword [rsp + 0x40], rsi
movzx r9d, r8w
mov qword [rsp + 0x48], rbx
lea rdx, [rsp + 0x50]
mov edi, esi
call fcn.180012654
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18001280f
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.180022654
mov rbx, qword [rsp + 0x48]
test eax, eax
jne 0x18001280f
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x18001280f
cmp dword [rsp + 0x30], 4
jne 0x18001280f
mov eax, esi
test eax, eax
je 0x18001289d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1800128a2
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.180022654
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x1800128a2
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1800128a2
cmp dword [rsp + 0x38], 4
jne 0x1800128a2
mov eax, esi
test eax, eax
jne 0x1800128a2
mov esi, 1
lea rcx, [rsp + 0x40]
call fcn.180022590
lea rcx, [rsp + 0x48]
call fcn.180022590
mov eax, esi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.180024570
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret