joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140147930
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov qword [rsp + 0x40], r9
mov r15, r8

Function at 0x140147bf0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x58], r9
mov r15, r8
mov qword [rsp + 0x38], rcx
mov rbx, qword [rdx + 0x10]
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x140147e31
mov rax, qword [rsp + 0xe0]
mov r12d, 0xffffffff
cmp rax, r12
cmovb r12, rax
mov r13, qword [rdx + 0x20]
xorps xmm6, xmm6
jmp 0x140147c77
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov r8, r15
mov r9b, 1
call case.0x1401327c8.502
movzx eax, byte [rsp + 0x49]
cmp al, 3
jne 0x140147e5b
cmp al, 2
jne 0x140147eb6
mov rsi, qword [rsp + 0x40]
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33librarycore_src_strpattern.rs
lea r8, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.32.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.140160fb0
ud2
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
pop rsi
add rax, rdx
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001dc0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.140086290
sub rsp, rax
xor eax, eax
mov r8d, 0x28
lea rbx, [rsp + 0x20]
mov rdx, rcx
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.14001f2f0
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140001e1f
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret

Function at 0x140001e30
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea rsi, [rsp + 0x20]
mov rbx, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, rsi
call fcn.14001f2f0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop rbx
pop rsi
ret

Function at 0x140001ef0
Capabilities:
Set environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rdi, r8
mov rbp, rdx
mov r12, rcx
call fcn.14001a730
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
test rdi, rdi
mov rsi, rax
je 0x140001f9f
mov rdx, rdi
mov rcx, rbp
call fcn.140001e30
mov rcx, rdi
mov rdx, 0xffffffffffffffff
call sub.python311.dll_PyUnicode_FromWideChar
mov rdx, rsi
mov rcx, rbx
mov rdi, rax
mov r8, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
jne 0x140001fe1
sub qword [rdi], 1
jne 0x140001f6e
mov rcx, rdi
call fcn.140001e70
sub qword [rsi], 1
jne 0x140001f7c
mov rcx, rsi
call fcn.140001e70
sub qword [rbx], 1
jne 0x140001f94
mov rcx, rbx
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140001e70
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdi, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbp
mov word [rsp + 0x20], 0
mov rcx, rdi
call fcn.14001f2f0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x140001f6e
mov rcx, r12
call fcn.140001e80
jmp 0x140001f6e
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
nop
nop dword [rax + rax]
Function at 0x14007c4b0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400a3f89], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14007c538
lea rdx, [0x1400949ea]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14007c650
mov rsi, qword [0x1400a3e40]
jmp 0x14007c4f5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test ebx, ebx
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
jne 0x14007c4f0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14006bb50
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400a3e40], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400a3e40], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400a3e40], rcx
test eax, eax
je 0x14007c638
lea r8, [rcx + rax]
mov eax, 0xffffffff
nop word cs:[rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp rcx, r8
jne 0x14007c5a0
not eax
cmp r9d, eax
jne 0x14007c6b8
mov byte [0x1400a3f89], 1
jmp 0x14007c4cc
cmp byte [0x1400a3f88], 0
jne 0x14007c4e3
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400a48e8], rax
call rbx
mov qword [0x1400a48e0], rax
call rbx
mov qword [0x1400a48d8], rax
call rbx
mov qword [0x1400a48d0], rax
call rbx
mov qword [0x1400a48c8], rax
call rbx
mov qword [0x1400a48c0], rax
call rbx
mov qword [0x1400a48b8], rax
call rbx
mov byte [0x1400a3f88], 1
mov qword [0x1400a48b0], rax
jmp 0x14007c4e3
lea rcx, str.Error__corrupted_constants_object
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop word [rax + rax]
Function at 0x1400854f0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140086e50
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140085560
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400a4d44]
test esi, esi
mov rbx, rcx
jle 0x140085690
mov rax, qword [0x1400a4d48]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400855ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140085635
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140085590
mov rcx, rbx
call fcn.140085fb0
test rax, rax
mov rdi, rax
je 0x1400856b2
mov rax, qword [0x1400a4d48]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400860f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400a4d48]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140085697
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14008562e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140085640
add dword [0x1400a4d44], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400a4d48]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14008562e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400854f0
nop dword [rax]
xor esi, esi
jmp 0x1400855b8
mov rax, qword [0x1400a4d48]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400854f0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400854f0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140085c20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400a4da0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400a4d80]
test rbx, rbx
je 0x140085c7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140085c73
test rsi, rsi
je 0x140085c73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140085c58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140085fb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140095d70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140085fd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140085fd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140085fd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14008602d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140086024
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140085fd0
add rax, 0x28
cmp rax, r9
jne 0x140086010
xor eax, eax
ret

Function at 0x140086030
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140095d70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14008604f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140086058
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14008604f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400860f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140095d70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14008610f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140086118
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180001904
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ecx, [rbx + 0x13]
mov dl, 1
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
cmp eax, ebx
jl 0x18000193c
lea ecx, [rbx + 6]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, ebx
jne 0x180001941
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180001941
mov ebx, 0x522
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x18000194c
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [0x180023a50]
mov esi, 0x104
xor edx, edx
mov r8, rsi
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180001a51
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x180001a37
lea edx, [rbx + 0x32]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
lea rdx, [0x180025287]
mov r8, rdi
lea rcx, [rax + 2]
mov rbx, rax
mov byte [rax + 1], 0
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r8d, 3
lea rcx, [rbx + 2]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180001a37
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdx, rax
mov r8d, 0x10000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001a1b
xor ebx, ebx
jmp 0x180001a23
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x180001a3f
call fcn.180001904
jmp 0x180001a3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180001a64
Capabilities:
Get common file path
Set registry value

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 r13
push r14
sub rsp, 0x40
mov r13d, edx
mov r14, rcx
xor edx, edx
xor ecx, ecx
mov esi, r9d
mov r12, r8
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, qword [0x180023a50]
lea r8d, [rax + 0x11]
xor edx, edx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180001b88
lea ecx, [rbp + 1]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rdi + rbx]
lea rdx, [0x18002528e]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9, r12
mov r8d, r13d
mov rdx, r14
mov rcx, rdi
mov dword [rsp + 0x20], 1
call fcn.180011504
mov ebx, eax
test eax, eax
jne 0x180001b76
test esi, esi
je 0x180001b76
lea r8, [rsp + 0x30]
lea rdx, [0x180025341]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test eax, eax
jne 0x180001b76
movsx r8d, byte [0x1800252d9]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x30]
inc eax
lea rdx, [rbx + 1]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x180001bac
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov r13, rcx
mov rcx, qword [0x180023a50]
mov r14, r8
mov r12, rdx
mov r8d, 0x208
xor edx, edx
mov ebx, 8
xor edi, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x180001ce1
lea r8, [rsp + 0x50]
mov rdx, r12
mov rcx, r13
lea rbp, [rax + 0x104]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x180001ccf
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0xa8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r8, rsi
mov edx, edi
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0xa8], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, eax
test eax, eax
jne 0x180001cc4
cmp dword [rsp + 0x44], 1
jne 0x180001cbd
mov eax, dword [rsp + 0xa8]
mov rdx, r14
mov rcx, rbp
mov byte [rax + rbp], bl
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x180001cbd
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
mov rdx, r12
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180001cbb
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
dec edi
inc edi
jmp 0x180001c15
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x180023a50]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180002330
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [0x180023a50]
xor edx, edx
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1800023f2
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x22]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov esi, 1
test eax, eax
jne 0x18000238d
mov r8d, esi
mov edx, esi
mov rcx, rbx
call fcn.180006fcc
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x20]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x1800023b5
mov r8d, esi
mov edx, esi
mov rcx, rbx
call fcn.180006fcc
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1a]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, eax
test eax, eax
jne 0x1800023de
mov edx, esi
mov rcx, rbx
call fcn.180001f34
mov edi, eax
mov rcx, qword [0x180023a50]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800023f7
mov edi, 8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x180002808
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
mov rsi, r8
mov r12, rdx
mov r13, rcx
mov ebp, ebx
cmp r8, rbx
je 0x18000283d
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov rcx, qword [0x180023a50]
lea r8d, [rbp + 1]
xor edx, edx
add r8, 0x10
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x1800028c7
mov qword [rax], r13
mov qword [rax + 8], r12
cmp ebp, ebx
je 0x180002876
lea rcx, [rax + 0x10]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180002879
mov byte [rax + 0x10], bl
lea rax, [rsp + 0x60]
lea r8, [0x1800027ac]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rbx
je 0x1800028ab
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800028cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800028cc
mov ebx, 8
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x1800029e4
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r13, rcx
lea rcx, [rax - 0x28]
mov ebx, r8d
mov r12d, edx
mov esi, 8
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
movzx eax, word [rsp + 0x24]
mov r11d, dword [rsp + 0x24]
mov byte [rsp + 0x28], bl
shr ax, 8
shr r11d, 0x10
movzx r9d, al
movzx eax, r11w
shr ax, 8
shl r9d, 0x10
movzx edx, al
movzx eax, r11b
shl eax, 8
add r9d, edx
mov edx, dword [rsp + 0x20]
add r9d, eax
movzx eax, byte [rsp + 0x24]
shr edx, 0x10
shl eax, 0x18
add r9d, eax
movzx eax, word [rsp + 0x20]
shr ax, 8
movzx r8d, al
movzx eax, dx
shr ax, 8
shl r8d, 0x10
movzx ecx, al
movzx eax, dl
shl eax, 8
add r8d, ecx
mov rcx, qword [0x180023af8]
add r8d, eax
movzx eax, byte [rsp + 0x20]
mov dword [rsp + 0x20], r9d
shl eax, 0x18
add r8d, eax
mov dword [rsp + 0x24], r8d
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180023a50]
mov ebx, eax
xor edx, edx
lea eax, [rbx + 1]
mov ebp, eax
lea r8, [rax + 0x13]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180002b24
mov rdx, qword [0x180023af8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [rbx + rdi], 0x5c
lea rbx, [rdi + rbp]
lea edx, [rsi + 1]
lea rcx, [rsp + 0x20]
mov r8, rbx
call fcn.180012054
lea r9d, [rsi - 6]
mov r8d, r12d
mov rdx, r13
mov rcx, rdi
mov byte [rbx + 0x12], 0
call fcn.18001182c
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret

Function at 0x180003920
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
and dword [rax - 0x28], 0
mov rsi, r9
mov qword [rax - 0x30], r8
and qword [rax - 0x38], 0
mov r12, rdx
mov r13, rcx
mov rdx, rcx
mov rcx, qword [rsi]
mov rbp, r8
lea r9, [rax - 0x28]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test eax, eax
jne 0x1800039c8
mov r8d, dword [rbp]
mov rcx, qword [0x180023a50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1800039c3
mov rcx, qword [rsi]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test eax, eax
jne 0x1800039af
mov qword [r12], rbx
jmp 0x1800039c8
mov rcx, qword [0x180023a50]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800039c8
mov edi, 8
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret