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

Disassembly:
jmp 0x14007b740
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14018d0f8]
call fcn.140066128
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14007b797
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.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 0x14007b8a3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14007b83c
cmp qword [rbp + 0x28], 0
jle 0x14007b83c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14007b7dc
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140065d04
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14007b892
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14007b892
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140062ad7
Capabilities:
Execute command
Self delete

Disassembly:
jmp 0x1400fda80
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x298]
mov rax, qword [0x140175080]
xor rax, rbp
mov qword [rbp + 0x248], rax
lea rcx, [0x14018e21e]
call fcn.140066128
mov rdx, qword [rbp + 0x270]
lea rcx, [rbp + 8]
call fcn.14006287f
nop
lea rax, [rbp + 8]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp + 0x48]
call fcn.14006214a
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0x48]
call fcn.1400622ad
mov qword [rbp + 0x88], rax
jmp 0x1400fdb0c
mov rax, qword [rbp + 0x68]
inc rax
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x88]
cmp qword [rbp + 0x68], rax
je 0x1400fdb3f
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
movsx eax, byte [rax]
cmp eax, 0x2f
jne 0x1400fdb3d
mov rax, qword [rbp + 0xa8]
mov byte [rax], 0x5c
jmp 0x1400fdb01
lea rcx, [rbp + 8]
call fcn.140065728
movzx eax, al
test eax, eax
je 0x1400fdbc8
lea r8, [rbp + 8]
lea rdx, str.rmdir__s__q
lea rcx, [rbp + 0x1a8]
call fcn.1400622a3
mov qword [rbp + 0x238], rax
mov rcx, qword [rbp + 0x238]
call fcn.1400625f0
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_system]
test eax, eax
jne 0x1400fdb92
mov dword [rbp + 0x240], 1
jmp 0x1400fdb9c
mov dword [rbp + 0x240], 0
movzx eax, byte [rbp + 0x240]
mov byte [rbp + 0x184], al
lea rcx, [rbp + 0x1a8]
call fcn.140062c08
nop
lea rcx, [rbp + 8]
call fcn.140062c08
movzx eax, byte [rbp + 0x184]
jmp 0x1400fdc3f
lea r8, [rbp + 8]
lea rdx, str.del__f__q
lea rcx, [rbp + 0x208]
call fcn.1400622a3
mov qword [rbp + 0x238], rax
mov rcx, qword [rbp + 0x238]
call fcn.1400625f0
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_system]
test eax, eax
jne 0x1400fdc0b
mov dword [rbp + 0x240], 1
jmp 0x1400fdc15
mov dword [rbp + 0x240], 0
movzx eax, byte [rbp + 0x240]
mov byte [rbp + 0x1e4], al
lea rcx, [rbp + 0x208]
call fcn.140062c08
nop
lea rcx, [rbp + 8]
call fcn.140062c08
movzx eax, byte [rbp + 0x1e4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14014db90]
call fcn.1400655c5
mov rax, rdi
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.140063fe0
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret
Function at 0x140062d20
Capabilities:
Create thread

Disassembly:
jmp 0x14008a180
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140175080]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14018d322]
call fcn.140066128
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140063356
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.1400640da
nop
lea rax, [0x140064ac1]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140064bd9
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14008a25a
lea rcx, [rbp + 8]
call fcn.140063c0c
jmp 0x14008a273
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.140062e8d
nop
lea rcx, [rbp + 8]
call fcn.140063a9f
lea rcx, [rbp - 0x30]
lea rdx, [0x14013e050]
call fcn.1400655c5
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.140063fe0
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x140063c89
Capabilities:
Create thread

Disassembly:
jmp 0x1400df590
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140175080]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14018d87c]
call fcn.140066128
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140064fee
mov r8, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.14006383d
nop
lea rax, [0x140064558]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140063eeb
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x1400df676
lea rcx, [rbp + 8]
call fcn.140064fbc
jmp 0x1400df68f
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.140062e8d
nop
lea rcx, [rbp + 8]
call fcn.140065dfe
lea rcx, [rbp - 0x30]
lea rdx, [0x14014a430]
call fcn.1400655c5
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.140063fe0
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x1400644d1
Capabilities:
Terminate process

Disassembly:
jmp 0x1401236d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140064a1c
Capabilities:
Get geographical location

Disassembly:
jmp 0x14011d3e0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14011d41d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400660e2
add rsp, 0x58
ret

Function at 0x140064d2d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140123f20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140123f40
xor al, al
jmp 0x140123fc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140123f53
xor al, al
jmp 0x140123fc1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140123f7d
xor al, al
jmp 0x140123fc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140123f91
xor al, al
jmp 0x140123fc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140123fa3
xor al, al
jmp 0x140123fc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140123fbf
xor al, al
jmp 0x140123fc1
mov al, 1
add rsp, 0x38
ret
Function at 0x140065abb
Capabilities:
Get common file path

Disassembly:
jmp 0x14011ed50
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14011ed98
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
ja 0x14011ed98
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x24]
jmp 0x14011edaf
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x2c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
add rsp, 0x48
ret

Function at 0x140065b65
Capabilities:
Get common file path

Disassembly:
jmp 0x1400fd020
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140175080]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x14018e21e]
call fcn.140066128
mov edx, 0x101
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rbp + rax + 0x10]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14014d140]
call fcn.1400655c5
mov eax, edi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.140063fe0
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x140066029
Capabilities:
Write file on windows

Disassembly:
jmp 0x140076ab0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x140175080]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x14018d0f8]
call fcn.140066128
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x140076b16
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140076b1d
mov al, 1
jmp 0x140076c8d
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.1400631df
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.1400631df
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.140065336
movzx eax, al
test eax, eax
je 0x140076b80
xor al, al
jmp 0x140076c8d
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x140076bf3
cmp dword [rbp + 0x160], 1
je 0x140076bfe
cmp dword [rbp + 0x160], 3
je 0x140076c7c
jmp 0x140076c8b
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140076c4e
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140076c4e
xor al, al
jmp 0x140076c8d
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140076c69
mov dword [rbp + 0x154], 1
jmp 0x140076c73
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x140076c8d
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140076c8d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140137e20]
call fcn.1400655c5
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.140063fe0
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1410900b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141090237
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 0x1410900e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410900c7
add dl, dl
jne 0x1410900ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14109014e
xor eax, eax
add dl, dl
jne 0x1410900fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141090205
add dl, dl
jne 0x14109010e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14109011b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141090128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141090135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141090142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410900d6
mov eax, 1
add dl, dl
jne 0x14109015e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14109016b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141090153
sub eax, ebx
mov ebx, 1
jne 0x1410901a4
mov ecx, 1
add dl, dl
jne 0x141090186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141090193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14109017b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410900d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410901c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410901cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410901b5
cmp eax, 0x7d00
jae 0x1410901f3
cmp eax, 0x500
jb 0x1410901ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410900d6
cmp eax, 0x7f
ja 0x1410901f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410900d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14109022a
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 0x1410900d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140001e20
Capabilities:
Parse pe header

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

Function at 0x140008be8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400089e4
Function at 0x14000dfd0
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 0x14000e000
xor eax, eax
jmp 0x14000e0c3
mov rbp, rbx
cmp word [rax], si
je 0x14000e025
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e00c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e008
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.14000def0
movsxd r14, eax
test eax, eax
jne 0x14000e063
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000dff9
mov rcx, r14
call fcn.14000afd0
mov rdi, rax
test rax, rax
jne 0x14000e07c
xor ecx, ecx
call fcn.140009ab4
jmp 0x14000e058
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.14000def0
test eax, eax
jne 0x14000e0ad
mov rcx, rdi
call fcn.140009ab4
jmp 0x14000e0b7
xor ecx, ecx
call fcn.140009ab4
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 0x1400123ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012402
mov al, 1
jmp 0x140012462
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140012413
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140012460
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e8f0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140012460
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140012460
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140012460
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140012462
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400134a0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140005b68
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001352a
cmp byte [rbp - 0x21], r15b
je 0x140013525
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013560
call fcn.140009d04
test eax, eax
jne 0x14001354c
cmp byte [rbp - 0x21], r15b
je 0x140013544
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013560
cmp byte [rbp - 0x21], r15b
je 0x14001355d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000c63c
test eax, eax
jne 0x140013600
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140005b68
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001359f
cmp byte [rbp - 0x21], r15b
je 0x1400135d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400135d4
call fcn.140009d04
test eax, eax
jne 0x1400135c0
cmp byte [rbp - 0x21], r15b
je 0x1400135b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400135d4
cmp byte [rbp - 0x21], r15b
je 0x1400135d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000c63c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013600
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013603
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013611
mov rcx, rdi
call fcn.140009ab4
cmp byte [rbp + 0x3f], r15b
je 0x140013620
mov rcx, qword [rbp + 0x27]
call fcn.140009ab4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140015b90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015bb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015bb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14012f94c
Capabilities:
Write file on windows

Disassembly:
jmp 0x140326390
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140529702]
call fcn.1401357f7
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1403263e7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.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 0x1403264f3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14032648c
cmp qword [rbp + 0x28], 0
jle 0x14032648c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14032642c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140135171
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x1403264e2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1403264e2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret