joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400078d0
Capabilities:
Hash data using fnv

Disassembly:
movzx r9d, byte [r8]
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
mov r10, rdx
xor r9, rax
mov r11, r8
movzx eax, byte [r8 + 1]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 3]
mov r8, qword [0x1400418f8]
imul r9, rcx
xor r9, rax
imul r9, rcx
and r9, qword [0x140041920]
shl r9, 4
add r9, qword [0x140041908]
mov rdx, qword [r9]
mov rax, rdx
cmp rdx, r8
je 0x14000795d
mov rcx, qword [r9 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x140007958
mov ecx, dword [r11]
cmp dword [rax + 0x10], ecx
jne 0x140007962
mov qword [r10], rax
mov rax, r10
ret
mov qword [r10], r8
jmp 0x140007954
mov rcx, r8
jmp 0x140007944
mov rax, qword [rax]
jmp 0x140007938

Function at 0x1400085b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, str.CLSID
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008662
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008653
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140011930
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140008662
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140008673
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
cmp dword [rbp + 0x18], 4
jne 0x140008653
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x140008653
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140008664
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008664
Function at 0x1400086e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x1400415d8], 0
jne 0x140011960
and qword [rbp + 0x18], 0
lea rcx, [rbp + 0x18]
call fcn.1400087b0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x1400415dc]
test eax, eax
je 0x14001196b
lea rcx, [rbp + 0x18]
call fcn.1400087b0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400119a5
and dword [0x1400415dc], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov byte [0x1400415d8], 1
test rcx, rcx
jne 0x1400087a1
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000878f
mov eax, dword [0x1400415dc]
jmp 0x140008791
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008743
cmp dword [rbp + 0x10], ebx
je 0x1400119de
jmp 0x140008743
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008776
cmp dword [rbp + 0x10], ebx
jne 0x140008776
mov ebx, dword [0x1400415dc]
jmp 0x14000877f
Function at 0x140013ee4
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140013f14
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1400140c4
jmp 0x140013f80
cmp byte [0x140042bd0], 0
jne 0x140013f58
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013f48
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140042bc8], rax
jmp 0x140013f4f
mov rax, qword [0x140042bc8]
mov byte [0x140042bd0], 1
jmp 0x140013f5f
mov rax, qword [0x140042bc8]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x140013f79
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x140008ad6.0]
jmp 0x140013f80
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400140c4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14001412b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001413f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001413f
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x140008ad6.0]
jmp 0x140014144
cmp dword [rcx + 8], 0
je 0x14001413f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140014144
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140014930
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x50
xor edi, edi
lea rdx, [0x1400314ec]
cmp word [rcx], di
cmovne rdx, rcx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400149a2
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea ecx, [rdi + 1]
mov dword [rsp + 0x30], edi
lea edx, [rdi + 4]
mov word [rsp + 0x28], cx
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rdi
mov r9d, 0x60005330
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400168d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
cmp qword [rcx + 0x20], 1
mov r13d, r8d
mov r15d, edx
mov rsi, rcx
ja 0x140016911
mov rcx, qword [0x140041700]
call fcn.140017964
test al, al
jne 0x140016911
xor bpl, bpl
jmp 0x140016914
mov bpl, 1
mov rdi, qword [rsi + 0x18]
mov rbx, qword [rdi]
test r15d, r15d
jne 0x140016946
cmp rbx, qword [rsi + 0x18]
je 0x140016a6d
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140016941
xor r9d, r9d
mov r8b, bpl
mov edx, r13d
call fcn.140018c60
mov rbx, qword [rbx]
jmp 0x140016920
xor r12b, r12b
cmp rbx, rdi
je 0x140016994
mov rax, qword [rbx + 0x10]
cmp r15d, dword [rax + 0x20]
je 0x14001695d
mov rbx, qword [rbx]
jmp 0x140016949
mov r14, qword [rax + 0x90]
mov r12b, 1
test r14, r14
je 0x140016982
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, r14
cmp rax, 0x1388
jbe 0x140016982
mov rdi, rbx
jmp 0x140016994
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
mov r8b, bpl
mov edx, r13d
call fcn.140018c60
mov rbx, qword [rsi + 0x18]
cmp rdi, rbx
jne 0x1400169c7
test r12b, r12b
jne 0x140016a6d
mov rbx, qword [rbx]
cmp rbx, qword [rsi + 0x18]
je 0x140016a6d
mov rcx, qword [rbx + 0x10]
mov r9b, 1
mov r8b, bpl
mov edx, r13d
call fcn.140018c60
jmp 0x1400169a6
mov rbx, qword [rbx]
cmp rbx, qword [rsi + 0x18]
je 0x1400169ea
mov rcx, qword [rbx + 0x10]
cmp r15d, dword [rcx + 0x20]
je 0x1400169c7
mov r9b, 1
mov r8b, bpl
mov edx, r13d
call fcn.140018c60
jmp 0x1400169c7
mov rcx, qword [rdi + 0x10]
mov r9b, 1
mov r8b, bpl
mov edx, 0x80043074
call fcn.140018c60
lea rcx, [rsi + 0x60]
xor edx, edx
call fcn.1400022a8
lea rdx, [0x140041840]
lea rcx, [rsp + 0x20]
call fcn.1400153c4
mov rcx, qword [0x1400416f0]
test rcx, rcx
je 0x140016a34
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and qword [0x1400416f0], 0
cmp byte [rsp + 0x28], 0
je 0x140016a46
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 1
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140016a6d
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400173c8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs rcx, 0xcbf29ce484222325
test r8, r8
je 0x1400173f8
movzx eax, byte [r9 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc r9
imul rcx, r10
cmp r9, r8
jb 0x1400173da
mov rax, rcx
ret
Function at 0x1400205b0
Capabilities:
Parse url

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, 0x90
mov rbx, rdx
mov ebp, r8d
xor edx, edx
mov rsi, rcx
lea rcx, [rax - 0x78]
mov r14d, r9d
mov edi, 0x8004307f
lea r8d, [rdx + 0x68]
call sub.VCRUNTIME140.dll_memset
mov eax, 0x824
mov dword [rsp + 0x20], 0x68
mov rcx, rbx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x70], eax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x140020690
mov edx, dword [rsp + 0x34]
lea eax, [rdx - 3]
cmp eax, 1
ja 0x140020690
test ebp, ebp
je 0x14002063d
cmp edx, 4
je 0x14002063d
mov edi, 0x8004307b
jmp 0x140020690
xor edi, edi
test r14d, r14d
je 0x140020690
mov eax, dword [rsi + 0xcc]
mov r9d, dword [rsp + 0x40]
cmp r9d, eax
jne 0x140020676
mov rdx, qword [rsi + 0xc0]
mov r8d, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x140020690
mov r9d, dword [rsp + 0x40]
mov edx, dword [rsp + 0x34]
mov r8, qword [rsp + 0x38]
lea rcx, [rsi - 0x28]
xor edi, edi
call fcn.14000737c
test al, al
mov ecx, 0x8004307c
cmove edi, ecx
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140020cf0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
and qword [rax + 0x18], rbp
lea r12d, [rbp + 1]
mov r14b, r12b
test rdx, rdx
jne 0x140020d2c
mov ebx, 0x80070057
jmp 0x140020ee2
xor ebx, ebx
cmp qword [rdx + 0x10], 0x1b
jne 0x140020d59
mov byte [rsp + 0x78], bl
add rcx, 0xffffffffffffffd8
lea rdx, [rsp + 0x78]
call fcn.140020030
mov ebx, eax
test eax, eax
js 0x140020d59
cmp byte [rsp + 0x78], bpl
je 0x140020d59
xor r14b, r14b
jmp 0x140020dcb
mov ecx, dword [rdi + 8]
sub ecx, 0x100
je 0x140020d8b
sub ecx, r12d
je 0x140020d83
sub ecx, 3
je 0x140020d7b
cmp ecx, r12d
jne 0x140020dcb
mov edx, dword [0x1400416cc]
jmp 0x140020d91
mov edx, dword [0x1400416d4]
jmp 0x140020d91
mov edx, dword [0x1400416c8]
jmp 0x140020d91
mov edx, dword [0x1400416d0]
test edx, edx
je 0x140020dcb
lea rcx, [rsi - 0x28]
cmp dword [rsi + 0x158], ebp
jne 0x140020dab
cmp qword [rsi + 0x30], rbp
jne 0x140020dab
xor eax, eax
jmp 0x140020dae
mov al, r12b
mov byte [rsp + 0x20], al
mov r9, qword [rdi + 0x18]
mov r8, qword [rdi + 0x10]
call fcn.140007748
mov rbp, rax
test rax, rax
jne 0x140020e6b
cmp dword [rsi + 0x158], 4
jne 0x140020de5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b4
je 0x140020e6b
mov eax, dword [rdi + 8]
sub eax, 0x100
cmp eax, r12d
ja 0x140020e0e
cmp qword [rdi + 0x10], 0x1b
jne 0x140020e0e
cmp dword [rsi + 0x158], 0
jne 0x140020e0e
cmp qword [rsi + 0x30], 0
jne 0x140020e0e
test r14b, r14b
jne 0x140020e6b
mov rcx, qword [rsi + 0x60]
test rcx, rcx
je 0x140020e3c
mov rax, qword [rcx]
lea r8, [rsp + 0x80]
lea rdx, [0x14002f5b8]
mov rax, qword [rax]
call qword [case.0x140008ad6.0]
mov ebx, eax
test eax, eax
js 0x140020ee2
cmp qword [rsp + 0x80], 0
jne 0x140020e51
mov ebx, 0x8000ffff
jmp 0x140020ee2
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 0x28]
call qword [case.0x140008ad6.0]
mov ebx, eax
cmp ebx, r12d
jne 0x140020edb
cmp dword [rdi + 8], 0x100
jne 0x140020ea2
mov r8d, 9
cmp qword [rdi + 0x10], r8
jne 0x140020edb
lea rcx, [rsi - 0x28]
mov byte [rsp + 0x20], 0
mov r9, qword [rdi + 0x18]
mov edx, dword [0x1400416e4]
call fcn.140007748
mov rbp, rax
jmp 0x140020edb
cmp dword [rdi + 8], 0x104
jne 0x140020edb
cmp qword [rdi + 0x10], 0x79
jne 0x140020edb
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0x8000
test di, ax
je 0x140020edb
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x140020edb
xor ebp, ebp
xor ebx, ebx
test rbp, rbp
cmovne ebx, r12d
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140020efd
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x140008ad6.0]
nop
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140026608
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400266bd
cmp byte [rcx + 0x71], 0
je 0x1400266bd
mov rax, qword [rcx]
or edx, 0xffffffff
mov rax, qword [rax + 0x18]
call qword [case.0x140008ad6.0]
cmp eax, 0xffffffff
je 0x14002667e
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 0x140026682
sub eax, 1
je 0x140026686
sub eax, 2
je 0x1400266bd
xor al, al
jmp 0x1400266bf
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400266b4
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 0x14002667e
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400266bf
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140009850
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140027510
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rbp - 8], rax
or esi, 0xffffffff
mov r14d, edx
mov rdi, rcx
cmp edx, esi
jne 0x14002754a
xor eax, eax
jmp 0x14002764a
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140027583
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140027583
mov rcx, rdi
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], r14b
mov eax, r14d
jmp 0x14002764a
cmp qword [rdi + 0x80], 0
je 0x140027648
mov rcx, rdi
call fcn.140026b80
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400275be
movsx ecx, r14b
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
cmovne esi, r14d
jmp 0x140027648
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], r14b
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
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
js 0x140027648
cmp eax, 1
jle 0x14002760c
cmp eax, 3
jne 0x140027648
movsx ecx, byte [rbp - 0x40]
jmp 0x1400275a6
mov rbx, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub rbx, rax
je 0x140027637
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x28]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140027648
lea rax, [rbp - 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rbp - 0x30], rax
mov eax, r14d
jne 0x14002764a
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140009850
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140027c50
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140027c81
call 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]
jmp 0x140027cfe
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x140027cf8
test rax, rax
jle 0x140027cc6
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rbp
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
test rbx, rbx
jle 0x140027cf8
cmp qword [rdi + 0x80], 0
je 0x140027cf8
mov rcx, rdi
call fcn.140026b80
mov r9, qword [rdi + 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 rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140027d20
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140027d51
call 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]
jmp 0x140027dc1
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x140027dbb
test rax, rax
jle 0x140027d96
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x140027dbb
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140027dbb
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140015190
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 0x14001126c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012cb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012cd0
xor al, al
jmp 0x140012d51
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012ce3
xor al, al
jmp 0x140012d51
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 0x140012d0d
xor al, al
jmp 0x140012d51
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012d21
xor al, al
jmp 0x140012d51
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d33
xor al, al
jmp 0x140012d51
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012d4f
xor al, al
jmp 0x140012d51
mov al, 1
add rsp, 0x38
ret

Function at 0x140011ab0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011389
movzx eax, al
test eax, eax
jne 0x140011ad0
mov ecx, 7
call fcn.140011307
nop
mov byte [rsp + 0x20], 0
call fcn.14001131b
mov byte [rsp + 0x21], al
cmp dword [0x14001c220], 1
jne 0x140011af4
mov ecx, 7
call fcn.140011307
nop
jmp 0x140011b4c
cmp dword [0x14001c220], 0
jne 0x140011b47
mov dword [0x14001c220], 1
lea rdx, [0x140019660]
lea rcx, [0x140019330]
call fcn.14001119a
test eax, eax
je 0x140011b28
mov eax, 0xff
jmp 0x140011c51
lea rdx, [0x140019220]
lea rcx, [section..rdata]
call fcn.140011311
mov dword [0x14001c220], 2
jmp 0x140011b4c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400112f8
call fcn.14001128f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140011ba9
mov rcx, qword [rsp + 0x30]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140011ba9
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 [0x140022020]
nop
call fcn.1400112c1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140011bdd
mov rcx, qword [rsp + 0x38]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140011bdd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011348
nop
call fcn.140011d00
mov dword [rsp + 0x28], eax
call fcn.14001126c
movzx eax, al
test eax, eax
jne 0x140011bfc
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140011c0b
call fcn.140011352
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x140011c51
add rsp, 0x68
ret