joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008164
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14003c280]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, qword [rbp + 0x40]
mov r14, r9
mov rdi, rdx
test rsi, rsi
jne 0x1400081ae
lea r8, str.pdwValue
mov edx, 0x216
lea rcx, str.onecore_basecbsutilcbsreg.cpp
call fcn.140006cac
xor ebx, ebx
mov rcx, 0xffffffff80000002
and qword [rbp - 0x20], rbx
and dword [rbp - 0x14], ebx
and dword [rbp - 0x18], ebx
and dword [rbp - 0x10], ebx
test rdi, rdi
je 0x140008242
lea rax, [rbp - 0x20]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x140008207
movzx ebx, cx
or ebx, 0x80070000
test ecx, ecx
cmovle ebx, ecx
jmp 0x1400082cc
test ecx, ecx
je 0x14000823c
movzx ebx, cx
lea r9, str.Failed_to_open_the_registry_root:_n_a__key:__S.
or ebx, 0x80070000
mov qword [rsp + 0x20], rdi
test ecx, ecx
cmovle ebx, ecx
mov r8d, 1
mov edx, ebx
mov ecx, 0x4000000
call fcn.140006a50
jmp 0x1400082cc
mov rcx, qword [rbp - 0x20]
jmp 0x140008246
mov qword [rbp - 0x20], rcx
lea rax, [rbp - 0x18]
mov dword [rbp - 0x18], 4
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x14]
lea rax, [rbp - 0x10]
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
cmp eax, 2
jne 0x140008281
mov ebx, 0x80070002
jmp 0x1400082cc
test eax, eax
je 0x1400082a1
movzx ebx, ax
lea r9, str.Failed_to_query_registry_value:__S
or ebx, 0x80070000
mov qword [rsp + 0x20], r14
test eax, eax
cmovle ebx, eax
jmp 0x140008225
cmp dword [rbp - 0x14], 4
je 0x1400082c7
mov ebx, 0x8007000d
lea r9, str.Registry_value_is_not_a_DWORD_type.
mov edx, ebx
mov r8d, 1
mov ecx, 0x4000000
call fcn.140006a50
jmp 0x1400082cc
mov ecx, dword [rbp - 0x10]
mov dword [rsi], ecx
test rdi, rdi
je 0x1400082e6
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400082e6
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 - 8]
xor rcx, rsp
call fcn.14001b900
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140008310
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003c280]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebx, ebx
and qword [r11 - 0x18], rbx
lea rax, [r11 - 0x18]
xor r8d, r8d
lea rdi, str.SOFTWAREMicrosoftWindowsCurrentVersionSideBySide
mov qword [r11 - 0x28], rax
mov rdx, rdi
lea r9d, [rbx + 2]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x14000837a
movzx ebx, cx
or ebx, 0x80070000
test ecx, ecx
cmovle ebx, ecx
jmp 0x140008404
test ecx, ecx
je 0x140008395
movzx ebx, cx
lea r9, str.Failed_to_open_key:__S
or ebx, 0x80070000
test ecx, ecx
cmovle ebx, ecx
jmp 0x1400083ed
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
mov r9d, 4
lea rdi, str.MaintenanceFlags
mov dword [rsp + 0x28], r9d
mov rdx, rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400083d4
mov ebx, 0x80070002
jmp 0x140008404
test eax, eax
je 0x140008404
movzx ebx, ax
lea r9, str.Failed_to_set_registry_value:__S
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, 1
mov qword [rsp + 0x20], rdi
mov edx, ebx
mov ecx, 0x4000000
call fcn.140006a50
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000841a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001b900
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140008664
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14003c280]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
mov rdi, rcx
test rcx, rcx
jne 0x1400086aa
lea r8, str.szPath
mov edx, 0x1c0
lea rcx, str.onecore_basecbsutilcbsfile.cpp
call fcn.140006cac
xor edx, edx
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400087d7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x1400087d7
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140008720
mov ebx, 0x80070003
mov qword [rsp + 0x20], rdi
lea r9, str.Cannot_find_parent_for_path:__S.
mov edx, ebx
mov r8d, 1
mov ecx, 0x4000000
call fcn.140006a50
jmp 0x1400087d7
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
sub rbx, rdi
sar rbx, 1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x14000873c
cmp rbx, rax
ja 0x140008775
mov r9, rbx
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 0x104
call fcn.140006dac
mov ebx, eax
test eax, eax
jns 0x140008775
mov qword [rsp + 0x20], rdi
lea r9, str.Failed_to_copy_parent_of_path:__S
mov edx, eax
jmp 0x14000870b
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140008664
mov ebx, eax
test eax, eax
jns 0x14000879d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, str.Failed_to_create_path:__S
jmp 0x140008709
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400087d5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x1400087d5
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400087d7
mov ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001b900
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140016110
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 [0x14003c280]
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.140002ea4
lea r8, [0x140038a10]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140006e44
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400161c1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x1400162b9
mov rcx, qword [rbp + 0x178]
lea edx, [rdi - 0x3b]
call fcn.1400155b0
mov esi, eax
jmp 0x14001629f
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.14001631c
mov esi, eax
test eax, eax
jns 0x1400161ff
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.140015574
mov rcx, rbx
call fcn.140015e44
jmp 0x14001629f
lea r8, [0x14001db08]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140006e44
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140016248
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.1400155b0
mov esi, eax
jmp 0x1400161f2
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001631c
mov esi, eax
test eax, eax
jns 0x14001627c
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.140015574
mov rcx, rdi
call fcn.140015e44
jmp 0x1400161f2
mov rcx, rdi
call fcn.140015e44
movsxd rax, dword [rsp + 0x24]
mov rcx, rbx
movsxd r14, dword [rsp + 0x20]
shl r14, 0x1f
or r14, rax
call fcn.140015e44
xor esi, esi
test esi, esi
jns 0x1400162b9
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.140015574
jmp 0x1400162be
mov r15, r14
xor esi, esi
test esi, esi
jns 0x1400162da
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x6b
call fcn.140015574
mov eax, esi
jmp 0x1400162e7
mov rax, r15
shl rax, 2
mov qword [r12], rax
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14001b900
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 0x14001aa9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
and qword [rsp + 0x40], rdi
mov rcx, rdx
mov rsi, rdx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001ab43
test al, 0x10
jne 0x14001ab43
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x40]
lea rdx, str._ssshim.dll
call fcn.14001a8e0
mov rbx, qword [rsp + 0x40]
test eax, eax
js 0x14001ab1e
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
je 0x14001ab1e
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rdi, rax
test rbx, rbx
je 0x14001ab43
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001b8d0
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
cmp esp, 0
je 0x14001b92a
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x14001b932
mov r14, qword [r14]
jmp 0x14001b8fb
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
je 0x14001b95f
cmp r14d, 0
jne 0x14001b967
jmp 0x14001b975
inc rax
inc rax
inc rax
inc rax
jmp 0x14001b94e
mov r14d, dword [r15 + 0x20]
sub rax, r14
sub rax, r12
shr eax, 1
mov r14d, dword [r15 + 0x24]
add r14, rax
add r14, r12
mov eax, dword [r14]
mov r14d, dword [r15 + 0x1c]
shl eax, 0x10
shr eax, 0xe
add r14, r12
Function at 0x14003eb90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x828
mov ecx, dword [0x14010d018]
test ecx, ecx
je 0x14003ebc3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14003ebdc
cmp qword [rax + 8], 0
je 0x14003ebdc
add rax, 0x10
jmp 0x14003edd7
lea rcx, section..data
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14003ebb3
mov ecx, dword [0x14010d018]
test ecx, ecx
je 0x14003edb8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14003edd5
mov rsi, rax
test rax, rax
jne 0x14003ec4c
movzx eax, byte [0x141934140]
mov edx, 0x18
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x14003edfa
mov rsi, rax
lea rax, section..data
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14010d018]
test ecx, ecx
je 0x14003edfc
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, qword [0x141934030]
cmp rax, 3
jne 0x14003ede4
mov rdi, qword [0x141934038]
lock inc qword [rdi]
jle 0x14003edfa
mov eax, 0x60
movups xmm0, xmmword [0x1418d06c8]
movups xmm1, xmmword [0x1418d06b8]
nop word cs:[rax + rax]
movups xmmword [rsp + rax - 0x30], xmm0
movups xmmword [rsp + rax - 0x40], xmm1
movups xmmword [rsp + rax - 0x20], xmm1
movups xmmword [rsp + rax - 0x10], xmm0
movups xmmword [rsp + rax], xmm1
movups xmmword [rsp + rax + 0x10], xmm0
movups xmmword [rsp + rax + 0x20], xmm1
movups xmmword [rsp + rax + 0x30], xmm0
sub rax, 0xffffffffffffff80
cmp rax, 0x860
jne 0x14003ec90
movzx eax, byte [0x141934140]
mov edx, 0x980
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x14003edfa
mov r14, rax
and r14, 0xffffffffffffff80
lea rbx, [r14 + 0x80]
mov qword [r14 + 0x78], rax
mov qword [r14 + 0x80], 0
mov qword [r14 + 0x88], rdi
lea rcx, [r14 + 0x90]
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call sub.msvcrt.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [r14 + 0x890], xmm0
mov qword [r14 + 0x8a0], 1
mov qword [r14 + 0x8a8], 0
mov qword [r14 + 0x900], 0
mov rcx, qword [0x141934038]
mov rax, qword [rcx + 0x200]
nop word cs:[rax + rax]
mov qword [rbx], rax
lock cmpxchg qword [rcx + 0x200], rbx
jne 0x14003ed60
lea rax, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rbx
je 0x14003edd7
mov rdx, qword [rcx + 0x820]
lea r8, [rdx - 1]
mov qword [rcx + 0x820], r8
cmp qword [rcx + 0x818], 0
jne 0x14003edd7
cmp rdx, 1
jne 0x14003edd7
mov rsi, rax
call fcn.14003e070
mov rax, rsi
jmp 0x14003edd7
lea rcx, section..data
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14003ebfb
xor eax, eax
add rsp, 0x828
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14003e4a0
mov rdi, qword [0x141934038]
lock inc qword [rdi]
jg 0x14003ec6e
ud2
lea rcx, section..data
call fcn.1400e94f0
mov ecx, eax
jmp 0x14003ec44
Function at 0x14004c840
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x14010d188]
test ecx, ecx
je 0x14004c870
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14004c889
cmp qword [rax + 8], 0
je 0x14004c889
add rax, 0x10
jmp 0x14004c945
lea rcx, [0x14010d170]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14004c860
mov ecx, dword [0x14010d188]
test ecx, ecx
je 0x14004c926
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14004c943
test rax, rax
jne 0x14004c8f5
movzx eax, byte [0x141934140]
mov edx, 0x18
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x14004c962
lea rcx, [0x14010d170]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14010d188]
test ecx, ecx
je 0x14004c94c
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x14004c90f
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14004c911
mov rcx, qword [rsi + 8]
jmp 0x14004c911
xor ecx, ecx
lea rdx, [rax + 0x10]
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
mov rax, rdx
jmp 0x14004c945
lea rcx, [0x14010d170]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14004c8a8
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14010d170]
mov rdi, rax
call fcn.1400e94f0
mov ecx, eax
mov rax, rdi
jmp 0x14004c8e7
ud2
Function at 0x140094400
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x14010d098]
test ecx, ecx
je 0x140094430
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140094449
cmp qword [rax + 8], 0
je 0x140094449
add rax, 0x10
jmp 0x140094512
lea rcx, [0x14010d080]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140094420
mov ecx, dword [0x14010d098]
test ecx, ecx
je 0x1400944f3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140094510
test rax, rax
jne 0x1400944b5
movzx eax, byte [0x141934140]
mov edx, 0x18
xor ecx, ecx
call fcn.1400e65f0
test rax, rax
je 0x140094532
lea rcx, [0x14010d080]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14010d098]
test ecx, ecx
je 0x140094519
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x1400944cb
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
jne 0x1400944de
mov ecx, 1
lock xadd qword [0x14010d0a0], rcx
test rcx, rcx
je 0x140094532
lea rdx, [rax + 0x10]
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
mov rax, rdx
jmp 0x140094512
lea rcx, [0x14010d080]
call fcn.1400e94f0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140094468
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14010d080]
mov rdi, rax
call fcn.1400e94f0
mov ecx, eax
mov rax, rdi
jmp 0x1400944a7
ud2
Function at 0x1400cbf60
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, r8
mov rsi, rcx
mov r14, r8
sub r14, rdx
shr r14, 3
sub rbx, rdx
je 0x1400cc04e
movabs rax, 0x7ffffffffffffff8
cmp rbx, rax
ja 0x1400cc146
mov rdi, rdx
movzx eax, byte [0x141934140]
xor ecx, ecx
mov rdx, rbx
call fcn.1400e65f0
test rax, rax
je 0x1400cc146
cmp rbx, 0xa0
jae 0x1400cc06a
xor edx, edx
mov rcx, rdx
or rcx, 1
test bl, 8
je 0x1400cbff0
mov r8d, dword [rdi + rdx*8]
mov r9d, dword [rdi + rdx*8 + 4]
cmp r8d, r9d
mov r10d, r9d
cmovb r10d, r8d
cmova r9d, r8d
mov dword [rax + rdx*8], r10d
mov dword [rax + rdx*8 + 4], r9d
mov rdx, rcx
cmp r14, rcx
je 0x1400cc055
nop word cs:[rax + rax]
mov ecx, dword [rdi + rdx*8]
mov r8d, dword [rdi + rdx*8 + 4]
cmp ecx, r8d
mov r9d, r8d
cmovb r9d, ecx
cmova r8d, ecx
mov dword [rax + rdx*8], r9d
mov dword [rax + rdx*8 + 4], r8d
mov ecx, dword [rdi + rdx*8 + 8]
mov r8d, dword [rdi + rdx*8 + 0xc]
cmp ecx, r8d
mov r9d, r8d
cmovb r9d, ecx
cmova r8d, ecx
mov dword [rax + rdx*8 + 8], r9d
mov dword [rax + rdx*8 + 0xc], r8d
add rdx, 2
cmp r14, rdx
jne 0x1400cc000
mov rcx, rdx
jmp 0x1400cc055
xor ecx, ecx
mov eax, 4
mov qword [rsi], r14
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [rax + r14*8]
add rcx, 0xfffffffffffffff8
xor edx, edx
cmp rcx, rax
jb 0x1400cbfc1
lea rcx, [rax + 4]
lea r8, [rax + r14*8]
add r8, 0xfffffffffffffffc
cmp r8, rcx
jb 0x1400cbfc1
movabs rcx, 0x1ffffffffffffffe
lea r8, [r14 - 1]
lea r9, [rcx + 1]
cmp r8, r9
ja 0x1400cbfc1
mov rdx, rbx
and rdx, 0xfffffffffffffff8
lea r8, [rdi + rdx]
cmp rax, r8
jae 0x1400cc0cc
mov r8, rax
add r8, rdx
cmp r8, rdi
ja 0x1400cbfbf
and rcx, r14
xor edx, edx
movdqa xmm0, xmmword [0x1401112c0]
nop dword [rax]
movdqu xmm1, xmmword [rdi + rdx*8]
pshufd xmm2, xmm1, 0xe8
pshufd xmm1, xmm1, 0xed
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm4
pandn xmm3, xmm1
movdqa xmm5, xmm4
pandn xmm5, xmm2
pand xmm2, xmm4
por xmm2, xmm3
pand xmm4, xmm1
por xmm4, xmm5
punpckldq xmm2, xmm4
movdqu xmmword [rax + rdx*8], xmm2
add rdx, 2
cmp rcx, rdx
jne 0x1400cc0e0
mov rdx, rcx
cmp r14, rcx
jne 0x1400cbfc1
jmp 0x1400cc055
ud2
Function at 0x1400dfe30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
test r8b, r8b
setne al
cmp r9b, 1
ja 0x1400dfeb2
test r8b, r8b
jne 0x1400dfe8a
movzx esi, byte [rdx + 0x10]
lea r8d, [rsi - 5]
cmp r8b, 1
ja 0x1400dfe8a
mov r10, qword [rdx]
mov r8, qword [rdx + 8]
mov eax, dword [rdx + 8]
xor eax, eax
xor r8d, r8d

Function at 0x1400e39e0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov edi, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x1400e3a80
jmp 0x1400e3a5f
jae 0x1400e3b2a
cmp r8, 0x201
jae 0x1400e3a80
mov ebx, 0x200
lea r12, [rsp + 0x98]
mov r13, r8
jmp 0x1400e3aab
sub r8, r15
sub rsi, r15
cmp rsi, r8
jb 0x1400e3b09
cmp r14, rdi
mov r15d, 0xffffffff
cmovb r15, r14
mov qword [rsp + 0x38], r15
mov rsi, r14
mov rbx, r15
mov r12, qword [rsp + 0x48]
mov r13, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r12
mov edx, r13d
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov ebp, eax
test eax, eax
jne 0x1400e3ad0
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400e3bf7
mov r8d, ebp
cmp r13, r8
jne 0x1400e3a50
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400e3c24
add r13, r13
cmp r13, rdi
cmovae r13, rdi
mov r8, r13
cmp r8, 0x201
jb 0x1400e3a5f
jmp 0x1400e3a80
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.1400e3da0
mov r14, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x1400e3a8b
cmp rbx, r8
jb 0x1400e3c24
lea r14, [rsp + 0x60]
mov rcx, r14
mov rdx, r12
call fcn.1400ed5f0
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rcx, r14
call fcn.1400e1b70
mov rax, qword [rsp + 0x58]
cmp byte [rax], 0
jne 0x1400e3b78
lea rdx, [0x1419292c0]
lea rcx, [rsp + 0x60]
mov r8d, 3
call fcn.1400e2f30
mov rdi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.1400e6640
cmp qword [rsp + 0x60], 0
je 0x1400e3bab
mov rcx, qword [0x1419340f0]
xor edx, edx
mov r8, rdi
call fcn.1401034d0
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rcx], xmm0
cmp qword [rsp + 0x28], 0
je 0x1400e3be2
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x1419340f0]
xor edx, edx
call fcn.1401034d0
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000001
mov qword [rcx], rax
cmp qword [rsp + 0x28], 0
jne 0x1400e3bcf
jmp 0x1400e3be2
ud2