joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004a6840]
mov r11d, dword [rbx]
mov rdi, rcx
test r11d, r11d
jne 0x40cd14
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x40cd70
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x40cd80
mov ebx, dword [0x004cb958]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
call r12
mov ebp, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x40cdf1
mov rbp, qword [rbx]
cmp rbp, rsi
jb 0x40ce31
lea rbx, [rbx + rsi*8]
mov rax, qword [rbx]
test rax, rax
jne 0x40cd07
mov rcx, rdi
call dbg.emutls_alloc
mov qword [rbx], rax
jmp 0x40cd07
call dbg.emutls_alloc
mov qword [rdi + 0x10], rax
jmp 0x40cd07
mov r10d, dword [rbx]
test r10d, r10d
je 0x40ce92
mov r9d, dword [global_once]
test r9d, r9d
je 0x40cec0
lock add dword [0x004cb960], 1
jne 0x40cef0
mov rsi, qword [rdi + 0x10]
test rsi, rsi
je 0x40ce9f
mov eax, dword [rbx]
test eax, eax
je 0x40cd1d
mov eax, 0xffffffff
lock xadd dword [0x004cb960], eax
sub eax, 1
js 0x40cd1d
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x004cb968]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x40cd1d
lea rcx, [rsi + 0x21]
mov edx, 8
call sym.calloc
lea rbp, [rsi + 0x20]
test rax, rax
mov rbx, rax
je 0x40cf17
mov qword [rax], rbp
mov rdx, rbx
mov ecx, dword [0x004cb958]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40cd57
call r12
jmp 0x40cd57
lea r13, [rbp + rbp]
mov rcx, rbx
lea rax, [rsi + 0x20]
cmp rsi, r13
cmova r13, rax
lea rdx, [r13*8 + 8]
call sym.realloc
test rax, rax
mov rbx, rax
je 0x40cf17
mov qword [rax], r13
lea rcx, [rax + rbp*8 + 8]
sub r13, rbp
xor edx, edx
lea r8, [r13*8]
call sym.memset
jmp 0x40ce12
call dbg.emutls_init
mov dword [global_once], 1
mov edx, dword [rbx]
test edx, edx
jne 0x40cd9c
mov rsi, qword [rdi + 0x10]
test rsi, rsi
jne 0x40cd1d
mov rax, qword [0x004cb950]
lea rsi, [rax + 1]
mov qword [0x004cb950], rsi
mov qword [rdi + 0x10], rsi
jmp 0x40cdb7
lock add dword [0x0049f064], 1
je 0x40ce79
mov r8d, dword [global_once]
lea rsi, [0x0049f060]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x40ce88
xor ecx, ecx
call rbp
mov ecx, dword [rsi]
test ecx, ecx
je 0x40cee4
jmp 0x40ce88
mov edx, 0xffffffff
mov rcx, qword [0x004cb968]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40cdaa
lock sub dword [0x004cb960], 1
jmp 0x40cdaa
call sym.abort
nop
nop dword [rax]

Function at 0x419220
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x41924c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x419e20
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x004a1f00], 0
jne 0x419f26
mov byte [0x004a1f00], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x419efc
mov rbx, qword [rax + 8]
lea r9, [rsp + 0x2c]
xor eax, eax
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
mov r8d, 0x30
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x419eed
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x004a3811]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x419ee8
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x419eb7
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x419fbb
call sym.__cxa_begin_catch
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x419f21
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x419f21

Function at 0x468300
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x468328
call r12
cmp dword [rax], 4
jne 0x468346
mov rcx, rbp
call method.std::__basic_file_char_.fd__
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sym.read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x468320
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x47a5e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rbx, rcx
lea rdx, str.mt19937
mov rcx, rsi
call method.std::string.compare_char_const__const
mov ecx, 0x1571
test eax, eax
jne 0x47a645
mov dword [rbx], ecx
mov edx, 1
jmp 0x47a614
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x47a610
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sym.strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x47a669
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x47a604
lea rcx, str.random_device::random_device_const_std::string_
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x49dcb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x004a1f20]
jmp dbg.__emutls_get_address

Function at 0x49e600
Capabilities:
Write file on windows

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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006496
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006496
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006496
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006496
cmp dword [rcx + 0x84], 0xe
jbe 0x140006496
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006498
xor al, al
add rsp, 0x28
ret
Function at 0x180005610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180005643
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180005687
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x180005682
cmp rbx, r11
jae 0x180005687
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x180005670
cmp rbx, r11
jb 0x18000568b
xor eax, eax
jmp 0x180005697
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180005dc0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18006afd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.180036ea0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x180005e31
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x180005e31
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180036e70
add rsp, 0x158
ret
mov eax, dword [rsp + 0x30]
sub eax, 1
je 0x180005f27
cmp eax, 1
jne 0x180005f62
mov eax, dword [rsp + 0x24]
cmp eax, 4
ja 0x180005e6d
mov eax, 0x401
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180036e70
add rsp, 0x158
ret
cmp eax, 5
jne 0x180005edb
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x180005e97
mov eax, 0x500
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180036e70
add rsp, 0x158
ret
cmp eax, 1
jne 0x180005eb9
mov eax, 0x501
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180036e70
add rsp, 0x158
ret
cmp eax, 2
jne 0x180005ee8
mov eax, 0x502
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180036e70
add rsp, 0x158
ret
cmp eax, 6
jne 0x180005ee8
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x180005f05
mov eax, 0x600
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180036e70
add rsp, 0x158
ret
cmp eax, 1
jne 0x180005ee8
mov eax, 0x601
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180036e70
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 4
jne 0x180005f62
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x180005f62
cmp eax, 0xa
jne 0x180005f58
mov eax, 0x40a
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180036e70
add rsp, 0x158
ret
cmp eax, 0x5a
mov eax, 0x45a
je 0x180005f67
mov eax, 0x400
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180036e70
add rsp, 0x158
ret
Function at 0x1800074a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
xor ebp, ebp
mov dword [rax + 0x18], ebp
mov rbx, rbp
mov qword [rax - 0x40], rbx
mov dword [rax - 0x38], ebp
lea rcx, [0x18006af50]
mov rax, qword [0x18006af50]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov esi, 1
mov dword [rsp + 0x90], esi
mov qword [rsp + 0x88], rbp
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftInternet_Explorer
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180007606
mov rbx, qword [rsp + 0x88]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], ebp
mov rax, qword [rdi]
sub esi, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x200
or eax, esi
jge 0x180007558
mov edx, 0x200
mov rcx, rdi
call fcn.1800059e0
mov rsi, qword [rdi]
mov dword [rsp + 0x88], 0x3fe
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x98]
xor r8d, r8d
lea rdx, str.Version
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800075ba
mov eax, dword [rsp + 0x98]
cmp eax, 1
je 0x1800075a8
cmp eax, 2
jne 0x1800075ba
test rsi, rsi
je 0x1800075ba
cmp dword [rsp + 0x88], 0
jne 0x1800075ba
mov word [rsi], bp
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1800075c6
mov eax, ebp
jmp 0x1800075d3
movsxd rdx, dword [rcx - 0xc]
call fcn.180038e3c
test eax, eax
js 0x1800075fb
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x1800075fb
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], bp
test rbx, rbx
je 0x180007606
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
jmp 0x180007606
mov ecx, 0x80070057
call fcn.180005a40
nop
test rbx, rbx
je 0x180007614
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180007630
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rsi, qword [rcx]
mov rbp, rcx
lea rdi, [0x1800575dc]
mov ecx, 1
xor bl, bl
repe cmpsw word [rsi], word [rdi]
je 0x180007709
lea rax, [r11 + 0x10]
lea rdx, str.SoftwareMicrosoftInternet_ExplorerMain
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea rax, [r11 + 0x18]
xor r8d, r8d
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], 0
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x2001f
mov qword [r11 + 0x18], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x180007709
mov rsi, qword [rbp]
mov rdi, qword [rsp + 0x80]
test rsi, rsi
je 0x1800076e9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, str.Start_Page
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x1800076f9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov bl, 1
test rdi, rdi
je 0x180007709
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x180007728
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008f30
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x18006afd8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rcx
xor bpl, bpl
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
lea rcx, [0x18006af50]
mov rax, qword [0x18006af50]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
or rbx, 0xffffffffffffffff
test rsi, rsi
je 0x180008fd6
test rsi, 0xffffffffffff0000
jne 0x180008fc3
movzx edi, si
xor edx, edx
mov ecx, edi
call fcn.180005550
test rax, rax
je 0x180008fea
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.180005780
jmp 0x180008fea
xor eax, eax
mov rcx, rbx
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x180008fd9
mov ecx, r12d
mov r8d, ecx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180005a60
nop
lea r8, [rsp + 0x38]
lea rdx, str.SOFTWAREMicrosoftInternet_ExplorerExtensions_
lea rcx, [rsp + 0x60]
call fcn.180001a70
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, eax
test eax, eax
jne 0x180009040
mov edx, r12d
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r12d
test edx, edx
sete dil
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180009066
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x38]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180009083
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x180009120
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Default_Visible
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000910d
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x1800090d7
cmp eax, 2
jne 0x18000910d
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1800090f0
test al, 1
jne 0x18000910d
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x1800090f6
jmp 0x18000910d
mov word [rsp + 0x70], r12w
lea rdx, [0x180057090]
lea rcx, [rsp + 0x70]
call fcn.180038958
test eax, eax
sete bpl
test rdi, rdi
je 0x180009125
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
jmp 0x180009125
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x180009138
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bpl
jmp 0x18000913b
mov al, bpl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180036e70
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180009a60
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov qword [rsp + 0x58], 0xfffffffffffffffe
xor ebp, ebp
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x68], ebp
lea rcx, [0x18006af50]
mov rax, qword [0x18006af50]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0xb0], rdi
lea rdx, str.SoftwareMicrosoftInternet_ExplorerMINIE
or rsi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x180009adc
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.180005550
test rax, rax
je 0x180009b03
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.180005780
mov rdi, qword [rsp + 0xb0]
jmp 0x180009b03
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0xb0]
call fcn.180005a60
mov rdi, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rbp
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180009b44
mov rbx, qword [rsp + 0xb8]
mov qword [rsp + 0x60], rbx
jmp 0x180009b95
mov qword [rsp + 0x50], rbp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x180009be5
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0xa0], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.CommandBarEnabled
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x180009be1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x68], ebp
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180009bfe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180009c0e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000b2f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x78
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov esi, r8d
mov rbp, rdx
mov r12, rcx
xor r13d, r13d
mov qword [r11 - 0x48], r13
mov dword [r11 - 0x40], r13d
mov dword [r11 + 0x18], r8d
mov rax, qword [rdx]
or edi, 0xffffffff
cmp dword [rax - 0x10], r13d
je 0x18000b373
mov r8, rdx
lea rdx, [0x180056c08]
lea rcx, [r11 - 0x68]
call fcn.180001a70
nop
mov rdx, rax
mov rcx, rbp
call fcn.18000e720
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000b373
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x50]
call fcn.18000ae30
nop
mov r8, rbp
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800018f0
mov qword [rsp + 0x38], r13
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x18000b3ce
mov ebx, r13d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], r13d
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000b3ee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000b40d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
jne 0x18000b47a
mov dword [rsp + 0xc8], 4
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [r12]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000b45b
cmp dword [rsp + 0x30], 4
je 0x18000b462
mov dword [rsp + 0xc0], esi
test rbx, rbx
je 0x18000b47f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
mov qword [rsp + 0x60], rbx
jmp 0x18000b47f
mov rbx, qword [rsp + 0x60]
mov esi, dword [rsp + 0xc0]
test rbx, rbx
je 0x18000b495
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000b4b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x18000b4d5
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
jmp 0x18000b4d7
mov eax, esi
add rsp, 0x78
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret