joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019cb0
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.rwl_ref.isra.0
test eax, eax
je 0x140019cd8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rbp, [rsi + 0x18]
mov rcx, rbp
call sym.pthread_mutex_trylock
mov edx, eax
test eax, eax
jne 0x140019d2e
lea r12, [rsi + 0x20]
mov rcx, r12
call sym.pthread_mutex_trylock
mov edi, eax
test eax, eax
jne 0x140019d68
mov eax, dword [rsi + 8]
mov edx, 0x10
test eax, eax
jne 0x140019d2e
mov edx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
test edx, edx
jle 0x140019d21
sub eax, edx
mov dword [rsi + 0x10], 0
mov dword [rsi + 0xc], eax
test eax, eax
jg 0x140019d40
mov dword [rsi + 8], 1
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.rwl_unref
mov rcx, r12
call sym.pthread_mutex_unlock
mov rcx, rbp
mov esi, eax
call sym.pthread_mutex_unlock
test esi, esi
jne 0x140019d5f
test eax, eax
jne 0x140019d79
mov esi, 0x10
mov edx, esi
jmp 0x140019d2e
mov rcx, rbp
call sym.pthread_mutex_unlock
mov edx, eax
test eax, eax
cmove edx, edi
jmp 0x140019d2e
mov esi, eax
mov edx, esi
jmp 0x140019d2e

Function at 0x140019d80
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call sym.rwl_ref_unlock
test eax, eax
jne 0x140019e00
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x140019dd0
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call sym.pthread_mutex_unlock
lea rcx, [rsi + 0x18]
mov edi, eax
call sym.pthread_mutex_unlock
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp sym.rwl_unref
lea rdi, [rsi + 0x20]
mov rcx, rdi
call sym.pthread_mutex_lock
mov edx, eax
test eax, eax
jne 0x140019dbd
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x140019e10
mov rcx, rdi
call sym.pthread_mutex_unlock
mov edx, eax
jmp 0x140019dbd
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call sym.pthread_cond_signal
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call sym.pthread_mutex_unlock
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x140019dbd
Function at 0x140019e30
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, qword [0x14002eca0]
mov rbx, rcx
mov rcx, qword [r12]
mov qword [rsp + 0x38], rcx
mov rcx, rbx
call sym.rwl_ref.isra.0
test eax, eax
je 0x140019e80
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x140019fa9
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call sym.pthread_mutex_lock
mov ebp, eax
test eax, eax
jne 0x140019ed1
lea r13, [rsi + 0x20]
mov rcx, r13
call sym.pthread_mutex_lock
mov ebp, eax
test eax, eax
jne 0x140019f80
mov edx, dword [rsi + 8]
test edx, edx
jne 0x140019ecc
mov edx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
test edx, edx
jle 0x140019ec8
sub eax, edx
mov dword [rsi + 0x10], 0
mov dword [rsi + 0xc], eax
test eax, eax
jg 0x140019f00
lock add dword [rsi + 8], 1
mov rax, qword [rsp + 0x38]
sub rax, qword [r12]
jne 0x140019fa9
mov edx, ebp
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.rwl_unref
neg eax
mov qword [rsp + 0x28], rsi
lea r14, [rsi + 0x28]
mov dword [rsi + 0x10], eax
lea rax, [sym.st_cancelwrite]
mov qword [rsp + 0x20], rax
call sym.pthread_getclean
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call sym.pthread_getclean
lea rdx, [rsp + 0x20]
mov qword [rax], rdx
lock or qword [rsp], 0
jmp 0x140019f4f
mov eax, dword [rsi + 0x10]
test eax, eax
jns 0x140019f90
mov rdx, r13
mov rcx, r14
call sym.pthread_cond_wait
mov edi, eax
test eax, eax
je 0x140019f48
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov ebp, edi
mov qword [rax], rdx
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x20]
jmp 0x140019ed1
mov rcx, rdi
call sym.pthread_mutex_unlock
jmp 0x140019ed1
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov qword [rax], rdx
mov dword [rsi + 0xc], 0
jmp 0x140019ecc
call dbg.__stack_chk_fail
nop
nop
Function at 0x140019fb0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [0x14002eca0]
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x14001a098
test rdx, rdx
je 0x14001a098
call sym.rwl_ref.isra.0
test eax, eax
je 0x14001a018
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rdi]
jne 0x14001a0ca
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rbx]
mov rdx, rsi
lea r12, [rbp + 0x18]
mov rcx, r12
call sym.pthread_mutex_timedlock
mov edx, eax
test eax, eax
jne 0x14001a0a8
lea r14, [rbp + 0x20]
mov rdx, rsi
mov rcx, r14
call sym.pthread_mutex_timedlock
mov r13d, eax
test eax, eax
jne 0x14001a0b8
mov edx, dword [rbp + 8]
test edx, edx
jne 0x14001a067
mov edx, dword [rbp + 0x10]
mov eax, dword [rbp + 0xc]
test edx, edx
jle 0x14001a063
sub eax, edx
mov dword [rbp + 0x10], 0
mov dword [rbp + 0xc], eax
test eax, eax
jg 0x14001a0d0
lock add dword [rbp + 8], 1
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
jne 0x14001a0ca
mov edx, r13d
mov rcx, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.rwl_unref
mov eax, 0x16
jmp 0x140019ff2
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
je 0x14001a079
jmp 0x14001a0ca
mov rcx, r12
call sym.pthread_mutex_unlock
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
je 0x14001a076
call dbg.__stack_chk_fail
nop
neg eax
mov qword [rsp + 0x28], rbp
lea r15, [rbp + 0x28]
mov dword [rbp + 0x10], eax
lea rax, [sym.st_cancelwrite]
mov qword [rsp + 0x20], rax
call sym.pthread_getclean
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call sym.pthread_getclean
lea rdx, [rsp + 0x20]
mov qword [rax], rdx
lock or qword [rsp], 0
jmp 0x14001a11d
test r12d, r12d
jne 0x14001a135
mov r8, rsi
mov rdx, r14
mov rcx, r15
call sym.pthread_cond_timedwait
mov r12d, eax
mov eax, dword [rbp + 0x10]
test eax, eax
js 0x14001a118
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov qword [rax], rdx
test r12d, r12d
jne 0x14001a158
mov dword [rbp + 0xc], 0
jmp 0x14001a067
mov rcx, qword [rsp + 0x28]
mov r13d, r12d
call qword [rsp + 0x20]
jmp 0x14001a06c
Function at 0x14001cd20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, qword [0x14002eca0]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
xor eax, eax
cmp byte [0x14002a260], 0
jne 0x14001ce4c
mov byte [0x14002a260], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001ce18
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x24]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x24], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbp, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x24]
mov ecx, 2
test edx, edx
je 0x14001ce09
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14002b101]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x24]
test eax, eax
jne 0x14001cdfa
mov rcx, rbp
call sym.free
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
jne 0x14001ce7b
call sym.__cxa_rethrow
call rsi
mov rcx, rbp
mov rdx, rax
call sym.fputs
jmp 0x14001cdc9
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
jne 0x14001ce7b
call sym.abort
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
je 0x14001ce47
call dbg.__stack_chk_fail
sub rdx, 1
mov rcx, rax
jne 0x14001ceeb
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001ce3d
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14001ce3d
Function at 0x140023c20
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r12, qword [0x14002eca0]
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 8]
mov r13, rcx
test rax, rax
je 0x140023c70
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x140023d04
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp rax
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, 4
lea rsi, [rsp + 0x24]
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop dword [rax + rax]
mov ecx, dword [r13 + 0x10]
mov r8d, ebx
mov rdx, rsi
call rdi
test eax, eax
jle 0x140023cd0
cdqe
add rsi, rax
sub rbx, rax
jne 0x140023c90
mov eax, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x140023d04
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp eax, 0xffffffff
jne 0x140023cfb
call rbp
mov r14, rbp
cmp dword [rax], 4
je 0x140023c90
call r14
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x140023d04
mov ecx, dword [rax]
lea rdx, str.random_device_could_not_be_read
call method.std._anonymous_namespace_::__throw_syserr_int__char_const_
mov r14, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x140023cdf
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
Function at 0x140028ce0
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rsi, qword [0x14002eca0]
lea rcx, [0x14002a200]
movabs rbp, 0x2e78786362696c67
movabs r13, 0x6c6f6f705f68652e
mov rdx, qword [rsi]
mov qword [rsp + 0x68], rdx
xor edx, edx
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x14002a218], 0
movups xmmword [0x14002a208], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x140028da5
jmp 0x140028e67
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x140028e08
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rbp
jne 0x140028d90
cmp qword [rbx + 7], r13
jne 0x140028d90
cmp byte [rbx + 0xf], 0x2e
jne 0x140028d90
add rbx, 0x10
lea r12, [rsp + 0x30]
lea r14, [rsp + 0x60]
mov rdi, qword [r12]
test rdi, rdi
je 0x140028dec
mov rcx, qword [r12 + 8]
mov r8, rdi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x140028df6
cmp byte [rbx + rdi], 0x3d
je 0x140028e9d
add r12, 0x18
cmp r14, r12
jne 0x140028dcf
jmp 0x140028d90
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x14002a218], rbx
jne 0x140028e77
mov rax, qword [rsp + 0x68]
sub rax, qword [rsi]
jne 0x140028ee4
lea rcx, [sym.__tcf_0]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp dbg.atexit
mov qword [0x14002a218], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x14002a210], rax
test rax, rax
je 0x140028ed6
xor edx, edx
mov qword [0x14002a208], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x140028e3f
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rdi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x140028ec4
test dl, dl
jne 0x140028d90
test eax, eax
js 0x140028d90
mov dword [r12 + 0x10], eax
jmp 0x140028d90
xor ecx, ecx
mov qword [0x14002a218], rcx
jmp 0x140028e3f
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001b520
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.14001f390
sub rsp, rax
mov rax, qword [0x14005ca00]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14001b5e2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002e2ec
cmp rax, 1
jne 0x14001b63e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001b5bf
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001b5b3
cmp rcx, 1
jb 0x14001b63e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001b580
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001b613
lea rcx, [rsp + 0x80]
call fcn.140030e94
jmp 0x14001b615
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14001f0c0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002e098
int3
Function at 0x14001c250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp byte [0x14005e1e6], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x14001c2e0
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14005dff0], rax
mov ebx, dword [rax]
lea rcx, [rax + 4]
mov qword [0x14005dff0], rcx
lea rdi, [rcx + 4]
mov r8d, dword [rcx]
mov rdx, rdi
xor ecx, ecx
mov qword [0x14005dff0], rdi
call fcn.14001a3b0
cmp eax, ebx
jne 0x14001c483
mov byte [0x14005e1e6], 1
jmp 0x14001c2e7
mov rdi, qword [0x14005dff0]
lea rdx, [0x14003fe78]
mov rcx, rbp
call fcn.14002dd40
test eax, eax
je 0x14001c3a1
cmp byte [0x14005e1e5], 1
je 0x14001c3a1
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14005ef10], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14005ef18], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14005ef20], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14005ef28], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14005ef30], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14005ef38], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14005ef40], rax
call qword [sym.imp.python39.dll_PyDict_New]
mov qword [0x14005ef48], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rdi, qword [0x14005dff0]
mov byte [0x14005e1e5], 1
mov rcx, qword [rax + 0x10]
add rcx, 0xdc0
mov qword [0x1400602e0], rcx
mov rdx, rdi
mov rax, rbp
sub rdx, rbp
nop word [rax + rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14001c3c7
inc rax
test cl, cl
jne 0x14001c3b0
mov ecx, r9d
jmp 0x14001c3cc
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [rdi + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14001c3d3
lea rdx, [rdi + rax]
mov eax, dword [rdi + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14001c438
nop
add rdx, rax
mov rax, rbp
mov r8, rdx
sub r8, rbp
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14001c415
inc rax
test cl, cl
jne 0x14001c400
mov ecx, r9d
jmp 0x14001c41a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14001c421
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14001c3f0
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14001c468
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.140018ce0
add rsi, 8
sub rbx, 1
jne 0x14001c450
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
lea rcx, str.Error__corrupted_constants_object
call fcn.14002aa54
call fcn.14002e098
int3
Function at 0x14001ec60
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14005ca00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14001ed11
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14002e2ec
cmp rax, 1
jne 0x14001ed47
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14001eced
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14001ece0
cmp rcx, 1
jb 0x14001ed47
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001ecb0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001f0c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14002e098
int3

Function at 0x14001ef40
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005ca00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14001efef
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002e2ec
cmp rax, 1
jne 0x14001f025
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001efcc
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001efc0
cmp rcx, 1
jb 0x14001f025
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001ef90
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001f0c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002e098
int3

Function at 0x14001faf4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001fb3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001fb3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001fb3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001fb3e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001fb3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001fb40
xor al, al
add rsp, 0x28
ret
Function at 0x140023e64
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 0x140023ed3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140023ed3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140023ed3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140023ed3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140023ed3
cmp dword [rcx + 0x84], 0xe
jbe 0x140023ed3
cmp dword [rcx + 0xf8], 0
je 0x140023ed3
mov ecx, ebx
call fcn.140023f84
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.140023d60
nop
cmp dword [rbp + 0x20], 0
je 0x140023f21
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140023f2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140023e64

Function at 0x140024068
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 0x140023ed3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140023ed3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140023ed3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140023ed3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140023ed3
cmp dword [rcx + 0x84], 0xe
jbe 0x140023ed3
cmp dword [rcx + 0xf8], 0
je 0x140023ed3
mov ecx, ebx
call fcn.140023f84
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.140023d60
nop
cmp dword [rbp + 0x20], 0
je 0x140023f21
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140023f2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140023e64
Function at 0x140035df0
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 0x140035e77
mov rsi, rbx
cmp word [rax], bp
je 0x140035e36
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140035e20
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140035e1c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140030f80
mov rdi, rax
test rax, rax
je 0x140035e64
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003c170
mov rbp, rdi
xor ecx, ecx
call fcn.140031eb4
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 0x14003857c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140038592
mov al, 1
jmp 0x1400385f2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400385a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400385f0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140036594
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400385f0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400385f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400385f0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400385f2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003bf50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003bf78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003bf78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret