joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d1e8
Capabilities:
Connect to http server

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
movzx ebx, r9w
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
mov rax, qword [rsp + 0x90]
mov qword [r11 - 0x38], rax
call fcn.14002cbc4
nop
lea rax, vtable.CHttpConnection.0
mov qword [rdi], rax
call fcn.14000f06c
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14002d251
mov ecx, 0x80004005
call fcn.140001054
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
movzx r8d, bx
mov rdx, rsi
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rsi, rax
mov qword [rdi + 8], rax
test rax, rax
jne 0x14002d2b6
xor edx, edx
mov rcx, qword [rdi + 0x10]
call fcn.14002a61c
int3
mov rbx, qword [rdi + 0x18]
lea rcx, [0x141b23418]
call fcn.140029b08
mov rdx, rsi
lea rcx, [0x141b233e0]
call fcn.14003f638
mov qword [rax], rbx
lea rcx, [0x141b23418]
mov rax, qword [0x141b23418]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x14002d304
Capabilities:
Connect to http server

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov ebp, r9d
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rsp + 0x98]
mov qword [r11 - 0x38], rax
movzx r9d, word [rsp + 0x80]
call fcn.14002cbc4
nop
lea rax, vtable.CHttpConnection.0
mov qword [rdi], rax
call fcn.14000f06c
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14002d375
mov ecx, 0x80004005
call fcn.140001054
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 3
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x88]
movzx r8d, word [rsp + 0x80]
mov rdx, rbx
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rsi, rax
mov qword [rdi + 8], rax
test rax, rax
jne 0x14002d3de
xor edx, edx
mov rcx, qword [rdi + 0x10]
call fcn.14002a61c
int3
mov rbx, qword [rdi + 0x18]
lea rcx, [0x141b23418]
call fcn.140029b08
mov rdx, rsi
lea rcx, [0x141b233e0]
call fcn.14003f638
mov qword [rax], rbx
lea rcx, [0x141b23418]
mov rax, qword [0x141b23418]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140032714
Capabilities:
Extract resource via kernel32 functions

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 r12
push r13
push r14
sub rsp, 0x20
xor esi, esi
xor ebx, ebx
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
je 0x140032786
call fcn.14001d734
mov r8d, 0xf0
mov rdx, rdi
mov r13, qword [rax + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140032786
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400327d3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov edi, 1
test rsi, rsi
je 0x1400327b3
mov r10, qword [r14]
mov r9, r12
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call qword [r10 + 0x40]
mov edi, eax
test rbx, rbx
je 0x1400327b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp qword [rbp + 0x98], 0
je 0x1400327d1
mov rcx, qword [rbp + 0x98]
mov rdx, r12
mov r8, qword [rcx]
call qword [r8 + 0x140]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x1400363fc
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rdi, r9
mov rsi, r8
mov rbx, rcx
lea rcx, [rsp + 0x40]
call fcn.140001cb4
nop
cmp rbx, 0xffffffff80000000
jne 0x140036488
call fcn.14001c414
cmp eax, 1
jne 0x140036488
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x20]
call fcn.1400049bc
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001a6c
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140036481
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rbx, 0xffffffff80000001
mov r9, rdi
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400364bf
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.oledlg.dll_OleUIBusyA + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400364d4
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rdi, r9
mov esi, r8d
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.140001cb4
nop
cmp rbx, 0xffffffff80000000
jne 0x140036560
call fcn.14001c414
cmp eax, 1
jne 0x140036560
lea r8, [rsp + 0x50]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x30]
call fcn.1400049bc
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001a6c
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140036559
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rbx, 0xffffffff80000001
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, esi
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14003659f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.oledlg.dll_OleUIBusyA + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400365b4
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea rcx, [rsp + 0x40]
call fcn.140001cb4
nop
cmp rbx, 0xffffffff80000000
jne 0x140036630
call fcn.14001c414
cmp eax, 1
jne 0x140036630
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x50]
call fcn.1400049bc
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001a6c
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140036629
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rbx, 0xffffffff80000001
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140036661
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.oledlg.dll_OleUIBusyA + 8]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140047e00
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xa8], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x140047e77
call fcn.140047d8c
mov rsi, rax
test rax, rax
jne 0x140047e33
mov eax, edi
jmp 0x140047e8d
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x140047e2f
mov r9, qword [rcx + 0xd0]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14007c9ec
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14008eb08
nop
cmp dword [0x141b23aa8], 1
je 0x14007c998
mov dword [0x141b23aa4], 1
mov byte [0x141b23aa0], r12b
test ebx, ebx
jne 0x14007c984
mov rcx, qword [0x141b25bd8]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14007c971
mov rcx, qword [0x141b25bd0]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14007c910
call fcn.140080608
cmp qword [rdi], rax
jne 0x14007c910
jmp 0x14007c8f6
cmp rdi, rsi
jb 0x14007c971
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140080608
mov qword [rdi], rax
call rbx
mov rcx, qword [0x141b25bd8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x141b25bd0]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14007c94f
cmp r13, rax
je 0x14007c96f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14007c8f6
lea rdx, [0x1400b5538]
lea rcx, [0x1400b5520]
call fcn.14007c6b0
lea rdx, [0x1400b5548]
lea rcx, [0x1400b5540]
call fcn.14007c6b0
nop
test r12d, r12d
je 0x14007c9a7
mov ecx, 8
call fcn.14008e9e8
test r12d, r12d
jne 0x14007c9d2
mov dword [0x141b23aa8], 1
lea ecx, [r12 + 8]
call fcn.14008e9e8
mov ecx, r15d
call fcn.14007c644
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14007c860

Function at 0x14007c9f8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14007c860
Function at 0x1400826ab
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x141b1e3f8]
jne 0x140078aea
rol rcx, 0x10
test cx, 0xffff
jne 0x140078ae6
repz ret
ror rcx, 0x10
jmp 0x140082604
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x141b23b60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x141b23c58]
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 0x140082689
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, [0x141b23b60]
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 0x1400826ab
mov rax, qword [rsp + 0x88]
mov qword [0x141b23c58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x141b23bf8], rax
mov rax, qword [0x141b23c58]
mov qword [0x141b23ad0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x141b23be0], rax
mov dword [0x141b23ac0], 0xc0000409
mov dword [0x141b23ac4], 1
mov rax, qword [0x141b1e3f8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x141b1e400]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x141b23b58], eax
mov ecx, 1
call fcn.140085df0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400c9f38]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x141b23b58], 0
jne 0x140082732
mov ecx, 1
call fcn.140085df0
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 0x14009de68
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140080608
xor ebx, ebx
mov rdi, rax
cmp qword [0x141b248f8], rbx
jne 0x14009df6e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14009e043
lea rdx, [0x1400ccb28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14009e043
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1400ccb18]
mov rcx, rsi
mov qword [0x141b248f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1400ccb00]
mov rcx, rsi
mov qword [0x141b24900], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x141b24908], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x141b24918], rax
test rax, rax
je 0x14009df65
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x141b24910], rax
jmp 0x14009df75
mov rax, qword [0x141b24910]
jmp 0x14009df7c
mov rax, qword [0x141b24910]
mov r11, qword [0x141b24918]
cmp rax, rdi
je 0x14009dfe4
cmp r11, rdi
je 0x14009dfe4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x141b24918]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14009dfe4
test rax, rax
je 0x14009dfe4
call rsi
test rax, rax
je 0x14009dfde
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14009dfde
test byte [rsp + 0x38], 1
jne 0x14009dfe4
bts ebp, 0x15
jmp 0x14009e022
mov rcx, qword [0x141b24900]
cmp rcx, rdi
je 0x14009e022
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14009e022
call rax
mov rbx, rax
test rax, rax
je 0x14009e022
mov rcx, qword [0x141b24908]
cmp rcx, rdi
je 0x14009e022
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14009e022
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x141b248f8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14009e043
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14009e045
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001e14
Capabilities:
Parse pe header

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

Function at 0x1400091e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008fe0
Function at 0x14000c290
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14000c2a6
mov al, 1
jmp 0x14000c306
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14000c2b7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14000c304
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000fbf8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000c304
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000c304
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000c304
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14000c306
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000f520
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000f550
xor eax, eax
jmp 0x14000f613
mov rbp, rbx
cmp word [rax], si
je 0x14000f575
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000f55c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000f558
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000f440
movsxd r14, eax
test eax, eax
jne 0x14000f5b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000f549
mov rcx, r14
call fcn.14000c52c
mov rdi, rax
test rax, rax
jne 0x14000f5cc
xor ecx, ecx
call fcn.14000a764
jmp 0x14000f5a8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000f440
test eax, eax
jne 0x14000f5fd
mov rcx, rdi
call fcn.14000a764
jmp 0x14000f607
xor ecx, ecx
call fcn.14000a764
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140012228
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140025420]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001227f
cmp word [rdx], r13w
jne 0x14001227f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140012284
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400123a9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400123ca
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400122bd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400122e4
cmp r9, r8
jae 0x1400122f4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001229e
jmp 0x1400123a9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001239e
cmp dword [rsp + 0x80], esi
je 0x14001239e
lea r8, [0x140025420]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140012376
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140012346
mov word [rbx], r13w
jmp 0x1400123a6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140012353
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400123a6
cmp word [rsp + 0x70], r13w
jne 0x140012383
cmp rbx, r14
je 0x140012340
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140011f60
cmp word [rsp + 0x70], r13w
je 0x1400123a9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140025420]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400123a3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400123a9
Function at 0x1400155f0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140011f60
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140011f60
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140015740
cmp rax, 0xffffffffffffffff
je 0x140015740
xor edi, edi
test rbp, rbp
jle 0x1400156eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000da3c
mov rbx, rax
test rax, rax
jne 0x140015678
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400156e1
mov edx, 0x8000
mov ecx, r14d
call fcn.140009260
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14000be90
cmp eax, 0xffffffff
je 0x1400156c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140015688
mov edx, r15d
mov ecx, r14d
call fcn.140009260
jmp 0x1400156e1
cmp byte [rsi + 0x38], dil
je 0x1400156d8
cmp dword [rsi + 0x34], 5
jne 0x1400156d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400156e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000a764
jmp 0x140015754
jns 0x140015754
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140011f60
cmp rax, 0xffffffffffffffff
jne 0x14001570c
cmp byte [rsi + 0x30], dil
je 0x140015754
mov edi, dword [rsi + 0x2c]
jmp 0x140015754
mov ecx, r14d
call fcn.14000fbf8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140015754
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140015754
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001574d
mov eax, dword [rsi + 0x2c]
jmp 0x140015752
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140011f60
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400171c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400171e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400171e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret