joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800063bb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x180005eda
rol rcx, 0x10
test cx, 0xffff
jne 0x180005ed6
repz ret
ror rcx, 0x10
jmp 0x180006314
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000ae10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18000af08]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180006399
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18000ae10]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800063bb
mov rax, qword [rsp + 0x88]
mov qword [0x18000af08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000aea8], rax
mov rax, qword [0x18000af08]
mov qword [0x18000ad80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000ae90], rax
mov dword [0x18000ad70], 0xc0000409
mov dword [0x18000ad74], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180009008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000ae08], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180007330]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000ae08], 0
jne 0x180006442
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180015370
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x2f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [0x180027ef0]
xor edx, edx
mov r8d, 0x248
call fcn.180006130
xor r9d, r9d
lea rax, [rsp + 0x1d0]
lea edx, [r9 + 5]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x18001545f
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r8d, 3
mov rdx, rbx
mov qword [rsp + 0x30], rax
call fcn.180001970
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x18001544b
lea rdx, str.tkupdate.log
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x18001544b
lea rcx, [rsp + 0x1d0]
xor edx, edx
call fcn.180012aac
test eax, eax
jne 0x18001544b
lea rdx, [0x1800207d4]
lea rcx, [rsp + 0x1d0]
call fcn.180003cb0
mov qword [0x180027ee0], rax
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x18001545f
call fcn.180003184
lea rdx, str.tkupdate_init:__S___s
mov r9, rdi
mov r8, rbx
mov ecx, 0x2b5
call fcn.180017f30
mov rcx, rbx
call fcn.180012a34
lea rcx, [rsp + 0xc0]
mov r8d, 3
mov qword [0x180027ed0], rax
lea rax, [rsp + 0xc8]
mov rdx, rdi
mov qword [rsp + 0xc0], rax
call fcn.180001860
mov rdx, qword [rsp + 0xc0]
cmp word [rdx], 0
jne 0x1800154be
xor r8d, r8d
jmp 0x1800154cd
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800154c2
lea rcx, [0x1800268e0]
call fcn.180001710
mov rcx, qword [rsp + 0xc0]
lea rax, [rsp + 0xc8]
cmp rcx, rax
je 0x1800154f3
call fcn.180003184
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.180002960
mov rbx, qword [rsp + 0x310]
add rsp, 0x2f0
pop rdi
ret
Function at 0x180015520
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov r8, rcx
lea rdx, str.tkupdate_update:__S
mov ecx, 0x28f
call fcn.180017f30
test rbx, rbx
je 0x18001565a
mov eax, 0x30
cmp ax, word [rbx]
je 0x18001565a
mov qword [rsp + 0x298], rdi
xor edi, edi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
call fcn.180015840
test eax, eax
jle 0x180015604
lea rdx, [rsp + 0x38]
lea rcx, [0x180026900]
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.1800015c0
cmp qword [rsp + 0x50], 8
lea rcx, [rsp + 0x38]
cmovae rcx, qword [rsp + 0x38]
lea r8, [0x180027ef0]
mov rdx, r8
nop dword [rax]
movzx eax, word [rcx]
lea rdx, [rdx + 2]
lea rcx, [rcx + 2]
mov word [rdx - 2], ax
test ax, ax
jne 0x1800155d0
mov rdx, rdi
nop word [rax + rax]
movzx eax, word [rsp + rdx + 0x60]
lea rdx, [rdx + 2]
mov word [rdx + r8 + 0x3e], ax
test ax, ax
jne 0x1800155f0
mov rcx, rbx
call fcn.180012a34
test rax, rax
je 0x180015640
lea rcx, [rsp + 0x30]
lea r8, [0x180015e10]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], edi
call fcn.180003878
test rax, rax
je 0x180015640
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x50], 8
mov rdi, qword [rsp + 0x298]
jb 0x18001565a
mov rcx, qword [rsp + 0x38]
call fcn.180002980
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180002960
add rsp, 0x280
pop rbx
ret

Function at 0x180015680
Capabilities:
Create process on windows
Delete registry key

Disassembly:
push rbx
sub rsp, 0x480
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor ebx, ebx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
call fcn.180015840
test eax, eax
jle 0x18001574d
lea r8, [rsp + 0x50]
lea rdx, str.tkupdate_check:_begin_to_execute___S
mov ecx, 0x27f
call fcn.180017f30
lea r8, [rsp + 0x50]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x18001574d
lea r8, [rsp + 0x50]
lea rdx, str.tkupdate_check:_execute_ok___S
mov ecx, 0x284
call fcn.180017f30
mov r8, qword [0x180027ed0]
lea rdx, str.SoftwareToupTek_tkupdate_s
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x260]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp qword [rsp + 0x48], 8
jb 0x18001575f
mov rcx, qword [rsp + 0x30]
call fcn.180002980
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180002960
add rsp, 0x480
pop rbx
ret
Function at 0x180017680
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7fd0]
mov eax, 0x80d0
call fcn.18000c320
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x7fc0], rax
xor r12d, r12d
mov r15, rdx
mov r13d, 1
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov edx, 0x80000000
mov r8d, r13d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1800176ef
xor al, al
jmp 0x1800178a6
mov qword [rsp + 0x8108], rbx
mov qword [rsp + 0x8110], rsi
lea r9, [rsp + 0x40]
lea rdx, [rbp - 0x40]
mov ebx, r12d
mov r8d, 0x8000
mov rcx, rax
mov qword [rsp + 0x8118], rdi
mov esi, r12d
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x5c], 0x10325476
mov dword [rsp + 0x50], 0x67452301
mov dword [rsp + 0x54], 0xefcdab89
mov dword [rsp + 0x58], 0x98badcfe
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001788c
nop word [rax + rax]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x180017853
lea ecx, [rsi + rax*8]
mov r8d, esi
mov edi, eax
shr r8d, 3
lea eax, [rax*8]
mov dword [rsp + 0x60], ecx
and r8d, 0x3f
cmp ecx, eax
jae 0x18001778d
inc ebx
mov eax, edi
shr eax, 0x1d
add ebx, eax
mov dword [rsp + 0x64], ebx
mov ebx, 0x40
sub ebx, r8d
mov edx, ebx
cmp rdi, rdx
jb 0x180017803
mov eax, r8d
mov r8d, edx
lea rcx, [rsp + 0x68]
lea rdx, [rbp - 0x40]
add rcx, rax
call fcn.180002c10
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.180014880
lea ecx, [rbx + 0x3f]
cmp rcx, rdi
jae 0x1800177fe
nop word [rax + rax]
mov eax, ebx
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
add rdx, rax
call fcn.180014880
add ebx, 0x40
lea ecx, [rbx + 0x3f]
cmp rcx, rdi
jb 0x1800177e0
mov r8d, r12d
jmp 0x180017806
mov ebx, r12d
mov eax, ebx
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x68]
sub rdi, rax
add rdx, rax
mov eax, r8d
add rcx, rax
mov r8, rdi
call fcn.180002c10
lea r9, [rsp + 0x40]
lea rdx, [rbp - 0x40]
mov r8d, 0x8000
mov rcx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001788c
mov ebx, dword [rsp + 0x64]
mov esi, dword [rsp + 0x60]
jmp 0x180017760
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.180015150
mov rax, qword [rbp - 0x50]
sub rax, qword [r15]
jne 0x180017872
mov rax, qword [rbp - 0x48]
sub rax, qword [r15 + 8]
xor cl, cl
test rax, rax
movzx ebx, cl
mov rcx, r14
cmove ebx, r13d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
jmp 0x18001788e
xor al, al
mov rsi, qword [rsp + 0x8110]
mov rbx, qword [rsp + 0x8108]
mov rdi, qword [rsp + 0x8118]
mov rcx, qword [rbp + 0x7fc0]
xor rcx, rsp
call fcn.180002960
add rsp, 0x80d0
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180017a40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8, qword [0x180027ed0]
mov rdi, rdx
mov rbx, rcx
lea rdx, str.tkupdate_s
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x801c
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
jne 0x180017abb
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x180017abb
mov eax, 1
jmp 0x180017abd
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180002960
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x180017af0
Capabilities:
Check http status code
Create http request
Delete file
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
mov eax, 0x8050
call fcn.18000c320
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x8040], rax
mov r14, rcx
mov rbp, rdx
xor ebx, ebx
lea rcx, str.tkupdate
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov edi, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
je 0x180017ced
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x8090], rsi
mov dword [rsp + 0x20], 0x84000200
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rsi, rax
test rax, rax
je 0x180017cb2
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
mov edx, 0x20000013
mov rcx, rax
mov dword [rsp + 0x38], 0x194
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x180017ca9
cmp dword [rsp + 0x38], 0xc8
jne 0x180017ca9
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x3c]
mov edx, 0x20000005
mov rcx, rsi
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x180017ca9
cmp dword [rsp + 0x3c], ebx
je 0x180017ca9
lea rdx, [0x180020b14]
mov rcx, rbp
call fcn.1800035ec
mov rdi, rax
test rax, rax
je 0x180017ca9
mov rcx, rax
call fcn.180003d70
mov ecx, eax
call fcn.180002988
mov dword [rsp + 0x30], eax
test eax, eax
je 0x180017c4b
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_InternetSetFilePointer]
cmp dword [rsp + 0x30], eax
je 0x180017c4b
xor edx, edx
mov rcx, rdi
call fcn.180003840
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180017ca9
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x180017ca4
lea rcx, [rsp + 0x40]
mov r8d, eax
mov r9, rdi
mov edx, 1
call fcn.180003f28
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180017c68
jmp 0x180017ca9
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rsi, qword [rsp + 0x8090]
test rdi, rdi
je 0x180017cd0
mov rcx, rdi
call fcn.180004090
test ebx, ebx
je 0x180017ced
lea rdx, str.http_download_file:_ok__file___S__url___S
mov r9, r14
mov r8, rbp
mov ecx, 0x97
call fcn.180017f30
jmp 0x180017d0d
lea rdx, str.http_download_file:_failed__file___S__url___S
mov r9, r14
mov r8, rbp
mov ecx, 0x9b
call fcn.180017f30
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rsp + 0x8040]
xor rcx, rsp
call fcn.180002960
add rsp, 0x8050
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x180017d40
Capabilities:
Check http status code
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r13d, r13d
mov r14, rcx
lea rcx, [0x180020b08]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov edi, r13d
mov r12d, r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
je 0x180017efb
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x20], 0x84000200
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rsi, rax
test rax, rax
je 0x180017ec3
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x90]
mov edx, 0x20000013
mov rcx, rax
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x90], 0x194
mov dword [rsp + 0x88], r13d
mov ebx, r13d
mov dword [rsp + 0x98], 4
mov qword [rsp + 0x20], r13
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x180017eb2
cmp dword [rsp + 0x90], 0xc8
jne 0x180017eb2
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x88]
mov edx, 0x20000005
mov rcx, rsi
mov qword [rsp + 0x20], r13
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x180017eb2
mov qword [rsp + 0x48], rbp
mov ebp, dword [rsp + 0x88]
test ebp, ebp
je 0x180017ead
lea ecx, [rbp + 1]
call fcn.180003208
lea r9, [rsp + 0x30]
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180017ead
nop
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x88]
test edx, edx
jne 0x180017e83
cmp ebx, ecx
je 0x180017ea3
add ebx, edx
lea r9, [rsp + 0x30]
sub ecx, ebx
mov edx, ebx
mov r8d, ecx
mov rcx, rsi
add rdx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180017e70
jmp 0x180017ead
mov byte [rcx + rdi], r12b
mov r12d, 1
mov rbp, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbx, qword [rsp + 0x80]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rsi, qword [rsp + 0x40]
test r12d, r12d
je 0x180017efb
lea rdx, str.get_http_file:_ok__url___S
mov r8, r14
mov ecx, 0x4b
call fcn.180017f30
mov rax, rdi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, str.get_http_file:_failed__url___S
mov r8, r14
mov ecx, 0x4e
call fcn.180017f30
mov rcx, rdi
call fcn.180003184
mov rax, r13
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180017f30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x2040
call fcn.18000c320
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov ebx, ecx
lea r8, [rsp + 0x2060]
lea rcx, [rsp + 0x20]
call fcn.180002be8
lea r9, [rsp + 0x20]
lea rdx, str.__d_:__s_n
lea rcx, [rsp + 0x1020]
mov r8d, ebx
call fcn.180002a90
lea rcx, [rsp + 0x1020]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, qword [0x180027ee0]
test rdx, rdx
je 0x180017fc2
lea rcx, [rsp + 0x1020]
call fcn.1800032c0
mov rcx, qword [0x180027ee0]
call fcn.1800034c0
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.180002960
add rsp, 0x2040
pop rbx
ret
Function at 0x1400d1310
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400d1338
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400d135e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400d1360
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400d13b9
test ecx, ecx
jle 0x1400d1399
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400d13b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400d13b9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400d13e0
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 0x1400d1402
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400d1418
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 0x1400d1434
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400d1436
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400d1472
mov qword [rsp + 0x20], rdi
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]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400d150e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400d14ad
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400d14ee
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400d150e
cmp rbx, rax
ja 0x1400d14c0
test rbx, rbx
je 0x1400d150e
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]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400d1970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400db040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400d199d
xor eax, eax
jmp 0x1400d1b09
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400d19d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400d19d7
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 0x1400d1b09
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400d1afc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400d1a1a
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 0x1400d1a45
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 0x1400d1b01
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 0x1400d1ab4
sub eax, 1
je 0x1400d1ab4
cmp eax, 2
jne 0x1400d1afc
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 0x1400d1b01
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400d1ae2
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 0x1400d1afc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400d1b01
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400d3e70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400d1f50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400db040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400d2023
cmp byte [rcx + 0x71], 0
je 0x1400d2023
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400d201f
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 0x1400d1fe4
sub eax, 1
je 0x1400d1fe8
cmp eax, 2
jne 0x1400d201f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d3e70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400d2016
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 0x1400d201f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400d1fcc
xor al, al
jmp 0x1400d1fcc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d3e70
add rsp, 0x60
pop rbx
ret
Function at 0x1400d47f0
Capabilities:
Parse pe header

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