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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18004c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800372ed
xor eax, eax
jmp 0x180037459
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180037327
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180037327
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180037459
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18003744c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18003736a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180037395
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180037451
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180037404
sub eax, 1
je 0x180037404
cmp eax, 2
jne 0x18003744c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180037451
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180037432
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18003744c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180037451
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18003a320
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180037f20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18004c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180037ff3
cmp byte [rcx + 0x71], 0
je 0x180037ff3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180037fef
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 0x180037fb4
sub eax, 1
je 0x180037fb8
cmp eax, 2
jne 0x180037fef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003a320
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180037fe6
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 0x180037fef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180037f9c
xor al, al
jmp 0x180037f9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003a320
add rsp, 0x60
pop rbx
ret

Function at 0x1800399f4
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 0x180039a2e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180039a33
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 0x180039a7c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18003d8c0]
cmp byte [rcx + rax], 0
je 0x180039a7c
dec r8
sub rdx, 1
jne 0x180039a62
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140227ae0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140227b01
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140227b2e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140227b30
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140227b89
test ecx, ecx
jle 0x140227b69
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140227b89
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140227b89
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
xchg esi, eax
invalid
Function at 0x140227bb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140227be1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140227bf8
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140227c1b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140227c1d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140227c59
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140227cee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140227c94
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140227cce
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140227cee
cmp rbx, rax
ja 0x140227ca0
test rbx, rbx
je 0x140227cee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov ecx, 0x138b4dbe
fsub dword [rcx - 0x53]
std
sbb edx, dword [rbp + 0x42]
ret
Function at 0x140001240
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140005028]
xor rax, rsp
mov qword [rbp - 0x10], rax
movsd xmm0, qword [str.LIO]
mov r8, 0xffffffffffffffff
movzx eax, byte [0x140003370]
movsd qword [rbp - 0x20], xmm0
xor al, 0x40
xor byte [rbp - 0x1f], 0x39
xorps xmm0, xmm0
xor byte [rbp - 0x1e], 0x3a
xor byte [rbp - 0x1d], 0x3b
xor byte [rbp - 0x1c], 0x3c
xor byte [rbp - 0x1b], 0x3d
xor byte [rbp - 0x1a], 0x3e
xor byte [rbp - 0x19], 0x3f
xor edi, edi
mov byte [rbp - 0x18], al
mov qword [rbp - 0x30], rdi
lea rax, [rbp - 0x20]
mov qword [rbp - 0x28], rdi
mov byte [rbp - 0x20], 0x74
movups xmmword [rbp - 0x40], xmm0
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x1400012c0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.1400013a0
cmp qword [rbp - 0x28], 0x10
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x30], rdi
mov edx, 0x40000000
cmovae rcx, qword [rbp - 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000133b
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rdi
mov r8d, 7
lea rdx, str.fsafsaf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140001379
mov rcx, qword [rbp - 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001374
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001374
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001688
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400014b0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140002064
Capabilities:
Parse pe header

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

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c388
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c388
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028e54
cmp rax, 0xffffffffffffffff
je 0x140028e54
xor edi, edi
test rbp, rbp
jle 0x140028dff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f014
mov rbx, rax
test rax, rax
jne 0x140028d8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028df5
mov edx, 0x8000
mov ecx, r14d
call fcn.140019c38
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d070
cmp eax, 0xffffffff
je 0x140028dd5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028d9c
mov edx, r15d
mov ecx, r14d
call fcn.140019c38
jmp 0x140028df5
cmp byte [rsi + 0x38], dil
je 0x140028dec
cmp dword [rsi + 0x34], 5
jne 0x140028dec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028df5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a574
jmp 0x140028e68
jns 0x140028e68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c388
cmp rax, 0xffffffffffffffff
jne 0x140028e20
cmp byte [rsi + 0x30], dil
je 0x140028e68
mov edi, dword [rsi + 0x2c]
jmp 0x140028e68
mov ecx, r14d
call fcn.140018768
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028e68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028e68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028e61
mov eax, dword [rsi + 0x2c]
jmp 0x140028e66
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c388
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029f60
Capabilities:
Parse pe header

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

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
Function at 0x180001870
Capabilities:
Bypass uac via icmluautil

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x1800140a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor r9d, r9d
lea r8, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
mov rbx, rcx
mov rax, r8
mov qword [rsp + 0x20], r9
mov qword [rcx], r9
add rax, 2
cmp word [rax], r9w
jne 0x1800018a3
sub rax, r8
sar rax, 1
cmp rax, 0x40
jbe 0x1800018c3
mov eax, 0x80004005
jmp 0x18000199d
mov qword [rsp + 0x298], rdi
xor eax, eax
lea rdi, [rsp + 0x28]
mov ecx, 0x30
mov edx, 0x45
rep stosb byte [rdi], al
lea rdi, str.Elevation:Administrator_new:
lea rax, [rsp + 0x60]
sub rdi, rax
mov dword [rsp + 0x28], 0x30
mov dword [rsp + 0x3c], 4
lea rcx, [rsp + 0x60]
nop word [rax + rax]
movzx eax, word [rdi + rcx + 2]
mov word [rcx], dx
add rcx, 2
movzx edx, ax
test ax, ax
jne 0x180001910
mov rdi, qword [rsp + 0x298]
mov word [rcx], r9w
lea rcx, [rsp + 0x60]
cmp word [rsp + 0x60], r9w
je 0x18000194a
nop dword [rax]
add rcx, 2
cmp word [rcx], r9w
jne 0x180001940
mov edx, 0x7b
sub r8, rcx
nop word [rax + rax]
movzx eax, word [r8 + rcx + 2]
mov word [rcx], dx
add rcx, 2
movzx edx, ax
test ax, ax
jne 0x180001960
mov word [rcx], r9w
lea r8, [0x180010788]
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoGetObject]
mov rcx, qword [rsp + 0x20]
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180004970
add rsp, 0x280
pop rbx
ret
Function at 0x180002ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
movsxd rax, dword [rdx + 0x3c]
xor r9d, r9d
mov qword [rsp + 0x28], r13
mov r12d, dword [rax + rdx + 0x88]
mov rbp, rdx
mov r13d, ecx
add r12, rdx
mov r11d, dword [r12 + 0x20]
mov esi, dword [r12 + 0x18]
add r11, rdx
test esi, esi
je 0x180002b6b
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
mov r10d, dword [r11]
or rcx, 0xffffffffffffffff
xor eax, eax
add r10, rbp
xor r8d, r8d
xor ebx, ebx
mov rdi, r10
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x180002b50
nop
movsx eax, byte [r10]
inc ebx
inc r10
add r8d, eax
mov eax, ebx
mov edx, r8d
shl r8d, 0x11
shr edx, 0xf
add r8d, edx
cmp rax, rcx
jb 0x180002b30
cmp r13d, r8d
je 0x180002b61
inc r9d
add r11, 4
cmp r9d, esi
jb 0x180002b10
mov rbx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
cmp r9d, esi
je 0x180002ba3
cmp esi, dword [r12 + 0x14]
ja 0x180002ba3
mov eax, dword [r12 + 0x24]
lea ecx, [r9 + r9]
add rax, rbp
movzx edx, word [rcx + rax]
mov ecx, dword [r12 + 0x1c]
add rcx, rbp
mov eax, dword [rcx + rdx*4]
add rax, rbp
mov rbp, qword [rsp + 0x30]
pop r12
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r12
pop rsi
ret
Function at 0x180003a20
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x488
mov rax, qword [0x1800140a0]
xor rax, rsp
mov qword [rsp + 0x470], rax
call fcn.1800017c0
test eax, eax
jne 0x180003c3c
mov qword [rsp + 0x490], rbx
mov qword [rsp + 0x498], rbp
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x4a0], rsi
mov qword [rsp + 0x480], r12
mov byte [rsp + 0x40], al
call fcn.1800062a0
lea rcx, [rsp + 0x151]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x150], 0
call fcn.1800062a0
mov rcx, qword [0x1800186f8]
lea rdx, [rsp + 0x150]
mov r8d, 0x104
call qword [0x180018548]
mov ecx, 5
call fcn.1800020d0
mov ecx, 0x32
mov rbx, rax
call fcn.1800020d0
lea r8, [rsp + 0x150]
lea rcx, [rsp + 0x40]
mov r9, rbx
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
xor ebp, ebp
or r12, 0xffffffffffffffff
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
mov r9d, r12d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test eax, eax
je 0x180003c04
lea ecx, [rax + 1]
mov eax, 2
mov qword [rsp + 0x4a8], rdi
movsxd rbx, ecx
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.180004840
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1800062a0
lea r8, [rsp + 0x40]
mov r9d, r12d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test rdi, rdi
je 0x180003bfc
lea rdx, [rsp + 0x260]
lea rcx, str.ComSpec
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp qword [0x180017ce8], rbp
jne 0x180003b8f
call section..text
call fcn.180001a50
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x30], rbp
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rcx, [rsp + 0x30]
mov esi, eax
call fcn.180001870
test eax, eax
jne 0x180003bf4
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x180003bf4
mov r10, qword [rbx]
lea rdx, [rsp + 0x260]
xor r9d, r9d
mov r8, rdi
mov rcx, rbx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [r10 + 0x48]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x10]
test esi, esi
jne 0x180003bf4
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rdi
call fcn.180004990
mov rdi, qword [rsp + 0x4a8]
mov rsi, qword [rsp + 0x4a0]
mov rbp, qword [rsp + 0x498]
mov rbx, qword [rsp + 0x490]
mov r12, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180004970
add rsp, 0x488
ret
call fcn.180003c60
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180004970
add rsp, 0x488
ret
Function at 0x180005937
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800140a0]
jne 0x18000498a
rol rcx, 0x10
test cx, 0xffff
jne 0x180004986
repz ret
ror rcx, 0x10
jmp 0x180005890
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180016420]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180016518]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180005915
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180016420]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180005937
mov rax, qword [rsp + 0x88]
mov qword [0x180016518], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800164b8], rax
mov rax, qword [0x180016518]
mov qword [0x180016390], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800164a0], rax
mov dword [0x180016380], 0xc0000409
mov dword [0x180016384], 1
mov rax, qword [0x1800140a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800140a8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180016418], eax
mov ecx, 1
call fcn.180007abc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000e450]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180016418], 0
jne 0x1800059be
mov ecx, 1
call fcn.180007abc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180009b34
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1800140a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180005c0c
xor ebx, ebx
cmp qword [0x1800173d0], rbx
mov rdi, rax
jne 0x180009c47
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180009d1e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180009d1e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800173d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800173d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800173e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800173f0], rax
test rax, rax
je 0x180009c3e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800173e8], rax
jmp 0x180009c4e
mov rax, qword [0x1800173e8]
jmp 0x180009c55
mov rax, qword [0x1800173e8]
mov r11, qword [0x1800173f0]
cmp rax, rdi
je 0x180009cbc
cmp r11, rdi
je 0x180009cbc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800173f0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180009cbc
test rax, rax
je 0x180009cbc
call rsi
test rax, rax
je 0x180009cb6
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180009cb6
test byte [rsp + 0x40], 1
jne 0x180009cbc
bts ebp, 0x15
jmp 0x180009cfc
mov rcx, qword [0x1800173d8]
cmp rcx, rdi
je 0x180009cfc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180009cfc
call rax
mov rbx, rax
test rax, rax
je 0x180009cfc
mov rcx, qword [0x1800173e0]
cmp rcx, rdi
je 0x180009cfc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180009cfc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800173d0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180009d1e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180009d20
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180004970
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret