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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000a4fd
xor eax, eax
jmp 0x14000a669
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a537
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000a537
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000a669
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000a65c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a57a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000a5a5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a661
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000a614
sub eax, 1
je 0x14000a614
cmp eax, 2
jne 0x14000a65c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a661
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000a642
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000a65c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a661
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000fa30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000aab0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000ab83
cmp byte [rcx + 0x71], 0
je 0x14000ab83
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000ab7f
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 0x14000ab44
sub eax, 1
je 0x14000ab48
cmp eax, 2
jne 0x14000ab7f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000fa30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000ab76
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 0x14000ab7f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000ab2c
xor al, al
jmp 0x14000ab2c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000fa30
add rsp, 0x60
pop rbx
ret
Function at 0x14000f190
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000f1ca
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000f1cf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000f218
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140012660]
cmp byte [rcx + rax], 0
je 0x14000f218
dec r8
sub rdx, 1
jne 0x14000f1fe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000f808
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14000f230
mov ebx, eax
test eax, eax
jne 0x14000f838
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14000f89b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000f892
test al, 0x10
je 0x14000f892
bt eax, 0xa
jae 0x14000f88b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14000f8ac
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14000f887
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14000f887
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14000f892
and dword [rsp + 0x3c], 0
jmp 0x14000f897
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400105a4
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140154b50
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, [0x1401fc969]
call fcn.14008551e
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140154ba7
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 0x140154cb3
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 0x140154c4c
cmp qword [rbp + 0x28], 0
jle 0x140154c4c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140154bec
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.140084fce
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 0x140154ca2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140154ca2
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 0x140080e10
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140129040
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1401fc57a]
call fcn.14008551e
mov qword [rbp + 8], 0
jmp 0x14012907e
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1401290d4
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x140129073
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140082238
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
jmp 0x1400f5e30
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x1401fbc19]
call fcn.14008551e
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1400f5e60
jmp 0x1400f5ff1
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1a0]
mov ecx, dword [rcx + 0x154]
mov eax, dword [rax + 0x158]
sub eax, ecx
cdqe
lea rax, [rax + rax + 2]
mov qword [rbp + 8], rax
mov rdx, qword [rbp + 8]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400f5eac
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1400f5ff1
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400f5ed6
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400f5ff1
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1a0]
mov ecx, dword [rcx + 0x154]
mov eax, dword [rax + 0x158]
sub eax, ecx
cdqe
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x170]
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1a0]
mov ecx, dword [rcx + 0x154]
mov eax, dword [rax + 0x158]
sub eax, ecx
cdqe
mov rcx, qword [rbp + 0x1a0]
movsxd rcx, dword [rcx + 0x154]
mov r9, rax
mov r8, rcx
lea rdx, [rbp + 0x128]
mov rcx, qword [rbp + 0x160]
call fcn.140081270
mov qword [rbp + 0x168], rax
mov rcx, qword [rbp + 0x168]
call fcn.140081c16
mov qword [rbp + 0x170], rax
xor edx, edx
mov rax, qword [rbp + 8]
mov ecx, 2
div rcx
mov r9, qword [rbp + 0x158]
mov r8, qword [rbp + 0x170]
mov rdx, rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_wcsncpy_s]
lea rcx, [rbp + 0x128]
call fcn.14008488a
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1a0]
mov ecx, dword [rcx + 0x154]
mov eax, dword [rax + 0x158]
sub eax, ecx
cdqe
xor ecx, ecx
mov rdx, qword [rbp + 0x48]
mov word [rdx + rax*2], cx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rbp + 0x28]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x140082f03
Capabilities:
Terminate process

Disassembly:
jmp 0x140180ff0
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 0x140083601
Capabilities:
Get geographical location

Disassembly:
jmp 0x14017a240
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 0x14017a27d
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.1400854e2
add rsp, 0x58
ret
Function at 0x140083a4d
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401803c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401803e0
xor al, al
jmp 0x140180461
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401803f3
xor al, al
jmp 0x140180461
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 0x14018041d
xor al, al
jmp 0x140180461
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140180431
xor al, al
jmp 0x140180461
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140180443
xor al, al
jmp 0x140180461
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14018045f
xor al, al
jmp 0x140180461
mov al, 1
add rsp, 0x38
ret
Function at 0x140084a9c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
jmp 0x1400f75c0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x1401fbc19]
call fcn.14008551e
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x19]
test eax, eax
je 0x1400f75f3
jmp 0x1400f7810
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x1d0]
test eax, eax
jne 0x1400f760a
jmp 0x1400f7810
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1a0]
mov ecx, dword [rcx + 0x154]
cmp dword [rax + 0x14c], ecx
jne 0x1400f7647
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1a0]
mov ecx, dword [rcx + 0x158]
cmp dword [rax + 0x14c], ecx
jne 0x1400f7647
jmp 0x1400f7810
mov ecx, 0x11
call fcn.14008005f
movzx eax, al
test eax, eax
je 0x1400f7669
mov ecx, 0x43
call fcn.14008005f
movzx eax, al
test eax, eax
jne 0x1400f766e
jmp 0x1400f7810
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1400f767f
jmp 0x1400f7810
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1a0]
mov ecx, dword [rcx + 0x154]
mov eax, dword [rax + 0x158]
sub eax, ecx
cdqe
lea rax, [rax + rax + 2]
mov qword [rbp + 8], rax
mov rdx, qword [rbp + 8]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400f76cb
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1400f7810
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400f76f5
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400f7810
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1a0]
mov ecx, dword [rcx + 0x154]
mov eax, dword [rax + 0x158]
sub eax, ecx
cdqe
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x170]
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1a0]
mov ecx, dword [rcx + 0x154]
mov eax, dword [rax + 0x158]
sub eax, ecx
cdqe
mov rcx, qword [rbp + 0x1a0]
movsxd rcx, dword [rcx + 0x154]
mov r9, rax
mov r8, rcx
lea rdx, [rbp + 0x128]
mov rcx, qword [rbp + 0x160]
call fcn.140081270
mov qword [rbp + 0x168], rax
mov rcx, qword [rbp + 0x168]
call fcn.140081c16
mov qword [rbp + 0x170], rax
xor edx, edx
mov rax, qword [rbp + 8]
mov ecx, 2
div rcx
mov r9, qword [rbp + 0x158]
mov r8, qword [rbp + 0x170]
mov rdx, rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_wcsncpy_s]
lea rcx, [rbp + 0x128]
call fcn.14008488a
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1a0]
mov ecx, dword [rcx + 0x154]
mov eax, dword [rax + 0x158]
sub eax, ecx
cdqe
xor ecx, ecx
mov rdx, qword [rbp + 0x48]
mov word [rdx + rax*2], cx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rbp + 0x28]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1400853f7
Capabilities:
Write file on windows

Disassembly:
jmp 0x140149810
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 [0x1401dd080]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1401fc969]
call fcn.14008551e
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x140149876
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14014987d
mov al, 1
jmp 0x1401499ed
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.14008172a
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.14008172a
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.140084317
movzx eax, al
test eax, eax
je 0x1401498e0
xor al, al
jmp 0x1401499ed
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 0x140149953
cmp dword [rbp + 0x160], 1
je 0x14014995e
cmp dword [rbp + 0x160], 3
je 0x1401499dc
jmp 0x1401499eb
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 0x1401499ae
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 0x1401499ae
xor al, al
jmp 0x1401499ed
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1401499c9
mov dword [rbp + 0x154], 1
jmp 0x1401499d3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1401499ed
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1401499ed
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1401aedc0]
call fcn.140084673
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.14008289b
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140085c3f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14017cb60
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rdx, qword [rsp + 0x70]
mov ecx, 0x105
call fcn.1400823aa
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14017cb9f
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
jmp 0x14017cc40
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x14017cbc0
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x14017cbd7
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x34]
jmp 0x14017cc40
mov eax, dword [rsp + 0x24]
and eax, 0x400
test eax, eax
je 0x14017cc2b
mov r9d, 0x2000000
mov r8d, 0x80
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14008298b
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x50]
call fcn.140080b8b
cmp dword [rsp + 0x28], 0
je 0x14017cc2b
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], 0xffffffff
mov rax, qword [rsp + 0x3c]
jmp 0x14017cc40
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x44]
add rsp, 0x68
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400b8720]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400b8730]
mov dword [rax], 1
mov rax, qword [0x1400b8740]
mov dword [rax], 1
mov rax, qword [0x1400b8710]
mov dword [rax], 1
mov rax, qword [0x1400b85c0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400b8700]
mov dword [0x1400dd00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400b86c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400b86a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400b7a00]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067