joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140108780
Capabilities:
Get file size

Disassembly:
push rbx
mov eax, 0x20
call fcn.14024eae0
sub rsp, rax
cmp dword [rcx + 0x38], 0
mov rbx, rcx
je 0x1401087d4
mov rcx, qword [rcx + 0x28]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1401087c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x1401087d4
mov rax, qword [rsp + 0x30]
test rax, rax
js 0x1401087d4
mov qword [rbx + 0x98], rax
mov rax, qword [rbx + 0x98]
add rsp, 0x20
pop rbx
ret
Function at 0x14010dc30
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
mov eax, 0x1080
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x1070], rax
xor ebp, ebp
mov rbx, r9
mov rsi, rcx
cmp dword [rsp + 0x10b0], ebp
jg 0x14010dc72
xor eax, eax
jmp 0x14010dd1d
cmp rbx, rsi
je 0x14010dc7b
mov word [r9], bp
cmp dword [rsp + 0x10b0], 0x824
jl 0x14010dc9d
xor r8d, r8d
lea rdx, [0x1402d4bb8]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x14010dd1d
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x1048
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x1402d4bb8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, eax
test eax, eax
je 0x14010dd1b
or r9, 0xffffffffffffffff
lea rax, [rsp + 0x20]
mov rcx, r9
inc rcx
cmp word [rax + rcx*2], bp
jne 0x14010dcd9
cmp ecx, dword [rsp + 0x10b0]
jl 0x14010dd05
mov ecx, 0x304c19e
call fcn.1400bc714
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14010dc6b
movsxd rdx, dword [rsp + 0x10b0]
lea r8, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov eax, esi
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.14024c6d0
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x14010de14
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
push r14
push r15
mov eax, 0x40
call fcn.14024eae0
sub rsp, rax
mov ebp, edx
mov rbx, rcx
lea rdx, [rcx + 0x68]
mov r14, r8
lea rcx, [rsp + 0x30]
call fcn.1400b5034
xor r15d, r15d
mov word [r14], r15w
lea edi, [r15 + 1]
cmp qword [rbx + 0x60], r15
jne 0x14010ded3
mov r9d, 0x1f0003
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventExW]
mov rcx, qword [rbx + 0x60]
mov rsi, rax
test rcx, rcx
je 0x14010de88
mov qword [rbx + 0x60], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], rsi
test rsi, rsi
je 0x14010ded3
lea rcx, [rbx + 0x40]
call fcn.1400bd160
mov r8, rax
lea rcx, [0x1402c63c0]
xor edx, edx
call fcn.1400b64b0
test eax, eax
jne 0x14010ded3
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14010ded3
mov r9, qword [rbx + 0x60]
test r9, r9
je 0x14010ded3
mov r8d, 0x1000000f
mov dword [rsp + 0x20], edi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14010df21
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14010df21
mov rcx, rbx
call fcn.14010e10c
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14010dfb5
mov r9, qword [rbx + 0x60]
test r9, r9
je 0x14010dfb5
mov r8d, 0x1000000f
mov dword [rsp + 0x20], edi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
jmp 0x14010dfb5
movabs rcx, 0xcbf29ce484222325
mov rdx, r15
movzx eax, byte [rsp + rdx + 0x68]
movabs r8, 0x100000001b3
xor rcx, rax
add rdx, rdi
imul rcx, r8
cmp rdx, 4
jb 0x14010df2e
mov rdx, qword [rbx + 0x30]
and rdx, rcx
mov rcx, qword [rbx + 0x18]
add rdx, rdx
mov rax, qword [rcx + rdx*8 + 8]
cmp rax, qword [rbx + 8]
je 0x14010df7c
mov rcx, qword [rcx + rdx*8]
jmp 0x14010df75
cmp rax, rcx
je 0x14010df7c
mov rax, qword [rax + 8]
cmp ebp, dword [rax + 0x10]
jne 0x14010df6c
jmp 0x14010df7f
mov rax, r15
test rax, rax
cmove rax, qword [rbx + 8]
cmp rax, qword [rbx + 8]
je 0x14010dfb5
lea r8, [rax + 0x18]
cmp qword [r8 + 0x18], 8
jb 0x14010df9b
mov r8, qword [r8]
mov edx, 0x104
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edi, 2
test eax, eax
jne 0x14010dfb5
mov edi, r15d
lea rcx, [rsp + 0x30]
call fcn.1400b4fc0
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14010dfdc
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov byte [rax + 0x20], r9b
push rdi
mov eax, 0x50
call fcn.14024eae0
sub rsp, rax
movsxd rdi, r8d
mov rbx, rcx
xor ebp, ebp
mov word [rcx], bp
test r8d, r8d
js 0x14010e0ff
cmp edi, 0x27
ja 0x14010e026
movabs rcx, 0x8814010060
bt rcx, rdi
jb 0x14010e030
mov ecx, 0x3ca4d6
call fcn.1400bc714
mov r8, rbx
mov edx, edi
lea rcx, [0x14037e7f0]
call fcn.14010de14
test eax, eax
je 0x14010e0ea
cmp eax, 2
jne 0x14010e058
mov eax, 0x80004005
jmp 0x14010e0ea
mov edx, edi
bts edx, 0xf
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test eax, eax
js 0x14010e0ea
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x14010e07b
mov edx, 0x5c
movsxd rcx, eax
test eax, eax
je 0x14010e0a0
cmp word [rbx + rcx*2 - 2], dx
je 0x14010e0a3
inc eax
cmp eax, 0x104
jge 0x14010e0a3
mov dword [rbx + rcx*2], edx
mov dword [rsp + 0x78], edi
lea rdx, [0x14037e858]
lea rcx, [rsp + 0x30]
call fcn.1400b5034
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x40]
lea rcx, [0x14037e7f0]
call fcn.14010e374
mov rcx, qword [rax]
add rcx, 0x18
mov rdx, rbx
call fcn.14000ae4c
lea rcx, [rsp + 0x30]
call fcn.1400b4fc0
nop
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor edx, edx
mov ecx, 0x3ca4d4
call fcn.1400b3928
int3
Function at 0x14010e1d8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x28
call fcn.14024eae0
sub rsp, rax
mov rbp, r8
mov r13, rdx
cmp rdx, r8
je 0x14010e2ad
mov rax, qword [rcx + 8]
mov rsi, rdx
mov r15, qword [rdx + 8]
movabs r14, 0xcbf29ce484222325
mov r12, qword [rcx + 0x18]
xor edx, edx
mov qword [rsp + 0x78], rax
movabs r8, 0x100000001b3
movzx eax, byte [rdx + r13 + 0x10]
inc rdx
xor r14, rax
imul r14, r8
cmp rdx, 4
jb 0x14010e22f
and r14, qword [rcx + 0x30]
add r14, r14
mov rax, qword [r12 + r14*8]
mov qword [rsp + 0x80], rax
mov rax, qword [r12 + r14*8 + 8]
mov qword [rsp + 0x88], rax
mov rbx, rsi
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rbx + 0x18]
call fcn.14000ac30
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x70]
dec qword [rcx + 0x10]
cmp rbx, qword [rsp + 0x88]
je 0x14010e2c1
cmp rsi, rbp
jne 0x14010e265
cmp qword [rsp + 0x80], r13
jne 0x14010e2a6
mov qword [r12 + r14*8], rsi
mov qword [r15], rsi
mov qword [rsi + 8], r15
mov rax, rbp
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp qword [rsp + 0x80], r13
jne 0x14010e2d9
mov r13, qword [rsp + 0x78]
mov qword [r12 + r14*8], r13
mov rax, r13
jmp 0x14010e2dc
mov rax, r15
mov qword [r12 + r14*8 + 8], rax
cmp rsi, rbp
je 0x14010e2a6
xor edx, edx
movabs r14, 0xcbf29ce484222325
movabs r13, 0x100000001b3
movzx eax, byte [rsi + rdx + 0x10]
inc rdx
xor r14, rax
imul r14, r13
cmp rdx, 4
jb 0x14010e2fc
and r14, qword [rcx + 0x30]
mov r13, qword [rsp + 0x78]
add r14, r14
mov rax, qword [r12 + r14*8 + 8]
mov qword [rsp + 0x80], rax
mov rbx, rsi
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rbx + 0x18]
call fcn.14000ac30
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x70]
dec qword [rcx + 0x10]
cmp rbx, qword [rsp + 0x80]
je 0x14010e363
cmp rsi, rbp
je 0x14010e2a2
jmp 0x14010e32a
mov qword [r12 + r14*8], r13
mov qword [r12 + r14*8 + 8], r13
jmp 0x14010e2e1
Function at 0x14010e5c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x20
call fcn.14024eae0
sub rsp, rax
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x14010e5f9
cvtsi2ss xmm0, rdx
jmp 0x14010e60e
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x14031bb90]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14010e63c
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14010e63c
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 0x14010e66a
cmp rbx, 0x200
jae 0x14010e667
shl rbx, 3
cmp rbx, rcx
jae 0x14010e66a
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
jbe 0x14010e693
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
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.1400b57b4
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 0x14010e7a2
mov rcx, qword [rcx]
movabs r11, 0xcbf29ce484222325
xor r8d, r8d
movzx edx, byte [r8 + rax + 0x10]
movabs r9, 0x100000001b3
xor r11, rdx
inc r8
imul r11, r9
cmp r8, 4
jb 0x14010e6ec
and r11, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x18]
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x14010e728
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x14010e796
mov r10, qword [rdi + r11*8 + 8]
mov edx, dword [rax + 0x10]
cmp edx, dword [r10 + 0x10]
jne 0x14010e76b
mov r10, qword [r10]
cmp r10, rax
je 0x14010e721
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 0x14010e721
mov r10, qword [r10 + 8]
cmp edx, dword [r10 + 0x10]
je 0x14010e7b8
cmp qword [rdi + r11*8], r10
jne 0x14010e761
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
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14010e6dc
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov r10, qword [r10]
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 0x14010e796
Function at 0x14012401c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1000]
mov eax, 0x1100
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp + 0xff0], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov dword [rsp + 0x34], esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
lea r15d, [rsi + 7]
mov qword [rsp + 0x78], r15
mov word [rsp + 0x60], si
lea r14, [0x14027c570]
mov qword [rcx], r14
add rcx, 8
call fcn.14000ad78
mov dword [rsp + 0x30], 0x10
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rcx, [0x14027367c]
lea rdx, [rbp - 0x80]
test eax, eax
cmove rdx, rcx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov word [rsp + 0x40], si
lea rcx, [rsp + 0x40]
call fcn.14000ae4c
mov dword [rsp + 0x34], 6
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x28]
nop
call fcn.14000ad78
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x140124126
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rdx, rcx
cmp rax, 0x1000
jb 0x140124120
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140124120
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov word [rsp + 0x40], si
lea rbx, [rdi + 0x48]
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], r15
mov word [rbx], si
xor edx, edx
mov r8d, 0x104a
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [0x14036d0e0]
mov r9d, 0x825
lea r8, [rbp - 0x60]
lea rdx, str.LogPath
lea rcx, [0x14036d0e0]
mov rax, qword [rax + 8]
call qword [case.0x14004a846.0]
test al, al
je 0x140124192
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.14000ae4c
nop
mov qword [rdi], r14
mov rax, rdi
mov rcx, qword [rbp + 0xff0]
xor rcx, rsp
call fcn.14024c6d0
mov rbx, qword [rsp + 0x1140]
add rsp, 0x1100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140126e50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.14024eae0
sub rsp, rax
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x140126e7e
cvtsi2ss xmm0, rdx
jmp 0x140126e93
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x14031bb90]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140126ec1
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140126ec1
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 0x140126eef
cmp rbx, 0x200
jae 0x140126eec
shl rbx, 3
cmp rbx, rcx
jae 0x140126eef
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400d3fb8
Function at 0x140126fe8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x38
call fcn.14024eae0
sub rsp, rax
mov r13, rdx
mov rbp, r8
mov rdx, rcx
cmp r13, r8
je 0x1401271d8
mov rax, qword [rcx + 8]
mov r14, r13
mov r12, qword [rcx + 0x18]
lea rcx, [r13 + 0x10]
cmp qword [rcx + 0x18], 8
mov r15, qword [r13 + 8]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x98], rax
jb 0x140127041
mov rcx, qword [rcx]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
movabs r11, 0x100000001b3
add r10, r10
je 0x140127071
movzx eax, byte [rcx + r8]
inc r8
xor r9, rax
imul r9, r11
cmp r8, r10
jb 0x14012705d
mov rax, qword [rdx + 0x30]
and rax, r9
shl rax, 4
mov qword [rsp + 0x88], rax
mov rcx, qword [r12 + rax]
mov rax, qword [rax + r12 + 8]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x90], rcx
mov rdi, r14
mov rsi, r14
mov r14, qword [r14]
lea rcx, [rdi + 0x30]
call fcn.14000ac30
lea rcx, [rdi + 0x10]
call fcn.14000ac30
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rsp + 0x80]
dec qword [rdx + 0x10]
cmp rdi, qword [rsp + 0x20]
je 0x1401270f5
cmp r14, rbp
jne 0x14012709a
cmp qword [rsp + 0x90], r13
jne 0x1401271d1
mov rax, qword [rsp + 0x88]
mov qword [rax + r12], r14
jmp 0x1401271d1
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x90], r13
jne 0x140127118
mov r8, qword [rsp + 0x98]
mov qword [rax + r12], r8
mov rcx, r8
jmp 0x14012711b
mov rcx, r15
mov qword [rax + r12 + 8], rcx
cmp r14, rbp
je 0x1401271d1
mov r13, r12
lea rcx, [r14 + 0x10]
cmp qword [rcx + 0x18], 8
mov r10, qword [rcx + 0x10]
jb 0x14012713e
mov rcx, qword [rcx]
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
add r10, r10
je 0x140127176
movabs rdx, 0x100000001b3
movzx eax, byte [r9 + rcx]
inc r9
xor r8, rax
imul r8, rdx
cmp r9, r10
jb 0x14012715a
mov rdx, qword [rsp + 0x80]
mov r12, qword [rdx + 0x30]
and r12, r8
add r12, r12
mov rax, qword [r13 + r12*8 + 8]
mov qword [rsp + 0x88], rax
mov rdi, r14
mov rsi, r14
mov r14, qword [r14]
lea rcx, [rdi + 0x30]
call fcn.14000ac30
lea rcx, [rdi + 0x10]
call fcn.14000ac30
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rsp + 0x80]
dec qword [rdx + 0x10]
cmp rdi, qword [rsp + 0x88]
je 0x1401271ec
cmp r14, rbp
jne 0x14012718d
mov qword [r13 + r12*8], r14
mov qword [r15], r14
mov qword [r14 + 8], r15
mov rax, rbp
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0x98]
mov qword [r13 + r12*8], rax
mov qword [r13 + r12*8 + 8], rax
cmp r14, rbp
je 0x1401271d1
jmp 0x14012712c
Function at 0x140137b5c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push r12
push r14
push r15
mov eax, 0x40
call fcn.14024eae0
sub rsp, rax
mov rsi, r9
mov r12, r8
mov rbx, rcx
and qword [rsp + 0x88], 0
and dword [rsp + 0x78], 0
call fcn.140100200
mov r15, qword [rsp + 0x90]
test r15, r15
je 0x140137bad
and qword [r15], 0
mov eax, dword [rsi]
test eax, eax
je 0x140137bbd
mov esi, 0x80004005
jmp 0x140137ca5
cmp byte [rbx + 0x4c], 0
je 0x140137bb3
inc dword [rbx + 0x48]
test byte [rbx + 0x48], 0x3f
jne 0x140137bd7
xor edx, edx
mov rcx, rbx
call fcn.140137cbc
nop
and qword [rsp + 0x30], 0
mov rdx, qword [rbx + 0x38]
cmp rdx, qword [rbx + 0x40]
je 0x140137bf2
and qword [rdx], 0
add qword [rbx + 0x38], 8
jmp 0x140137c00
lea r8, [rsp + 0x30]
lea rcx, [rbx + 0x30]
call fcn.14010f9fc
mov rcx, qword [rbx + 0x30]
mov r14, qword [rbx + 0x38]
sub r14, rcx
sar r14, 3
dec r14
lea r14, [rcx + r14*8]
mov qword [rsp + 0x88], r14
jmp 0x140137c3d
test r14, r14
jne 0x140137c49
mov esi, 0x8007000e
jmp 0x140137ca5
xor esi, esi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], esi
mov r9, r12
lea r8, [0x14013a680]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r12, rax
test rax, rax
jne 0x140137c8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x140137c9b
mov qword [r14], r12
test r15, r15
je 0x140137c98
mov qword [r15], r12
xor r14d, r14d
test r14, r14
je 0x140137ca5
add qword [rbx + 0x38], 0xfffffffffffffff8
mov rcx, rbx
call fcn.140100248
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
Function at 0x1401398e4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x20
call fcn.14024eae0
sub rsp, rax
mov rbp, r8
mov edi, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
test byte [0x14037d600], 0x10
je 0x14013992c
mov r9d, eax
mov r8d, edi
lea rdx, [0x1402d5098]
call fcn.14013c3c0
mov r8, rdi
xor r9d, r9d
mov edx, esi
mov rcx, qword [rbx + 0x80]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x140139961
mov rax, qword [rbx]
mov r8, rbp
xor edx, edx
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x14004a846.0]
mov al, 1
jmp 0x1401399ee
test byte [0x14037d600], 0x20
je 0x14013997c
mov r9d, esi
mov r8d, edi
lea rdx, [0x1402d4f68]
call fcn.14013c3c0
mov ecx, 0x1c135e
call fcn.1400bc714
prefetchw byte [rbx + 0x10]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x30]
mov ecx, edx
shr ecx, 0xc
dec ecx
shl ecx, 0xc
xor ecx, edx
mov r8d, 0x7f000
and ecx, r8d
xor edx, ecx
mov dword [rsp + 0x30], edx
mov rcx, qword [rsp + 0x30]
lock cmpxchg qword [rbx + 0x10], rcx
je 0x1401399ec
mov qword [rsp + 0x30], rax
mov rdx, rax
mov ecx, eax
shr ecx, 0xc
dec ecx
shl ecx, 0xc
xor ecx, eax
and ecx, r8d
xor ecx, eax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x30]
lock cmpxchg qword [rbx + 0x10], rcx
cmp rax, rdx
jne 0x1401399bf
xor al, al
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14013eed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
mov eax, 0x20
call fcn.14024eae0
sub rsp, rax
mov dword [rcx + 0xe0], edx
mov rbx, rcx
test byte [0x14037d600], 2
je 0x14013eefc
mov r9d, edx
mov r8, rcx
call fcn.14013f18c
test byte [rbx + 0x3c], 1
mov rcx, rbx
je 0x14013ef1d
mov rax, qword [rbx + 0xd8]
mov rdx, qword [rax + 0xc18]
add rsp, 0x20
pop rbx
jmp fcn.14013d170
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.14013d730
Function at 0x14013f504
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x30
call fcn.14024eae0
sub rsp, rax
xor r15d, r15d
mov rsi, rcx
mov ebx, r15d
cmp byte [rcx + 0x10], r15b
je 0x14013f536
mov edi, 0x80004005
jmp 0x14013f6cf
mov eax, dword [rcx + 0x58]
cmp eax, dword [rcx + 0x54]
ja 0x14013f556
lea edx, [rax + 5]
add rcx, 0x48
shl rdx, 3
call fcn.1400b3a4c
test al, al
je 0x14013f52c
add dword [rsi + 0x58], 5
mov ecx, 0xc28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14013f576
mov rdx, rsi
mov rcx, rax
call fcn.14013f25c
mov rbp, rax
jmp 0x14013f579
mov rbp, r15
test rbp, rbp
jne 0x14013f588
mov edi, 0x8007000e
jmp 0x14013f611
mov r9d, 0x1f0003
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_CreateEventExW]
mov rcx, qword [rbp + 0xc00]
mov rbx, rax
test rcx, rcx
je 0x14013f5ba
mov qword [rbp + 0xc00], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0xc00], rbx
test rbx, rbx
jne 0x14013f5da
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
mov r14, r15
cmovs r14, rbp
cmovs rbp, r15
mov rbx, rbp
test r14, r14
je 0x14013f611
or eax, 0xffffffff
lock xadd dword [r14 + 0xc24], eax
cmp eax, 1
jne 0x14013f611
mov rcx, r14
call fcn.14013f32c
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
js 0x14013f6a9
cmp qword [rsi + 0x60], r15
jne 0x14013f629
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rsi + 0x60], rax
lock inc dword [rbx + 0xc24]
lea rax, [rbx + 0xbf8]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14013ffa0]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14013f687
or eax, 0xffffffff
lock xadd dword [rbx + 0xc24], eax
cmp eax, 1
jne 0x14013f680
test rbx, rbx
je 0x14013f680
mov rcx, rbx
call fcn.14013f32c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, 0x80004005
jmp 0x14013f6a9
mov qword [rbx + 0xbf0], rax
mov ecx, dword [rsi + 0x54]
mov rax, qword [rsi + 0x48]
mov qword [rax + rcx*8], rbx
mov rbx, r15
inc dword [rsi + 0x54]
mov eax, 0x3e
lock xadd dword [rsi + 0x50], eax
test rbx, rbx
je 0x14013f6cf
or edx, 0xffffffff
lock xadd dword [rbx + 0xc24], edx
cmp edx, 1
jne 0x14013f6cf
mov rcx, rbx
call fcn.14013f32c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140142a78
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x240
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edi, edi
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], di
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140142b27
lea rdx, [rsp + 0x20]
lea rcx, str.POWRPROF.DLL
call fcn.1400bd27c
lea rcx, [rsp + 0x226]
cmp rax, rcx
jb 0x140142ae7
mov ecx, 0x3ca401
call fcn.1400bc714
mov eax, edi
jmp 0x140142aec
mov eax, 1
test eax, eax
je 0x140142b03
mov r8d, 0x100
lea rcx, [rsp + 0x20]
call fcn.1400bcdd0
mov qword [rbx], rax
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14024c6d0
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
xor edx, edx
mov ecx, 0x3d885c
call fcn.1400b3928
int3