joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001580
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rbp, qword [0x14000d890]
add rbp, 2
mov qword [rsp + 0x20], 4
mov qword [rsp + 0x18], rbp
nop word [rax + rax]
movzx r9d, byte [rbp - 1]
movzx edx, byte [rbp - 2]
movzx ebx, r9b
movzx r8d, byte [rbp]
movzx eax, dl
shr al, 7
movzx r10d, r8b
movzx eax, al
add r10b, r10b
imul eax, eax, 0x1b
add bl, bl
movzx ecx, byte [rbp + 1]
mov byte [rsp + 0x98], dl
add dl, dl
mov byte [rsp + 0x88], r9b
mov byte [rsp + 0x90], r8b
xor dl, al
mov dword [rsp + 8], eax
movzx eax, dl
movzx esi, dl
shr al, 7
add sil, sil
movzx eax, al
imul eax, eax, 0x1b
xor sil, al
mov dword [rsp + 4], eax
movzx eax, r9b
shr al, 7
movzx eax, al
imul r14d, eax, 0x1b
xor bl, r14b
movzx eax, bl
movzx r9d, bl
shr al, 7
add r9b, r9b
movzx eax, al
imul eax, eax, 0x1b
xor r9b, al
mov dword [rsp + 0xc], eax
movzx eax, r8b
shr al, 7
movzx eax, al
imul r12d, eax, 0x1b
xor r10b, r12b
movzx eax, r10b
movzx r8d, r10b
shr al, 7
xor r10b, dl
movzx eax, al
add r8b, r8b
imul ebp, eax, 0x1b
movzx eax, cl
shr al, 7
add cl, cl
movzx eax, al
imul r13d, eax, 0x1b
xor r8b, bpl
xor cl, r13b
mov dword [rsp + 0x10], r13d
movzx eax, cl
shr al, 7
movzx eax, al
imul r15d, eax, 0x1b
movzx eax, cl
add al, al
xor al, r15b
xor r10b, al
mov byte [rsp + 0x80], al
shr al, 7
xor r10b, r8b
movzx eax, al
xor r10b, r9b
imul edi, eax, 0x1b
xor r10b, sil
movzx eax, r8b
mov byte [rsp], r10b
shr al, 7
movzx eax, al
imul r11d, eax, 0x1b
movzx eax, r9b
shr al, 7
movzx eax, al
imul r10d, eax, 0x1b
movzx eax, sil
xor byte [rsp + 0x80], cl
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
mov r13, qword [rsp + 0x18]
movzx eax, byte [rsp]
xor al, byte [rsp + 0x88]
xor al, byte [rsp + 0x98]
add al, al
movzx ecx, byte [rsp + 0x80]
xor al, dl
xor cl, r8b
xor al, r10b
mov r8d, dword [rsp + 0xc]
xor al, r11b
xor cl, r9b
xor al, dil
movzx r9d, byte [r13 + 1]
xor al, bpl
xor cl, bl
xor al, r14b
movzx ebx, byte [rsp + 0x90]
xor al, byte [rsp + 4]
xor cl, sil
xor al, byte [rsp + 8]
xor al, byte [r13 + 1]
xor al, byte [rsp + 0x90]
xor al, byte [rsp + 0x88]
movzx esi, byte [rsp + 0x88]
mov byte [r13 - 2], al
movzx eax, cl
xor al, bl
xor cl, r9b
xor al, sil
add al, al
xor al, dl
xor al, r10b
xor al, r11b
xor al, dil
xor al, r15b
xor al, r12b
xor al, r8b
xor al, r14b
mov r14, r13
movzx r14d, byte [rsp + 0x98]
xor al, r9b
xor al, bl
xor cl, r14b
xor al, r14b
add cl, cl
mov byte [r13 - 1], al
xor cl, dl
mov r13d, dword [rsp + 0x10]
xor cl, r10b
movzx eax, byte [rsp]
xor cl, r11b
xor al, r9b
xor cl, dil
xor al, bl
xor cl, r15b
add al, al
xor cl, r13b
xor al, dl
xor cl, r8b
xor cl, byte [rsp + 8]
xor al, r10b
xor al, r11b
xor al, dil
xor al, r13b
xor al, bpl
mov rbp, qword [rsp + 0x18]
xor al, r12b
xor al, byte [rsp + 4]
xor al, r9b
xor al, sil
xor al, r14b
mov byte [rbp], al
xor cl, bl
xor cl, sil
xor cl, r14b
mov byte [rbp + 1], cl
add rbp, 4
sub qword [rsp + 0x20], 1
mov qword [rsp + 0x18], rbp
jne 0x1400015b0
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001b30
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14000d890]
lea r8, [0x14000d940]
sub r8, rbx
mov rcx, rbx
mov r9d, 4
nop
mov edx, 4
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140001b70
sub r9, 1
jne 0x140001b60
lea rdi, [0x14000d930]
mov sil, 9
sub rdi, rbx
lea rbp, [0x140008a80]
nop word [rax + rax]
movzx eax, byte [rbx + 9]
mov r8, rbx
movzx ecx, byte [rbx + 0xd]
mov r9d, 4
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xb], al
mov byte [rbx + 0xf], cl
nop dword [rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + rbp]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x140001c10
inc r8
sub r9, 1
jne 0x140001c00
mov rax, rbx
lea r8d, [rdx + 4]
nop dword [rax]
nop dword [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
xor byte [rax], cl
inc rax
sub rdx, 1
jne 0x140001c50
sub r8, 1
jne 0x140001c40
call fcn.140001580
sub rdi, 0x10
add sil, 0xff
jne 0x140001ba0
movzx eax, byte [rbx + 9]
mov r8, rbx
movzx ecx, byte [rbx + 0xd]
mov r9d, 4
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xb], al
mov byte [rbx + 0xf], cl
nop word [rax + rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + rbp]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x140001cf0
inc r8
sub r9, 1
jne 0x140001ce0
lea rdx, [0x14000d8a0]
sub rdx, rbx
lea r8d, [r9 + 4]
nop dword [rax + rax]
mov ecx, 4
nop word [rax + rax]
movzx eax, byte [rdx + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140001d30
sub r8, 1
jne 0x140001d20
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004b60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, rdx
xor edi, edi
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov rbx, rcx
call fcn.140005b40
mov rsi, rax
test rax, rax
jne 0x140004bc0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Cannot_read_payload_
call fcn.1400028f0
mov rcx, rax
lea rdx, [0x140002ac0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140004ce8
mov qword [rsp + 0x90], rbp
mov ebp, dword [rsp + 0x20]
mov eax, ebp
and al, 0xf
mov qword [rsp + 0x98], r13
neg al
mov qword [rsp + 0x50], r14
mov eax, ebp
sbb r13d, r13d
and eax, 0xfffffff0
and r13d, 0x10
add r13d, eax
mov rax, 0xffffffffffffffff
mov ecx, r13d
add ecx, 1
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r8d, [r13 + 1]
xor edx, edx
mov rcx, rax
mov r14, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x40], rdi
movabs rax, 0x3932646972676148
mov qword [rsp + 0x38], rax
test ebp, ebp
je 0x140004c6a
lea rax, [rsp + 0x38]
mov ecx, edi
mov qword [0x14000d888], rax
nop dword [rax]
movsxd rax, ecx
lea rcx, [rax + r14]
mov qword [0x14000d890], rcx
movups xmm0, xmmword [rax + rsi]
movups xmmword [rcx], xmm0
call fcn.140001010
call fcn.140001820
inc edi
mov ecx, edi
shl ecx, 4
cmp ecx, ebp
jb 0x140004c40
mov rbp, qword [rsp + 0x90]
test r15, r15
jne 0x140004cb7
lea rcx, [rsp + 0x28]
sub rcx, rbx
nop
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140004c80
lea rcx, [rsp + 0x28]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140004c96
mov eax, dword [str..enc]
lea r15, [rsp + 0x28]
mov dword [rcx], eax
movzx eax, byte [0x140009a84]
mov byte [rcx + 4], al
lea rdx, [0x140009a88]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r8d, r13d
mov edx, 1
mov r9, rax
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x50]
mov r13, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006450
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000503c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14000506d
test rdx, rdx
je 0x14000507f
mov r9d, 0x40
mov r8, rcx
call fcn.140005f48
test al, al
jne 0x14000508d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, 0x40
call fcn.140005f6c
test al, al
jne 0x14000506d
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14000506d
cmp dword [rbx + 0x3c], 0x400
jg 0x14000506d
movsxd rdi, dword [rbx + 0x3c]
add rdi, rbx
test rsi, rsi
je 0x1400050c6
mov r9d, pe_nt_image_headers64
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140005f48
test al, al
jne 0x1400050d7
jmp 0x14000506d
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.140005f6c
test al, al
jne 0x14000506d
cmp dword [rdi], 0x4550
jne 0x14000506d
mov rax, rdi
jmp 0x14000506f
Function at 0x140005b40
Capabilities:
Get file size
Read file via mapping

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, 0x40
xor ebx, ebx
mov r12, rdx
mov qword [rax - 0x28], rbx
xor r9d, r9d
mov dword [rax - 0x30], 0x80
mov edx, 0x80000000
mov r14, rcx
mov dword [rax - 0x38], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005b99
xor eax, eax
jmp 0x140005ca4
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
test rax, rax
jne 0x140005bc7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005b92
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
test rax, rax
jne 0x140005bf2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005bbc
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp qword [r12], rbx
je 0x140005c0e
cmp qword [r12], rdi
cmovbe rdi, qword [r12]
mov rdx, rdi
mov rcx, r15
call fcn.140005f6c
test al, al
je 0x140005c5c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.____Mapping_of
call fcn.1400028f0
mov rcx, rax
mov rdx, r14
call fcn.1400028f0
mov rcx, rax
lea rdx, str._is_invalid_
call fcn.1400028f0
mov rcx, rax
lea rdx, [0x140002ac0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140005c86
mov rcx, rdi
call fcn.140005f00
mov r14, rax
test rax, rax
je 0x140005c7c
mov r8, rdi
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140005c7f
mov rdi, rbx
mov qword [r12], rdi
mov rbx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret

Function at 0x140006ec4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14006c1b0], rbx
je 0x14001210c
cmp rax, rbx
jne 0x1400120ff
mov ebx, 1
mov esi, ebx
jmp 0x140012111
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400120e4
mov ebx, 1
mov eax, dword [0x14006c1b8]
cmp eax, ebx
jne 0x140012127
mov ecx, 0x1f
call fcn.1400fe000
jmp 0x14001218c
mov eax, dword [0x14006c1b8]
test eax, eax
jne 0x140012186
mov dword [0x14006c1b8], ebx
lea r15, [0x140041688]
lea rdi, [0x140041670]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140012178
test eax, eax
jne 0x14001217c
cmp qword [rdi], 0
je 0x14001216d
mov rax, qword [rdi]
mov rcx, qword [case.0x140010c4b.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14001214e
test eax, eax
je 0x14001218c
mov eax, 0xff
jmp 0x140012268
mov dword [0x14006b13c], ebx
mov eax, dword [0x14006c1b8]
cmp eax, ebx
jne 0x1400121b3
lea rdx, [0x140041668]
lea rcx, [0x140041620]
call sub.msvcrt.dll__initterm
mov dword [0x14006c1b8], 2
test esi, esi
jne 0x1400121c0
xor eax, eax
xchg qword [0x14006c1b0], rax
cmp qword [0x14006c1d0], 0
je 0x1400121f4
lea rcx, [0x14006c1d0]
call fcn.140012830
test eax, eax
je 0x1400121f4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14006c1d0]
mov r9, qword [case.0x140010c4b.0]
call r9
mov r8, qword [0x14006b150]
mov rdx, qword [0x14006b148]
mov ecx, dword [0x14006b140]
call fcn.140010d4c
mov dword [0x14006b138], eax
cmp dword [0x14006b158], 0
jne 0x140012224
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14006b13c], 0
jne 0x140012239
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14006b138]
jmp 0x140012268
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400128c4
add rsp, 0x28
jmp 0x1400120c0

