joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001060
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x202ea98
mov rdi, rcx
jne 0x1400010c2
movsxd rax, dword [rcx + 4]
xor ebx, ebx
test eax, eax
je 0x1400010c2
mov rcx, rax
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400010c2
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
jne 0x1400010ac
mov ebx, 0xc0000001
jmp 0x1400010b3
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x1400010c7
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400010d4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x202ea98
mov rsi, rcx
je 0x1400010f8
mov eax, 0xc0000001
jmp 0x1400011ad
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
mov edi, ebx
lea ecx, [rbx + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x1400011ab
test rdi, rdi
je 0x140001130
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x140001120
test rdi, rdi
je 0x1400011ab
mov r8d, dword [rdi]
test r8d, r8d
je 0x1400011a0
lea rdx, [rdi + 0x18]
test byte [rdx - 8], 1
je 0x140001195
cmp qword [rdx], 0x200000
jne 0x140001195
mov ecx, dword [0x140002240]
mov r9b, byte [0x140002244]
cmp dword [rdx + 8], ecx
jne 0x140001195
cmp byte [rdx + 0xc], r9b
je 0x1400011bd
inc ebx
add rdx, 0x20
cmp ebx, r8d
jb 0x14000116e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rsi + 8]
mov rax, qword [rdx - 0x10]
mov qword [rcx], rax
jmp 0x1400011ab
Function at 0x1400011cc
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x202ea98
mov rbx, rcx
jne 0x140001290
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001290
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001290
mov rdi, qword [0x140004050]
test rdi, rdi
je 0x140001290
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rdi
mov rsi, qword [rbx + 0x18]
call fcn.140001b84
test rax, rax
je 0x140001290
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rbx + 0x10]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
cmp byte [rbx + 0x20], 0
movsxd r8, esi
je 0x140001273
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.140001d64
jmp 0x14000128c
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001295
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140001344
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp qword [0x140004058], 0
mov r13, rcx
jne 0x140001372
call fcn.140001664
cmp qword [0x140004080], 0
jne 0x140001381
call fcn.140001480
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalMemoryRanges]
mov rdx, qword [0x140004078]
xor r15d, r15d
mov rcx, qword [0x140004070]
lea rsi, [rax + 8]
lea r12, [rcx + rdx*8]
mov rbx, qword [rsi - 8]
test rbx, rbx
jne 0x1400013b2
cmp qword [rsi], rbx
je 0x140001460
mov rbp, qword [rsi]
sar rbp, 0xc
sar rbx, 0xc
add rbp, rbx
cmp rbx, rbp
jge 0x140001441
lea rdi, [rbx + rbx*2]
shl rdi, 4
mov rax, qword [0x140004080]
mov r14, qword [rdi + rax]
cmp r14, 2
jb 0x140001427
cmp qword [rdi + rax + 8], r12
jne 0x140001427
movabs rax, 0xffff800000000000
shr r14, 0xd
or r14, rax
lea rdx, [rsp + 0x58]
mov rax, rbx
shl rax, 0xc
mov qword [0x140004050], rax
mov ecx, dword [r13]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001427
cmp r14, qword [rsp + 0x58]
je 0x140001435
inc rbx
add rdi, 0x30
cmp rbx, rbp
jl 0x1400013cd
jmp 0x140001441
mov rcx, qword [0x140004050]
test rcx, rcx
jne 0x140001457
inc r15d
add rsi, 0x10
cmp r15d, 0xc8
jl 0x1400013a0
jmp 0x140001460
mov rax, qword [r13 + 8]
mov qword [rax], rcx
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001b28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b72
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b74
xor al, al
add rsp, 0x28
ret

Function at 0x140683c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x683c70
movabs r10, 0x683c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x140683c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x140683c50
lea rax, [r9 + r11]
jmp rax
Function at 0x1400061b0
Capabilities:
Hash data using fnv

