joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140081408
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
lea rcx, [0x1400db9d0]
mov r14d, r9d
mov rsi, r8
mov rdi, rdx
call fcn.140002678
movsxd rcx, eax
mov rax, qword [0x1400dba70]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp rsi, rdi
jne 0x14008148c
cmp qword [rbx + 0x2d0], 0
je 0x1400814fa
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
and qword [rsp + 0x28], 0
mov rcx, qword [rbx + 0x2d0]
mov qword [rsp + 0x20], rdi
mov r8d, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
xor edx, edx
call qword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x14008151c
lea rcx, [0x1400db9d0]
mov rdx, rsi
call fcn.1400028d4
cmp eax, 0xffffffff
je 0x1400814fa
movsxd rbp, eax
mov rax, qword [0x1400dba98]
mov rcx, qword [rax + rbp*8]
mov rdx, qword [rcx]
mov cl, byte [rdx + 0xfc]
lea eax, [rcx - 0xe]
cmp al, 2
jbe 0x1400814fa
cmp cl, 0x13
je 0x1400814fa
cmp qword [rdx + 0x18], 0
je 0x1400814fa
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [0x1400dba98]
and qword [rsp + 0x28], 0
mov rcx, qword [rax + rbp*8]
mov rax, qword [rbx]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x18]
jmp 0x140081475
movzx r9d, word [rsp + 0x70]
movzx eax, r14w
mov r8, rsi
shl r9d, 0x10
mov edx, 0x7b
mov rcx, rdi
or r9, rax
call qword [sym.imp.USER32.dll_DefDlgProcW]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
xor rcx, rcx
mov rax, qword gs:[rcx + 0x60]
mov rax, qword [rax + 0x18]
mov rsi, qword [rax + 0x20]
lodsq rax, qword [rsi]
mov rbx, qword [rax + 0x20]
mov qword [section..data], rbx
xchg rsi, rax
lodsq rax, qword [rsi]
mov rbx, qword [rax + 0x20]
mov qword [0x403008], rbx
call fcn.00401125
call fcn.00401158
ret
Function at 0x1400022c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400022ed
xor eax, eax
jmp 0x140002459
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002327
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002327
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 0x140002459
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000244c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000236a
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 0x140002395
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 0x140002451
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 0x140002404
sub eax, 1
je 0x140002404
cmp eax, 2
jne 0x14000244c
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 0x140002451
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002432
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 0x14000244c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002451
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400031f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002790
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002863
cmp byte [rcx + 0x71], 0
je 0x140002863
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000285f
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 0x140002824
sub eax, 1
je 0x140002828
cmp eax, 2
jne 0x14000285f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400031f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002856
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 0x14000285f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000280c
xor al, al
jmp 0x14000280c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400031f0
add rsp, 0x60
pop rbx
ret

Function at 0x140003b84
Capabilities:
Parse pe header

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

Disassembly:
mov r8d, ecx
mov r9d, ecx
xor ecx, ecx
and r8d, 0xe0000000
cmp r8d, 0xe0000000
mov eax, 0x40
cmovne eax, ecx
mov edx, eax
bts edx, 7
cmp r8d, 0xa0000000
cmovne edx, eax
mov eax, edx
or eax, 0x20
cmp r8d, 0x60000000
cmovne eax, edx
mov ecx, eax
or ecx, 0x10
cmp r8d, 0x20000000
cmovne ecx, eax
mov eax, ecx
or eax, 4
cmp r8d, 0xc0000000
cmovne eax, ecx
mov ecx, eax
or ecx, 8
cmp r8d, 0x80000000
cmovne ecx, eax
mov eax, ecx
or eax, 2
cmp r8d, 0x40000000
cmovne eax, ecx
mov ecx, eax
or ecx, 1
test r8d, r8d
cmovne ecx, eax
mov eax, ecx
bts eax, 9
bt r9d, 0x1a
cmovae eax, ecx
ret
Function at 0x140002a10
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x140002a4a
xor eax, eax
lea r8, [0x1400029b0]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x30
pop rbx
ret

Function at 0x140003130
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea r8, [rdx + 2]
mov rdi, rdx
movabs rax, 0xaaaaaaaaaaaaaaab
mul r8
mov rcx, rdx
shr rcx, 1
shl rcx, 2
cmp rcx, rdi
jb 0x140003284
mov rax, 0xffffffffffffffff
add rcx, 1
cmovb rcx, rax
lea edx, [rax + 3]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r10, rax
test rax, rax
je 0x140003284
mov qword [rsp + 0x30], rsi
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea r11, [rbx + rdi]
mov r9, rax
cmp rdi, 3
jl 0x140003210
movzx ecx, byte [rbx]
sub rdi, 3
movzx edx, byte [rbx + 2]
mov eax, ecx
movzx r8d, byte [rbx + 1]
and ecx, 3
shr rax, 2
add rbx, 3
shl rcx, 4
movzx eax, word [rsi + rax*2]
mov word [r9], ax
mov eax, r8d
shr rax, 4
and r8d, 0xf
or rax, rcx
shl r8d, 2
mov ecx, r8d
movzx eax, word [rsi + rax*2]
mov word [r9 + 2], ax
mov eax, edx
shr rax, 6
and edx, 0x3f
or rcx, rax
movzx eax, word [rsi + rcx*2]
mov word [r9 + 4], ax
movzx eax, word [rsi + rdx*2]
mov word [r9 + 6], ax
add r9, 8
cmp rdi, 3
jge 0x1400031a1
sub r11, rbx
je 0x140003271
movzx edx, byte [rbx]
mov r8d, 0x3d
mov eax, edx
and edx, 3
shr rax, 2
movzx eax, word [rsi + rax*2]
mov word [r9], ax
cmp r11, 1
jne 0x140003243
shl rdx, 5
movzx eax, r8w
movzx ecx, word [rdx + rsi]
jmp 0x140003262
movzx ecx, byte [rbx + 1]
mov eax, ecx
shl rdx, 4
and eax, 0xf
shr rcx, 4
shl eax, 2
or rcx, rdx
movzx eax, word [rsi + rax*2]
movzx ecx, word [rsi + rcx*2]
mov word [r9 + 2], cx
mov word [r9 + 4], ax
mov word [r9 + 6], r8w
mov rsi, qword [rsp + 0x30]
mov rax, r10
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140003840
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
xor edx, edx
mov rbx, rcx
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140003896
mov edx, dword [rbx + 0x18]
lea rax, [rbx + 8]
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
setne dil
test eax, eax
jne 0x1400039d8
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x48], rsi
test rcx, rcx
je 0x1400038b5
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbx + 0x10], rbp
mov rcx, qword [rbx + 8]
lea rsi, [rbx + 8]
test rcx, rcx
je 0x1400038cb
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsi], rbp
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400038de
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rbx], rbp
mov r9d, 1
mov dword [rsp + 0x20], ebp
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000391f
mov edx, dword [rbx + 0x18]
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
setne dil
test eax, eax
jne 0x1400039ce
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140003932
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbx + 0x10], rbp
mov rcx, qword [rsi]
test rcx, rcx
je 0x140003943
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsi], rbp
mov rcx, qword [rbx]
test rcx, rcx
je 0x140003956
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rbx], rbp
mov r9d, 1
mov dword [rsp + 0x20], 8
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140003997
mov edx, dword [rbx + 0x18]
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
setne dil
test eax, eax
jne 0x1400039ce
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400039aa
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbx + 0x10], rbp
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400039bb
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsi], rbp
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400039ce
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rbx], rbp
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
movzx eax, dil
add rsp, 0x30
pop rdi
ret
Function at 0x140004d50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
xor ebx, ebx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov edi, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x18b
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x140004e8f
nop word [rax + rax]
movsxd rsi, edi
xor r9d, r9d
mov r8, rsi
mov edx, 0x187
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140004e70
xor r9d, r9d
mov r8, rsi
mov edx, 0x199
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
or ebx, 1
mov dword [rsp + 0x38], ebx
mov r8, qword [rsi + 0x28]
mov rcx, qword [rsi + 8]
mov rdx, qword [rcx]
mov qword [rsp + 0x28], rdx
lea rcx, [rsp + 0x30]
test r8, r8
je 0x140004e27
mov rax, qword [rsi + 0x20]
mov r9, qword [rax]
mov r8, qword [r8]
lea rdx, str._s_s_llu_s
jmp 0x140004e3c
lea r9, str._md5_256kb__
lea r8, str._md5_file__
lea rdx, str._s_s_llu_s_r_n
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
mov r8, qword [rsp + 0x30]
lea rdx, [0x14000d200]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CPane::AllocElements]
and ebx, 0xfffffffe
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
inc edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x18b
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp edi, eax
jl 0x140004db0
mov rsi, qword [rsp + 0x40]
mov eax, dword [rsi - 0x10]
inc eax
movsxd rdi, eax
add rdi, rdi
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140004f0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x140004ece
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140004f0c
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140004f0c
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rbx
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400080a0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140005760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140005790
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400057b8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400057ba
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005813
test ecx, ecx
jle 0x1400057f3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140005813
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005813
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub al, 0xef
mov ch, 0xd8
push rdx
push rcx
std
test dword [rcx], edx
mov dword [rdx + 0x58a71f6b], esp
call 0xfefc99a1
in al, 0xee
add edx, dword [rsi + 0x776863c5]
wait
invalid
Function at 0x140005840
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005862
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140005871
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005894
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005896
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x1400058d0
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140005977
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14000590b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140005951
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140005990
cmp rbx, rax
ja 0x140005920
mov r8, rdi
test rdi, rdi
je 0x140005977
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x14000597a
jge 0x14001bcd9
enter 0xffffffffffffd7b4, 0x6c
xlatb
invalid
adc byte [rsi + 9], bh
out dx, eax
xor ecx, 0xc653ae23
insb byte [rdi], dx
jo 0x14001bca1
jl 0x14001bd4c
xchg r8, rax
imul edi, dword [rcx], 0x7f1b8a42
xor bl, byte [rdi + 0x74d9250b]
in al, dx
invalid
cmp dword [rdx - 0x76], eax
sbb edi, dword [rdi + 0x32]
lahf
or esp, dword [0xcfee31bf]
jmp 0x14001bd1c
invalid
invalid
Function at 0x140005d90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005dbd
xor eax, eax
jmp 0x140005f12
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140005de8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140005de8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140005f12
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005f05
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140005e2b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140005e56
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 0x140005f0a
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 0x140005ec5
sub eax, 1
je 0x140005ec5
cmp eax, 2
jne 0x140005f05
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 0x140005f0a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005ef3
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 0x140005f05
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140005f0a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400080a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400063d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400064a3
cmp byte [rcx + 0x71], 0
je 0x1400064a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000649f
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 0x140006464
sub eax, 1
je 0x140006468
cmp eax, 2
jne 0x14000649f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400080a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006496
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 0x14000649f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000644c
xor al, al
jmp 0x14000644c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400080a0
add rsp, 0x60
pop rbx
ret
Function at 0x18000ead8
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18000eaf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000eaf2
xor eax, eax
test eax, eax
je 0x18000eb02
mov ecx, eax
call fcn.18000781c
or eax, 0xffffffff
jmp 0x18000eb04
xor eax, eax
add rsp, 0x28
ret