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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rdx
mov r15, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
mov dword [rsp + 0x100], esi
nop
mov qword [rsp + 0x48], 0xffffffffffffffff
call fcn.140096b50
mov rdx, qword [rdi + 0x48]
mov eax, dword [rdi + 0x30]
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14006a3e2
mov rcx, qword [rdi]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov edx, 3
mov r9d, 0xff
lea r8d, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006a502
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x14006a502
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x60]
call fcn.14006ba80
mov qword [rsp + 0x108], rax
test rax, rax
je 0x14006a45b
lock inc dword [rax + 8]
or esi, 1
mov dword [rsp + 0x100], esi
lea rcx, [rsp + 0x108]
call fcn.1400972f0
test al, al
je 0x14006a4eb
lea rcx, [rsp + 0x108]
call fcn.140096ae0
mov rbx, qword [rsp + 0x108]
test rbx, rbx
je 0x14006a4be
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14006a4be
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
call fcn.140096b50
jmp 0x14006a3c0
lea rcx, [rsp + 0x80]
call fcn.1400463a0
nop
mov rcx, rax
call fcn.140057320
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [0x1401153c8]
lea rcx, [rsp + 0x40]
call fcn.14009894c
int3

Function at 0x14006a850
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov rbx, rcx
mov rdx, qword [rcx + 0x38]
mov qword [rsp + 0x38], rdx
mov rax, qword [r8]
mov qword [rdx], rax
lea rdi, [rcx + 0x28]
mov qword [rsp + 0x40], rdi
cmp byte [rdi], 0
je 0x14006a88b
mov r8, qword [rcx + 0x30]
jmp 0x14006a891
mov r8d, 8
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006a919
cmp dword [rsp + 0x80], 0
jbe 0x14006a919
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop
jmp 0x14006a8d7
mov byte [rdi], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14006a910
mov qword [rbx + 0x40], 0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], 0
test rcx, rcx
je 0x14006a910
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rsp, 0x50
pop r14
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x30], eax
lea rdx, [0x1401153c8]
lea rcx, [rsp + 0x30]
call fcn.14009894c
int3
Function at 0x14006c210
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x50
mov dword [rsp + 0x38], edx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], r9
lea rbx, [rcx + 0x30]
mov rcx, rbx
call fcn.14006c770
lea r8, [rsp + 0x38]
mov rdx, qword [rbx + 0x20]
mov rcx, rbx
call fcn.14006c540
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 8
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006c2b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14006c2cf
mov r8, qword [rbx + 0x30]
xor edx, edx
mov rcx, qword [rbx + 0x38]
call fcn.1400c5d40
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, dword [rbx + 0x30]
mov rdx, qword [rbx + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006c2e4
mov byte [rbx + 0x28], 0
mov rax, qword [rsp + 0x70]
jmp 0x14006c2c4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov dword [rsp + 0x30], eax
lea rdx, [0x1401153c8]
lea rcx, [rsp + 0x30]
call fcn.14009894c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
lea rdx, [0x1401153c8]
lea rcx, [rsp + 0x34]
call fcn.14009894c
int3

Function at 0x14006c540
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push r14
sub rsp, 0x50
mov r14, rdx
mov rbx, rcx
mov rdx, qword [rcx + 0x38]
mov qword [rsp + 0x38], rdx
movups xmm0, xmmword [r8]
movups xmmword [rdx], xmm0
movsd xmm1, qword [r8 + 0x10]
movsd qword [rdx + 0x10], xmm1
lea rsi, [rcx + 0x28]
mov qword [rsp + 0x40], rsi
cmp byte [rsi], 0
je 0x14006c587
mov r8, qword [rcx + 0x30]
jmp 0x14006c58d
mov r8d, 0x18
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006c615
cmp dword [rsp + 0x80], 0
jbe 0x14006c615
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop
jmp 0x14006c5d3
mov byte [rsi], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14006c60c
mov qword [rbx + 0x40], 0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], 0
test rcx, rcx
je 0x14006c60c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x30], eax
lea rdx, [0x1401153c8]
lea rcx, [rsp + 0x30]
call fcn.14009894c
int3

Function at 0x14006c8c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rax, r9
mov qword [rsp + 0x20], 0
mov rbx, rdx
lea r9, [rsp + 0x50]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006c908
cmp dword [rsp + 0x50], 0
jbe 0x14006c908
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x1401153c8]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x30]
call fcn.14009894c
int3
Function at 0x14006da5c
Capabilities:
Parse pe header

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

Function at 0x14006e314
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14006e34e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14006e353
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14006e39c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.d2d1.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x14006e39c
dec r8
sub rdx, 1
jne 0x14006e382
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

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

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140077c86
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140077c69
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140077c54

Function at 0x140096b50
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
mov ecx, dword [0x14011b0b8]
cmp ecx, 0xffffffff
je 0x140096b92
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x14011b0b8]
test rax, rax
je 0x140096b92
cmp ecx, 0xffffffff
jne 0x140096b7d
mov eax, ebx
jmp 0x140096b89
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x14011b0b8]
cmp byte [rax + 0x70], bl
je 0x140096b92
mov al, 1
jmp 0x140096b94
xor al, al
test al, al
je 0x140096bd9
cmp ecx, 0xffffffff
je 0x140096bd3
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140096bd3
mov ecx, dword [0x14011b0b8]
cmp ecx, 0xffffffff
je 0x140096bbc
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x140096bd3
mov al, 1
jmp 0x140096bd5
xor al, al
test al, al
jne 0x140096bdf
add rsp, 0x20
pop rbx
ret
call fcn.140096b30
lea rcx, [rax + 0x68]
call fcn.1400966d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rdx, [0x140114f48]
lea rcx, [rsp + 0x30]
call fcn.14009894c
int3
Function at 0x1400971a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x14011b0b8]
cmp ecx, 0xffffffff
jne 0x1400971be
xor esi, esi
jmp 0x1400971c7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x1400972ab
cmp qword [rsi + 0x30], 0
jne 0x1400971e7
cmp qword [rsi + 0x18], 0
je 0x140097284
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x140097244
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x140097227
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1400971f0
cmp qword [rsi + 0x30], 0
je 0x1400971dc
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14009726c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14009726c
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1400967c0
cmp qword [rsi + 0x30], 0
jne 0x140097250
jmp 0x1400971d5
lea rdx, [0x140096ac0]
lea rcx, [0x1401226c8]
call fcn.140096830
mov ecx, dword [0x14011b0b8]
cmp ecx, 0xffffffff
je 0x1400972ab
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1400972de
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400972de
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400972f0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x140097380]
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call fcn.1400a6b64
mov rsi, rax
test rax, rax
jne 0x140097334
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi]
mov qword [rsp + 0x40], rbx
lock inc dword [rax + 8]
mov rbx, qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140097357
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400a6b64
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400a6b9b
call fcn.1400a5ba4
mov dword [rax], 0x16
call fcn.1400a5644
xor eax, eax
jmp 0x1400a6c29
mov rdx, r9
mov rcx, r8
call fcn.1400a6b00
mov rbx, rax
test rax, rax
je 0x1400a6c26
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400a6a2c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400a6c13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a5b18
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400a6bfa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400a6c09
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400b62dc
jmp 0x1400a6c26
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400a6c23
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400ac7c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400ac5c0
Function at 0x1400bbe78
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400bbeff
mov rsi, rbx
cmp word [rax], bp
je 0x1400bbebe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400bbea8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400bbea4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b7824
mov rdi, rax
test rax, rax
je 0x1400bbeec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c56a0
mov rbp, rdi
xor ecx, ecx
call fcn.1400b62dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bf1c4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400b7334
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400bf265
cmp ebx, dword [rsp + 0x30]
je 0x1400bf25e
test esi, esi
je 0x1400bf25e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400bf239
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400bf246
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400bf223
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400bf24a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400bf267
mov eax, 1
jmp 0x1400bf267
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c50d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c50f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400c50f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
lea rsi, [0x14002d7d0]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rsi + rdx*2 + 2], 0
lea rdx, [rdx + 1]
jne 0x140001970
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rdi
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1400019ce
lea rdi, [rdx + rdx]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x60]
mov r8, rdi
mov rdx, rsi
call fcn.140012cd8
test eax, eax
je 0x1400019e0
mov rax, qword gs:[0x60]
mov rbx, qword [rbx]
mov rcx, qword [rax + 0x18]
cmp rbx, qword [rcx + 0x10]
je 0x1400019ce
test rbx, rbx
jne 0x1400019a0
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140005920
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov ebx, 2
mov edi, edx
mov r11d, 0x135
xor r9d, r9d
lea r10d, [rbx - 3]
nop word [rax + rax]
lea eax, [r11 + 7]
add r11d, 0x13
cdq
lea ecx, [r10 + 2]
sub eax, edx
sar eax, 1
add eax, ebx
lea ebx, [r10 + 1]
add eax, r11d
lea r11d, [rax + rax*2]
lea eax, [r10 + 1]
add r11d, r11d
cmp eax, 3
mov r10d, 6
cmovne r10d, ecx
cmp r10d, 0xd
jl 0x140005940
mov eax, r11d
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
lea eax, [rbx*2 + 7]
add eax, r10d
add eax, r11d
mov ecx, eax
test eax, eax
jle 0x1400059a5
test al, 1
jne 0x1400059a5
cdq
inc r9d
sub eax, edx
sar eax, 1
test eax, eax
jg 0x140005995
imul r9d, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp r9d, eax
jne 0x1400059c5
mov edx, r8d
mov ecx, edi
mov rbx, qword [rsp + 0x10]
pop rdi
jmp fcn.1400059d0
mov rbx, qword [rsp + 0x10]
xor eax, eax
pop rdi
ret
Function at 0x1400068f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
mov edx, 0x98
mov ecx, 1
call fcn.14000d564
mov rbx, rax
test rax, rax
je 0x140006aa7
mov dword [rax], esi
lea rdx, [rdi + 0x3c]
xor esi, esi
mov qword [rax + 8], 0xffffffffffffffff
mov rcx, rax
mov dword [rax + 4], esi
mov dword [rax + 0x10], esi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x28], rdi
call fcn.140006720
mov edx, eax
mov rcx, rbx
add rdx, qword [rbx + 0x20]
mov qword [rbx + 0x30], rdx
lea rax, [rdx + 0x18]
add rdx, 0x14
mov qword [rbx + 0x38], rax
add rax, 0x70
mov qword [rbx + 0x40], rax
call fcn.140006680
mov rdx, qword [rbx + 0x40]
movzx ecx, ax
add rcx, qword [rbx + 0x38]
mov qword [rbx + 0x48], rcx
mov rcx, rbx
call fcn.140006720
test eax, eax
jne 0x14000699c
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x70], rsi
jmp 0x140006a13
mov edx, eax
mov rcx, rbx
call fcn.1400063b0
mov rcx, rbx
mov qword [rbx + 0x50], rax
lea rdx, [rax + 0x20]
call fcn.140006720
mov edx, eax
mov rcx, rbx
call fcn.1400063b0
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x1c
mov qword [rbx + 0x58], rax
call fcn.140006720
mov edx, eax
mov rcx, rbx
call fcn.1400063b0
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x24
mov qword [rbx + 0x68], rax
call fcn.140006720
mov edx, eax
mov rcx, rbx
call fcn.1400063b0
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x18
mov qword [rbx + 0x70], rax
call fcn.140006720
mov dword [rbx + 0x60], eax
mov rdx, qword [rbx + 0x40]
mov rcx, rbx
add rdx, 0x30
mov qword [rbx + 0x80], rsi
call fcn.140006720
test eax, eax
je 0x140006a8d
mov edx, eax
mov rcx, rbx
call fcn.1400063b0
mov rcx, rbx
mov qword [rbx + 0x88], rax
lea rdx, [rax + 0xc]
call fcn.140006720
cmp eax, 2
jne 0x140006a8d
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
add rdx, 0x14
call fcn.140006720
mov edx, eax
mov rcx, rbx
call fcn.1400063b0
mov rdx, rax
mov qword [rbx + 0x90], rax
mov rcx, rbx
call fcn.140006720
cmp eax, 0x53445352
je 0x140006a94
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x88], rsi
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 1
call fcn.14000d558
int3
Function at 0x140008980
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp dword [0x140068d60], 0
jne 0x140008b1c
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
call fcn.140001950
mov edx, 1
mov rcx, qword [rax + 0x30]
call fcn.1400068f0
xor edi, edi
lea r15, [0x140068d60]
mov rsi, rax
mov r14d, edi
mov ebp, edi
cmp dword [rax + 0x60], edi
jbe 0x140008aa0
mov qword [rsp + 0x50], rbx
nop dword [rax]
mov rax, qword [rsi + 0x58]
mov rbx, qword [rsi + 0x28]
mov ecx, ebp
mov r9d, dword [rax + rcx*4]
cmp dword [rsi], edi
je 0x1400089f8
lea rdx, [rbx + r9]
jmp 0x140008a33
mov rax, qword [rsi + 0x30]
mov r8d, edi
mov r11, qword [rsi + 0x48]
movzx r10d, word [rax + 6]
test r10d, r10d
je 0x140008a30
lea rax, [r11 + 8]
mov edx, dword [rax + 4]
cmp edx, r9d
ja 0x140008a24
add edx, dword [rax]
cmp r9d, edx
jb 0x140008b26
inc r8d
add rax, 0x28
cmp r8d, r10d
jb 0x140008a11
mov rdx, rdi
cmp byte [rdx], 0x5a
jne 0x140008a90
cmp byte [rdx + 1], 0x77
jne 0x140008a90
mov r9d, edi
mov r8d, 0xe14b0d06
mov rax, rdx
nop word [rax + rax]
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc r9d
add ecx, eax
mov eax, r9d
add rax, rdx
xor r8d, ecx
cmp byte [rax], dil
jne 0x140008a50
mov eax, r14d
lea rcx, [rax + rax*2]
lea rbx, [rcx*4]
mov rcx, rsi
mov dword [rbx + r15 + 4], r8d
call fcn.140006ac0
mov dword [rbx + r15 + 8], eax
inc r14d
inc ebp
cmp ebp, dword [rsi + 0x60]
jb 0x1400089e0
mov rbx, qword [rsp + 0x50]
mov edx, r14d
lea r9, [0x140008940]
mov r8d, 0xc
mov dword [0x140068d60], r14d
lea rcx, [0x140068d64]
call fcn.140014950
mov eax, dword [0x140068d60]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
test eax, eax
je 0x140008af7
nop dword [rax]
mov eax, edi
lea rdx, [rax + rax*2]
mov dword [r15 + rdx*4 + 0xc], edi
inc edi
mov eax, dword [0x140068d60]
cmp edi, eax
jb 0x140008ae0
mov edx, eax
lea r9, [0x140008960]
mov r8d, 0xc
lea rcx, [0x140068d64]
call fcn.140014950
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x48
ret
mov eax, r8d
lea rcx, [rax + rax*4]
lea rdx, [r11 + rcx*8]
test rdx, rdx
je 0x140008a30
sub r9d, dword [rdx + 0xc]
mov edx, dword [rdx + 0x14]
mov eax, r9d
add rax, rbx
add rdx, rax
jmp 0x140008a33

Function at 0x140009570
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000d3c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d3c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d3c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d3c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d3c3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d3c3
cmp dword [rcx + 0xf8], 0
je 0x14000d3c3
mov ecx, ebx
call fcn.14000d474
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000d250
nop
cmp dword [rbp + 0x20], 0
je 0x14000d411
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d41c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d354
Function at 0x14001bcb4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001bd3b
mov rsi, rbx
cmp word [rax], bp
je 0x14001bcfa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001bce4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001bce0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016ed8
mov rdi, rax
test rax, rax
je 0x14001bd28
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140023630
mov rbp, rdi
xor ecx, ecx
call fcn.1400162a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret