joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1409a1ca0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
cmp r9d, 8
jge 0x1409a1cf1
movzx r10d, dx
sub r8d, r10d
movzx eax, r8w
xor edx, edx
test r9d, r9d
jle 0x1409a1f1b
movsxd r8, edx
movzx r8d, word [rcx + r8*2]
sub r8d, r10d
movzx r8d, r8w
cmp r8d, eax
jle 0x1409a1ce5
inc edx
cmp edx, r9d
jl 0x1409a1cc5
jmp 0x1409a1f1b
mov eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
movzx r10d, dx
movd xmm0, r10d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov eax, r8d
sub eax, r10d
movzx eax, ax
movd xmm1, eax
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
mov rax, rcx
add r9d, 0xfffffff8
mov edx, r9d
add rdx, rdx
lea r8, [rax + rdx]
movups xmm2, xmmword [0x14145e7a0]
movaps xmm3, xmm1
psubw xmm3, xmm2
movups xmm4, xmmword [rax]
psubw xmm4, xmm0
movaps xmm5, xmm4
psubw xmm5, xmm2
movaps xmm6, xmm3
pcmpgtw xmm6, xmm5
pcmpeqw xmm4, xmm1
por xmm4, xmm6
movaps xmmword [rsp + 0x20], xmm4
xorps xmm5, xmm5
pcmpeqw xmm4, xmm5
pmovmskb r10d, xmm4
cmp r10d, 0xffff
jne 0x1409a1e5b
add rax, 0x10
cmp rax, r8
jb 0x1409a1d38
movups xmm4, xmmword [r8]
psubw xmm4, xmm0
movaps xmm0, xmm4
psubw xmm0, xmm2
pcmpgtw xmm3, xmm0
pcmpeqw xmm1, xmm4
por xmm1, xmm3
movaps xmmword [rsp + 0x20], xmm1
xorps xmm0, xmm0
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x1409a1f1b
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
bsf ecx, eax
mov r8d, 0x20
test eax, eax
cmove ecx, r8d
mov eax, ecx
shr rdx, 1
add eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
bsf r8d, edx
mov r10d, 0x20
test edx, edx
cmove r8d, r10d
sub rax, rcx
shr rax, 1
add eax, r8d
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov eax, 0xffffffff
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140440560]
mov dword [rax], 1
mov rax, qword [0x140440570]
mov dword [rax], 1
mov rax, qword [0x140440580]
mov dword [rax], 1
mov rax, qword [0x1404404e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14039af80
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140414e30
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14039b045
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140425d42
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14039b026
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14039b018
test rsi, rsi
je 0x140425d42
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14039afd8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14039b074
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14039b090
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14039b14d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140425d48
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14039b12e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14039b120
test rsi, rsi
je 0x140425d48
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14039b0e0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1403b9f50
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x14046ab90]
mov rsi, rcx
test rbx, rbx
je 0x1403b9fd0
mov rax, qword [0x1404406b0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1403b9fc0
mov rdx, qword [0x14046adc8]
test rdx, rdx
je 0x1403ba0c0
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x1403b9fa1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14039af80
test rax, rax
je 0x1403ba0e0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140425de2
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1403ba06e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1403ba060
test rbx, rbx
je 0x140425de2
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1403ba020
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.1403b9de0
mov rbx, rax
mov qword [0x14046ab90], rbx
jmp 0x1403b9f72
lea rcx, [0x14043cbb2]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x14046adc8], rax
mov rdx, rax
jmp 0x1403b9f92
mov rbx, qword [0x14046aba8]
test rbx, rbx
jne 0x1403ba0b1
cmp byte [0x14046adc2], 0
je 0x1403ba123
mov rdx, 0xffffffffffffffff
lea rcx, [0x14046abc0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x14046aba8], rax
mov rbx, rax
test rax, rax
je 0x1403ba12f
mov eax, dword [rax]
add eax, 1
je 0x1403ba0b1
mov dword [rbx], eax
jmp 0x1403ba0b1
mov ecx, 1
call fcn.14039bc00
jmp 0x1403ba0f5
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x1403ba9b0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14039af80
test rax, rax
je 0x1403bab00
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140425dfa
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1403baa66
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1403baa58
test rbx, rbx
je 0x140425dfa
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x1403baa18
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x14046b500]
mov rsi, rax
mov rax, qword [0x1404406b0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x1403bab6d
mov rdx, rbx
call fcn.14038b650
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1403ae580
mov rdx, qword [rbx]
test edx, edx
js 0x1403baae2
sub rdx, 1
mov qword [rbx], rdx
je 0x1403bab55
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x14046aba0]
lea rsi, [0x14046aba0]
test bl, bl
je 0x1403bab20
mov rax, qword [0x14046aba8]
lea rsi, [0x14046aba8]
test rax, rax
jne 0x1403baae2
cmp byte [0x14046adc2], 0
je 0x1403bab97
mov rdx, 0xffffffffffffffff
lea rcx, [0x14046abc0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1403baba1
mov edx, dword [rax]
add edx, 1
je 0x1403baae2
mov dword [rax], edx
jmp 0x1403baae2
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x1403baae2
mov rcx, qword [0x14046b478]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1403babac
mov rdx, rdi
call fcn.14038b650
mov qword [0x14046b500], rax
mov rcx, rax
jmp 0x1403baab9
movzx ecx, bl
call fcn.14039bc00
jmp 0x1403bab2e
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x140437793]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x14046b478], rax
mov rcx, rax
test rax, rax
je 0x140425dfa
jmp 0x1403bab80
Function at 0x1404113f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14046ab81], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140411498
lea rdx, [0x14043c48a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140411500
mov rbx, qword [0x14046aa20]
jmp 0x140411435
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140411430
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140411487
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1404013f0
mov r8, rax
cmp rdi, rbx
jne 0x140411470
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
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]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x14046aa20], rax
mov ebx, dword [rax]
mov qword [0x14046aa20], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14046aa20], rdx
call fcn.140410520
cmp eax, ebx
jne 0x140411568
mov byte [0x14046ab81], 1
jmp 0x140411410
cmp byte [0x14046ab80], 0
jne 0x140411427
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x14046b728], rax
call rbx
mov qword [0x14046b720], rax
call rbx
mov qword [0x14046b718], rax
call rbx
mov qword [0x14046b710], rax
call rbx
mov qword [0x14046b708], rax
call rbx
mov qword [0x14046b700], rax
call rbx
mov qword [0x14046b6f8], rax
call rbx
mov byte [0x14046ab80], 1
mov qword [0x14046b6f0], rax
jmp 0x140411427
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140413b10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1404252a0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1404252a0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1404147e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14046bbe8]
test eax, eax
je 0x14041487a
lea rax, [0x14046bbc0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14046bbf0]
mov qword [rbp - 8], rax
jmp 0x14041485e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140414852
cmp qword [rbp - 0x10], 0
je 0x140414852
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140414818
lea rax, [0x14046bbc0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14041487b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140414980
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1404149a8
mov eax, 0
jmp 0x1404149f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1404149d1
mov eax, 0
jmp 0x1404149f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1404149f1
mov eax, 0
jmp 0x1404149f6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1404149fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140414a7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140414a71
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140414a71
mov rax, qword [rbp - 8]
jmp 0x140414a8f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140414a44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x18fd4ed
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r8
pushfq
movabs r8, 0x502fa7a97f8d0f1b
mov qword [rsp + 0x20], 0x64fef51
mov r8, qword [rsp + 8]
movabs rbp, 0x96bc2995f9befd3c
not rbp
shl bpl, 0xee
movsx ebp, bp
xor rbp, 0x2d2768a3
lea rbp, [rbp + rbp + 0x1db4ecbf]
mov rbp, qword [rsp + rbp - 0x7803c1f5]
jbe 0x18fd516
add qword [rsp + 0x18], 0xfffffffffe6dc4de
push qword [rsp]
popfq
lea rsp, [rsp + 0x20]
call fcn.0191398b
Function at 0x1400043e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
mov r9, rcx
jne 0x140004402
xor edx, edx
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx + 0x7c]
inc edx
xor byte [rcx + r9 + 0xa], al
cmp edx, 0xa
jb 0x1400043f0
mov byte [r9 + 9], 1
lea rax, [r9 + 0xa]
ret
Function at 0x140007570
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x58
mov rcx, qword gs:[0x58]
mov eax, dword [0x140062c10]
mov r10d, 0x1a0
mov r8, qword [rcx + rax*8]
mov ecx, 0x1e8
mov eax, dword [rcx + r8]
test al, 1
jne 0x140007736
movaps xmm0, xmmword [0x14004ae50]
lea rdx, [r8 + r10]
movaps xmm1, xmmword [0x14004ae60]
xor r9d, r9d
mov qword [rdx], r9
or eax, 1
mov word [rdx + 8], r9w
mov byte [rdx + 0xa], r9b
movaps xmmword [rsp], xmm0
movaps xmm0, xmmword [0x14004ae70]
mov dword [rcx + r8], eax
xor eax, eax
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0xe]
movsd xmm0, qword [0x14004ae90]
movsd qword [rsp + 0x40], xmm0
xorps xmm0, xmm0
movups xmmword [rdx + 0xc], xmm0
movups xmmword [rdx + 0x1c], xmm0
movups xmmword [rdx + 0x2c], xmm0
mov qword [rdx + 0x3c], rax
mov word [rdx + 0x44], ax
lea rax, [rsp + 0xe]
movaps xmmword [rsp + 0x10], xmm1
sub rdx, rcx
movaps xmm1, xmmword [0x14004ae80]
movaps xmmword [rsp + 0x30], xmm1
nop dword [rax + rax]
movzx ecx, word [rax - 2]
add r9d, 0x1d
mov word [rax + rdx + 0xc], cx
movzx ecx, word [rax]
mov word [rax + rdx + 0xe], cx
movzx ecx, word [rax + 2]
mov word [rax + rdx + 0x10], cx
movzx ecx, word [rax + 4]
mov word [rax + rdx + 0x12], cx
movzx ecx, word [rax + 6]
mov word [rax + rdx + 0x14], cx
movzx ecx, word [rax + 8]
mov word [rax + rdx + 0x16], cx
movzx ecx, word [rax + 0xa]
mov word [rax + rdx + 0x18], cx
movzx ecx, word [rax + 0xc]
mov word [rax + rdx + 0x1a], cx
movzx ecx, word [rax + 0xe]
mov word [rax + rdx + 0x1c], cx
movzx ecx, word [rax + 0x10]
mov word [rax + rdx + 0x1e], cx
movzx ecx, word [rax + 0x12]
mov word [rax + rdx + 0x20], cx
movzx ecx, word [rax + 0x14]
mov word [rax + rdx + 0x22], cx
movzx ecx, word [rax + 0x16]
mov word [rax + rdx + 0x24], cx
movzx ecx, word [rax + 0x18]
mov word [rax + rdx + 0x26], cx
movzx ecx, word [rax + 0x1a]
mov word [rax + rdx + 0x28], cx
movzx ecx, word [rax + 0x1c]
mov word [rax + rdx + 0x2a], cx
movzx ecx, word [rax + 0x1e]
mov word [rax + rdx + 0x2c], cx
movzx ecx, word [rax + 0x20]
mov word [rax + rdx + 0x2e], cx
movzx ecx, word [rax + 0x22]
mov word [rax + rdx + 0x30], cx
movzx ecx, word [rax + 0x24]
mov word [rax + rdx + 0x32], cx
movzx ecx, word [rax + 0x26]
mov word [rax + rdx + 0x34], cx
movzx ecx, word [rax + 0x28]
mov word [rax + rdx + 0x36], cx
movzx ecx, word [rax + 0x2a]
mov word [rax + rdx + 0x38], cx
movzx ecx, word [rax + 0x2c]
mov word [rax + rdx + 0x3a], cx
movzx ecx, word [rax + 0x2e]
mov word [rax + rdx + 0x3c], cx
movzx ecx, word [rax + 0x30]
mov word [rax + rdx + 0x3e], cx
movzx ecx, word [rax + 0x32]
mov word [rax + rdx + 0x40], cx
movzx ecx, word [rax + 0x34]
mov word [rax + rdx + 0x42], cx
movzx ecx, word [rax + 0x36]
mov word [rax + rdx + 0x44], cx
lea rax, [rax + 0x3a]
cmp r9d, 0x1d
jb 0x140007620
lea rax, [r8 + r10]
add rsp, 0x58
ret
Function at 0x140018780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400187b1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14001882b
mov rdi, r14
mov rcx, rbx
call fcn.1400121f0
test rax, rax
jle 0x140018803
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400447d0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001881b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140018823
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400187c5
sub r14, rdi
jmp 0x14001890f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140018842
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140018844
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140018876
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400447d0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001890c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400188b1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400188ed
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140029b7c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14001890c
cmp rbp, rax
ja 0x1400188c0
test rbp, rbp
je 0x14001890c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140029b7c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret