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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180037020]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180019fc3
cmp byte [rcx + 0x71], 0
je 0x180019fc3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180019fbf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180019f84
sub eax, 1
je 0x180019f88
cmp eax, 2
jne 0x180019fbf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180021d70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180019fb6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x180019fbf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180019f6c
xor al, al
jmp 0x180019f6c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180021d70
add rsp, 0x60
pop rbx
ret
Function at 0x18001cc70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x180037020]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [r11 - 0x30]
call fcn.180009bb0
nop
lea rsi, [rsp + 0x38]
mov r8, qword [rsp + 0x38]
mov r10, qword [rsp + 0x50]
cmp r10, 0x10
cmovae rsi, r8
lea rbp, [rsp + 0x38]
cmovae rbp, r8
mov r9, qword [rsp + 0x48]
add rbp, r9
lea rbx, [rsp + 0x38]
cmp r10, 0x10
cmovae rbx, r8
cmp rbx, rbp
je 0x18001cd44
sub rsi, rbx
movzx edi, byte [rbx]
mov cl, 1
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
movzx ecx, dil
call fcn.18001f910
movzx edi, al
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18001cd29
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x18001cd29
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
mov byte [rsi + rbx], dil
inc rbx
cmp rbx, rbp
jne 0x18001cce2
mov r10, qword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x38]
cmp r10, 0x10
cmovae rdx, r8
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
test r9, r9
je 0x18001cd83
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor rbx, rax
imul rbx, r11
inc rcx
cmp rcx, r9
jb 0x18001cd70
cmp r10, 0x10
jb 0x18001cdbd
lea rdx, [r10 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x18001cdb5
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001cdb5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.18002214c
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180021d70
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18001d8e0
Capabilities:
Log keystrokes via polling

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, 0x60
lea rdx, [rcx + 0x107]
movaps xmmword [rax - 0x18], xmm6
movups xmm0, xmmword [rdx]
lea rsi, [rcx + 8]
mov rbx, rcx
movups xmm1, xmmword [rdx + 0x10]
lea r8, [rsi + 0x80]
add rcx, 0x208
movups xmmword [rsi], xmm0
movups xmm0, xmmword [rdx + 0x20]
lea rdx, [rdx + 0x80]
movups xmmword [rsi + 0x10], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rsi + 0x20], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rsi + 0x30], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rsi + 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rsi + 0x50], xmm1
movups xmm1, xmmword [rdx]
movups xmmword [rsi + 0x60], xmm0
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
movups xmm0, xmmword [rdx - 0x10]
mov rax, qword [rdx + 0x70]
movups xmmword [r8 - 0x10], xmm0
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [r8], xmm1
movups xmm1, xmmword [rdx + 0x20]
movups xmmword [r8 + 0x10], xmm0
movups xmm0, xmmword [rdx + 0x30]
movups xmmword [r8 + 0x20], xmm1
movups xmm1, xmmword [rdx + 0x40]
movups xmmword [r8 + 0x30], xmm0
movups xmm0, xmmword [rdx + 0x50]
movups xmmword [r8 + 0x40], xmm1
movups xmm1, xmmword [rdx + 0x60]
movups xmmword [r8 + 0x50], xmm0
movups xmmword [r8 + 0x60], xmm1
mov qword [r8 + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [r8 + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [r8 + 0x7c], ax
movzx eax, byte [rdx + 0x7e]
mov byte [r8 + 0x7e], al
call fcn.180021680
movss xmm9, dword [0x18002c830]
lea rdi, [rbx + 0x2004]
movss xmm6, dword [0x18002c844]
add rbx, 0x320
movss xmm7, dword [0x18002c818]
xor bpl, bpl
xor r14d, r14d
movaps xmm8, xmm0
movzx ecx, bpl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
sets cl
mov byte [rsi + 0xff], cl
test ax, ax
jns 0x18001da48
cmp byte [rsi], r14b
jne 0x18001da48
mov rcx, rbx
call fcn.180021680
comiss xmm9, xmm0
mov byte [rsi + 0x1efc], 1
setae al
mov byte [rsi + 0x218], al
mov dword [rdi - 0x4fc], 1
jmp 0x18001da8e
mov byte [rsi + 0x218], r14b
mov byte [rsi + 0x1efc], r14b
test cl, cl
je 0x18001da91
cmp dword [rdi - 0x4fc], r14d
je 0x18001da68
movaps xmm1, xmm6
jmp 0x18001da6b
movaps xmm1, xmm7
movaps xmm0, xmm8
addss xmm0, dword [rdi]
comiss xmm0, xmm1
movss dword [rdi], xmm0
seta al
mov byte [rsi + 0x1efc], al
test al, al
je 0x18001da91
mov dword [rdi - 0x4fc], r14d
mov dword [rdi], r14d
inc bpl
add rdi, 4
add rbx, 0x18
inc rsi
cmp bpl, 0xff
jb 0x18001da00
movaps xmm6, xmmword [rsp + 0x50]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov al, 1
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm7, xmmword [rsp + 0x40]
mov rsp, r11
pop r14
ret
Function at 0x180022e40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180023060
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180022f47
mov rax, qword [0x180037040]
cmp qword [rsp + 0x20], rax
jb 0x180022ea4
mov rax, qword [0x180037048]
cmp qword [rsp + 0x20], rax
ja 0x180022ea4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180022e66
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180022ed3
jmp 0x180022f47
cmp dword [rsp + 0x50], 0x10000
jne 0x180022f2a
cmp qword [rsp + 0x48], 0x10000
jb 0x180022f2a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180022f18
mov rax, qword [rsp + 0x28]
jmp 0x180022f49
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180022f42
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180023060
mov qword [rsp + 0x20], rax
jmp 0x180022e66
xor eax, eax
add rsp, 0x68
ret

Function at 0x180022f50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800230a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180023053
mov rax, qword [0x180037040]
cmp qword [rsp + 0x20], rax
jb 0x180022fab
mov rax, qword [0x180037048]
cmp qword [rsp + 0x20], rax
ja 0x180022fab
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180022f6d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180022fda
jmp 0x180023053
cmp dword [rsp + 0x50], 0x10000
jne 0x180023031
cmp qword [rsp + 0x48], 0x10000
jb 0x180023031
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18002301f
mov rax, qword [rsp + 0x28]
jmp 0x180023055
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18002304e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800230a0
mov qword [rsp + 0x20], rax
jmp 0x180022f6d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800230f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180023680
mov qword [rsp + 0x28], 0
cmp qword [0x180038370], 0
jne 0x180023138
cmp qword [0x180038368], 0
je 0x180023138
mov rax, qword [0x180038368]
mov qword [0x180038370], rax
cmp qword [0x180038370], 0
je 0x1800231de
mov rax, qword [0x180038370]
cmp qword [rax + 0x10], 0
je 0x1800231de
mov rax, qword [0x180038370]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800231de
mov rax, qword [0x180038370]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800231de
mov rax, qword [0x180038370]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800231a4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800231ab
xor eax, eax
jmp 0x180023359
mov rax, qword [0x180038370]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180023359
mov rax, qword [0x180038368]
mov qword [0x180038370], rax
jmp 0x180023200
mov rax, qword [0x180038370]
mov rax, qword [rax + 8]
mov qword [0x180038370], rax
cmp qword [0x180038370], 0
je 0x18002324d
cmp qword [0x180038370], 0
je 0x18002324b
mov rax, qword [0x180038370]
cmp qword [rax + 0x10], 0
je 0x18002324b
mov rax, qword [0x180038370]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18002324b
mov rax, qword [0x180038370]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18002324b
jmp 0x18002317c
jmp 0x1800231ee
mov rcx, qword [rsp + 0x60]
call fcn.1800252b0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180023360
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180023357
mov rax, qword [rsp + 0x48]
mov qword [0x180038370], rax
mov rax, qword [0x180038370]
mov dword [rax], 0x52727464
mov rax, qword [0x180038370]
mov qword [rax + 0x10], 0
mov rax, qword [0x180038370]
mov rcx, qword [0x180038368]
mov qword [rax + 8], rcx
mov rax, qword [0x180038370]
mov qword [0x180038368], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180038370]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180023308
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180023342
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800232fe
mov rax, qword [0x180038370]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18002317c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140001290
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx]
mov rbx, rcx
test eax, eax
je 0x1400012de
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400012de
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x1400012de
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x1400012e3
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x1400012ec
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx]
mov rbx, rcx
test eax, eax
je 0x140001348
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001348
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, rax
call fcn.140001010
mov rcx, qword [rsp + 0x30]
mov qword [0x140003048], rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rbx + 8]
mov qword [rax], 1
xor eax, eax
jmp 0x14000134d
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x140001354
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x30
movsxd rax, dword [rcx]
mov rbx, rcx
test eax, eax
je 0x14000141c
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14000141c
cmp byte [rbx + 0x21], 0
je 0x1400013ab
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x1400013a0
mov rcx, qword [rax + 0x388]
mov rdx, qword [rbx + 8]
call fcn.140001624
jmp 0x1400013bb
mov rdx, qword [rbx + 8]
mov rcx, qword [0x140003048]
call fcn.140001624
mov r10, rax
test rax, rax
je 0x14000141c
mov ecx, 0x1000
mov eax, r10d
and eax, 0xfff
sub ecx, eax
mov eax, dword [rbx + 0x18]
cmp ecx, eax
cmovl eax, ecx
and qword [rsp + 0x48], 0
cmp byte [rbx + 0x20], 0
mov rcx, qword [rbx + 0x10]
movsxd r8, eax
je 0x1400013ff
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, r10
call fcn.1400017d4
jmp 0x140001418
lea rax, [rsp + 0x48]
mov r9d, 1
mov rdx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001421
mov eax, 0xc0000001
add rsp, 0x30
pop rbx
ret
Function at 0x140f5b958
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5b962
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f5b98b
pop rbp
sub rbp, 0x33
sub rbp, 0xf5b958
sub rsp, 0x20
jmp 0x140f5b9aa
mov rax, 0xf5b958
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffe1b8ed99
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f5b9c9
jmp 0x140f5b9e0
rcl dword [rax]
jo 0x140f5b9f6
adc byte [rbp - 0x2e666667], ah
sbb byte [rax - 0x6f], bl
cwde
cdq
cdq
rcr dword [rax + 0x595ed170], 1
sahf
cdq
cdq
cdq
rcr dword [rsi + 0x5b], 1
mov cl, 0x99
cdq
cdq
shr dword [rsi + 0x7b], 1
rcr dword [rax - 0x6ae7eda8], 1
cdq
cdq
cdq
rcr dword [rax - 0x2e36368f], 1
and ebp, eax
mov esi, 0x999999be
cdq
cdq
shl dword [rax], 1
invalid
Function at 0x18002c420
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18002c44e
mov r9, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x180024950]
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
add rsp, 0x38
ret

Function at 0x180031134
Capabilities:
Get geographical location

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

Function at 0x180032cac
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180032cac
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 0x180032d1b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180032d1b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180032d1b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180032d1b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180032d1b
cmp dword [rcx + 0x84], 0xe
jbe 0x180032d1b
cmp dword [rcx + 0xf8], 0
je 0x180032d1b
mov ecx, ebx
call fcn.180032c18
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.180032e50
nop
cmp dword [rbp + 0x20], 0
jne 0x180032d7c
call fcn.180039604
cmp eax, 1
jne 0x180032d6c
xor dl, dl
jmp 0x180032d76
call fcn.1800395d0
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x180032d87
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180032c7c
int3

Function at 0x180035130
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180035158
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180035158
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18003a708
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 0x18003a738
xor eax, eax
jmp 0x18003a7fb
mov rbp, rbx
cmp word [rax], si
je 0x18003a75d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18003a744
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18003a740
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.18003a628
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18003a79e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18003a731
call fcn.18003b280
mov rdi, rax
test rax, rax
jne 0x18003a7b4
xor ecx, ecx
call fcn.180036b90
jmp 0x18003a793
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.18003a628
test eax, eax
jne 0x18003a7e5
mov rcx, rdi
call fcn.180036b90
jmp 0x18003a7ef
xor ecx, ecx
call fcn.180036b90
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 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14027d7f0]
mov dword [rax], 1
mov rax, qword [0x14027d800]
mov dword [rax], 1
mov rax, qword [0x14027d810]
mov dword [rax], 1
mov rax, qword [0x14027d770]
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 0x1401db630
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.140254c00
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 0x1401db6f5
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 0x140265b1e
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1401db6d6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1401db6c8
test rsi, rsi
je 0x140265b1e
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401db688
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 0x1401db724
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 0x1401db740
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 0x1401db7fd
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 0x140265b24
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1401db7de
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1401db7d0
test rsi, rsi
je 0x140265b24
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401db790
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