Disassembly:
mov eax, 0x18
call fcn.140177de0
sub rsp, rax
mov rax, qword [0x140a23bc8]
xor rax, rsp
mov qword [rsp + 8], rax
mov r10, r9
mov r11, rcx
mov r9d, edx
test edx, edx
jne 0x1400061ed
xor eax, eax
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1401777c0
add rsp, 0x18
ret
mov r8, qword [r8]
xor edx, edx
mov qword [rsp], r8
movzx eax, byte [rsp + 1]
movzx ecx, r8b
xor ecx, 0x811c9dc5
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul ecx, ecx, 0x1000193
mov eax, ecx
div r9d
mov rax, qword [r11 + rdx*8]
lea rdx, [r11 + rdx*8]
test rax, rax
je 0x140006284
cmp qword [rax + 8], r8
je 0x140006284
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140006273
test r10, r10
je 0x14000628c
mov dword [r10], ecx
mov rax, rdx
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1401777c0
add rsp, 0x18
ret
Function at 0x14000b340
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rdi
push r14
push r15
mov eax, 0x38
call fcn.140177de0
sub rsp, rax
mov r14, rcx
lea ecx, [rax + 0x30]
mov rbx, r8
mov r15, rdx
call fcn.14000e780
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14000b509
mov qword [rax], rbx
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov dword [rax + 8], ebx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbx
mov qword [rax + 0x28], rbx
mov qword [rax + 0x30], rbx
mov qword [rax + 0x38], rbx
mov qword [rax + 0x40], rbx
mov qword [rax + 0x48], rbx
mov qword [rax + 0x50], rbx
mov qword [rax + 0x58], rbx
mov dword [rax + 0x60], ebx
call fcn.14000eee0
mov ecx, dword [r14]
test ecx, ecx
jne 0x14000b3d4
lea edx, [rbx + 1]
mov rcx, r14
call fcn.14000b5b0
mov ecx, dword [r14]
test ecx, ecx
jne 0x14000b3d4
lea ebx, [rcx + 2]
jmp 0x14000b4de
mov r8, qword [r14 + 0x10]
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x30], rsi
test ecx, ecx
jne 0x14000b3f2
mov ebp, dword [rsp + 0x28]
mov rsi, rbx
jmp 0x14000b481
movzx eax, byte [rsp + 0x29]
movzx ebp, dil
xor edx, edx
xor ebp, 0x811c9dc5
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x2a]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x2b]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x2c]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x2d]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x2e]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x2f]
imul ebp, ebp, 0x1000193
xor ebp, eax
imul ebp, ebp, 0x1000193
mov eax, ebp
div ecx
mov rax, qword [r8 + rdx*8]
lea rsi, [r8 + rdx*8]
test rax, rax
je 0x14000b481
cmp qword [rax + 8], rdi
je 0x14000b481
mov rsi, rax
mov rax, qword [rax]
test rax, rax
jne 0x14000b470
cmp qword [rsi], rbx
jne 0x14000b4c1
mov ecx, 0x18
call fcn.14000e780
test rax, rax
je 0x14000b4a1
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov dword [rax + 0x10], ebp
jmp 0x14000b4a4
mov rax, rbx
mov qword [rsi], rax
test rax, rax
jne 0x14000b4b1
lea ebx, [rax + 2]
jmp 0x14000b4d4
inc qword [r14 + 8]
mov rdx, qword [r14 + 8]
mov rcx, r14
call fcn.14000b5b0
mov rcx, qword [r14 + 0x30]
test rcx, rcx
je 0x14000b4d4
mov rdx, rdi
call fcn.14000fef0
mov ebx, eax
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14000ef10
test ebx, ebx
je 0x14000b4f9
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rbx
ret
mov qword [r15], rdi
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rbx
ret
mov eax, 2
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rbx
ret
Function at 0x14000be20
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x40
call fcn.140177de0
sub rsp, rax
mov rsi, qword [rdx]
lea r14, [rcx + 0x60]
mov rbx, rdx
mov edx, dword [r14]
mov rdi, rcx
mov rcx, qword [r14 + 0x10]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call fcn.1400061b0
test rax, rax
je 0x14000bea3
mov rax, qword [rax]
test rax, rax
je 0x14000bea3
mov rax, qword [rax + 0x10]
cmp byte [rax + 4], 0
je 0x14000be91
cmp byte [rbx + 0x1c], 0
je 0x14000be91
mov edx, 1
mov byte [rax + 4], dl
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor edx, edx
mov byte [rax + 4], dl
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov edx, dword [rdi + 0xe8]
mov rcx, qword [rdi + 0xf8]
lea r8, [rsp + 0x28]
xor r9d, r9d
call fcn.1400061b0
test rax, rax
je 0x14000bec5
mov rax, qword [rax]
mov rdi, qword [rax + 0x10]
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0x38]
mov rdx, qword [rdi + 8]
call qword [0x140a310b0]
cmp eax, 0x1f4
je 0x14000c03e
test eax, eax
je 0x14000befd
mov ecx, eax
call fcn.140005dc0
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x18
call fcn.14000e780
test rax, rax
je 0x14000c04b
mov edx, dword [rbx + 0x18]
mov r9, qword [rsp + 0x38]
movzx r8d, byte [rbx + 0x1c]
mov dword [rax], edx
lea rdx, [rsp + 0x28]
mov rcx, r14
mov byte [rax + 4], r8b
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r9
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rax
call fcn.14000c850
mov ecx, dword [rdi + 0x60]
test ecx, ecx
jne 0x14000bf60
lea edx, [rcx + 1]
lea rcx, [rdi + 0x60]
call fcn.14000d300
mov ecx, dword [rdi + 0x60]
test ecx, ecx
je 0x14000c04b
mov r8, qword [rdi + 0x70]
test ecx, ecx
jne 0x14000bf73
mov ebp, dword [rsp + 0x20]
xor ebx, ebx
jmp 0x14000c002
movzx eax, byte [rsp + 0x21]
movzx ebp, sil
xor edx, edx
xor ebp, 0x811c9dc5
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x22]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x23]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x24]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x25]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x26]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x27]
imul ebp, ebp, 0x1000193
xor ebp, eax
imul ebp, ebp, 0x1000193
mov eax, ebp
div ecx
mov rax, qword [r8 + rdx*8]
lea rbx, [r8 + rdx*8]
test rax, rax
je 0x14000c002
cmp qword [rax + 8], rsi
je 0x14000c002
mov rbx, rax
mov rax, qword [rax]
test rax, rax
jne 0x14000bff1
cmp qword [rbx], 0
jne 0x14000c03e
mov ecx, 0x18
call fcn.14000e780
test rax, rax
je 0x14000c025
mov qword [rax], 0
mov qword [rax + 8], rsi
mov dword [rax + 0x10], ebp
mov qword [rbx], rax
test rax, rax
je 0x14000c04b
inc qword [rdi + 0x68]
mov rdx, qword [rdi + 0x68]
lea rcx, [rdi + 0x60]
call fcn.14000d300
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 2
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000e8d0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x28
call fcn.140177de0
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14000e910
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140177de0
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14000e930
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140177de0
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x28
ret
Function at 0x140010bb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.140177de0
sub rsp, rax
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140010c74
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rdx, 0xffffffffffffffff
mov ebp, eax
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], si
jne 0x140010bf0
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140010c77
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140010c3b
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], di
jne 0x140010c40
test rax, rax
je 0x140010c74
mov rdx, rdi
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
or rax, 0xffffffffffffffff
mov edx, edi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140010c65
cmp rdx, rax
jb 0x140010c51
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140012a80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov eax, 0x30
call fcn.140177de0
sub rsp, rax
mov rbx, rcx
xor ecx, ecx
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140012caa
xor edx, edx
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], dx
jne 0x140012ab0
test rax, rax
je 0x140012ae4
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x140012caa
cmp r8w, 0x2f
je 0x140012caa
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140012ac0
mov rcx, rbx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
call fcn.140012cd0
mov rsi, rax
test rax, rax
je 0x140012bd5
mov qword [rsp + 0x50], r14
call fcn.1400134b0
mov r14, rax
test rax, rax
je 0x140012bc2
mov rcx, rsi
call fcn.1400109d0
test eax, eax
je 0x140012bab
lea rax, str.system32_
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140012b57
mov r8, rbx
mov rcx, rsi
call fcn.1401a9000
test eax, eax
je 0x140012b7f
lea rax, [rsp + 0x30]
add rdi, 8
cmp rdi, rax
jb 0x140012b50
jmp 0x140012b8e
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140012480
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140012bb9
mov rcx, rsi
call fcn.140010970
test eax, eax
je 0x140012bb9
mov rbp, rsi
xor esi, esi
jmp 0x140012bb9
mov rdx, rsi
mov rcx, r14
call fcn.140012480
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x140012c76
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140012c7f
mov rcx, rbx
call fcn.140010840
mov rdi, rax
test rax, rax
je 0x140012c7f
mov ecx, 0x37e4
call fcn.140011fc0
test eax, eax
je 0x140012c14
lea rcx, [0x1402108d8]
call fcn.1400131e0
jmp 0x140012c19
call fcn.1400134b0
mov rbx, rax
test rax, rax
je 0x140012c6d
mov rdx, rdi
mov rcx, rax
call fcn.140012480
mov rbp, rax
test rax, rax
je 0x140012c64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140012c46
test al, 0x50
je 0x140012c64
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140012c59
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x140012c7f
xor ecx, ecx
jmp 0x140012c8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140012c92
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rax, rbp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x1400134b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.140177de0
sub rsp, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x40
mov edx, eax
mov edi, eax
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14001351b
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140013510
cmp edi, eax
jb 0x140013510
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140027d60
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140a23bc8]
xor rax, rsp
mov qword [rsp + 0x78], rax
call fcn.140041750
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x1401f28f8]
lea rcx, [rsp + 0x58]
call fcn.14002f3a0
nop
lea rdx, str.Terminating__please_wait_...
lea rcx, [rsp + 0x38]
call fcn.14002f3a0
nop
mov r9b, 1
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [rsp + 0x28]
nop
lea rcx, [rsp + 0x38]
call fcn.140030470
nop
lea rcx, [rsp + 0x58]
call fcn.140030470
call sub.service.dll_NotifyShutdown
call fcn.140027740
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14003f440
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14003f474
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14003f460
ret

Function at 0x14003fa40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor ebp, ebp
mov rax, qword [rsp + 0x50]
mov r12, r9
mov r11, qword [rsp + 0x60]
mov r13, r8
mov r14, rdx
mov qword [rsi], r8
mov qword [r11], rax
mov rax, qword [rsi]
cmp rax, r9
je 0x14003fbd4
mov r15, qword [rsp + 0x58]
lea r8d, [rbp + 1]
mov rbx, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rbx, r15
je 0x14003fbd4
movzx edx, word [r14]
xor dil, dil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x14003fada
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x14003fbfa
movzx eax, dx
movzx ecx, cx
shl eax, 0xa
sub ecx, 0xdc00
or eax, ecx
jmp 0x14003faf6
mov edx, 0x2800
movzx eax, cx
add cx, dx
cmp cx, r9w
ja 0x14003faf6
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x14003fb09
movzx r9d, al
mov r10d, ebp
mov r8d, ebp
jmp 0x14003fb53
mov r9d, eax
cmp eax, 0x800
jae 0x14003fb20
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
jmp 0x14003fb53
cmp eax, 0x10000
jae 0x14003fb3a
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r8d, r10d
jmp 0x14003fb53
shr r9d, 0x12
mov r10d, 3
movzx r8d, dil
or r9b, 0xf0
xor r8d, 1
add r8d, r8d
inc r8d
mov rdx, r15
sub rdx, rbx
mov ecx, r8d
cmp rdx, rcx
jl 0x14003fbd4
add qword [rsi], 2
test dil, dil
jne 0x14003fb73
cmp r10d, 3
jae 0x14003fb7f
mov rcx, qword [r11]
mov byte [rcx], r9b
inc qword [r11]
dec r8d
test r8d, r8d
jle 0x14003fbb1
lea r9d, [r10 + r10*2]
add r9d, r9d
nop dword [rax + rax]
sub r9d, 6
mov edx, eax
mov ecx, r9d
dec r8d
shr edx, cl
mov rcx, qword [r11]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [r11]
test r8d, r8d
jg 0x14003fb90
mov r8d, 1
test dil, dil
je 0x14003fbc1
shr eax, 0xa
jmp 0x14003fbc4
mov eax, r8d
mov word [r14], ax
mov rax, qword [rsi]
cmp rax, r12
jne 0x14003fa91
cmp r13, qword [rsi]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x14003fbdd
Function at 0x140045f50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov rbx, rcx
movsd xmm6, qword [0x1401f6410]
movaps xmm0, xmm6
call fcn.14019de30
movsd xmm1, qword [0x1401f6408]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.1401a06f8
movsd xmm2, qword [0x1401f6400]
mov ecx, 1
cvttsd2si eax, xmm0
xorps xmm3, xmm3
xorps xmm0, xmm0
cmp eax, ecx
cmovl eax, ecx
test eax, eax
jle 0x140046152
mov edx, dword [rbx]
mov qword [rsp + 0x40], rsi
xor esi, esi
mov qword [rsp + 0x48], rdi
mov edi, eax
cmp edx, 0x270
jne 0x140046010
lea r8, [rbx + 8]
mov r9d, edx
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140045fd0
mov edx, dword [rbx]
jmp 0x1400460f0
cmp edx, 0x4e0
jb 0x1400460f0
lea r10, [rbx + 0x9c4]
mov r11d, 0xe3
mov eax, dword [r10]
nop dword [rax]
mov edx, dword [r10 + 4]
lea r8, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x140046030
lea r10, [rbx + 0xd50]
mov r11d, 0x18c
mov eax, dword [r10]
nop dword [rax]
mov edx, eax
lea r8, [r10 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd4c]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x140046080
mov edx, dword [rbx + 0x1380]
xor edx, dword [rbx + 4]
btr edx, 0x1f
xor edx, dword [rbx + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rbx + 0x634]
xor ecx, edx
mov edx, esi
mov dword [rbx + 0x9c0], ecx
mov dword [rbx], esi
mov eax, edx
xorps xmm1, xmm1
inc edx
mov ecx, dword [rbx + rax*4 + 4]
mov eax, ecx
shr eax, 0xb
and eax, dword [rbx + 0x1384]
xor ecx, eax
mov dword [rbx], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm1, rax
subsd xmm1, xmm3
mulsd xmm1, xmm2
mulsd xmm2, xmm6
addsd xmm0, xmm1
sub rdi, 1
jne 0x140045fb6
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
movaps xmm6, xmmword [rsp + 0x20]
divsd xmm0, xmm2
add rsp, 0x30
pop rbx
ret