joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180095d30
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 0x180095d52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x180095d61
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 0x180095d84
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180095d86
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180095dc2
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 0x180095e5e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180095dfd
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 0x180095e3e
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 0x180095e5e
cmp rbx, rax
ja 0x180095e10
test rbx, rbx
je 0x180095e5e
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
jmp rdx
Function at 0x1800962c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800d7040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800962ed
xor eax, eax
jmp 0x180096459
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180096327
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180096327
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 0x180096459
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18009644c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18009636a
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 0x180096395
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 0x180096451
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 0x180096404
sub eax, 1
je 0x180096404
cmp eax, 2
jne 0x18009644c
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 0x180096451
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180096432
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 0x18009644c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180096451
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800ae9e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180098390
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800d7040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180098463
cmp byte [rcx + 0x71], 0
je 0x180098463
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18009845f
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 0x180098424
sub eax, 1
je 0x180098428
cmp eax, 2
jne 0x18009845f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800ae9e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180098456
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 0x18009845f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18009840c
xor al, al
jmp 0x18009840c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800ae9e0
add rsp, 0x60
pop rbx
ret
Function at 0x1800a6110
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rax, qword [0x1802054e0]
mov rbp, rdx
mov r14, rcx
mov rdx, rcx
mov rbx, qword [rax + 0x4040]
mov rcx, rbx
call fcn.180033380
add rbx, 0x108
mov edi, eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
cmp ecx, r8d
jne 0x1800a617d
inc ecx
test r8d, r8d
je 0x1800a6169
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x1800a616e
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.180041450
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rax, qword [0x1802054e0]
mov rcx, qword [rax + 0x4040]
mov rdi, qword [rcx + 0x1b8]
call fcn.180033810
xor r8d, r8d
mov edx, eax
mov rcx, rdi
mov esi, eax
call fcn.1800250a0
test eax, eax
jne 0x1800a61e6
movsxd rdx, dword [r14]
lea rcx, [0x1800be3b0]
mov rcx, qword [rcx + rdx*8]
mov rdx, rbp
call fcn.18005d250
test al, al
je 0x1800a6252
mov r8d, 1
mov edx, esi
mov rcx, rdi
call fcn.1800251b0
jmp 0x1800a6252
mov rdx, rbp
mov qword [rsp + 0x40], r15
lea rcx, [0x1800b8350]
call fcn.18005d250
xor r15d, r15d
lea rbx, [0x1800be110]
lea rbp, [0x1800be3a8]
nop dword [rax + rax]
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800a6225
mov dword [r14], r15d
jmp 0x1800a6237
mov ecx, dword [rbx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800a6244
mov eax, dword [rbx]
mov dword [r14], eax
xor r8d, r8d
mov edx, esi
mov rcx, rdi
call fcn.1800251b0
add rbx, 4
cmp rbx, rbp
jne 0x1800a6210
mov r15, qword [rsp + 0x40]
mov rax, qword [0x1802054e0]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rcx, qword [rax + 0x4040]
dec dword [rcx + 0x108]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1800afb80
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 0x1800afbba
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800afbbf
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 0x1800afc08
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800b7aa0]
cmp byte [rcx + rax], 0
je 0x1800afc08
dec r8
sub rdx, 1
jne 0x1800afbee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180010144
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 0x180010174
xor eax, eax
jmp 0x180010237
mov rbp, rbx
cmp word [rax], si
je 0x180010199
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180010180
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001017c
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.180010064
movsxd r14, eax
test eax, eax
jne 0x1800101d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001016d
mov rcx, r14
call fcn.18000e46c
mov rdi, rax
test rax, rax
jne 0x1800101f0
xor ecx, ecx
call fcn.18000e69c
jmp 0x1800101cc
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.180010064
test eax, eax
jne 0x180010221
mov rcx, rdi
call fcn.18000e69c
jmp 0x18001022b
xor ecx, ecx
call fcn.18000e69c
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 0x14001a1b3
Capabilities:
Write file on windows

Disassembly:
jmp 0x140034230
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140074347]
call fcn.14001b3ab
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140034288
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14003439a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140034333
cmp qword [rbp + 0x28], 0
jle 0x140034333
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1400342d1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14001b261
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x140034389
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140034389
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14001ab40
Capabilities:
Terminate process

Disassembly:
jmp 0x14004b030
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001add9
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004bc40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004bc60
xor al, al
jmp 0x14004bce1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14004bc73
xor al, al
jmp 0x14004bce1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14004bc9d
xor al, al
jmp 0x14004bce1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14004bcb1
xor al, al
jmp 0x14004bce1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14004bcc3
xor al, al
jmp 0x14004bce1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14004bcdf
xor al, al
jmp 0x14004bce1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001b36a
Capabilities:
Write file on windows

Disassembly:
jmp 0x14002bfd0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140068040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x140074347]
call fcn.14001b3ab
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14002c037
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002c03e
mov al, 1
jmp 0x14002c18e
call fcn.14001a56e
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.14001a56e
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14001afe1
movzx eax, al
test eax, eax
je 0x14002c08f
xor al, al
jmp 0x14002c18e
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14002c0f4
cmp dword [rbp + 0x154], 1
je 0x14002c0ff
cmp dword [rbp + 0x154], 3
je 0x14002c17d
jmp 0x14002c18c
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14002c14f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14002c14f
xor al, al
jmp 0x14002c18e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002c16a
mov dword [rbp + 0x154], 1
jmp 0x14002c174
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14002c18e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14002c18e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140057db0]
call fcn.14001b090
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001a99c
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400494e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001b423
movzx eax, al
test eax, eax
jne 0x140049500
mov ecx, 7
call fcn.14001b0ae
nop
mov byte [rsp + 0x20], 0
call fcn.14001b103
mov byte [rsp + 0x21], al
cmp dword [0x140068a70], 1
jne 0x140049524
mov ecx, 7
call fcn.14001b0ae
nop
jmp 0x14004957c
cmp dword [0x140068a70], 0
jne 0x140049577
mov dword [0x140068a70], 1
lea rdx, [0x140054770]
lea rcx, [0x140054440]
call fcn.14001a951
test eax, eax
je 0x140049558
mov eax, 0xff
jmp 0x140049681
lea rdx, [0x140054330]
lea rcx, [section..rdata]
call fcn.14001b0ea
mov dword [0x140068a70], 2
jmp 0x14004957c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001b077
call fcn.14001ae4c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400495d9
mov rcx, qword [rsp + 0x30]
call fcn.14001a780
movzx eax, al
test eax, eax
je 0x1400495d9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140075020]
nop
call fcn.14001af37
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14004960d
mov rcx, qword [rsp + 0x38]
call fcn.14001a780
movzx eax, al
test eax, eax
je 0x14004960d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001b30b
nop
call fcn.140049730
mov dword [rsp + 0x28], eax
call fcn.14001add9
movzx eax, al
test eax, eax
jne 0x14004962c
mov ecx, dword [rsp + 0x28]
call fcn.14001a136
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14004963b
call fcn.14001b33d
nop
xor edx, edx
mov cl, 1
call fcn.14001a717
mov eax, dword [rsp + 0x28]
jmp 0x140049681
add rsp, 0x68
ret
Function at 0x140016570
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor eax, eax
mov rdi, rcx
mov r8, rcx
mov dword [rsp + 0x28], eax
mov rbp, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov r9d, ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
je 0x140016621
mov eax, 2
mul rbx
cmovb rax, rbp
mov rcx, rax
call fcn.140025480
mov r9d, ebp
mov dword [rsp + 0x28], ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test rsi, rsi
je 0x140016621
mov rcx, qword gs:[0x60]
mov rdi, qword [rcx + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140016619
nop
mov rdx, qword [rbx + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140016638
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140016600
mov rcx, rsi
call fcn.140025488
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, rsi
call fcn.140025488
mov rax, qword [rbx + 0x20]
jmp 0x140016623
Function at 0x140016650
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rdi
push r12
push r14
sub rsp, 0x120
xor r14d, r14d
mov eax, 0x5a4d
mov r12, rdx
mov rdi, rcx
cmp word [rcx], ax
jne 0x1400167cb
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1400167cb
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp + 0x20]
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov eax, dword [r11 - 0xa8]
test eax, eax
je 0x1400167cb
mov qword [r11 + 0x10], rbx
mov ebx, r14d
mov qword [r11 + 0x20], rsi
lea rsi, [rdi + rax]
mov eax, dword [rdi + rax + 0x24]
mov qword [r11 - 0x20], r13
add rax, rdi
mov r13d, dword [rsi + 0x1c]
mov qword [r11 - 0x28], r15
add r13, rdi
mov r15d, dword [rsi + 0x20]
add r15, rdi
mov qword [rsp + 0x140], rax
cmp dword [rsi + 0x18], ebx
jbe 0x14001679b
mov qword [r11 + 0x18], rbp
nop
mov ebp, ebx
mov rdx, r12
mov ecx, dword [r15 + rbp*4]
add rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14001677f
inc ebx
cmp ebx, dword [rsi + 0x18]
jb 0x140016760
jmp 0x140016793
mov rax, qword [rsp + 0x140]
movzx eax, word [rax + rbp*2]
mov r14d, dword [r13 + rax*4]
add r14, rdi
mov rbp, qword [rsp + 0x150]
mov r15, qword [rsp + 0x110]
mov rax, r14
mov r13, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x158]
mov rbx, qword [rsp + 0x148]
add rsp, 0x120
pop r14
pop r12
pop rdi
ret
xor eax, eax
add rsp, 0x120
pop r14
pop r12
pop rdi
ret

Function at 0x140025e20
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov word [rsp + 0x6c], 0x500
lea rax, [rsp + 0x60]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000124b
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140001240
mov dword [rsp + 0x70], ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x70], 1
sete al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400063d0
add rsp, 0x80
pop rbx
ret