joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bb98
Capabilities:
Get thread local storage value
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x1400163a8]
xor rax, rsp
mov qword [rsp + 0x430], rax
cmp byte [0x1400188c4], 0
mov rbx, rcx
mov edi, 0x200
mov esi, 0x8007007a
je 0x14000bc73
lea rcx, [0x1400189b8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rbx]
movabs r10, 0xe0401e0934d32270
mov rax, qword [rax + 0x10]
lea rdx, [rsp + 0x30]
mov r8d, edi
mov rcx, rbx
call qword [0x14000fa90]
cmp eax, esi
jne 0x14000bc38
mov rax, qword [rbx]
movabs r10, 0xf6098f1452d26970
mov rax, qword [rax + 8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [0x14000fa90]
test eax, eax
js 0x14000bc60
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop dword [rax + rax]
lea rcx, [0x140010770]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop dword [rax + rax]
lea rcx, [0x1400189b8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rdx, rbx
call fcn.14000bfec
mov rcx, rbx
call fcn.14000d0a4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rbx]
movabs r10, 0xe0401e0934d32270
mov rax, qword [rax + 0x10]
lea rdx, [rsp + 0x30]
mov r8, rdi
mov rcx, rbx
call qword [0x14000fa90]
cmp eax, esi
jne 0x14000bcd2
mov rax, qword [rbx]
movabs r10, 0xf6098f1452d26970
mov rax, qword [rax + 8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [0x14000fa90]
test eax, eax
js 0x14000bd1f
mov ecx, dword [0x140018a58]
mov rdi, qword [rsp + 0x20]
mov sil, byte [rbx + 0x20]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000bd1f
movabs r10, 0xfc611ecf365f1170
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rax, qword [rbx]
mov dl, sil
call qword [0x14000fa90]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000bcf9
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14000d750
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000c4bc
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], rsp
lea rcx, [0x140018a68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
cmp byte [0x1400188e0], 0
jne 0x14000c576
lea rax, [0x1400188e8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMSDTCTracing
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000c56a
and qword [0x1400188e8], 0
lea rcx, str.Unable_to_open_MSDTCTracing_settings_key_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop dword [rax + rax]
movzx ecx, bx
or ecx, 0x80070000
test ebx, ebx
cmovle ecx, ebx
mov dword [rsp + 0x50], ecx
lea rdx, [0x14000c55f]
mov rcx, rsp
call sub.msvcrt.dll__local_unwind
nop
nop
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
call fcn.14000c594
mov byte [0x1400188e0], 1
lea rcx, [0x140018a68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor eax, eax
jmp 0x14000c563
Function at 0x14000cd50
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov rax, qword [0x1400163a8]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
xor ebx, ebx
mov edi, 0x105
mov qword [rsp + 0x38], rbx
mov rsi, rdx
mov dword [rsp + 0x30], edi
mov r14, rcx
test rcx, rcx
je 0x14000cf7e
test rdx, rdx
je 0x14000cf7e
mov qword [rcx], rbx
mov qword [rdx], rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r9, [rsp + 0x30]
xor edx, edx
mov rcx, rax
lea r8, [rbp + 0xd0]
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_QueryFullProcessImageNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14000cdf8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000cf7a
lea r9, [rsp + 0x38]
mov edx, edi
lea r8, [rbp + 0x2e0]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
nop dword [rax + rax]
test eax, eax
je 0x14000cdd9
mov rdx, qword [rsp + 0x38]
lea rcx, str.dllhost.exe
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14000cf6b
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineA]
nop dword [rax + rax]
mov rcx, rax
mov edx, 0x20
call qword [sym.imp.msvcrt.dll_strchr]
nop dword [rax + rax]
test rax, rax
je 0x14000cf6b
add rax, 1
je 0x14000cf6b
movzx ecx, word [0x140012498]
lea rdx, [rsp + 0x40]
movsd xmm0, qword [str._ProcessID]
mov word [rsp + 0x50], cx
mov cl, byte [0x14001249a]
mov byte [rsp + 0x52], cl
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x40], rcx
mov rcx, rax
movsd qword [rsp + 0x48], xmm0
call fcn.14000cc70
cmp eax, 1
jl 0x14000cf6b
mov al, byte [rbp - 0x40]
lea rdi, [rbp - 0x40]
test al, al
je 0x14000ceda
lea rdi, [rbp - 0x40]
lea rcx, [rdi + 1]
cmp al, 0x3a
je 0x14000ced5
mov al, byte [rcx]
mov rdi, rcx
test al, al
jne 0x14000cec2
jmp 0x14000ceda
mov byte [rdi], bl
mov rdi, rcx
cmp byte [rdi], bl
je 0x14000cefe
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x40]
call qword [sym.imp.msvcrt.dll__stricmp]
nop dword [rax + rax]
test eax, eax
jne 0x14000cefe
test rdi, rdi
je 0x14000cf6b
jmp 0x14000cf02
lea rdi, [rbp - 0x40]
mov edx, 0x28
mov rax, rdi
mov ecx, edx
cmp byte [rax], bl
je 0x14000cf19
inc rax
sub rcx, 1
jne 0x14000cf0c
sub rdx, rcx
mov rax, rcx
neg rax
sbb r8, r8
and r8, rdx
test rcx, rcx
je 0x14000cf6b
lea r9d, [r8 + 1]
mov dword [rsp + 0x28], 0x29
lea rax, [rsp + 0x60]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x14000cf6b
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140008e08
test eax, eax
js 0x14000cf7a
mov rcx, qword [rsp + 0x38]
mov rdx, r14
call fcn.140008e08
mov ebx, eax
mov eax, ebx
jmp 0x14000cf83
mov eax, 0x80070057
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.14000d750
lea r11, [rsp + 0x600]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000d490
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140018cc0], rbx
je 0x14000d4f7
cmp rax, rbx
jne 0x14000d4ea
mov edi, 1
mov esi, edi
jmp 0x14000d4fc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000d4cf
mov edi, 1
mov eax, dword [0x140018cc8]
cmp eax, edi
jne 0x14000d514
mov ebx, 0x1f
mov ecx, ebx
call sub.msvcrt.dll__amsg_exit
jmp 0x14000d58a
mov eax, dword [0x140018cc8]
test eax, eax
jne 0x14000d57f
mov dword [0x140018cc8], edi
lea r15, [0x14000fb70]
lea rbx, [0x14000fb58]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x14000d571
test eax, eax
jne 0x14000d575
cmp qword [rbx], r14
je 0x14000d566
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x14000fa90]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000d53e
test eax, eax
je 0x14000d585
mov eax, 0xff
jmp 0x14000d6eb
mov dword [0x140016444], edi
mov ebx, 0x1f
mov eax, dword [0x140018cc8]
cmp eax, edi
jne 0x14000d5b1
lea rdx, [0x14000fb50]
lea rcx, [0x14000faa8]
call sub.msvcrt.dll__initterm
mov dword [0x140018cc8], 2
test esi, esi
jne 0x14000d5bf
mov rax, r14
xchg qword [0x140018cc0], rax
cmp qword [0x140018cd0], r14
je 0x14000d5fc
lea rcx, [0x140018cd0]
call fcn.14000d930
test eax, eax
je 0x14000d5fc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140018cd0]
mov r9, qword [0x14000fa90]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000d615
mov eax, 0xff
jmp 0x14000d6eb
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000d69c
test ax, ax
je 0x14000d630
test edx, edx
jne 0x14000d69c
sub ax, di
cmp ax, bx
ja 0x14000d646
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000d630
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001524
mov dword [0x140016440], eax
cmp dword [0x140016460], r14d
jne 0x14000d685
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140016444], r14d
jne 0x14000d69a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140016440]
jmp 0x14000d6eb
cmp ax, 0x22
jne 0x14000d6b0
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000d61e
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400c1000
add rsp, 0x28
jmp 0x14000d490
Function at 0x14000d81c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000d868
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000d860
cmp dword [rcx + 0x3c], edx
jl 0x14000d860
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000d860
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 0x14000d868
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14000d990
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000d9b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000d9b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001570
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140015c60], rbx
je 0x1400015d7
cmp rax, rbx
jne 0x1400015ca
mov ebx, 1
mov esi, ebx
jmp 0x1400015dc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400015af
mov ebx, 1
mov eax, dword [0x140015c68]
cmp eax, ebx
jne 0x1400015f4
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000166a
mov eax, dword [0x140015c68]
test eax, eax
jne 0x14000165f
mov dword [0x140015c68], ebx
lea r15, [0x140010bf8]
lea rdi, [0x140010be0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140001651
test eax, eax
jne 0x140001655
cmp qword [rdi], r14
je 0x140001646
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [0x140010b90]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000161e
test eax, eax
je 0x140001665
mov eax, 0xff
jmp 0x1400017ca
mov dword [0x1400153e4], ebx
mov edi, 0x1f
mov eax, dword [0x140015c68]
cmp eax, ebx
jne 0x140001691
lea rdx, [0x140010bd8]
lea rcx, [0x140010ba0]
call sub.msvcrt.dll__initterm
mov dword [0x140015c68], 2
test esi, esi
jne 0x14000169f
mov rax, r14
xchg qword [0x140015c60], rax
cmp qword [0x140015c80], r14
je 0x1400016dc
lea rcx, [0x140015c80]
call fcn.140001c70
test eax, eax
je 0x1400016dc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140015c80]
mov r9, qword [0x140010b90]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400016f5
mov eax, 0xff
jmp 0x1400017ca
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000177b
test ax, ax
je 0x140001710
test edx, edx
jne 0x14000177b
sub ax, bx
cmp ax, di
ja 0x140001726
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140001710
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140006fbc
mov dword [0x1400153e0], eax
cmp dword [0x140015400], r14d
jne 0x140001764
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400153e4], r14d
jne 0x140001779
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400153e0]
jmp 0x1400017ca
cmp ax, 0x22
jne 0x14000178f
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400016fe
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400a8000
add rsp, 0x28
jmp 0x140001570
Function at 0x140001b5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001ba8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001ba0
cmp dword [rcx + 0x3c], edx
jl 0x140001ba0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001ba0
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 0x140001ba8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400042ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rbx
mov rbp, rdx
mov qword [r11 - 0x28], rbx
xor r9d, r9d
mov qword [r11 - 0x30], rbx
xor r8d, r8d
mov qword [r11 - 0x38], rbx
xor edx, edx
mov qword [r11 - 0x40], rax
mov rcx, rbp
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x58], rbx
mov dword [r11 + 8], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x140004396
lea esi, [rbx + 1]
cmp dword [rsp + 0x80], esi
jne 0x140004388
mov ecx, 0x2000
mov dword [rsp + 0x90], 0x1000
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140004396
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x90]
mov qword [rsp + 0x30], rbx
mov r8, rax
mov qword [rsp + 0x28], rbx
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140004373
cmp word [rdi], bx
jne 0x140004375
mov esi, ebx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov eax, esi
jmp 0x140004398
cmp dword [rsp + 0x80], ebx
seta bl
mov eax, ebx
jmp 0x140004398
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005138
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400153a0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test eax, eax
jne 0x1400051cc
test rcx, rcx
je 0x1400051be
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
je 0x14000521c
test rcx, rcx
je 0x1400051dd
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140001820
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140005138
mov ebx, eax
test eax, eax
jne 0x140005285
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140005202
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005278
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140004198
mov ebx, eax
mov rcx, qword [rsp + 0x48]
jmp 0x1400051cc
Function at 0x140006978
Capabilities:
Encrypt data using rc4 prga

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
cmp word [rdx], 0
mov r14, rdx
mov rdi, rcx
jne 0x1400069a5
mov rax, rcx
jmp 0x140006a46
movzx eax, word [rcx]
jmp 0x140006a3b
mov rbx, rdi
mov rsi, r14
test ax, ax
je 0x140006a20
cmp word [rsi], 0
je 0x140006a62
movzx ecx, word [rbx]
movzx eax, word [rsi]
cmp ecx, eax
jne 0x140006a20
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
sub rax, rsi
mov rcx, rbp
sub rcx, rbx
xor rax, rcx
test rax, 0xfffffffffffffffe
jne 0x140006a20
jmp 0x140006a15
add rbx, 2
add rsi, 2
movzx ecx, word [rsi]
movzx eax, word [rbx]
cmp eax, ecx
je 0x140006a1a
cmp rbx, rbp
jb 0x140006a03
cmp word [rbx], 0
jne 0x1400069b8
cmp word [rsi], 0
je 0x140006a62
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rdi, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400069ad
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140006a46

Function at 0x140006dc8
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x80], rbx
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x90], rdi
mov qword [rbp + 0x98], r14
mov rax, qword [0x1400153a0]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea rsi, [rsp + 0x20]
mov eax, dword [rsi]
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x140006eed
mov rdi, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
nop dword [rax + rax]
mov eax, dword [rbp + 0x3c]
mov r14d, eax
lea ebx, [rax - 1]
not rbx
and rbx, rsi
lea rsi, [rdi + 0x2000]
sub rbx, rax
cmp rbx, rsi
jb 0x140006eed
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x140006eed
add rdi, qword [rbp + 0x20]
test dword [rbp + 0x28], 0x1000
je 0x140006e66
test dword [rbp + 0x2c], 0x100
je 0x140006ea1
mov eax, 1
jmp 0x140006eef
mov rax, qword [rbp + 8]
cmp rbx, rax
jb 0x140006eed
cmp rax, rsi
mov r9d, 4
mov r8d, 0x1000
mov rdx, r14
cmovae rsi, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
nop dword [rax + rax]
lea r9, [rbp]
mov r8d, 0x104
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
nop dword [rax + rax]
jmp 0x140006eef
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.140001820
mov rbx, qword [rbp + 0x80]
mov rsi, qword [rbp + 0x88]
mov rdi, qword [rbp + 0x90]
mov r14, qword [rbp + 0x98]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x1400073f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x40], 0
mov rbx, rcx
lea rcx, [0x140015b38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp rbx, qword [0x140015c28]
jne 0x140007467
cmp byte [0x140015c20], 0
jne 0x140007467
lea rax, [rsp + 0x40]
mov byte [0x140015c20], 1
mov qword [rsp + 0x28], rax
lea r8, [fcn.1400070d0]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
mov qword [rbx + 0x88], rax
test rax, rax
jne 0x140007467
mov rcx, rbx
call fcn.1400070d0
lea rcx, [0x140015b38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140009d40
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rax, r8
mov qword [r11 - 0x10], r9
mov rdi, r9
mov qword [r11 - 0x18], rdx
lea r9, [r11 + 8]
mov rbx, rdx
xor esi, esi
mov rdx, rax
mov dword [rsp + 0x40], esi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x40]
mov edx, eax
test ecx, ecx
je 0x140009dd5
cmp ecx, 2
jbe 0x140009dbb
cmp ecx, 7
jne 0x140009dd5
test byte [rdi], 1
jne 0x140009dd5
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140009dd5
test rbx, rbx
je 0x140009dd1
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009dd5
cmp word [rbx + rax*2 - 4], si
jmp 0x140009dcf
test byte [rdi], 1
jne 0x140009dd5
test rbx, rbx
je 0x140009dd1
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009dd5
mov eax, edx
jmp 0x140009dda
mov eax, 0xd
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret