joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140185530
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x44], 0
mov rcx, qword [rsp + 0x50]
mov edx, 0xc0000000
mov r8d, 3
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x68
ret
Function at 0x1401a16ec
Capabilities:
Parse pe header

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

Function at 0x1401a5608
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 0x1401a5473
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401a5473
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401a5473
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401a5473
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401a5473
cmp dword [rcx + 0x84], 0xe
jbe 0x1401a5473
cmp dword [rcx + 0xf8], 0
je 0x1401a5473
mov ecx, ebx
call fcn.1401a5524
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.1401a5300
nop
cmp dword [rbp + 0x20], 0
je 0x1401a54c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401a54cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401a5404

Function at 0x1401a5a50
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1401a5a6f
call fcn.1401ab92c
jmp 0x1401a5b24
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1401a59b4
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1401a5aba
cmp byte [rbp - 0x38], 0
je 0x1401a5aef
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401a5aef
call fcn.1401aaa44
test eax, eax
jne 0x1401a5adb
cmp byte [rbp - 0x38], al
je 0x1401a5ad3
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401a5aef
cmp byte [rbp - 0x38], 0
je 0x1401a5aec
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1401a5838
test eax, eax
je 0x1401a5b08
or ebx, 0xffffffff
jmp 0x1401a5b13
mov rcx, qword [rbp - 0x20]
call fcn.1401ab92c
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1401a5b22
mov rcx, qword [rbp - 0x20]
call fcn.1401aae50
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x1401ae714
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1401ae744
xor eax, eax
jmp 0x1401ae807
mov rbp, rbx
cmp word [rax], si
je 0x1401ae769
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401ae750
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401ae74c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1401ae634
movsxd r14, eax
test eax, eax
jne 0x1401ae7a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401ae73d
mov rcx, r14
call fcn.1401ab83c
mov rdi, rax
test rax, rax
jne 0x1401ae7c0
xor ecx, ecx
call fcn.1401aae50
jmp 0x1401ae79c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1401ae634
test eax, eax
jne 0x1401ae7f1
mov rcx, rdi
call fcn.1401aae50
jmp 0x1401ae7fb
xor ecx, ecx
call fcn.1401aae50
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1401b29fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401b2a12
mov al, 1
jmp 0x1401b2a72
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401b2a23
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401b2a70
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401aead0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401b2a70
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401b2a70
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401b2a70
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401b2a72
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor rcx, rcx
sub rcx, 0xffffffffffffff93
lea rax, [entry0]
movabs rbx, 0xee3958a962f1d310
xor qword [rax + 0x27], rbx
sub rax, 0xfffffffffffffff8
loop 0x14000401b
pop rax
loop 0x140004062
sub ch, byte [rax]
mov cl, 0xa1
adc edi, ebp
sub al, 0xb9
out dx, eax
lodsb al, byte [rsi]
mov bh, 0xc6
adc edi, ebp
wait
mov ss, rax
invalid
jp 0x1400040ca
stosb byte [rdi], al
mov dl, 0xd2
push r9
outsd dx, dword [rsi]
invalid
insb byte [rdi], dx
invalid
xor eax, 0xca0cbbd4
xchg ebx, eax
mov byte [rbp + rbp*2 + 0x70], al
movabs byte [0xf176e981095d7d43], al
jge 0x1400040bf
insd dword [rdi], dx
jo 0x14000406c
jge 0x14000412a
or dword [rcx + 0x43f176e9], eax
jge 0x1400040bf
cli
cdq
push r11
insb byte [rdi], dx
invalid
movabs dword [0xaaabc1a34744d0be], eax
adc ah, byte [rdi - 0x76]
std
jo 0x1400040c7
sub eax, 0x382d5cca
push rbp
sub byte [rcx], bh
jrcxz 0x14000418e
cdq
test eax, 0x3928113e
push rsp
mov eax, 0xa9e2cdb1
invalid
sub dl, byte [rax - 0x60]
invalid
Function at 0x140001d10
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.140087490
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.14001f210
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140001d6f
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret

Function at 0x140001d80
Capabilities:
Set environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea rsi, [rsp + 0x20]
mov rbx, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, rsi
call fcn.14001f210
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop rbx
pop rsi
ret