Function at 0x140012348
Capabilities:
Print debug messages

Disassembly:
jmp 0x140012354
push rbx
sub rsp, 0x540
mov rax, qword [0x14005b010]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1400123d1
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x1400123f1
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140012560
add rsp, 0x540
pop rbx
ret
Function at 0x140003e40
Capabilities:
Read 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
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140003e6e
xor eax, eax
jmp 0x140003f54
cmp qword [rcx + 0x68], 0
je 0x140003e7f
call fcn.1400035bc
jmp 0x140003f54
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003e96
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003e98
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003eca
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140020120
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140003f4e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140003f01
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140003f2a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000c5c8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140003f4e
cmp rsi, rbx
ja 0x140003f08
test rsi, rsi
je 0x140003f4e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000c5c8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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 0x140005bac
Capabilities:
Parse pe header

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

Function at 0x140008720
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008868
Function at 0x140008868
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140008868
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400088d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400088d7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400088d7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400088d7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400088d7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400088d7
cmp dword [rcx + 0xf8], 0
je 0x1400088d7
mov ecx, ebx
call fcn.1400087a0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400089fc
nop
cmp dword [rbp + 0x20], 0
je 0x140008925
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140008834
int3

Function at 0x14000d7e0
Capabilities:
Parse pe header

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

Function at 0x140016bd4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140010f8c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140016c75
cmp ebx, dword [rsp + 0x30]
je 0x140016c6e
test esi, esi
je 0x140016c6e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140016c49
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140016c56
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140016c33
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140016c5a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140016c77
mov eax, 1
jmp 0x140016c77
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140017bec
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.140006110
sub rsp, rax
mov rax, qword [0x140030180]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140014238
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140017c3b
mov rax, rbp
jmp 0x140017d43
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x32500]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001791c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x32500]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140017d3f
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 0x140017d3f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001791c
test rax, rax
js 0x140017d3f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140017d3f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140017d31
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140017d31
cmp byte [rcx], 0xd
jne 0x140017d17
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140017d26
cmp byte [rcx + 1], 0xa
jne 0x140017d26
inc rcx
jmp 0x140017d26
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x30cc0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140017cf9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140017d43
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400026a0
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 0x1400180d4
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 0x140018104
xor eax, eax
jmp 0x1400181c7
mov rbp, rbx
cmp word [rax], si
je 0x140018129
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140018110
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001810c
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.140010e4c
movsxd r14, eax
test eax, eax
jne 0x140018167
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400180fd
mov rcx, r14
call fcn.140010d5c
mov rdi, rax
test rax, rax
jne 0x140018180
xor ecx, ecx
call fcn.140010d20
jmp 0x14001815c
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.140010e4c
test eax, eax
jne 0x1400181b1
mov rcx, rdi
call fcn.140010d20
jmp 0x1400181bb
xor ecx, ecx
call fcn.140010d20
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 0x140019b44
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140019b5a
mov al, 1
jmp 0x140019bba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140019b6b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140019bb8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001862c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140019bb8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140019bb8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140019bb8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140019bba
xor al, al
add rsp, 0x20
pop rbx
ret