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

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140008080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140001f6d
xor eax, eax
jmp 0x1400020d6
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140001fad
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140001fad
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x1400020ce
cmp qword [rdi + 0x80], 0
je 0x1400020c9
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140001fe7
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140002012
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400020ce
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 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 0x140002081
sub eax, 1
je 0x140002081
cmp eax, 2
jne 0x1400020c9
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400020ce
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x1400020af
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400020c9
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x1400020ce
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003130
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002890
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jg 0x1400028b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400028c1
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 qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140002912
cmp rax, rsi
mov rdi, rsi
mov rcx, r14
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, rbp
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, r14
add rbp, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [r14 + 0x80], 0
mov rdi, rbx
je 0x140002981
mov rcx, r14
call fcn.140001d80
cmp rbx, 0xfff
jbe 0x140002961
mov r9, qword [r14 + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add rbp, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x14000299a
cmp rbx, rax
ja 0x140002930
test rdi, rdi
je 0x140002981
mov r9, qword [r14 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x140002984
Function at 0x1400029a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x1400029c1
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x140002a3c
test rax, rax
jle 0x140002a1c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x140002a3c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002a3c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x1400038ac
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x38
call fcn.180003360
xor eax, eax
lea r8, [0x180001070]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1800010cd
xor r9d, r9d
lea r8, [0x18002b1b0]
lea rdx, str.Thread_creation_failed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add rsp, 0x38
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180001390
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x180031e8c], 0
jne 0x1800015b7
movzx ecx, byte [0x180030b21]
lea rax, [0x180030b19]
xor edx, edx
mov r8d, edx
xor byte [rax - 1], cl
add r8d, 0xa
xor byte [rax], cl
xor byte [rax + 1], cl
xor byte [rax + 2], cl
xor byte [rax + 3], cl
xor byte [rax + 4], cl
xor byte [rax + 5], cl
xor byte [rax + 6], cl
xor byte [rax + 7], cl
xor byte [rax + 8], cl
lea rax, [rax + 0xa]
cmp r8d, 0xa
jb 0x1800013b0
movzx r8d, byte [0x180030b14]
lea rax, [0x180030b08]
mov ecx, edx
nop dword [rax]
xor byte [rax], r8b
lea rax, [rax + 1]
inc ecx
cmp ecx, 0xd
jb 0x1800013f0
movsx r8d, byte [0x180030b07]
lea r9, [0x180030af0]
mov eax, edx
mov rcx, r9
movd xmm2, r8d
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx]
lea rcx, [rcx + 0x10]
add eax, 0x10
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rcx - 0x10], xmm1
cmp eax, 0x10
jb 0x180001430
movsxd rcx, eax
cmp rcx, 0x18
jae 0x18000146e
add rcx, r9
nop dword [rax + rax]
xor byte [rcx], r8b
lea rcx, [rcx + 1]
inc eax
cmp eax, 0x18
jb 0x180001460
movsx r8d, byte [0x180030aee]
lea r9, [0x180030ad8]
mov eax, edx
mov rcx, r9
movd xmm2, r8d
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx]
lea rcx, [rcx + 0x10]
add eax, 0x10
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rcx - 0x10], xmm1
cmp eax, 0x10
jb 0x1800014a0
movsxd rcx, eax
cmp rcx, 0x17
jae 0x1800014de
add rcx, r9
nop dword [rax + rax]
xor byte [rcx], r8b
lea rcx, [rcx + 1]
inc eax
cmp eax, 0x17
jb 0x1800014d0
movsx r8d, byte [0x180030ad5]
lea r9, str.KqRdlqCjwVlkbi_Jgo_fq
mov eax, edx
mov rcx, r9
movd xmm2, r8d
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx]
lea rcx, [rcx + 0x10]
add eax, 0x10
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rcx - 0x10], xmm1
cmp eax, 0x10
jb 0x180001510
movsxd rcx, eax
cmp rcx, 0x16
jae 0x18000154e
add rcx, r9
nop dword [rax + rax]
xor byte [rcx], r8b
lea rcx, [rcx + 1]
inc eax
cmp eax, 0x16
jb 0x180001540
movzx ecx, byte [0x180030ab8]
lea rax, [0x180030ab1]
mov r8d, edx
nop
xor byte [rax - 1], cl
add r8d, 9
xor byte [rax], cl
xor byte [rax + 1], cl
xor byte [rax + 2], cl
xor byte [rax + 3], cl
xor byte [rax + 4], cl
xor byte [rax + 5], cl
xor byte [rax + 6], cl
xor byte [rax + 7], cl
lea rax, [rax + 9]
cmp r8d, 9
jb 0x180001560
movzx ecx, byte [0x180030b35]
lea rax, str._a65_a4_6
nop word [rax + rax]
xor byte [rax], cl
lea rax, [rax + 1]
inc edx
cmp edx, 0xe
jb 0x1800015a0
mov dword [0x180031e8c], 1
ret
Function at 0x180001af0
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, 0x160
mov rax, qword [0x180030040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov ebp, ecx
lea rcx, str.__resolving_from_hash_n
call fcn.180001110
mov rax, qword gs:[0x60]
mov rsi, qword [rax + 0x18]
add rsi, 0x10
mov rdi, qword [rsi]
cmp rdi, rsi
je 0x180001bbf
movzx eax, word [rdi + 0x58]
lea rdx, [rsp + 0x40]
mov r9, qword [rdi + 0x60]
lea rcx, [rsp + 0x30]
shr rax, 1
mov r8d, 0x104
mov qword [rsp + 0x20], rax
call fcn.180010ec8
xor ebx, ebx
cmp qword [rsp + 0x30], rbx
jbe 0x180001b88
nop
movsx ecx, byte [rsp + rbx + 0x40]
call fcn.180011140
mov byte [rsp + rbx + 0x40], al
inc rbx
cmp rbx, qword [rsp + 0x30]
jb 0x180001b70
movzx eax, byte [rsp + 0x40]
lea rdx, [rsp + 0x40]
xor ecx, ecx
test al, al
je 0x180001bb3
nop dword [rax + rax]
imul ecx, ecx, 0x65
lea rdx, [rdx + 1]
movsx eax, al
add ecx, eax
movzx eax, byte [rdx]
test al, al
jne 0x180001ba0
cmp ecx, ebp
je 0x180001bea
mov rdi, qword [rdi]
cmp rdi, rsi
jne 0x180001b40
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180003770
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, qword [rdi + 0x30]
jmp 0x180001bc1

Function at 0x180001bf0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov eax, 0x5a4d
mov ebx, edx
mov r10, rcx
cmp word [rcx], ax
jne 0x180001c83
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x180001c83
mov eax, dword [rax + rcx + 0x88]
xor r8d, r8d
add rax, rcx
mov edi, dword [rax + 0x1c]
mov r9d, dword [rax + 0x20]
add rdi, rcx
mov esi, dword [rax + 0x24]
add r9, rcx
mov r11d, dword [rax + 0x18]
add rsi, rcx
test r11d, r11d
je 0x180001c83
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r9]
xor eax, eax
add rdx, r10
movzx ecx, byte [rdx]
test cl, cl
je 0x180001c73
nop
imul eax, eax, 0x65
lea rdx, [rdx + 1]
movsx ecx, cl
add eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x180001c60
cmp eax, ebx
je 0x180001c95
inc r8d
add r9, 4
cmp r8d, r11d
jb 0x180001c50
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
movzx ecx, word [rsi + r8*2]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov eax, dword [rdi + rcx*4]
mov rdi, qword [rsp + 0x18]
add rax, r10
ret
Function at 0x180010350
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18001fe70
sub rsp, rax
mov rax, qword [0x180030040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180014468
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001039f
mov rax, rbp
jmp 0x1800104a7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x31750]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180016b98
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x31750]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800104a3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800104a3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180016b98
test rax, rax
js 0x1800104a3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800104a3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180010495
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180010495
cmp byte [rcx], 0xd
jne 0x18001047b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18001048a
cmp byte [rcx + 1], 0xa
jne 0x18001048a
inc rcx
jmp 0x18001048a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x303a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18001045d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800104a7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180003770
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180016ee8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180031750]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180016f3f
cmp word [rdx], r13w
jne 0x180016f3f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180016f44
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180017069
mov r11d, InitCommonControls
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001708a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180016f7d
mov rdx, r9
mov word [rbx], cx
jmp 0x180016fa4
cmp r9, r8
jae 0x180016fb4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180016f5e
jmp 0x180017069
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001705e
cmp dword [rsp + 0x80], esi
je 0x18001705e
lea r8, [0x180031750]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180017036
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180017006
mov word [rbx], r13w
jmp 0x180017066
mov ecx, InitCommonControls
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180017013
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180017066
cmp word [rsp + 0x70], r13w
jne 0x180017043
cmp rbx, r14
je 0x180017000
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180016ba0
cmp word [rsp + 0x70], r13w
je 0x180017069
mov ecx, InitCommonControls
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180031750]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180017063
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180017069
Function at 0x1800199c4
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 0x1800199f4
xor eax, eax
jmp 0x180019ab7
mov rbp, rbx
cmp word [rax], si
je 0x180019a19
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180019a00
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800199fc
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.180017a48
movsxd r14, eax
test eax, eax
jne 0x180019a57
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800199ed
mov rcx, r14
call fcn.180012ee4
mov rdi, rax
test rax, rax
jne 0x180019a70
xor ecx, ecx
call fcn.180012358
jmp 0x180019a4c
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.180017a48
test eax, eax
jne 0x180019aa1
mov rcx, rdi
call fcn.180012358
jmp 0x180019aab
xor ecx, ecx
call fcn.180012358
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 0x18001c104
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18001c11a
mov al, 1
jmp 0x18001c17a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18001c12b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18001c178
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800159d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001c178
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001c178
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001c178
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001c17a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18001ee58
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180016ba0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180016ba0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18001efa8
cmp rax, 0xffffffffffffffff
je 0x18001efa8
xor edi, edi
test rbp, rbp
jle 0x18001ef53
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800122e0
mov rbx, rax
test rax, rax
jne 0x18001eee0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18001ef49
mov edx, 0x8000
mov ecx, r14d
call fcn.18001ecdc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180016408
cmp eax, 0xffffffff
je 0x18001ef29
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18001eef0
mov edx, r15d
mov ecx, r14d
call fcn.18001ecdc
jmp 0x18001ef49
cmp byte [rsi + 0x38], dil
je 0x18001ef40
cmp dword [rsi + 0x34], 5
jne 0x18001ef40
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
cmp byte [rsi + 0x30], dil
je 0x18001ef49
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180012358
jmp 0x18001efbc
jns 0x18001efbc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180016ba0
cmp rax, 0xffffffffffffffff
jne 0x18001ef74
cmp byte [rsi + 0x30], dil
je 0x18001efbc
mov edi, dword [rsi + 0x2c]
jmp 0x18001efbc
mov ecx, r14d
call fcn.1800159d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18001efbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, InitCommonControls
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
jmp 0x18001efbc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18001efb5
mov eax, dword [rsi + 0x2c]
jmp 0x18001efba
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180016ba0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18001fda0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18001fdc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18001fdc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14013314d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [rcx - 0x7f]
stc
cmp dword [rbx + rbp*2], ebp
stc
mov esi, 0x4b24256
lea ecx, [rbx - 0x6f66]
cmp esi, 0xdbe824aa
lea esi, [rbp + 0x4aeb]
ret 8
or dword [rax], eax
add byte [rcx - 0x3f], al
ror esp, cl
jae 0x140132af5
call fcn.140132fbd

Function at 0x140133ae0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
xchg rbx, rcx
mov qword [rsp + 8], rbx
jmp 0x140133afb
xchg rcx, rbx
sub rsp, 0x28
lea rax, [0x140133d30]
jmp 0x140133b0e
xchg r13, rax
mov qword [rsp + 0x18], r13
xchg r13, rax
mov dword [rsp + 8], 0
xchg r13, rax
mov r13, qword [rsp + 0x30]
jmp 0x140133b2b
xchg r13, rax
mov qword [rsp + 0x10], rax
jmp 0x140133b6f