Function at 0x140001fd0
Capabilities:
Set environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rbp, rdx
mov rdi, r8
mov r12, rcx
call fcn.14001a5c0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rsi, rax
test rdi, rdi
je 0x14000207f
mov rdx, rdi
mov rcx, rbp
call fcn.140001d80
mov rcx, rdi
mov rdx, 0xffffffffffffffff
call sub.python311.dll_PyUnicode_FromWideChar
mov rdx, rsi
mov rcx, rbx
mov rdi, rax
mov r8, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
jne 0x1400020c1
sub qword [rdi], 1
jne 0x14000204e
mov rcx, rdi
call fcn.140001f50
sub qword [rsi], 1
jne 0x14000205c
mov rcx, rsi
call fcn.140001f50
sub qword [rbx], 1
jne 0x140002074
mov rcx, rbx
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140001f50
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdi, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbp
mov word [rsp + 0x20], 0
mov rcx, rdi
call fcn.14001f210
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x14000204e
mov rcx, r12
call fcn.140001f60
jmp 0x14000204e
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
nop
nop dword [rax + rax]
Function at 0x14007d4b0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400b2f89], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14007d538
lea rdx, [0x1400a29fa]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14007d650
mov rsi, qword [0x1400b2e40]
jmp 0x14007d4f5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x14007d4f0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14006c920
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400b2e40], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400b2e40], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400b2e40], rcx
test eax, eax
je 0x14007d638
lea r8, [rcx + rax]
mov eax, 0xffffffff
nop word cs:[rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp rcx, r8
jne 0x14007d5a0
not eax
cmp r9d, eax
jne 0x14007d6b8
mov byte [0x1400b2f89], 1
jmp 0x14007d4cc
cmp byte [0x1400b2f88], 0
jne 0x14007d4e3
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400b38e8], rax
call rbx
mov qword [0x1400b38e0], rax
call rbx
mov qword [0x1400b38d8], rax
call rbx
mov qword [0x1400b38d0], rax
call rbx
mov qword [0x1400b38c8], rax
call rbx
mov qword [0x1400b38c0], rax
call rbx
mov qword [0x1400b38b8], rax
call rbx
mov byte [0x1400b2f88], 1
mov qword [0x1400b38b0], rax
jmp 0x14007d4e3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400866f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140094a50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140094a50
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140086760
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400b3d44]
mov rbx, rcx
test esi, esi
jle 0x140086890
mov rax, qword [0x1400b3d48]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400867ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140086835
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140086790
mov rcx, rbx
call fcn.1400871b0
mov rdi, rax
test rax, rax
je 0x1400868b2
mov rax, qword [0x1400b3d48]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400872f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400b3d48]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140086897
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14008682e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140086840
add dword [0x1400b3d44], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400b3d48]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14008682e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400866f0
nop dword [rax]
xor esi, esi
jmp 0x1400867b8
mov rax, qword [0x1400b3d48]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400866f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400866f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140086e20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400b3da0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400b3d80]
test rbx, rbx
je 0x140086e7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140086e73
test rsi, rsi
je 0x140086e73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140086e58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400871b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400a45d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400871d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400871d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400871d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14008722d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140087224
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400871d0
add rax, 0x28
cmp rax, r9
jne 0x140087210
xor eax, eax
ret

Function at 0x140087230
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400a45d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14008724f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140087258
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14008724f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400872f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400a45d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14008730f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140087318
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000d740
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14000d774
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000d760
ret
Function at 0x140010db8
Capabilities:
Parse pe header

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

Function at 0x140016994
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400169c2
xor eax, eax
jmp 0x140016aa8
cmp qword [rcx + 0x68], 0
je 0x1400169d3
call fcn.140008220
jmp 0x140016aa8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400169ea
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400169ec
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140016a1e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140039e20
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140016aa2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140016a55
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140016a7e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14004c550
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140016aa2
cmp rsi, rbx
ja 0x140016a5c
test rsi, rsi
je 0x140016aa2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14004c550
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

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

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

Function at 0x14004326c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004305c
Function at 0x140055c34
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140055c64
xor eax, eax
jmp 0x140055d27
mov rbp, rbx
cmp word [rax], si
je 0x140055c89
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140055c70
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140055c6c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140055b84
movsxd r14, eax
test eax, eax
jne 0x140055cc7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140055c5d
mov rcx, r14
call fcn.140050338
mov rdi, rax
test rax, rax
jne 0x140055ce0
xor ecx, ecx
call fcn.1400502fc
jmp 0x140055cbc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140055b84
test eax, eax
jne 0x140055d11
mov rcx, rdi
call fcn.1400502fc
jmp 0x140055d1b
xor ecx, ecx
call fcn.1400502fc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140055d44
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 0x140055dcb
mov rsi, rbx
cmp word [rax], bp
je 0x140055d8a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140055d74
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140055d70
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140050338
mov rdi, rax
test rax, rax
je 0x140055db8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140039e20
mov rbp, rdi
xor ecx, ecx
call fcn.1400502fc
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 0x14005af0c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14005af3e
call fcn.140045bf0
mov dword [rax], 0x16
call fcn.1400421d0
jmp 0x14005b05d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14005b05d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14005b05d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14005af6d
lock or dword [rcx + 0x14], 0x10
jmp 0x14005b05d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14005af81
call fcn.14005c570
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14005394c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14005bcec
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14005b04b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14005b016
mov rcx, rsi
call fcn.14005394c
cmp eax, edi
je 0x14005b001
mov rcx, rsi
call fcn.14005394c
cmp eax, 0xfffffffe
je 0x14005b001
mov rcx, rsi
call fcn.14005394c
movsxd rbx, eax
lea r14, [0x1400b8000]
mov rcx, rsi
sar rbx, 6
call fcn.14005394c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14005b008
lea rdx, [0x14007b3c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14005b016
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14005b03a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14005b03a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14005b03a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14005b060
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret