joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400541b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov ebx, 6
mov rdi, r9
mov ecx, ebx
mov rsi, r8
mov r14, rdx
call fcn.1400e2070
lea r15, str.CCabExtractor::GetResData
lea r12, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonMcEmbedCabExtractor.cpp
test eax, eax
je 0x14005422c
mov rax, qword [rsi]
mov r9d, 0x9f
mov qword [rbp + 0x30], rax
mov r8, r15
lea rax, [rbp + 0x30]
mov rdx, r12
mov qword [rsp + 0x28], rax
mov ecx, ebx
lea rax, str.GetResData____ls
mov qword [rsp + 0x20], rax
call fcn.1400323dc
mov rdx, qword [rsi]
cmp dword [rdx - 0x10], 0
je 0x14005429c
lea r8, [0x14035b338]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400542b7
lea ebx, [rax + 5]
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x14005429c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x30], eax
mov r9d, 0xa9
mov rax, qword [rsi]
mov r8, r15
mov qword [rbp + 0x40], rax
mov rdx, r12
lea rax, [rbp + 0x30]
mov ecx, ebx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, str.FindResource___failed_on__ls__.__Error_code_:_lu
mov qword [rsp + 0x20], rax
call fcn.14003519c
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140054309
lea ebx, [rax + 5]
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x14005429c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x30], eax
mov r9d, 0xb0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, str.LoadResource___failed._Error_code:__lu
mov r8, r15
mov qword [rsp + 0x20], rax
mov rdx, r12
mov ecx, ebx
call fcn.140032100
jmp 0x14005429c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [r14], rax
test rax, rax
jne 0x14005434d
lea ebx, [rax + 5]
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x14005429c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x30], eax
mov r9d, 0xb7
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, str.LockResource___failed._Error_code:__lu
jmp 0x1400542f5
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
jne 0x14005439e
lea ebx, [rax + 5]
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x14005439e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x30], eax
mov r9d, 0xbe
lea rax, [rbp + 0x30]
mov r8, r15
mov qword [rsp + 0x28], rax
mov rdx, r12
lea rax, str.Failed_to_retrieve_resource_size._Error_code:__lu
mov ecx, ebx
mov qword [rsp + 0x20], rax
call fcn.140032100
mov eax, edi
jmp 0x14005429e
Function at 0x140058d64
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x140058d94
cvtsi2ss xmm0, rdx
jmp 0x140058da9
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call fcn.1402e31b4
movss xmm1, dword [0x14037f960]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140058dd7
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140058dd7
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140058e05
cmp rbx, 0x200
jae 0x140058e02
shl rbx, 3
cmp rbx, rcx
jae 0x140058e05
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
ja 0x140058f8b
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [rsi + 8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14003803c
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140058f3f
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [r9 + rax + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 4
jb 0x140058e7d
mov r10, qword [rsi + 0x30]
mov r11, qword [rsi + 0x18]
and r10, r8
add r10, r10
cmp qword [r11 + r10*8], rbx
jne 0x140058ebc
mov qword [r11 + r10*8], rax
mov qword [r11 + r10*8 + 8], rax
jmp 0x140058f33
mov rdx, qword [r11 + r10*8 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140058ef6
mov rdi, qword [rdx]
cmp rdi, rax
je 0x140058eb5
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], rdi
mov rdx, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdi + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140058eb5
mov rdi, rdx
jmp 0x140058f08
mov rdx, qword [rdx + 8]
mov rdi, rdx
cmp r8d, dword [rdx + 0x10]
je 0x140058f65
cmp qword [r11 + r10*8], rdx
jne 0x140058efb
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], rdi
mov rdx, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdi + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + r10*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140058e6d
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140058fd0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140058f33
lea rcx, str.invalid_hash_bucket_count
call fcn.1400f5230
int3
Function at 0x140059308
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, r8
mov rbp, rdx
mov r13, rcx
cmp rdx, r8
je 0x14005940e
mov rax, qword [rcx + 8]
xor r8d, r8d
mov r15, qword [rcx + 0x18]
mov rbx, rdx
mov r14, qword [rdx + 8]
mov ecx, r8d
mov qword [rsp + 0x78], rax
movabs rsi, 0xcbf29ce484222325
movabs rdx, 0x100000001b3
movzx eax, byte [rcx + rbp + 0x10]
inc rcx
xor rsi, rax
imul rsi, rdx
cmp rcx, 4
jb 0x14005935c
and rsi, qword [r13 + 0x30]
add rsi, rsi
mov rax, qword [r15 + rsi*8 + 8]
mov r12, qword [r15 + rsi*8]
mov qword [rsp + 0x88], rax
mov rax, rbx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x80], rbx
mov rbx, qword [rbx]
mov rdx, qword [rax + 0x30]
cmp rdx, 8
jb 0x1400593c2
mov rcx, qword [rax + 0x18]
lea rdx, [rdx*2 + 2]
call fcn.1400331fc
mov rax, qword [rsp + 0x80]
xor r8d, r8d
mov edx, 0x38
mov qword [rax + 0x28], r8
mov rcx, rax
mov qword [rax + 0x30], 7
mov word [rax + 0x18], r8w
call fcn.1400331fc
mov rax, qword [rsp + 0x88]
dec qword [r13 + 0x10]
cmp qword [rsp + 0x20], rax
je 0x140059426
mov r8d, 0
cmp rbx, rdi
jne 0x140059389
cmp r12, rbp
jne 0x140059407
mov qword [r15 + rsi*8], rbx
mov qword [r14], rbx
mov qword [rbx + 8], r14
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp r12, rbp
jne 0x140059439
mov r12, qword [rsp + 0x78]
mov qword [r15 + rsi*8], r12
mov rax, r12
jmp 0x14005943c
mov rax, r14
mov qword [r15 + rsi*8 + 8], rax
cmp rbx, rdi
je 0x140059407
movabs rsi, 0xcbf29ce484222325
xor ecx, ecx
movabs r12, 0x100000001b3
movzx eax, byte [rbx + rcx + 0x10]
inc rcx
xor rsi, rax
imul rsi, r12
cmp rcx, 4
jb 0x14005945c
and rsi, qword [r13 + 0x30]
mov r12, qword [rsp + 0x78]
add rsi, rsi
mov rax, qword [r15 + rsi*8 + 8]
mov qword [rsp + 0x80], rax
mov rbp, rbx
mov rbx, qword [rbx]
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x1400594ab
mov rcx, qword [rbp + 0x18]
lea rdx, [rdx*2 + 2]
call fcn.1400331fc
xor eax, eax
mov qword [rbp + 0x30], 7
mov rcx, rbp
mov qword [rbp + 0x28], rax
mov word [rbp + 0x18], ax
lea edx, [rax + 0x38]
call fcn.1400331fc
mov rax, qword [rsp + 0x80]
dec qword [r13 + 0x10]
cmp rbp, rax
je 0x1400594e4
cmp rbx, rdi
je 0x140059403
jmp 0x14005948a
mov qword [r15 + rsi*8], r12
mov qword [r15 + rsi*8 + 8], r12
jmp 0x140059441

Function at 0x1400599d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ecx, ecx
movzx edx, dx
mov rsi, r8
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140059a28
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140059a28
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rdi
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x140059a2a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14005b698
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rsi, rdx
mov rbx, rcx
je 0x14005b6e3
cmp qword [rcx + 8], 0
je 0x14005b6e3
lea rdx, [rcx + 0x20]
cmp qword [rdx + 0x18], 8
jb 0x14005b6c9
mov rdx, qword [rdx]
cmp qword [rsi + 0x18], 8
mov rcx, rsi
jb 0x14005b6d6
mov rcx, qword [rsi]
call fcn.140147e74
test eax, eax
je 0x14005b7a2
lea rdi, [rbx + 0x20]
mov rdx, rsi
mov rcx, rdi
call fcn.140036dcc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005b706
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
and qword [rbx + 0x10], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005b71a
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
and qword [rbx + 8], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
test rax, rax
je 0x14005b7a6
mov rdx, rax
call fcn.140063cdc
cmp qword [rdi + 0x18], 8
jb 0x14005b749
mov rdi, qword [rdi]
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
test rax, rax
je 0x14005b7a6
mov ecx, 1
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rax
call fcn.1400e2070
test eax, eax
je 0x14005b7a2
lea rcx, str.WebService_Setup_Succeeded.
mov r9d, 0x54
mov qword [rsp + 0x20], rcx
lea r8, str.CSIS::WebServices::SetupConnection
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonWebServices.cpp
lea ecx, [r9 - 0x53]
call fcn.14003209c
mov al, 1
jmp 0x14005b7dd
mov ebx, 5
mov ecx, ebx
call fcn.1400e2070
test eax, eax
je 0x14005b7db
lea rax, str.WebServices_SetupConnection_Fails.
mov ecx, ebx
lea r9d, [rbx + 0x53]
mov qword [rsp + 0x20], rax
lea r8, str.CSIS::WebServices::SetupConnection
lea rdx, str.E:BT98e4b0b8_6261_4b66_a156_8e0ef62b3d71UBF_1CSIS_srcCSISCommonWebServices.cpp
call fcn.14003209c
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14005e01c
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, r8
test rcx, rcx
je 0x14005e0a0
cmp edx, 1
jb 0x14005e0a0
test rbx, rbx
je 0x14005e0a0
cmp r9d, 0x10
jne 0x14005e0a0
and dword [rsp + 0x24], 0
mov r8d, edx
and dword [rsp + 0x20], 0
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x67452301
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
call fcn.14005e0bc
lea rcx, [rsp + 0x20]
call fcn.14005e1a8
movups xmm0, xmmword [rsp + 0x78]
xor eax, eax
movdqu xmmword [rbx], xmm0
jmp 0x14005e0a3
or eax, 0xffffffff
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140119fe0
add rsp, 0xa0
pop rbx
ret
Function at 0x14005edac
Capabilities:
Hash data with md5

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x320
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r14, qword [rbp + 0x280]
lea rcx, [rbp - 0x70]
mov rdi, qword [rbp + 0x288]
mov rsi, r9
mov r9d, 1
mov r15d, r8d
mov rbx, rdx
lea rdx, str.E54C3DE0_9E70_4eea_94B6_D069D4E4A9BC
lea r8d, [r9 + 0x25]
call fcn.14005dd84
cmp r15d, 0x20
jb 0x14005eef6
movups xmm6, xmmword [rbx + 0x10]
and dword [rsp + 0x24], 0
lea rcx, [rsp + 0x20]
and dword [rsp + 0x20], 0
xorps xmm0, xmm0
mov r8d, r15d
mov dword [rsp + 0x28], 0x67452301
mov rdx, rbx
mov dword [rsp + 0x2c], 0xefcdab89
movups xmmword [rbp + 0x1e0], xmm6
mov dword [rsp + 0x30], 0x98badcfe
movups xmmword [rbx + 0x10], xmm0
mov dword [rsp + 0x34], 0x10325476
call fcn.14005e0bc
lea rcx, [rsp + 0x20]
call fcn.14005e1a8
movups xmm0, xmmword [rsp + 0x78]
movq rcx, xmm6
movq rax, xmm0
movups xmmword [rbp + 0x1f0], xmm0
cmp rcx, rax
jne 0x14005eef6
mov rax, qword [rbp + 0x1e8]
cmp rax, qword [rbp + 0x1f8]
jne 0x14005eef6
mov ecx, dword [rbx + 8]
add rcx, 0x20
cmp r15, rcx
jne 0x14005eef6
cmp dword [rbx], 0x4752434d
jne 0x14005eef6
test rsi, rsi
je 0x14005eeb6
mov eax, dword [rbx + 0xc]
mov dword [rsi], eax
test rdi, rdi
je 0x14005eef2
mov ecx, dword [rdi]
mov eax, dword [rbx + 8]
mov dword [rdi], eax
test r14, r14
je 0x14005eef2
mov r9d, dword [rbx + 8]
cmp r9d, ecx
jbe 0x14005eed7
mov ebx, 0xea
jmp 0x14005eefb
mov r8, r14
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 0x70]
call fcn.14005deb4
test eax, eax
jne 0x14005eef2
mov ebx, 0x1771
jmp 0x14005eefb
xor ebx, ebx
jmp 0x14005eefb
mov ebx, 0xd
mov rcx, qword [rbp + 0x1b8]
test rcx, rcx
je 0x14005ef18
lea rax, [rbp + 0x1ca]
cmp rcx, rax
je 0x14005ef18
call fcn.14011a254
mov rcx, qword [rbp + 0x1c0]
test rcx, rcx
je 0x14005ef35
lea rax, [rbp + 0x1cf]
cmp rcx, rax
je 0x14005ef35
call fcn.14011a254
mov eax, ebx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140119fe0
movaps xmm6, xmmword [rsp + 0x310]
add rsp, 0x320
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14005f074
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
lea rbp, [rsp + 0x30]
mov rax, qword [0x1403cd210]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r14, rdx
mov r15, rcx
mov rsi, qword [rbp + 0x90]
test rsi, rsi
je 0x14005f0bb
and dword [rsi], 0
and dword [rbp], 0
mov dword [rbp + 4], 0x1f4
and qword [rbp + 8], 0
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea rbx, [rsp + 0x30]
mov eax, dword [rbx]
mov qword [rbp + 0x10], rbx
test rbx, rbx
je 0x14005f0f4
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x10], rbx
mov qword [rbp + 8], rbx
jmp 0x14005f112
test rbx, rbx
je 0x14005f27d
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp eax, 0xea
jne 0x14005f223
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14005f15a
call fcn.14013d394
and qword [rbp + 8], 0
mov eax, dword [rbp + 4]
lea rcx, [rax + 0x10]
cmp rax, rcx
sbb rdx, rdx
and rdx, rcx
je 0x14005f1db
cmp rdx, 0x400
ja 0x14005f1b7
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14005f18d
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14011a9c0
sub rsp, rax
lea rbx, [rsp + 0x30]
mov qword [rbp + 0x18], rbx
test rbx, rbx
je 0x14005f1dd
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x18], rbx
jmp 0x14005f1dd
mov rcx, rdx
call fcn.140147c44
mov rbx, rax
mov qword [rbp + 0x20], rax
test rax, rax
je 0x14005f1dd
mov dword [rax], 0xdddd
add rbx, 0x10
mov qword [rbp + 0x20], rbx
jmp 0x14005f1dd
xor ebx, ebx
mov qword [rbp + 8], rbx
jmp 0x14005f1fb
test rbx, rbx
je 0x14005f27d
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x14005f268
cmp dword [rbp], 3
je 0x14005f234
mov edi, 0xd
jmp 0x14005f268
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
mov r8d, dword [rbp + 4]
mov rdx, rbx
call fcn.14005edac
mov edi, eax
test rsi, rsi
je 0x14005f268
mov eax, dword [rbp]
mov dword [rsi], eax
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14005f279
call fcn.14013d394
mov eax, edi
jmp 0x14005f282
mov eax, 0xe
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140119fe0
lea rsp, [rbp + 0x38]
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14005f29c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x70], rbx
mov rax, qword [0x1403cd210]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r14, r9
mov rbx, r8
mov rsi, rdx
mov r15, rcx
mov dword [rbp], 1
and dword [rbp + 4], 0
mov rdi, qword [rbp + 0x80]
test rdi, rdi
je 0x14005f2f5
mov eax, dword [rdi]
mov dword [rbp + 4], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
lea r9, [rbp]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test rbx, rbx
je 0x14005f319
mov ecx, dword [rbp]
mov dword [rbx], ecx
cmp dword [rbp], 1
je 0x14005f329
cmp dword [rbp], 7
jne 0x14005f4a3
test rdi, rdi
je 0x14005f4a3
mov ebx, dword [rdi]
test ebx, ebx
je 0x14005f4a3
test eax, eax
je 0x14005f34b
cmp eax, 0xea
jne 0x14005f4a3
mov eax, dword [rbp + 4]
mov dword [rbp + 4], ebx
mov dword [rdi], eax
test r14, r14
je 0x14005f365
mov r8d, eax
xor edx, edx
mov rcx, r14
call fcn.140138ee0
and qword [rbp + 0x10], 0
lea rcx, [rbx + 0x10]
cmp rbx, rcx
sbb rdx, rdx
and rdx, rcx
je 0x14005f3e3
cmp rdx, 0x400
ja 0x14005f3bf
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14005f395
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14011a9c0
sub rsp, rax
lea rbx, [rsp + 0x30]
mov qword [rbp + 0x18], rbx
test rbx, rbx
je 0x14005f3e5
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x18], rbx
jmp 0x14005f3e5
mov rcx, rdx
call fcn.140147c44
mov rbx, rax
mov qword [rbp + 0x20], rax
test rax, rax
je 0x14005f3e5
mov dword [rax], 0xdddd
add rbx, 0x10
mov qword [rbp + 0x20], rbx
jmp 0x14005f3e5
xor ebx, ebx
mov qword [rbp + 0x10], rbx
jmp 0x14005f407
test rbx, rbx
jne 0x14005f414
lea eax, [rbx + 0xe]
jmp 0x14005f4a3
mov r8d, dword [rbp + 4]
xor edx, edx
mov rcx, rbx
call fcn.140138ee0
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test eax, eax
jne 0x14005f490
cmp dword [rbp], 1
jne 0x14005f473
mov eax, dword [rdi]
shr eax, 1
mov dword [rbp + 8], eax
lea r9, [rbp + 8]
mov r8, r14
mov rdx, rbx
lea ecx, [rsi + 3]
call fcn.14005f900
mov esi, eax
mov eax, dword [rbp + 8]
add eax, eax
mov dword [rdi], eax
jmp 0x14005f490
cmp dword [rbp], 7
jne 0x14005f48e
mov r9, rdi
mov r8, r14
mov rdx, rbx
mov rcx, r15
call fcn.14005ef60
mov esi, eax
jmp 0x14005f490
xor esi, esi
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14005f4a1
call fcn.14013d394
mov eax, esi
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140119fe0
mov rbx, qword [rbp + 0x70]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005f9c4
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rsi, rcx
mov edi, 0x208
mov r8d, edi
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.140138ee0
mov r8d, edi
lea rcx, [rbp + 0x150]
xor edx, edx
call fcn.140138ee0
mov r14d, 0x104
lea rcx, [rbp + 0x150]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x14005fa45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x14005fa6d
jmp 0x14005fbc2
lea r8, [rbp + 0x150]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.1401475b8
lea rdx, str._system32driversetchosts
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor ebx, ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005fa91
test al, 1
je 0x14005fa91
and eax, 0xfffffffe
lea rcx, [rsp + 0x40]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], 4
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x14005fbc0
mov r8, rdi
lea rcx, [rbp + 0x150]
xor edx, edx
call fcn.140138ee0
lea r8, str._SystemRoot_System32driversetc
mov rdx, r14
lea rcx, [rbp + 0x150]
call fcn.1401475b8
lea rcx, [rbp + 0x150]
call fcn.140147db0
mov rdi, rax
test rax, rax
je 0x14005fb5e
mov r8d, r14d
lea rdx, [rbp + 0x150]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x14005fb4e
lea r8, [rbp + 0x150]
mov rdx, r14
lea rcx, [rsp + 0x40]
xor ebx, ebx
call fcn.1401475b8
lea r8, str.hosts
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140147c4c
jmp 0x14005fb56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.14013d394
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005fb82
test al, 1
je 0x14005fb82
and eax, 0xfffffffe
lea rcx, [rsp + 0x40]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], 4
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x14005fbc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005fbc2
mov eax, ebx
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140119fe0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140061c20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, r9
mov rax, r9
cmp qword [r9 + 0x18], 8
jb 0x140061c51
mov rax, qword [r9]
xor ebp, ebp
mov qword [r9 + 0x10], rbp
mov word [rax], bp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, eax
test eax, eax
jne 0x140061cc8
mov rcx, qword [rsp + 0x20]
test rcx, rcx
jne 0x140061ced
mov ebx, ebp
mov qword [rsp + 0x28], rbx
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140062528
nop
mov rdx, qword [rax]
mov rcx, rdi
call fcn.140031d84
nop
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x140061cb3
call fcn.14013d394
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140119fe0
mov rbx, qword [rsp + 0x178]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140061c85
mov ecx, 0x8007000e
call fcn.140039608
int3