joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140089330
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140100010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, dword [0x1401000c8]
cmp ecx, 0x270f
je 0x14008936a
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x140101639], al
jmp 0x140089371
movzx eax, byte [0x140101639]
mov rdx, qword [rbx + 0x30]
mov r9d, 4
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x30]
test al, al
je 0x140089390
xor eax, eax
mov dword [rsp + 0x30], eax
jmp 0x14008939a
mov dword [rsp + 0x30], 1
xor eax, eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008cf30
add rsp, 0x40
pop rbx
ret
Function at 0x14008cc68
Capabilities:
Get geographical location

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

Function at 0x14008dc58
Capabilities:
Parse pe header

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
je 0x100401c19
mov edx, 0x2f
call sub.cygwin1.dll_strrchr
test rax, rax
je 0x100401c00
lea rdx, [rax + 1]
mov rcx, rdx
sub rcx, rbx
cmp rcx, 6
jle 0x100401c00
lea rsi, [rax - 6]
lea rdi, str._.libs_
mov ecx, 7
repe cmpsb byte [rsi], byte [rdi]
jne 0x100401c00
lea rdi, [0x100415d70]
mov ecx, 3
mov rsi, rdx
mov rbx, rdx
repe cmpsb byte [rsi], byte [rdi]
seta r8b
setb cl
cmp r8b, cl
jne 0x100401c00
lea rbx, [rax + 4]
mov rax, qword [sym.imp.cygwin1.dll_program_invocation_short_name]
mov qword [rax], rbx
mov rax, qword [sym.imp.cygwin1.dll_program_invocation_name]
mov qword [0x10041b470], rbx
mov qword [rax], rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sub.cygwin1.dll___getreent
mov r9, qword [rax + 0x18]
lea rcx, str.A_NULL_argv_0__was_passed_through_an_exec_system_call._n
mov r8d, 0x37
mov edx, 1
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll_abort
nop
nop

Function at 0x1004129c0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor ecx, ecx
call sub.cygwin1.dll_nl_langinfo
test rax, rax
mov rbp, rax
je 0x100412b50
lea rdi, str.US_ASCII
mov ecx, 9
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
je 0x100412a62
mov rbx, qword [0x10041b5d0]
test rbx, rbx
jne 0x100412a1a
jmp 0x100412ad7
mov rcx, rbx
call sub.cygwin1.dll_strlen
lea rbx, [rbx + rax + 1]
mov rcx, rbx
call sub.cygwin1.dll_strlen
lea rbx, [rbx + rax + 1]
movzx esi, byte [rbx]
test sil, sil
je 0x100412a4a
mov rdx, rbx
mov rcx, rbp
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x100412a3d
cmp sil, 0x2a
jne 0x100412a00
cmp byte [rbx + 1], 0
jne 0x100412a00
mov rcx, rbx
call sub.cygwin1.dll_strlen
lea rbp, [rbx + rax + 1]
cmp byte [rbp], 0
lea rax, str.ASCII
cmovne rax, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.LC_ALL
call sub.cygwin1.dll_getenv
test rax, rax
je 0x100412a78
cmp byte [rax], 0
jne 0x100412af0
lea rcx, str.LC_CTYPE
call sub.cygwin1.dll_getenv
test rax, rax
je 0x100412a8e
cmp byte [rax], 0
jne 0x100412af0
lea rcx, str.LANG
call sub.cygwin1.dll_getenv
test rax, rax
je 0x100412aa4
cmp byte [rax], 0
jne 0x100412af0
call qword [sym.imp.KERNEL32.dll_GetACP]
lea rdx, str.CP_u
lea rcx, [0x10041b5c0]
mov r8d, eax
lea rbp, [0x10041b5c0]
call sub.cygwin1.dll_sprintf
mov rbx, qword [0x10041b5d0]
test rbx, rbx
jne 0x100412a1a
lea rax, str.CP936
mov qword [0x10041b5d0], rax
mov rbx, rax
jmp 0x100412a1a
mov edx, 0x2e
mov rcx, rax
call sub.cygwin1.dll_strchr
test rax, rax
je 0x100412aa4
lea rbx, [rax + 1]
mov edx, 0x40
mov rcx, rbx
call sub.cygwin1.dll_strchr
test rax, rax
je 0x100412b5c
sub rax, rbx
cmp rax, 0xc
mov rsi, rax
ja 0x100412aa4
lea rbp, [0x10041b5c0]
mov r8, rax
mov rdx, rbx
mov rcx, rbp
call fcn.100412dc0
mov byte [rbp + rsi], 0
mov rax, rbp
jmp 0x100412a59
lea rbp, [0x100416fd0]
jmp 0x1004129ee
mov rax, rbx
jmp 0x100412a59
Function at 0x140003220
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 0x140003248
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 0x14000326e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003270
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400032c9
test ecx, ecx
jle 0x1400032a9
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 0x1400032c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400032c9
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

Function at 0x1400032f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140003312
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003328
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003344
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003346
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003382
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000341e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400033bd
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 0x1400033fe
nop word [rax + 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 0x14000341e
cmp rbx, rax
ja 0x1400033d0
test rbx, rbx
je 0x14000341e
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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140003880
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400038ad
xor eax, eax
jmp 0x140003a19
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400038e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400038e7
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 0x140003a19
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003a0c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000392a
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 0x140003955
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 0x140003a11
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 0x1400039c4
sub eax, 1
je 0x1400039c4
cmp eax, 2
jne 0x140003a0c
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 0x140003a11
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400039f2
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 0x140003a0c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003a11
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400049d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003f90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004063
cmp byte [rcx + 0x71], 0
je 0x140004063
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000405f
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 0x140004024
sub eax, 1
je 0x140004028
cmp eax, 2
jne 0x14000405f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400049d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004056
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 0x14000405f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000400c
xor al, al
jmp 0x14000400c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400049d0
add rsp, 0x60
pop rbx
ret

Function at 0x140005474
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400054be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400054be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400054be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400054be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400054be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400054c0
xor al, al
add rsp, 0x28
ret
Function at 0x1400017f8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x760]
sub rsp, 0x860
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x750], rax
mov r14, qword [rbp + 0x7b0]
mov rsi, rcx
mov rdi, qword [rbp + 0x7b8]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], r9
xor ebx, ebx
mov r9, r8
mov r8, rdx
mov edx, 0x400
call fcn.140001dac
test eax, eax
js 0x1400018d7
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r9d, [rbx + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400018d7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400018cc
cmp dword [rsp + 0x30], 4
jne 0x1400018cc
cmp dword [rsp + 0x34], ebx
setne bl
mov dword [rdi], ebx
mov bl, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.140002d20
add rsp, 0x860
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140002154
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
cmp byte [0x140007183], 0
je 0x14000216e
test cl, cl
je 0x1400022d7
lea rax, [rbp - 0x10]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAdobeAdobe_AcrobatDCInstaller_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400022d0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400022d0
and dword [rbp + 0x20], eax
and dword [rbp + 0x18], eax
cmp byte [0x140007183], al
mov dword [rbp + 0x28], 4
jne 0x1400021f8
lea rax, [rbp + 0x28]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x18]
lea rdx, str.bIsSingleClientApp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400021f8
cmp dword [rbp + 0x20], 4
jne 0x1400021f8
cmp dword [rbp + 0x18], eax
setne byte [0x140007181]
cmp byte [0x140007181], 0
je 0x1400022c6
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and dword [rbp + 0x18], 0
lea r9, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, str.bIsSCAcroAppInstalled
lea rax, [rbp + 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002247
cmp dword [rbp + 0x20], 4
jne 0x140002247
cmp dword [rbp + 0x18], eax
setne byte [0x140007180]
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and dword [rbp + 0x18], 0
lea r9, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, str.SCAPackageLevel
lea rax, [rbp + 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002288
cmp dword [rbp + 0x20], 4
jne 0x140002288
mov eax, dword [rbp + 0x18]
mov dword [0x140007008], eax
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x18]
xor r8d, r8d
lea rdx, str.IsAcrInstalledInRdrMode
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400022c6
cmp dword [rbp + 0x20], 4
jne 0x1400022c6
cmp dword [rbp + 0x18], eax
setne byte [0x140007182]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x140007183], 1
add rsp, 0x40
pop rbp
ret
Function at 0x140003744
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000378e
mov ecx, GetCurrentProcess
cmp word [rax], cx
jne 0x14000378e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000378e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000378e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000378e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003790
xor al, al
add rsp, 0x28
ret
Function at 0x180006650
Capabilities:
Accept command line arguments
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1800f8ca0]
mov edx, 0x28
mov rcx, rbx
mov rdi, r8
call fcn.1800071b0
mov edx, 0x47e0
mov qword [rdi], rax
mov rcx, rbx
call fcn.1800071b0
mov rcx, qword [rdi]
mov qword [rcx + 0x10], rax
cmp dword [0x1800f8cb8], 0xdf526883
jne 0x1800067c9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
lea rcx, [0x180110930]
call qword [sym.imp.KERNEL32.dll_AddDllDirectory]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessVersion]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor ebx, ebx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentConsoleFontEx]
call qword [sym.imp.KERNEL32.dll_GetThreadUILanguage]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lock add dword [rbx], ebx
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CompareStringW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RegisterApplicationRecoveryCallback]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180009cd0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x1004
nop dword [rax + rax]
inc ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
jne 0x180009ce0
lea r9d, [rcx - 0x16c]
mov eax, 0x2c8b
sub eax, r9d
mov r8d, 0x793b
lea ecx, [rax - 0x3c3]
add eax, 0xffffb7f2
inc r8d
test r8b, 1
jne 0x180009d17
lea edx, [rcx + 0x2bb0]
test r9b, 1
lea r10d, [r9 - 0x6dba]
mov ebx, 0xffffe416
lea ecx, [r9 - 0x1738]
cmove ecx, r9d
sub eax, r10d
add eax, 0x3831
add edx, r9d
add eax, eax
sub r10d, 0x117d
sub ebx, edx
lea r9d, [rcx - 0x134]
sub eax, r9d
sub eax, ecx
sub eax, edx
lea ecx, [r8 + rax]
add ecx, 0xdc5
add ecx, r10d
add ebx, ecx
test cl, 1
je 0x180009d84
lea r8d, [rcx - 0x14d5]
test ecx, ecx
jg 0x180009d8b
lea r8d, [rcx + 0xd2d]
mov eax, 0x55555556
mov r11d, r9d
imul r9d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r9d, ecx
je 0x180009db1
test r9d, r9d
jle 0x180009db1
lea r11d, [r9 + 0x2070]
lea ecx, [rbx + 0x23cd]
lea eax, [r8 + rcx]
add r8d, 0x21b1
sub r10d, eax
mov eax, 0x55555556
imul r8d
lea r9d, [rcx + r8]
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
je 0x180009dfa
inc r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
jne 0x180009de0
lea eax, [r8 + r10]
cmp eax, 0xffff4ee1
jne 0x180009e20
cmp r9d, 0x11dd9
jne 0x180009e20
cmp r10d, 0xfffe933a
jne 0x180009e20
cmp r11d, 0xfffff62d
je 0x180009e2c
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x20
pop rbx
ret
Function at 0x18007a420
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 0x18007a48f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18007a48f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18007a48f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18007a48f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18007a48f
cmp dword [rcx + 0x84], 0xe
jbe 0x18007a48f
cmp dword [rcx + 0xf8], 0
je 0x18007a48f
mov ecx, ebx
call fcn.18007a540
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.18007a31c
nop
cmp dword [rbp + 0x20], 0
je 0x18007a4dd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18007a4e8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18007a420

Function at 0x18007bcdc
Capabilities:
Get file size

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