joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140136c90
Capabilities:
Connect pipe

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x140136d3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.14010aab0
nop
mov r8, rax
lea rdx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
lea rcx, [rsp + 0x28]
call fcn.1400cac40
mov rbx, rax
call fcn.1400dfb30
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call fcn.1400db020
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140136d21
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1400c3a10
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
jmp 0x140136dde
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140136d53
cmp eax, 0x3e5
jne 0x140136d6b
mov bl, 1
jmp 0x140136d63
xor ebx, ebx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x140136d6b
movzx eax, bl
jmp 0x140136dfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.14010aab0
nop
mov r8, rax
lea rdx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
lea rcx, [rsp + 0x28]
call fcn.1400cac40
mov rbx, rax
call fcn.1400dfb30
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call fcn.1400db020
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140136dc9
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1400c3a10
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x140136dfb
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1400c3a10
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14016ce60
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x1401388b0
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rdx
mov rbp, rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401389fb
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call fcn.1401b04b0
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1401389ee
xor r14d, r14d
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp word [rsp + 0x7c], 0
jne 0x140138953
mov r8, r14
jmp 0x14013896b
lea rax, [rsp + 0x7c]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140138960
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x30]
call fcn.1400c3720
nop
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rbx, qword [rsp + 0x30]
mov rcx, rbp
call fcn.1400c3480
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x1401389bb
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1401392b0
nop
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x1401389d8
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400c3a10
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140138932
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1401389fe
or eax, 0xffffffff
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14016ce60
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14013f4d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
push r14
mov eax, 0x10e8
call fcn.14016dbe0
sub rsp, rax
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rsp + 0x10c0], rax
mov eax, dword [rdx + 0x10]
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
lea r9d, [rax*2 + 2]
mov rax, qword [rcx]
mov dword [rax], r9d
cmp qword [rdx + 0x18], 8
jb 0x14013f519
mov r14, qword [rdx]
mov rax, qword [rcx]
mov ebx, dword [rax]
test ebx, ebx
je 0x14013f69c
mov qword [rsp + 0x1120], rsi
mov qword [rsp + 0x10e0], r12
mov qword [rsp + 0x10d8], r13
xor r13d, r13d
mov qword [rsp + 0x10d0], r15
nop dword [rax]
cmp ebx, 0x1000
jbe 0x14013f564
mov esi, 0x1000
mov byte [rsp + 0x30], 0x20
jmp 0x14013f591
mov eax, ebp
mov esi, ebx
sub eax, 1
je 0x14013f58c
sub eax, 1
je 0x14013f585
cmp eax, 1
je 0x14013f57e
mov byte [rsp + 0x30], 0x23
jmp 0x14013f591
mov byte [rsp + 0x30], 0x7e
jmp 0x14013f591
mov byte [rsp + 0x30], 0x24
jmp 0x14013f591
mov byte [rsp + 0x30], 0x40
mov r8d, esi
lea rcx, [rsp + 0x31]
mov rdx, r14
mov r12d, esi
call fcn.1401ae830
mov rcx, qword [rdi + 0x10]
lea r15d, [rsi + 1]
mov r9, qword [rdi + 0x18]
lea rdx, [rsp + 0x30]
mov r8d, r15d
mov qword [rsp + 0x20], r13
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 8]
mov dword [rcx], eax
mov rax, qword [rdi + 8]
cmp dword [rax], r13d
je 0x14013f5fb
mov rax, qword [rdi + 0x18]
cmp r15d, dword [rax]
jne 0x14013f5fb
mov rcx, qword [rdi + 0x10]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
add r14, r12
sub ebx, esi
jne 0x14013f550
jmp 0x14013f67c
test ebp, ebp
je 0x14013f67c
xor edx, edx
lea rcx, [rsp + 0x1040]
mov r8d, 0x80
call fcn.1401b04b0
mov rax, qword [rdi + 8]
cmp dword [rax], r13d
jne 0x14013f656
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x7f
lea rcx, [rsp + 0x1040]
cmp eax, 0xe8
jne 0x14013f645
lea r8, str.Finished_writing:_the_pipe_has_been_closed
call fcn.14013ed00
jmp 0x14013f67c
mov r9d, eax
lea r8, str.Error_writing_to_the_pipe___d_
call fcn.14013ed00
jmp 0x14013f67c
mov rax, qword [rdi + 0x18]
lea r8, str.Warning._Writing_to_the_pipe__d_bytes___wrote__d_bytes
mov r9d, r15d
mov edx, 0x7f
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x1040]
call fcn.14013ed00
mov r13, qword [rsp + 0x10d8]
mov r12, qword [rsp + 0x10e0]
mov rsi, qword [rsp + 0x1120]
mov r15, qword [rsp + 0x10d0]
mov rcx, qword [rsp + 0x10c0]
xor rcx, rsp
call fcn.14016ce60
add rsp, 0x10e8
pop r14
pop rdi
pop rbp
pop rbx
ret
mov r8d, dword [r8]
add rcx, 8
jmp 0x14013f4d0
Function at 0x1401405d0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp + 0x2f], 7
xor esi, esi
mov qword [rbp + 0x27], rsi
mov word [rbp + 0x17], si
lea r8d, [rsi + 1]
lea rdx, [0x1402310dc]
lea rcx, [rbp + 0x17]
call fcn.1400c3720
nop
lea r8, [rbp + 0x17]
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140147540
nop
mov r8, qword [rbp + 0x2f]
cmp r8, 8
jb 0x140140656
inc r8
mov rdx, qword [rbp + 0x17]
lea rcx, [rbp + 0x17]
call fcn.1400c3a10
mov qword [rbp + 0x2f], 7
mov qword [rbp + 0x27], rsi
mov word [rbp + 0x17], si
lea rdx, [rdi + 8]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 9]
call fcn.1400c3ac0
nop
mov ebx, esi
mov r9, qword [rbp - 0x21]
mov rdx, r9
mov r8, qword [rbp - 0x29]
sub rdx, r8
sar rdx, 5
lea rax, [rdx - 1]
test rax, rax
je 0x14014074c
mov rcx, rsi
nop
cmp rdx, rcx
jbe 0x140140746
shl rcx, 5
lea rdx, [r8 + rcx]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 9]
call fcn.1400ca020
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x14014070b
lea rax, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rax, qword [rbp - 9]
movzx ecx, word [rax + rcx*2 - 2]
cmp cx, 0x5c
je 0x14014070b
cmp cx, 0x2f
je 0x14014070b
mov edx, 1
lea r8d, [rdx + 0x5b]
lea rcx, [rbp - 9]
call fcn.1400c3870
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc ebx
mov r9, qword [rbp - 0x21]
mov rdx, r9
mov r8, qword [rbp - 0x29]
sub rdx, r8
sar rdx, 5
mov ecx, ebx
lea rax, [rdx - 1]
cmp rcx, rax
jb 0x1401406b0
jmp 0x14014074c
call fcn.1400c9ac0
nop
mov rax, qword [rbp + 0xf]
cmp rax, 8
jb 0x14014076f
lea r8, [rax + 1]
mov rdx, qword [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1400c3a10
mov r9, qword [rbp - 0x21]
mov r8, qword [rbp - 0x29]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rsi
mov word [rbp - 9], si
test r8, r8
je 0x1401407a3
mov rdx, r9
mov rcx, r8
call fcn.1400cad80
mov r8, qword [rbp - 0x19]
mov rdx, qword [rbp - 0x29]
sub r8, rdx
sar r8, 5
call fcn.1400c9cd0
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14016ce60
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140140a10
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x28], rbx
lea rdx, [rcx + 8]
lea rcx, [rsp + 0x50]
call fcn.1400ca9b0
nop
lea r8, [0x1402310dc]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400cacb0
mov rdx, rax
mov rcx, rdi
call fcn.1400c9840
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140140a89
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400c3a10
mov qword [rsp + 0x48], 7
xor esi, esi
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x140140abb
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400c3a10
cmp qword [rdi + 0x18], 8
jb 0x140140ac5
mov rdi, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140140ae9
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.1400c3a10
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x140140aff
mov rbx, qword [rbx]
mov word [rbx], si
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14016ce60
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140142550
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx]
mov r12d, 0xffffffe5
mov qword [rdx + 8], rax
mov rbx, rdx
cmp qword [rcx + 0x18], 8
mov edi, r12d
jb 0x14014257a
mov rcx, qword [rcx]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x80000000
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140142668
xor edx, edx
mov qword [rsp + 0x80], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
je 0x140142651
lea ecx, [rax + 1]
mov qword [rsp + 0x78], rbp
call fcn.1401b2e80
mov rbp, rax
test rax, rax
je 0x14014264c
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], r15d
mov r8d, esi
mov qword [rsp + 0x20], r15
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140142644
mov ecx, dword [rsp + 0x70]
cmp ecx, esi
jne 0x140142644
mov rax, qword [rbx + 0x10]
mov edx, ecx
sub rax, qword [rbx]
cmp rax, rcx
jae 0x140142625
mov rcx, rbx
call fcn.1401429e0
mov ecx, dword [rsp + 0x70]
mov edx, ecx
mov rcx, rbx
call fcn.140142920
mov edx, dword [rsp + 0x70]
mov r8, rbp
mov rcx, qword [rbx]
mov r9d, edx
call fcn.140141810
mov edi, r15d
mov rcx, rbp
call fcn.1401b29d0
mov rbp, qword [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x80]
test eax, eax
cmove edi, r12d
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret

Function at 0x140142680
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rbp, rcx
xor edx, edx
xor ecx, ecx
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
movsxd rsi, eax
test eax, eax
je 0x140142729
mov eax, 2
mov qword [rsp + 0x30], rdi
mul rsi
lea rdx, [0x14020a5e8]
cmovo rax, rbx
mov rcx, rax
call fcn.14016d8c4
mov rdi, rax
test rax, rax
je 0x140142712
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14014270a
cmp word [rdi], 0
jne 0x1401426f0
xor ebx, ebx
jmp 0x1401426fa
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401426f0
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.1400c3720
xor ebx, ebx
mov rcx, rdi
call fcn.14016d8bc
mov eax, ebx
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140142f60
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rbx, rcx
xor edi, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
mov dword [rsp + 0x40], edi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14014301c
mov ecx, esi
call fcn.1401b2e80
mov qword [rbx + 0x40], rax
test rax, rax
je 0x14014301c
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14014301c
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov dword [rsp + 0x50], edi
lea rdx, [0x1402310dc]
mov qword [rsp + 0x58], rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14014301c
mov rax, qword [rsp + 0x58]
movups xmm0, xmmword [rax]
movups xmmword [rbx + 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x18], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x28], xmm0
mov eax, dword [rax + 0x30]
mov dword [rbx + 0x38], eax
cmp dword [rbx + 8], 0xfeef04bd
sete dil
mov dword [rbx + 0x58], edi
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rbx + 0x58]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140144200
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0xe0
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1401b04b0
xor eax, eax
mov dword [rsp + 0x70], 0x68
xor ebx, ebx
mov qword [rsp + 0x50], rax
lea rcx, str.kernel32
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x100], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x14014428d
mov rcx, rax
call qword [fcn.140005fb0]
lea rcx, [rsp + 0x100]
call rbp
cmp qword [rdi + 0x18], 8
jb 0x140144297
mov rdi, qword [rdi]
cmp qword [rsi + 0x18], 8
jb 0x1401442a1
mov rsi, qword [rsi]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rdi
mov qword [rsp + 0x40], rax
mov rcx, rsi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1401442fd
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140144305
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp qword [rsp + 0x100], 0
je 0x140144348
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140144348
mov rcx, rax
call qword [fcn.140005fb0]
mov rcx, qword [rsp + 0x100]
call rdi
test ebx, ebx
je 0x14014436e
cmp ebx, 2
jb 0x140144367
cmp ebx, 3
jbe 0x140144360
cmp ebx, 5
jne 0x140144367
lea eax, [rbx - 0x1b]
jmp 0x140144370
mov eax, 0xffffffe4
jmp 0x140144370
mov eax, 0xffffffe5
jmp 0x140144370
xor eax, eax
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140144920
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x30
or rbx, 0xffffffffffffffff
xor esi, esi
cmp qword [rdx + 0x18], 8
mov r12, r8
mov rdi, rdx
mov r15, rcx
jb 0x140144945
mov rdx, qword [rdx]
mov rcx, qword [rcx]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140144b61
mov ecx, dword [rsp + 0x60]
mov qword [rsp + 0x78], r14
call fcn.14016d418
mov r14, rax
test rax, rax
je 0x140144b4e
cmp qword [rdi + 0x18], 8
jb 0x140144991
mov rdi, qword [rdi]
mov rcx, qword [r15]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140144b4e
cmp dword [rsp + 0x68], 1
mov ecx, dword [rsp + 0x60]
mov qword [rsp + 0x70], rbp
jne 0x1401449fd
test ecx, ecx
je 0x1401449fd
lea eax, [rcx + 4]
mov ecx, eax
mov ebp, eax
call fcn.14016d418
mov rdi, rax
test rax, rax
je 0x1401449f5
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.1401b04b0
mov ecx, dword [rsp + 0x60]
jmp 0x140144a02
mov ecx, dword [rsp + 0x60]
xor edi, edi
jmp 0x140144a02
mov rdi, qword [rsp + 0x60]
mov eax, dword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
sub eax, 1
je 0x140144adf
sub eax, 1
je 0x140144a72
cmp eax, 2
je 0x140144a28
mov ebx, 0xffffffe1
jmp 0x140144b39
mov ecx, reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.14016d418
mov rsi, rax
test rax, rax
je 0x140144b39
mov ecx, dword [r14]
mov r8d, 0xa
mov rdx, rax
call fcn.1401c126c
cmp word [rax], 0
jne 0x140144a60
xor ebx, ebx
mov rdx, rax
jmp 0x140144b2c
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140144a60
mov rdx, rax
jmp 0x140144b2c
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
je 0x140144b39
mov eax, 2
mul rdi
cmovo rax, rbx
mov rcx, rax
call fcn.14016d418
mov rsi, rax
test rax, rax
je 0x140144b39
mov r8d, edi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140144b39
cmp word [rsi], 0
jne 0x140144ad0
xor ebx, ebx
mov rdx, rsi
jmp 0x140144b2c
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140144ad0
mov rdx, rsi
jmp 0x140144b2c
test ecx, ecx
jne 0x140144af7
xor r8d, r8d
lea rdx, [0x1402305b4]
mov rcx, r12
call fcn.1400c3720
jmp 0x140144b39
mov r8d, ecx
mov rdx, r14
mov rcx, rdi
call fcn.1401ae830
mov rcx, r14
call fcn.14016d8bc
mov r14, rdi
cmp word [rdi], si
jne 0x140144b20
xor ebx, ebx
jmp 0x140144b29
inc rbx
cmp word [rdi + rbx*2], si
jne 0x140144b20
mov rdx, rdi
mov r8, rbx
mov rcx, r12
call fcn.1400c3720
xor ebx, ebx
mov rcx, r14
call fcn.14016d8bc
test rsi, rsi
je 0x140144b4e
mov rcx, rsi
call fcn.14016d8bc
mov eax, ebx
mov r14, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140146010
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, qword [r8 + 0x18]
mov rdi, r8
mov r13, qword [r8 + 0x10]
mov r12, rdx
mov rsi, rcx
cmp rbp, 8
jb 0x140146046
mov r8, qword [r8]
lea r9, [r13*2]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test r9, r9
je 0x140146084
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, r9
jb 0x140146070
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
mov rsi, qword [rsi + 8]
and rax, rdx
mov rbx, rax
add rbx, rbx
add rax, rax
mov rbx, qword [rcx + rbx*8]
mov r14, qword [rcx + rax*8]
lea r15, [rcx + rax*8]
cmp r14, rsi
jne 0x1401460b2
mov rax, rsi
jmp 0x1401460b9
mov rax, qword [r15 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x140146127
lea rcx, [rbx + 0x10]
cmp rbp, 8
jb 0x1401460cd
mov r8, qword [rdi]
jmp 0x1401460d0
mov r8, rdi
cmp qword [rcx + 0x18], 8
lea rdx, [rcx + 0x10]
jb 0x1401460de
mov rcx, qword [rcx]
mov rdx, qword [rdx]
mov r9, r13
call fcn.1400c9bb0
test eax, eax
je 0x1401460f2
mov rbx, qword [rbx]
jmp 0x1401460a8
cmp qword [rbx + 0x28], 8
lea r8, [rbx + 0x10]
lea r9, [r8 + 0x10]
jb 0x140146104
mov r8, qword [r8]
cmp rbp, 8
jb 0x14014610d
mov rdi, qword [rdi]
mov r9, qword [r9]
mov rdx, r13
mov rcx, rdi
call fcn.1400c9bb0
test eax, eax
cmovne rbx, rsi
mov qword [r12], rbx
jmp 0x14014612b
mov qword [r12], rsi
mov rbx, qword [rsp + 0x50]
mov rax, r12
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140146650
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rsi
mov rdi, r9
mov r14, r8
mov r12, rdx
mov r15, rcx
mov r11, qword [r8 + 0x10]
mov r10, qword [r8 + 0x18]
cmp r10, 8
jb 0x140146692
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
lea r9, [r11 + r11]
test r9, r9
je 0x1401466c5
movabs rbx, 0x100000001b3
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, rbx
inc rcx
cmp rcx, r9
jb 0x1401466b1
mov r13, qword [r15 + 0x30]
and r13, rdx
shl r13, 4
mov rax, qword [r15 + 0x18]
mov rsi, qword [rax + r13]
cmp rsi, qword [r15 + 8]
jne 0x1401466e4
mov rbx, qword [r15 + 8]
jmp 0x1401466ec
mov rbx, qword [rax + r13 + 8]
mov rbx, qword [rbx]
cmp rbx, rsi
je 0x14014676f
mov rbx, qword [rbx + 8]
lea r8, [rbx + 0x10]
lea r9, [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x140146707
mov r8, qword [r8]
cmp r10, 8
jb 0x140146712
mov rcx, qword [r14]
jmp 0x140146715
mov rcx, r14
mov r9, qword [r9]
mov rdx, r11
call fcn.1400c9bb0
test eax, eax
je 0x140146733
cmp rbx, rsi
mov r10, qword [r14 + 0x18]
mov r11, qword [r14 + 0x10]
jne 0x1401466f1
jmp 0x14014676f
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
dec qword [r15 + 0x10]
lea rcx, [rdi + 0x10]
call fcn.1401465c0
mov rcx, rdi
call fcn.140005f10
mov qword [r12], rbx
mov byte [r12 + 8], 0
mov rax, r12
jmp 0x140146809
mov qword [rsp + 0x70], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x1401467a9
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r15 + 0x18]
add rdx, r13
mov rax, qword [rdx]
cmp rax, qword [r15 + 8]
jne 0x1401467c7
mov qword [rdx], rdi
mov rax, qword [r15 + 0x18]
mov qword [rax + r13 + 8], rdi
jmp 0x1401467f3
cmp rax, rbx
jne 0x1401467d1
mov qword [rdx], rdi
jmp 0x1401467f3
mov rax, qword [rdx + 8]
mov rcx, qword [rax]
mov qword [rdx + 8], rcx
cmp rcx, rdi
je 0x1401467f3
mov rdx, qword [r15 + 0x18]
mov rax, qword [rdx + r13 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r13 + 8], rcx
mov rcx, r15
call fcn.140146830
nop
mov qword [r12], rdi
mov byte [r12 + 8], 1
mov rax, r12
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret