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

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
sub rsp, 0x150
mov r13, rcx
mov qword [rbp + 0x18], rdx
lea rcx, [rbp - 0x138]
mov rdx, r13
mov qword [rbp + 0x20], r8
mov qword [rbp - 0x138], 0
call fcn.1400063fa
test al, al
jne 0x14000706c
lea rcx, [0x140468300]
mov edx, 0x30
call fcn.140006230
mov ecx, 0xd
mov r12, rax
lea rax, [0x1404682c0]
mov qword [r12], rax
lea rax, str.IOError
mov qword [r12 + 0x10], rax
test r13, r13
je 0x140007199
mov rax, qword [r13]
lea rcx, [rax + 0xd]
jmp 0x140007199
mov rax, qword [0x1404682b0]
lea rcx, [rbp - 0x120]
mov rdx, rbp
mov qword [rbp - 0x130], rax
lea rax, [rbp - 0x130]
mov qword [0x1404682b0], rax
call sub.msvcrt.dll__setjmp
movsxd r12, eax
mov qword [rbp - 0x128], r12
test r12, r12
jne 0x1400070ce
mov r15, qword [rbp - 0x138]
mov rcx, qword [rbp + 0x18]
mov edx, 1
mov r8, qword [rbp + 0x20]
mov r9, r15
call sub.msvcrt.dll_fwrite
mov rcx, r15
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x1400070e8
call fcn.1400017f8
mov rcx, qword [rbp - 0x138]
test rcx, rcx
jne 0x140007185
jmp 0x14000718a
mov r13, qword [sym.imp.msvcrt.dll__errno]
call r13
movsxd rcx, dword [rax]
call fcn.140006642
mov r14, rax
call r13
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
mov rcx, rax
call fcn.140006063
mov r13, rax
xor eax, eax
test r14, r14
je 0x14000711c
mov rax, qword [r14]
test r13, r13
je 0x140007125
mov r12, qword [r13]
lea rcx, [r12 + rax + 0xa]
call fcn.140006460
lea rdx, [0x140454520]
mov r12, rax
mov rcx, rax
call fcn.140002194
mov rdx, r14
mov rcx, r12
call fcn.1400021ba
lea rdx, [0x140454500]
mov rcx, r12
call fcn.140002194
mov rdx, r13
mov rcx, r12
call fcn.1400021ba
lea rdx, [0x1404544e0]
mov rcx, r12
call fcn.140002194
mov rcx, r15
call sub.msvcrt.dll_clearerr
mov rcx, r12
call fcn.140006c95
call sub.msvcrt.dll_fclose
cmp qword [rbp - 0x128], 0
je 0x1400071fb
call fcn.140006de1
call fcn.140006460
lea rdx, [0x140454580]
mov r9, rax
mov rcx, rax
call fcn.140002194
mov rcx, r9
mov rdx, r13
call fcn.1400021ba
mov rdx, r9
lea rcx, [r12 + 0x18]
call fcn.1400051d2
lea rcx, [r12 + 8]
xor edx, edx
call fcn.1400051d2
lea r9, str.io.nim
lea r8, str.writeFile
mov rcx, r12
mov qword [rsp + 0x20], 0x36f
lea rdx, str.IOError
call fcn.140006b89
nop
add rsp, 0x150
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14000a3f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140011570
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140011570
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14000b022
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14046b028]
test eax, eax
je 0x14000b0ba
lea rax, [0x14046b000]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14046b030]
mov qword [rbp - 8], rax
jmp 0x14000b09e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000b092
cmp qword [rbp - 0x10], 0
je 0x14000b092
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000b058
lea rax, [0x14046b000]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000b0bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000b1c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000b1e8
mov eax, 0
jmp 0x14000b236
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000b211
mov eax, 0
jmp 0x14000b236
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000b231
mov eax, 0
jmp 0x14000b236
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000b23c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000b2ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000b2b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000b2b1
mov rax, qword [rbp - 8]
jmp 0x14000b2cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000b284
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003a90
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 0x140003ab8
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 0x140003ade
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003ae0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003b39
test ecx, ecx
jle 0x140003b19
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 0x140003b39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003b39
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 0x140003b60
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 0x140003b82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003b98
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 0x140003bb4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003bb6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003bf2
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 0x140003c8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140003c2d
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 0x140003c6e
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 0x140003c8e
cmp rbx, rax
ja 0x140003c40
test rbx, rbx
je 0x140003c8e
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 0x1400040c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400040ed
xor eax, eax
jmp 0x140004259
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004127
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004127
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 0x140004259
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000424c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000416a
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 0x140004195
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 0x140004251
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 0x140004204
sub eax, 1
je 0x140004204
cmp eax, 2
jne 0x14000424c
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 0x140004251
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004232
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 0x14000424c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004251
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005f40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004590
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004663
cmp byte [rcx + 0x71], 0
je 0x140004663
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000465f
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 0x140004624
sub eax, 1
je 0x140004628
cmp eax, 2
jne 0x14000465f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005f40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004656
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 0x14000465f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000460c
xor al, al
jmp 0x14000460c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005f40
add rsp, 0x60
pop rbx
ret

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

Function at 0x140006950
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x680
mov rax, qword [0x18002d020]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor edi, edi
lea r8, [rsp + 0x460]
mov r9d, 0x104
xor edx, edx
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x180002105
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x460]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180002105
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180002095
nop dword [rax + rax]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x180002095
mov r8d, edi
cmp edx, 8
jb 0x180002043
mov r9d, edx
xorps xmm2, xmm2
and r9d, 0xfffffff8
xorps xmm1, xmm1
mov eax, r8d
movd xmm0, dword [rsp + rax + 0x60]
lea eax, [r8 + 4]
punpcklbw xmm0, xmm0
add r8d, 8
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
paddd xmm2, xmm0
movd xmm0, dword [rsp + rax + 0x60]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
paddd xmm1, xmm0
cmp r8d, r9d
jb 0x180001fe1
paddd xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd eax, xmm1
add ebx, eax
cmp r8d, edx
jae 0x18000206f
mov eax, r8d
sub edx, r8d
lea rax, [rsp + rax + 0x60]
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [rax]
lea rax, [rax + 1]
add ebx, ecx
sub rdx, 1
jne 0x180002060
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180001fc0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, ebx
lea r8, str._08X
mov edx, 9
lea rcx, [rsp + 0x48]
call fcn.180001280
lea r9, [rsp + 0x48]
mov rdx, 0xffffffffffffffff
lea r10, str.0010494B
nop word [rax + rax]
movzx r8d, word [r9 + rdx*2 + 2]
movzx eax, word [r10 + rdx*2 + 2]
sub r8d, eax
jne 0x1800020fa
add rdx, 2
cmp rdx, 9
je 0x1800020fa
movzx r8d, word [r9 + rdx*2]
movzx ecx, word [r10 + rdx*2]
sub r8d, ecx
je 0x1800020d0
test r8d, r8d
sete dil
mov eax, edi
jmp 0x180002107
xor eax, eax
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.180009000
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800040d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18002d020]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
cmp edx, 1
jne 0x18000415a
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor esi, esi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000415a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rsi + 0x19]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x180004179
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x180004179
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180009000
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x38]
mov rbx, rax
test rax, rax
je 0x180004154
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, 0x19
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1800041d5
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx ecx, byte [rax]
dec cl
movzx edx, cl
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
test dword [rax], 0xffffefff
je 0x18000415a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.180001f10
test eax, eax
jne 0x18000415a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.1800016a0
mov dword [0x18002ef40], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.1800016a0
mov dword [0x18002ef3c], eax
call fcn.180001c90
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.1800016a0
test eax, eax
je 0x180004249
mov ecx, 1
test ebx, ebx
jne 0x18000424b
mov ecx, esi
cmp dword [0x18002ef60], esi
mov dword [0x18002ef38], ecx
mov qword [0x18002ef58], rdi
jne 0x1800042b6
test ebx, ebx
je 0x180004270
cmp dword [0x18002ef3c], esi
jne 0x18000415a
call fcn.1800017b0
test eax, eax
jne 0x18000415a
mov qword [rsp + 0x28], rsi
lea r8, [0x180003f60]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18000415a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x18000415c
cmp dword [0x18002ef40], esi
jmp 0x18000426a
Function at 0x180004df0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180005010
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180004ef7
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004e54
mov rax, qword [0x18002d008]
cmp qword [rsp + 0x20], rax
ja 0x180004e54
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180004e16
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000b850
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180004e83
jmp 0x180004ef7
cmp dword [rsp + 0x50], 0x10000
jne 0x180004eda
cmp qword [rsp + 0x48], 0x10000
jb 0x180004eda
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180004ec8
mov rax, qword [rsp + 0x28]
jmp 0x180004ef9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004ef2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180005010
mov qword [rsp + 0x20], rax
jmp 0x180004e16
xor eax, eax
add rsp, 0x68
ret

Function at 0x180004f00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180005050
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180005003
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004f5b
mov rax, qword [0x18002d008]
cmp qword [rsp + 0x20], rax
ja 0x180004f5b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180004f1d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000b850
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180004f8a
jmp 0x180005003
cmp dword [rsp + 0x50], 0x10000
jne 0x180004fe1
cmp qword [rsp + 0x48], 0x10000
jb 0x180004fe1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180004fcf
mov rax, qword [rsp + 0x28]
jmp 0x180005005
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004ffe
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180005050
mov qword [rsp + 0x20], rax
jmp 0x180004f1d
xor eax, eax
add rsp, 0x68
ret