joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001600c
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x50
xor edi, edi
lea rdx, [0x140037140]
cmp word [rcx], di
cmovne rdx, rcx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14001607e
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea ecx, [rdi + 1]
mov dword [rsp + 0x30], edi
lea edx, [rdi + 4]
mov word [rsp + 0x28], cx
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rdi
mov r9d, 0x60005330
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14001619c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x140046408]
xor ebx, ebx
mov rdi, rcx
test eax, eax
je 0x1400161cd
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140046408]
cmp dword [0x14004640c], ebx
mov esi, 1
je 0x1400161de
mov ebx, esi
jmp 0x140016200
test eax, eax
jne 0x1400161eb
call fcn.14001623c
test eax, eax
je 0x140016200
mov rcx, qword [0x140045008]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
cmovne ebx, esi
test ebx, ebx
jne 0x140016227
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x14001621f
cmp eax, 0x32
je 0x14001621f
cmp eax, esi
je 0x14001621f
add eax, 0xffffff82
cmp eax, esi
ja 0x140016227
mov dword [0x14004640c], esi
mov ebx, esi
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140017bb4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
add rcx, 0x70
xor edx, edx
call fcn.140013914
lea rdx, [0x140044da0]
lea rcx, [rsp + 0x20]
call fcn.140016854
mov rcx, qword [0x140044be8]
test rcx, rcx
je 0x140017bf0
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and qword [0x140044be8], 0
cmp byte [rsp + 0x28], 0
je 0x140017c02
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140017c2a
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
add rsp, 0x30
pop rbx
ret

Function at 0x140018864
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs rcx, 0xcbf29ce484222325
test r8, r8
je 0x140018894
movzx eax, byte [r9 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc r9
imul rcx, r10
cmp r9, r8
jb 0x140018876
mov rax, rcx
ret

Function at 0x1400189c4
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
mov rdx, qword [0x140044ed0]
inc rdx
call fcn.140007a10
mov rdx, rax
add rsp, 0x28
jmp fcn.140007690
Function at 0x140022410
Capabilities:
Parse url

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, 0x90
mov rbx, rdx
mov ebp, r8d
xor edx, edx
mov rsi, rcx
lea rcx, [rax - 0x78]
mov r14d, r9d
mov edi, 0x8004307f
lea r8d, [rdx + 0x68]
call sub.VCRUNTIME140.dll_memset
mov eax, 0x824
mov dword [rsp + 0x20], 0x68
mov rcx, rbx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x70], eax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1400224f0
mov edx, dword [rsp + 0x34]
lea eax, [rdx - 3]
cmp eax, 1
ja 0x1400224f0
test ebp, ebp
je 0x14002249d
cmp edx, 4
je 0x14002249d
mov edi, 0x8004307b
jmp 0x1400224f0
xor edi, edi
test r14d, r14d
je 0x1400224f0
mov eax, dword [rsi + 0xdc]
mov r9d, dword [rsp + 0x40]
cmp r9d, eax
jne 0x1400224d6
mov rdx, qword [rsi + 0xd0]
mov r8d, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1400224f0
mov r9d, dword [rsp + 0x40]
mov edx, dword [rsp + 0x34]
mov r8, qword [rsp + 0x38]
lea rcx, [rsi - 0x28]
xor edi, edi
call fcn.140001450
test al, al
mov ecx, 0x8004307c
cmove edi, ecx
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140029f4c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140043008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140029fc2
cmp byte [rcx + 0x71], 0
je 0x140029fc2
mov rax, qword [rcx]
or edx, 0xffffffff
mov rax, qword [rax + 0x18]
call qword [case.0x140007cca.0]
cmp eax, 0xffffffff
je 0x14002a01a
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 0x140029fdc
sub eax, 1
je 0x140029fe0
cmp eax, 2
jne 0x14002a01a
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ac50
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14002a011
lfence
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 0x14002a01a
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140029fc4
xor al, al
jmp 0x140029fc4
Function at 0x14002aa50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140043008]
xor rax, rsp
mov qword [rbp - 8], rax
or esi, 0xffffffff
mov r14d, edx
mov rdi, rcx
cmp edx, esi
jne 0x14002aa8a
xor eax, eax
jmp 0x14002ab90
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 0x14002aac6
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 0x14002aac6
lfence
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], r14b
mov eax, r14d
jmp 0x14002ab90
cmp qword [rdi + 0x80], 0
je 0x14002ab8e
mov rcx, rdi
call fcn.14002a74c
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14002ab02
movsx ecx, r14b
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
setne al
test al, al
jmp 0x14002ab8a
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], r14b
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
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 0x14002ab50
sub eax, 1
je 0x14002ab50
cmp eax, 2
jne 0x14002ab8e
movsx ecx, byte [rbp - 0x40]
jmp 0x14002aae9
mov rbx, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub rbx, rax
je 0x14002ab7e
lfence
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x28]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14002ab8e
lea rax, [rbp - 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rbp - 0x30], rax
cmovne esi, r14d
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000ac50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14002b210
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x14002b23d
xor eax, eax
jmp 0x14002b306
cmp qword [rcx + 0x68], 0
je 0x14002b252
lfence
call 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]
jmp 0x14002b306
mov rdi, rsi
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 0x14002b292
cmp rax, rsi
mov rbx, rsi
mov rcx, rbp
cmovb rbx, 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, rbx
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rbp
add r14, rbx
sub rdi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
je 0x14002b2fd
mov rcx, rbp
call fcn.14002a74c
mov rbx, rdi
mov r15d, 0xfff
jmp 0x14002b2d5
mov r9, qword [rbp + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, r15
jne 0x14002b2fd
cmp rdi, r15
ja 0x14002b2af
test rbx, rbx
je 0x14002b2fd
mov r9, qword [rbp + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdi, rbx
sub rdi, rax
sub rsi, rdi
mov rax, rsi
lfence
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14002b320
Capabilities:
Write file on windows

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, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14002b351
call 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]
jmp 0x14002b3c9
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 0x14002b3c3
test rax, rax
jle 0x14002b396
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 0x14002b3c3
cmp qword [rdi + 0x80], 0
je 0x14002b3c3
lfence
mov r9, qword [rdi + 0x80]
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140028974
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.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
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.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
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 0x140029bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140b2a150
Capabilities:
Encode data using xor

Disassembly:
xor si, r11w
call fcn.140b5e685
mov ecx, 0xd8b31db3
call fcn.140b5db27
mov r11, qword [r9]
mov eax, 0xf939b596
mov rax, qword [r9 + 8]
add r9, 0xc
push 0x711d7f31
xor r10d, r10d
sal dword [rsp], 0xc
test rax, rax
lea rsp, [rsp + 8]
je 0x140b2a1d3
mov esi, 0x2da98a94
push r8
add sil, sil
adc sil, sil
mov r8d, esi
lea r8, [0x140b50b00]
mov esi, 0x991476a9
neg sil
movzx esi, byte [r11]
push 0xfffffffffe376a15
xor esi, r10d
and esi, 0xff
mov esi, dword [r8 + rsi*4]
shr r10d, 8
xor r10d, esi
inc r11
xor r10d, 0xc9b8f198
dec rax
lea rsp, [rsp + 8]
jne 0x140b2a194
pop r8
jmp 0x140b47753
call fcn.140b42141
Function at 0x140001000
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14001a008]
xor rax, rsp
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001041
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
xor eax, eax
jmp 0x1400010f8
lea r8, [rsp + 0x40]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140001075
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400010f8
mov dword [rsp + 0x48], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + rax + 0x4c], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x54], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400010e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400010f8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001bd0
add rsp, 0x68
ret
Function at 0x140006f14
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006d04
Function at 0x14000a00c
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 0x14000a03c
xor eax, eax
jmp 0x14000a0ff
mov rbp, rbx
cmp word [rax], si
je 0x14000a061
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000a048
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000a044
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.140009f5c
movsxd r14, eax
test eax, eax
jne 0x14000a09f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000a035
mov rcx, r14
call fcn.1400085c4
mov rdi, rax
test rax, rax
jne 0x14000a0b8
xor ecx, ecx
call fcn.140008588
jmp 0x14000a094
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.140009f5c
test eax, eax
jne 0x14000a0e9
mov rcx, rdi
call fcn.140008588
jmp 0x14000a0f3
xor ecx, ecx
call fcn.140008588
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 0x1416421d8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14164235f
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 0x141642209
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416421ef
add dl, dl
jne 0x141642216
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141642276
xor eax, eax
add dl, dl
jne 0x141642225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14164232d
add dl, dl
jne 0x141642236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141642243
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141642250
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14164225d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14164226a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1416421fe
mov eax, 1
add dl, dl
jne 0x141642286
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141642293
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14164227b
sub eax, ebx
mov ebx, 1
jne 0x1416422cc
mov ecx, 1
add dl, dl
jne 0x1416422ae
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416422bb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416422a3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416421fe
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1416422e8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416422f5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416422dd
cmp eax, 0x7d00
jae 0x14164231b
cmp eax, 0x500
jb 0x141642316
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416421fe
cmp eax, 0x7f
ja 0x14164231e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416421fe
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141642352
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 0x1416421fe
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000203d
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor esi, esi
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov rbx, rdx
cmp rsi, rbx
jl 0x140002096
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x14001213c]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp 0x14000ff10
jb 0x1400020ac
lea rdx, [rbx - 1]
mov rcx, rsi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140004961
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r8d, r8d
mov rdx, rbp
mov rcx, rax
mov rax, rsi
shl rax, 4
movups xmm0, xmmword [rdi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140001f17
mov rax, qword [0x140014320]
cmp byte [rax], 0
jne 0x1400020e9
inc rsi
jmp 0x140002052
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140002bc2
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x140002be1
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000ff10
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]

Function at 0x140004ca2
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x14000ff10

Function at 0x140004ce1
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [0x140019b98], 0
jne 0x140004cf7
add rsp, 0x40
pop rbx
jmp fcn.140004ca2
lea rbx, [rsp + 0x30]
mov rdx, rcx
mov rcx, rbx
call fcn.140004c1b
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call qword [0x140019b98]
mov rcx, rbx
call fcn.140003aa8
cmp byte [0x140019b70], 0
je 0x140004d50
mov rax, qword [0x140019ba0]
lea rcx, [0x140019ba0]
mov byte [0x140019b70], 0
mov rdx, qword [rax + 0x38]
add rsp, 0x40
pop rbx
jmp fcn.140003f06
add rsp, 0x40
pop rbx
ret