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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18007e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180067ebd
xor eax, eax
jmp 0x180068029
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180067ef7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180067ef7
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 0x180068029
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18006801c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180067f3a
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 0x180067f65
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 0x180068021
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 0x180067fd4
sub eax, 1
je 0x180067fd4
cmp eax, 2
jne 0x18006801c
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 0x180068021
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180068002
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 0x18006801c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180068021
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18006ba20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800684a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18007e010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180068573
cmp byte [rcx + 0x71], 0
je 0x180068573
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18006856f
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 0x180068534
sub eax, 1
je 0x180068538
cmp eax, 2
jne 0x18006856f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18006ba20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180068566
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 0x18006856f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18006851c
xor al, al
jmp 0x18006851c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18006ba20
add rsp, 0x60
pop rbx
ret

Function at 0x18006b0b8
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 0x18006b13c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18006fac0]
cmp byte [rcx + rax], 0
je 0x18006b13c
dec r8
sub rdx, 1
jne 0x18006b122
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400016bd
Capabilities:
Execute command
Query environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0x278
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x210], rcx
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.14008fa30
lea rax, [rbp + 0x19f]
mov rcx, rax
call fcn.140068ef0
lea rax, str.userprofile
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rdx, rax
lea rcx, [rbp + 0x19f]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call fcn.1400a0970
lea rax, [rbp + 0x19f]
mov rcx, rax
call fcn.140068f20
lea rax, [rbp - 0x60]
lea rdx, str.AppDataLocalWindows_DefenderAnti_Malware_Service.exe
mov rcx, rax
call fcn.1400a1270
mov edx, 0x10
mov ecx, 4
call fcn.1400b15b0
mov ecx, eax
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x40]
mov r8d, ecx
mov rcx, rax
call fcn.14008f430
mov dword [rbp + 0x1ec], 0
jmp 0x14000179a
mov eax, dword [rbp + 0x1ec]
cdqe
lea rdx, [rax*4]
lea rax, [0x1400b5020]
mov eax, dword [rdx + rax]
movsx edx, al
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.1400b0fe0
add dword [rbp + 0x1ec], 1
mov eax, dword [0x140446020]
cmp dword [rbp + 0x1ec], eax
jl 0x14000176a
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.14008f530
lea rax, [rbp + 0x1c0]
lea rdx, [rbp - 0x60]
mov r8, rdx
lea rdx, [0x14044d089]
mov rcx, rax
call fcn.1400b1670
lea rax, [rbp + 0x1a0]
lea rdx, [rbp + 0x1c0]
lea r8, [0x14044d089]
mov rcx, rax
call fcn.1400b15d0
lea rdx, [rbp + 0x1a0]
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400a10d0
lea rax, [rbp + 0x1a0]
mov rcx, rax
call fcn.1400a1090
lea rax, [rbp + 0x1c0]
mov rcx, rax
call fcn.1400a1090
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400266f0
mov rcx, rax
call sub.msvcrt.dll_system
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400a1090
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.140090000
jmp 0x14000189c
add rsp, 0x278
pop rbx
pop rbp
ret
Function at 0x140001c8c
Capabilities:
Execute command
Hide graphical window

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov dword [rbp + 0x50], ecx
mov qword [rbp + 0x58], rdx
call fcn.14000b0a0
mov rax, rsp
mov qword [rbp - 0x58], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov rax, qword [rbp + 0x58]
mov rax, qword [rax]
mov rcx, rax
call fcn.1400018a6
mov eax, dword [0x1404460f0]
lea ecx, [rax + 1]
movsxd rax, ecx
sub rax, 1
mov qword [rbp - 0x18], rax
movsxd rax, ecx
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 0
movsxd rbx, ecx
mov r8d, dword [0x140446068]
movsxd rax, r8d
sub rax, 1
mov qword [rbp - 0x20], rax
movsxd rax, ecx
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0
movsxd rax, r8d
mov r14, rax
mov r15d, 0
mov r10, qword [rbp - 0x40]
mov r11, qword [rbp - 0x38]
mov rdx, r11
imul rdx, r14
mov rax, r10
imul rax, r15
lea r9, [rdx + rax]
mov rax, r10
mul r14
add r9, rdx
mov rdx, r9
movsxd rax, ecx
mov r12, rax
mov r13d, 0
movsxd rax, r8d
mov rsi, rax
mov edi, 0
mov rdx, r13
imul rdx, rsi
mov rax, rdi
imul rax, r12
lea r9, [rdx + rax]
mov rax, r12
mul rsi
add r9, rdx
mov rdx, r9
movsxd rdx, ecx
movsxd rax, r8d
imul rax, rdx
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.14000c050
sub rsp, rax
lea rax, [rsp + 0x30]
add rax, 0
mov qword [rbp - 0x28], rax
mov dword [rbp - 4], 0
jmp 0x140001e54
mov eax, dword [rbp - 4]
cdqe
imul rax, rbx
mov rdx, rax
mov rax, qword [rbp - 0x28]
lea rcx, [rdx + rax]
mov r9d, dword [0x140446024]
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*4]
lea rax, [0x140446080]
mov r8d, dword [rdx + rax]
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 6
add rax, rdx
shl rax, 3
lea rdx, [0x140446100]
add rax, rdx
mov qword [rsp + 0x20], rcx
lea rdx, str.9843710264
mov rcx, rax
call fcn.140001530
mov eax, dword [rbp - 4]
cdqe
imul rax, rbx
mov rdx, rax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov rcx, rax
call sub.msvcrt.dll_system
add dword [rbp - 4], 1
mov eax, dword [0x140446068]
cmp dword [rbp - 4], eax
jl 0x140001dd0
mov rax, qword [rbp + 0x58]
mov rax, qword [rax]
mov rcx, rax
call fcn.1400016bd
mov eax, 0
mov rsp, qword [rbp - 0x58]
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14000b2b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140015670
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015670
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000b320
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1404790c4]
mov rbx, rcx
test esi, esi
jle 0x14000b450
mov rax, qword [0x1404790c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b36b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b3f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b350
mov rcx, rbx
call fcn.14000bd70
mov rdi, rax
test rax, rax
je 0x14000b472
mov rax, qword [0x1404790c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000beb0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1404790c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b457
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b3ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b400
add dword [0x1404790c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1404790c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b3ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b2b0
nop dword [rax]
xor esi, esi
jmp 0x14000b378
mov rax, qword [0x1404790c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b2b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b2b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b9e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140479120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140479100]
test rbx, rbx
je 0x14000ba3c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000ba33
test rsi, rsi
je 0x14000ba33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ba18
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000bd70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140453400]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bd90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bd98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bd90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000bded
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000bde4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bd90
add rax, 0x28
cmp rax, r9
jne 0x14000bdd0
xor eax, eax
ret

Function at 0x14000bdf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140453400]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000be0f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000be18
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000be0f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000beb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140453400]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000becf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000bed8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140078de0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140078e28
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x140078dfa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b3a50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14044c960]
jmp 0x14000cbc0

Function at 0x1400b3a60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14044c960]
jmp 0x14000cbc0
Function at 0x140002ec0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400040c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400040c0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003060
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002f7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003005
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002f60
mov rcx, rbx
call fcn.140003980
mov rdi, rax
test rax, rax
je 0x140003082
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003ac0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003067
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002ffe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003010
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002ffe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002ec0
nop dword [rax]
xor esi, esi
jmp 0x140002f88
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002ec0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002ec0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400035f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000364c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003643
test rsi, rsi
je 0x140003643
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003628
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003980
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400039a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400039a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400039a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400039fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400039f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400039a0
add rax, 0x28
cmp rax, r9
jne 0x1400039e0
xor eax, eax
ret

Function at 0x140003a00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003a1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003a28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003a1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003ac0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003adf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003ae8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1406ea108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406ea28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406ea139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ea11f
add dl, dl
jne 0x1406ea146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ea1a6
xor eax, eax
add dl, dl
jne 0x1406ea155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ea25d
add dl, dl
jne 0x1406ea166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ea173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ea180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ea18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406ea19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406ea12e
mov eax, 1
add dl, dl
jne 0x1406ea1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ea1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ea1ab
sub eax, ebx
mov ebx, 1
jne 0x1406ea1fc
mov ecx, 1
add dl, dl
jne 0x1406ea1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406ea1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ea1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ea12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406ea218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406ea225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ea20d
cmp eax, 0x7d00
jae 0x1406ea24b
cmp eax, 0x500
jb 0x1406ea246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ea12e
cmp eax, 0x7f
ja 0x1406ea24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ea12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406ea282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406ea12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001375
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
jmp 0x14000bae0
xor r9d, r9d
movabs rax, 0xcbf29ce484222325
test rdx, rdx
je 0x14000bb14
movabs r10, 0x100000001b3
nop dword [rax]
movzx r8d, byte [r9 + rcx]
inc r9
xor rax, r8
imul rax, r10
cmp r9, rdx
jb 0x14000bb00
ret
Function at 0x140001799
Capabilities:
Terminate process

Disassembly:
jmp 0x14001f668
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14001ff04
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140019760], eax
call fcn.140010b30
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140019760], 0
jne case.default.0x1400101de
mov ecx, 1
call fcn.140010b30
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
out 0xee, al
invalid
mov esi, 0xda3864cd
xchg ebp, eax
jns 0x14002aff5
rep insd dword [rdi], dx
loope 0x14002b03b
push qword [rsi]
add eax, 0xa7bef1c0
add eax, 0xa7bef1c0
invalid