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

Disassembly:
jmp 0x1400330a0
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, [0x1400810f9]
call fcn.14001b419
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400330f8
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 0x14003320a
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 0x1400331a3
cmp qword [rbp + 0x28], 0
jle 0x1400331a3
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140033141
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.14001b2ca
nop
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]
nop
cmp qword [rbp + 0x130], 0
jle 0x1400331f9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400331f9
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 0x14001a5a0
Capabilities:
Get common file path

Disassembly:
jmp 0x14003fda0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x140074f80]
xor rax, rbp
mov qword [rbp + 0x408], rax
mov dword [rbp + 0x3f4], 0
lea rcx, [0x14008159d]
call fcn.14001b419
nop
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
je 0x14003fe2e
cmp dword [rbp + 0x234], 0x105
jbe 0x14003fe7d
lea rdx, str.____Failed_to_get_temp_path
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001aa23
lea rdx, [0x14001a9b0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
lea rdx, [0x140063aec]
mov rcx, qword [rbp + 0x430]
call fcn.14001a690
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
jmp 0x14003fef0
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
movzx eax, word [rbp + rax*2 + 0xe]
cmp eax, 0x5c
jne 0x14003feca
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0x20a
jae 0x14003feb6
jmp 0x14003febc
call fcn.14001ae65
nop
xor eax, eax
mov rcx, qword [rbp + 0x3d8]
mov word [rbp + rcx + 0x10], ax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x430]
call fcn.14001a690
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140068480]
call fcn.14001b0a4
mov rax, rdi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.14001a997
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret

Function at 0x14001ab22
Capabilities:
Terminate process

Disassembly:
jmp 0x14004a1e0
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]
nop
add rsp, 0x28
ret
Function at 0x14001ab54
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14003fc20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x14008159d]
call fcn.14001b419
nop
mov rcx, qword [rbp + 0x180]
call fcn.14001a8d4
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x188]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
jmp 0x14003fc9c
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x64], eax
jae 0x14003fd44
mov eax, dword [rbp + 0x64]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x180]
mov rcx, rax
call fcn.14001a762
test eax, eax
jne 0x14003fd3f
mov rax, qword [rbp + 0x88]
mov rcx, rax
call fcn.14001a8d4
cmp qword [rbp + 8], rax
jne 0x14003fd3f
mov rax, qword [rbp + 0x88]
cmp dword [rax + 0xc], 0
jne 0x14003fd09
xor eax, eax
jmp 0x14003fd46
cmp qword [rbp + 0x190], 0
je 0x14003fd26
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
jmp 0x14003fd46
jmp 0x14003fc94
xor eax, eax
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x14001adca
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004ca50
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004ca70
xor al, al
jmp 0x14004caf1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14004ca83
xor al, al
jmp 0x14004caf1
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 0x14004caad
xor al, al
jmp 0x14004caf1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14004cac1
xor al, al
jmp 0x14004caf1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14004cad3
xor al, al
jmp 0x14004caf1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14004caef
xor al, al
jmp 0x14004caf1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001b1d0
Capabilities:
Parse pe header

Disassembly:
jmp 0x14003b2c0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140081342]
call fcn.14001b419
nop
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14003b2fd
xor eax, eax
jmp 0x14003b32a
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x14003b326
xor eax, eax
jmp 0x14003b32a
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14001b3c9
Capabilities:
Write file on windows

Disassembly:
jmp 0x14002e390
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140074f80]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400810f9]
call fcn.14001b419
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14002e3f7
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002e3fe
mov al, 1
jmp 0x14002e54e
call fcn.14001a5b4
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.14001a5b4
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14001afcd
movzx eax, al
test eax, eax
je 0x14002e44f
xor al, al
jmp 0x14002e54e
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
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 + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14002e4b4
cmp dword [rbp + 0x154], 1
je 0x14002e4bf
cmp dword [rbp + 0x154], 3
je 0x14002e53d
jmp 0x14002e54c
mov rax, qword [rbp + 0x190]
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 0x14002e50f
mov rax, qword [rbp + 0x190]
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 0x14002e50f
xor al, al
jmp 0x14002e54e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002e52a
mov dword [rbp + 0x154], 1
jmp 0x14002e534
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14002e54e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14002e54e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400624a0]
call fcn.14001b0a4
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001a997
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14004a890
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001b4a0
movzx eax, al
test eax, eax
jne 0x14004a8b0
mov ecx, 7
call fcn.14001b0c2
nop
mov byte [rsp + 0x20], 0
call fcn.14001b121
mov byte [rsp + 0x21], al
cmp dword [0x140075fd8], 1
jne 0x14004a8d4
mov ecx, 7
call fcn.14001b0c2
nop
jmp 0x14004a92c
cmp dword [0x140075fd8], 0
jne 0x14004a927
mov dword [0x140075fd8], 1
lea rdx, [0x140055770]
lea rcx, [0x140055440]
call fcn.14001a95b
test eax, eax
je 0x14004a908
mov eax, 0xff
jmp 0x14004aa31
lea rdx, [0x140055330]
lea rcx, [section..rdata]
call fcn.14001b0fe
mov dword [0x140075fd8], 2
jmp 0x14004a92c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001b090
call fcn.14001ae47
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14004a989
mov rcx, qword [rsp + 0x30]
call fcn.14001a78a
movzx eax, al
test eax, eax
je 0x14004a989
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140083020]
nop
call fcn.14001af4b
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14004a9bd
mov rcx, qword [rsp + 0x38]
call fcn.14001a78a
movzx eax, al
test eax, eax
je 0x14004a9bd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001b36a
nop
call fcn.14004aae0
mov dword [rsp + 0x28], eax
call fcn.14001adca
movzx eax, al
test eax, eax
jne 0x14004a9dc
mov ecx, dword [rsp + 0x28]
call fcn.14001a190
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14004a9eb
call fcn.14001b3a6
nop
xor edx, edx
mov cl, 1
call fcn.14001a721
mov eax, dword [rsp + 0x28]
jmp 0x14004aa31
add rsp, 0x68
ret
Function at 0x100efeaf0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x100efeafd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100efeb0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100efeaf5
lea eax, [rcx + 1]
jmp 0x100efeb1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x100efeb2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100efeb14
sub eax, 3
jb 0x100efeb4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100efeb9d
sar eax, 1
movsxd rbp, eax
jb 0x100efeb84
jmp 0x100efeb5c
add ebx, ebx
jne 0x100efeb5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100efeb84
inc ecx
add ebx, ebx
jne 0x100efeb6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100efeb84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100efeb7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100efeb6c
add ecx, 2
jmp 0x100efeb89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.100efeab2
jmp 0x100efeafd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xefa000]
mov eax, dword [rdi]
or eax, eax
je 0x100efebf9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf1486c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x100efeba9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x100efebf3
mov qword [rbx], rax
add rbx, 8
jmp 0x100efebc9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.100efec7c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100efec7c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100efec6c
sub rsp, 0xffffffffffffff80
jmp 0x100003210
Function at 0x140001d44
Capabilities:
Parse pe header

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

Function at 0x1400049f4
Capabilities:
Parse pe header

Disassembly:
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 0x140004a63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004a63
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004a63
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004a63
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004a63
cmp dword [rcx + 0x84], 0xe
jbe 0x140004a63
cmp dword [rcx + 0xf8], 0
je 0x140004a63
mov ecx, ebx
call fcn.140004b14
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.1400048f0
nop
cmp dword [rbp + 0x20], 0
je 0x140004ab1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004abc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400049f4

Function at 0x140004bf8
Capabilities:
Parse pe header

Disassembly:
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 0x140004a63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004a63
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004a63
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004a63
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004a63
cmp dword [rcx + 0x84], 0xe
jbe 0x140004a63
cmp dword [rcx + 0xf8], 0
je 0x140004a63
mov ecx, ebx
call fcn.140004b14
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.1400048f0
nop
cmp dword [rbp + 0x20], 0
je 0x140004ab1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004abc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400049f4
Function at 0x140004f40
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.140017b70
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400098e8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140004f8f
mov rax, rbp
jmp 0x140005097
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 + 0x25670]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140009d98
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x25670]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140005093
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 0x140005093
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140009d98
test rax, rax
js 0x140005093
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140005093
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140005085
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140005085
cmp byte [rcx], 0xd
jne 0x14000506b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14000507a
cmp byte [rcx + 1], 0xa
jne 0x14000507a
inc rcx
jmp 0x14000507a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x24320]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14000504d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140005097
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140001360
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 0x14000a51c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140025670]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14000a573
cmp word [rdx], r13w
jne 0x14000a573
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14000a578
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14000a69d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14000a6be
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14000a5b1
mov rdx, r9
mov word [rbx], cx
jmp 0x14000a5d8
cmp r9, r8
jae 0x14000a5e8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14000a592
jmp 0x14000a69d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000a692
cmp dword [rsp + 0x80], esi
je 0x14000a692
lea r8, [0x140025670]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14000a66a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14000a63a
mov word [rbx], r13w
jmp 0x14000a69a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14000a647
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14000a69a
cmp word [rsp + 0x70], r13w
jne 0x14000a677
cmp rbx, r14
je 0x14000a634
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140009da0
cmp word [rsp + 0x70], r13w
je 0x14000a69d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140025670]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14000a697
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14000a69d
Function at 0x14000e4d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14000e4e6
mov al, 1
jmp 0x14000e546
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14000e4f7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14000e544
mov ecx, dword [rcx + 0x18]
nop
call fcn.140010f28
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000e544
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000e544
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000e544
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14000e546
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140010524
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 0x140010554
xor eax, eax
jmp 0x140010617
mov rbp, rbx
cmp word [rax], si
je 0x140010579
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140010560
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001055c
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.140010444
movsxd r14, eax
test eax, eax
jne 0x1400105b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001054d
mov rcx, r14
call fcn.14000c008
mov rdi, rax
test rax, rax
jne 0x1400105d0
xor ecx, ecx
call fcn.14000b200
jmp 0x1400105ac
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.140010444
test eax, eax
jne 0x140010601
mov rcx, rdi
call fcn.14000b200
jmp 0x14001060b
xor ecx, ecx
call fcn.14000b200
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