joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140249070
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.140220490
test rax, rax
je 0x1402491b0
mov rdx, 0xffffffffffffffff
mov rcx, rax
mov r15d, 0x4e
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
lea r14, [rsp + 0x40]
lea r12, [rsi + 0x28]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
lea rbp, [rsp + 0x3e]
mov rdi, r14
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x1402490ee
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1402490e0
test rax, rax
je 0x1402993ce
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x1402490d0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x1402e3b98]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x1402aea30]
test rcx, rcx
mov rbx, qword [rax + 0x1b8]
je 0x140249208
mov rdx, rbx
call fcn.140206300
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14023d5f0
sub qword [rbx], 1
jne 0x140249196
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1402e3460]
lea rsi, [0x1402e3460]
test bl, bl
je 0x1402491d0
mov rax, qword [0x1402e3468]
lea rsi, [0x1402e3468]
test rax, rax
jne 0x140249196
cmp byte [0x1402e3682], 0
jne 0x1402491e6
movzx ecx, bl
call fcn.140208200
lea rcx, [0x1402e3480]
mov rdx, 0xffffffffffffffff
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
test rax, rax
mov qword [rsi], rax
je 0x140249232
add qword [rax], 1
jmp 0x140249196
mov rcx, qword [0x1402e3b10]
mov rdi, qword [rax + 0x1a8]
test rcx, rcx
je 0x14024923d
mov rdx, rdi
call fcn.140206300
mov rcx, rax
mov qword [0x1402e3b98], rax
jmp 0x140249163
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1402a6d7b]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
test rax, rax
mov rcx, rax
mov qword [0x1402e3b10], rax
je 0x1402993ce
jmp 0x14024921b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call qword [sym.imp.python311.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x140280e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1402e3449], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x140280ee8
lea rdx, [0x1402aa7fa]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140280f50
mov rbx, qword [0x1402e3300]
jmp 0x140280ea5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
test esi, esi
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
jne 0x140280ea0
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.1402700d0
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 [0x1402e3300], rax
mov ebx, dword [rax]
mov qword [0x1402e3300], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1402e3300], rdx
call fcn.14027ff90
cmp eax, ebx
jne 0x140280fb8
mov byte [0x1402e3449], 1
jmp 0x140280e7c
cmp byte [0x1402e3448], 0
jne 0x140280e93
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1402e3da8], rax
call rbx
mov qword [0x1402e3da0], rax
call rbx
mov qword [0x1402e3d98], rax
call rbx
mov qword [0x1402e3d90], rax
call rbx
mov qword [0x1402e3d88], rax
call rbx
mov qword [0x1402e3d80], rax
call rbx
mov qword [0x1402e3d78], rax
call rbx
mov byte [0x1402e3448], 1
mov qword [0x1402e3d70], rax
jmp 0x140280e93
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14028a5e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140298a30
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.140298a30
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 0x14028a650
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402e4204]
test esi, esi
mov rbx, rcx
jle 0x14028a780
mov rax, qword [0x1402e4208]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14028a69b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14028a725
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14028a680
mov rcx, rbx
call fcn.14028b0c0
test rax, rax
mov rdi, rax
je 0x14028a7a2
mov rax, qword [0x1402e4208]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14028b200
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402e4208]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14028a787
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14028a71e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14028a730
add dword [0x1402e4204], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1402e4208]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14028a71e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14028a5e0
nop dword [rax]
xor esi, esi
jmp 0x14028a6a8
mov rax, qword [0x1402e4208]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14028a5e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14028a5e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14028ad10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402e4260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402e4240]
test rbx, rbx
je 0x14028ad6c
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 0x14028ad63
test rsi, rsi
je 0x14028ad63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14028ad48
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 0x14028af80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14028afb8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14028afc0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14028af90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14028afb8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14028afc0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14028afa0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14028afb8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14028afc0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14028b0c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402ae870]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14028b0e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14028b0e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14028b0e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14028b13d
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]
cmp rcx, r8
mov rdx, r8
jb 0x14028b134
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14028b0e0
add rax, 0x28
cmp rax, r9
jne 0x14028b120
xor eax, eax
ret

Function at 0x14028b140
Capabilities:
Parse pe header

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

Function at 0x14028b200
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402ae870]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14028b21f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14028b228
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140007fa0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140035020]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
call fcn.140008840
mov eax, dword [0x140035bf4]
lea rdx, [rsp + 0x28]
mov r10d, dword [0x140035bf0]
lea rcx, [rsp + 0x30]
mov dword [0x140035bf0], eax
mov dword [0x140035bf4], r10d
mov dword [rsp + 0x28], 0x10
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xorps xmm0, xmm0
lea r8, [rdi - 1]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
test eax, eax
jne 0x14000801e
inc r8
cmp word [rdi + r8*2], di
jne 0x140008010
xor edx, edx
jmp 0x140008032
lea rax, [rsp + 0x30]
inc r8
cmp word [rax + r8*2], di
jne 0x140008023
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000a390
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000cb70
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140008060
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140035020]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov qword [rsp + 0x28], rcx
mov rbx, rcx
mov ecx, dword [0x140035bf0]
xor edi, edi
mov eax, dword [0x140035bf4]
mov dword [0x140035bf0], eax
mov dword [0x140035bf4], ecx
mov dword [rsp + 0x28], 0x101
call fcn.140008840
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
lea r8, [rdi - 1]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
test eax, eax
jne 0x1400080e2
inc r8
cmp word [rdi + r8*2], di
jne 0x1400080d4
xor edx, edx
jmp 0x1400080ff
lea rax, [rsp + 0x30]
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x1400080f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000a390
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000cb70
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x14000b8d0
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov byte [rcx], 0
mov qword [rcx + 0x14], rax
mov rbx, rcx
mov dword [rcx + 4], 0x67452301
mov rax, rdx
mov dword [rcx + 8], 0xefcdab89
mov dword [rcx + 0xc], 0x98badcfe
mov dword [rcx + 0x10], 0x10325476
cmp qword [rdx + 0x18], 8
jb 0x14000b90b
mov rax, qword [rdx]
mov r8, qword [rdx + 0x10]
mov rdx, rax
call fcn.14000b920
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14000d850
Capabilities:
Parse pe header

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

Function at 0x140013290
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 0x1400130fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400130fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400130fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400130fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400130fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400130fb
cmp dword [rcx + 0xf8], 0
je 0x1400130fb
mov ecx, ebx
call fcn.1400131ac
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.140012f88
nop
cmp dword [rbp + 0x20], 0
je 0x140013149
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013154
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001308c

Function at 0x140019f80
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140019f96
mov al, 1
jmp 0x140019ff6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140019fa7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140019ff4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140021518
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140019ff4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140019ff4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140019ff4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140019ff6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001d690
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140036d00]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001d6e7
cmp word [rdx], r13w
jne 0x14001d6e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001d6ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001d811
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001d832
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001d725
mov rdx, r9
mov word [rbx], cx
jmp 0x14001d74c
cmp r9, r8
jae 0x14001d75c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001d706
jmp 0x14001d811
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001d806
cmp dword [rsp + 0x80], esi
je 0x14001d806
lea r8, [0x140036d00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001d7de
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001d7ae
mov word [rbx], r13w
jmp 0x14001d80e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001d7bb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001d80e
cmp word [rsp + 0x70], r13w
jne 0x14001d7eb
cmp rbx, r14
je 0x14001d7a8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001e2f0
cmp word [rsp + 0x70], r13w
je 0x14001d811
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140036d00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001d80b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001d811
Function at 0x140020a10
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 0x140020a40
xor eax, eax
jmp 0x140020b03
mov rbp, rbx
cmp word [rax], si
je 0x140020a65
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140020a4c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140020a48
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.14001f318
movsxd r14, eax
test eax, eax
jne 0x140020aa3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140020a39
mov rcx, r14
call fcn.14001e394
mov rdi, rax
test rax, rax
jne 0x140020abc
xor ecx, ecx
call fcn.14001b958
jmp 0x140020a98
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.14001f318
test eax, eax
jne 0x140020aed
mov rcx, rdi
call fcn.14001b958
jmp 0x140020af7
xor ecx, ecx
call fcn.14001b958
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 0x140022dec
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140013e3c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140022e76
cmp byte [rbp - 0x21], r15b
je 0x140022e71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140022eac
call fcn.14001c324
test eax, eax
jne 0x140022e98
cmp byte [rbp - 0x21], r15b
je 0x140022e90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140022eac
cmp byte [rbp - 0x21], r15b
je 0x140022ea9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140018820
test eax, eax
jne 0x140022f4c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140013e3c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140022eeb
cmp byte [rbp - 0x21], r15b
je 0x140022f20
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140022f20
call fcn.14001c324
test eax, eax
jne 0x140022f0c
cmp byte [rbp - 0x21], r15b
je 0x140022f05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140022f20
cmp byte [rbp - 0x21], r15b
je 0x140022f1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140018820
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140022f4c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140022f4f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140022f5d
mov rcx, rdi
call fcn.14001b958
cmp byte [rbp + 0x3f], r15b
je 0x140022f6c
mov rcx, qword [rbp + 0x27]
call fcn.14001b958
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800024d0
Capabilities:
Access peb ldr_data
Create thread
Encode data using xor
Get ntdll base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002600
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x1800024f8
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
lea r8, [0x180001f90]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x1800025f1
mov rcx, qword gs:[0x60]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1800025b7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1800025b7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xb1cd6e27
lea rax, [rdi + r9*4]
mov eax, dword [rax + r10]
add rax, r10
movzx edx, byte [rax]
inc rax
test dl, dl
je 0x1800025b2
nop
movsx edx, dl
lea rax, [rax + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rax - 1]
test dl, dl
jne 0x180002590
cmp r8d, 0x8f676efb
je 0x1800025bc
test r9d, r9d
jne 0x180002570
mov rcx, qword [rcx]
jmp 0x180002540
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, rsi
add rax, r10
call rax
mov rdi, qword [rsp + 0x30]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x38
ret
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret