joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400659e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x20
xor esi, esi
mov r14, r9
mov qword [r8 + 0x28], rsi
mov rbx, r8
mov rbp, rdx
test rdx, rdx
jne 0x140065a12
lea eax, [rdx + 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
mov rax, qword [rcx]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r15
call qword [rax]
movzx edx, bp
mov r8, r14
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x140065b07
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x140065b07
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140065afe
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov qword [rbx + 0x28], rsi
cmp qword [rbx + 0x20], rdi
jl 0x140065adc
cmp rdi, 1
jne 0x140065a9a
movzx ecx, byte [r14]
mov rax, qword [rbx + 0x18]
mov byte [rax], cl
inc qword [rbx + 0x28]
jmp 0x140065af9
cmp rdi, 2
jne 0x140065ab1
movzx ecx, word [r14]
mov rax, qword [rbx + 0x18]
mov word [rax], cx
add qword [rbx + 0x28], rdi
jmp 0x140065af9
cmp rdi, 4
jne 0x140065ac6
mov ecx, dword [r14]
mov rax, qword [rbx + 0x18]
mov dword [rax], ecx
add qword [rbx + 0x28], rdi
jmp 0x140065af9
cmp rdi, 8
jne 0x140065adc
mov rcx, qword [r14]
mov rax, qword [rbx + 0x18]
mov qword [rax], rcx
add qword [rbx + 0x28], rdi
jmp 0x140065af9
test eax, eax
je 0x140065af9
mov rdx, rdi
mov rcx, rbx
call fcn.14006a9a0
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.14007e8a0
mov esi, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r15, qword [rsp + 0x48]
mov rax, rsi
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
Function at 0x140068000
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140068045
cmp word [rcx], 0
je 0x140068045
test rdx, rdx
je 0x140068045
cmp word [rdx], 0
je 0x140068045
call fcn.140083ab4
mov rcx, rbx
test eax, eax
jne 0x140068062
call fcn.140068240
test rax, rax
jne 0x140068052
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rbx, qword [rsp + 0x40]
cdqe
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
test rcx, rcx
je 0x14006837f
cmp word [rcx], 0
je 0x14006837f
lea rdx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x60], rdx
lea rsi, vtable.CVolObject.0
mov qword [rbp - 0x60], rsi
xor edi, edi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
lea rax, vtable.CWString.0
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x40]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
lea r14, vtable.CVolMem.0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x10], 0x40
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x10], 0xfe
cmp word [rcx], di
je 0x140068336
cmp word [rcx + 2], di
je 0x140068336
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x1400682f0
cmp word [rcx + r8*2 - 2], 0x5c
jne 0x140068336
cmp word [rcx + r8*2 - 4], 0x3a
je 0x140068336
dec r8
mov rdx, rcx
lea rcx, [rbp - 0x60]
call fcn.14006c8b0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
jne 0x140068336
lea rcx, [0x1400a6e68]
cmp qword [rbp - 0x18], 0
cmovne rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rbx, rdi
cmp eax, 0xffffffff
setne bl
lea rax, [rbp - 0x40]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x40], r14
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x140068366
lea rcx, [rbp - 0x40]
mov r8, qword [rbp - 0x40]
call qword [r8 + 0x18]
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x60], rsi
mov rax, rbx
jmp 0x140068381
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140068e80
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rbx, rdx
test rcx, rcx
je 0x140068ff8
cmp word [rcx], 0
je 0x140068ff8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp + 4], eax
mov dword [rbp - 0x60], 0x68
test r8, r8
js 0x140068eec
or dword [rbp - 0x24], 1
mov word [rbp - 0x20], r8w
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x50], rax
lea rsi, vtable.CVolObject.0
mov qword [rsp + 0x50], rsi
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
lea r14, vtable.CVolMem.0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], 0x40
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.14006aaf0
mov rdx, qword [rsp + 0x68]
cmp qword [rsp + 0x78], rdi
cmove rdx, rdi
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140068f88
mov ebx, edi
jmp 0x140068fc2
mov rcx, qword [rbp - 0x78]
test rbx, rbx
je 0x140068f9e
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140068fa9
mov edx, 0x1f4
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov qword [rsp + 0x50], r14
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140068fdf
lea rcx, [rsp + 0x50]
mov r8, qword [rsp + 0x50]
call qword [r8 + 0x18]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x50], rsi
mov rax, rbx
jmp 0x140068ffa
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140069020
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
lea rdx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x30], rdx
lea rdi, vtable.CVolObject.0
mov qword [rsp + 0x30], rdi
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
lea r8, vtable.CWString.0
mov qword [rsp + 0x30], r8
lea rax, [rsp + 0x50]
mov qword [rbp + 0x58], rax
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
lea rsi, vtable.CVolMem.0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x80], 0x40
mov qword [rsp + 0x48], rbx
mov qword [rbp - 0x80], 0xfe
mov qword [rsp + 0x30], r8
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.14006c790
nop
lea r8, [rsp + 0x30]
lea rdx, str.__select___
lea rcx, [rbp - 0x20]
call fcn.14006d1a0
nop
lea r8, [0x1400a9e14]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14006d050
nop
mov r9, qword [rax + 0x18]
test r9, r9
jne 0x140069110
cmp qword [rax + 0x48], r9
lea r9, [0x1400a6e68]
je 0x140069110
mov r9, qword [rax + 0x38]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
lea r8, [0x1400afdc8]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rax, [rbp - 0x58]
mov qword [rbp + 0x58], rax
mov qword [rbp - 0x58], rsi
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x140069154
lea rcx, [rbp - 0x58]
mov rax, qword [rbp - 0x58]
call qword [rax + 0x18]
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x78], rdi
lea rax, [rbp]
mov qword [rbp + 0x58], rax
mov qword [rbp], rsi
mov rdx, qword [rbp + 0x18]
test rdx, rdx
je 0x140069188
lea rcx, [rbp]
mov rax, qword [rbp]
call qword [rax + 0x18]
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x20], rbx
mov qword [rbp], rdi
mov qword [rbp - 0x20], rdi
lea rax, [rsp + 0x50]
mov qword [rbp + 0x58], rax
mov qword [rsp + 0x50], rsi
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1400691c1
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x18]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x30], rdi
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140069510
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400cf010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
test rcx, rcx
je 0x1400696ff
cmp word [rcx], 0
je 0x1400696ff
lea rcx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x20], rcx
lea r14, vtable.CVolObject.0
mov qword [rsp + 0x20], r14
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rsi
lea rax, vtable.CWString.0
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
lea r15, vtable.CVolMem.0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], 0x40
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x70], 0xfe
mov ebx, esi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x14006960b
test ax, ax
je 0x14006964a
cmp word [rdi + 2], 0x3a
jne 0x14006964a
cmp word [rdi + 4], 0x5c
jne 0x14006964a
mov edx, 0x5c
mov rcx, rdi
call fcn.14007e7b4
test rax, rax
je 0x140069645
cmp rax, rdi
jbe 0x14006962e
lea rcx, [rax - 2]
cmp word [rcx], 0x3a
cmovne rax, rcx
sub rax, rdi
lea r8, [rax + 2]
sar r8, 1
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14006c8b0
mov rbx, qword [rsp + 0x38]
test rbx, rbx
jne 0x140069669
cmp qword [rsp + 0x68], rbx
jne 0x14006965f
lea rbx, [0x1400a6e68]
jmp 0x140069669
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400696b0
cmp word [rbx], 0
je 0x1400696b0
lea rdx, [rbp - 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400696b0
cmp word [rbx], 0
je 0x140069691
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp word [rbp - 0x70], 0
je 0x1400696bc
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x1400696bc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x40], r15
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400696e1
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 0x18]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x20], r14
mov rax, rbx
jmp 0x140069701
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14007c550
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14006a210
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx edi, cl
lea rax, [rdi - 0x60]
cmp rax, 9
ja 0x14006a295
sub rdi, 0x30
mov rbx, rdi
test rdi, rdi
je 0x14006a287
cmp rdi, 0x11
je 0x14006a251
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14006a251
mov rbx, rdi
bts rbx, 0xd
cmp rbx, 0x10
je 0x14006a26c
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14006a26c
bts rbx, 0xf
cmp rbx, 0x12
je 0x14006a287
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14006a287
bts rbx, 0xe
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp rdi, 0x6d
jne 0x14006a2a4
mov edi, 0xbd
mov ebx, edi
jmp 0x14006a239
cmp rdi, 0x6e
jne 0x14006a2b3
mov edi, 0xbe
mov ebx, edi
jmp 0x14006a239
cmp rdi, 0x6f
jne 0x14006a2c5
mov edi, 0xbf
mov ebx, edi
jmp 0x14006a239
lea rax, [0x1400a8440]
mov rax, qword [rax + rdi*8]
cmp word [rax], 0
jne 0x14006a22b
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140072000
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x1400720b5
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140072081
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140072099
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140072099
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x140072099
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x1400d59e0], 0
jne 0x140072100
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400720f0
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d59d8], rax
mov byte [0x1400d59e0], 1
jmp 0x140072107
mov rax, qword [0x1400d59d8]
mov byte [0x1400d59e0], 1
jmp 0x140072107
mov rax, qword [0x1400d59d8]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14007208a
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
push rdi
invalid
Function at 0x1400728e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1400cf010]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140072965
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140072965
call fcn.140071e20
mov ebx, eax
jmp 0x140072a87
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140072986
call fcn.140071e20
jmp 0x140072a76
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400729a9
call fcn.140071e20
jmp 0x140072a76
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400729cb
mov ebx, 0x8007000e
jmp 0x140072a78
mov ecx, eax
test eax, eax
je 0x140072a00
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140072abf
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140072a00
lea rcx, [rsp + 0x60]
call fcn.140075b00
jmp 0x140072a0a
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140072a1d
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x140072a2e
mov ebx, 0x8007000e
jmp 0x140072a78
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140072a53
call fcn.140071e20
jmp 0x140072a76
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400737b0
mov ebx, eax
test rdi, rdi
je 0x140072a87
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140072a9e
lea rcx, [rsp + 0x60]
call fcn.140075af0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14007c550
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140035220
int3
Function at 0x140083064
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140082ec3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140082ec3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140082ec3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140082ec3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140082ec3
cmp dword [rcx + 0x84], 0xe
jbe 0x140082ec3
cmp dword [rcx + 0xf8], 0
je 0x140082ec3
mov ecx, ebx
call fcn.140082f80
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140082d50
nop
cmp dword [rbp + 0x20], 0
je 0x140082f11
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140082f1c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140082e54
Function at 0x14008d8c4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400d4180]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14008d922
cmp word [rdx], r12w
jne 0x14008d922
or byte [rax + r8*8 + 0x38], cl
jmp 0x14008d928
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14008da83
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14008da5e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14008d961
mov rcx, r9
jmp 0x14008d984
cmp r9, rdx
jae 0x14008d99b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14008d945
jmp 0x14008da83
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008da58
cmp dword [rsp + 0x80], edi
je 0x14008da58
mov rdx, r14
lea r11, [0x1400d4180]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14008da31
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14008da04
mov word [rbx], r12w
jmp 0x14008da7f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14008da0d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14008da7f
cmp word [rsp + 0x70], r12w
jne 0x14008da3e
cmp rbx, rsi
je 0x14008d9fe
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14008b194
cmp word [rsp + 0x70], r12w
je 0x14008da83
mov word [rbx], r13w
jmp 0x14008da7f
lea r11, [0x1400d4180]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14008da7b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14008da83
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008f840
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14008f8c7
mov rsi, rbx
cmp word [rax], bp
je 0x14008f886
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008f870
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14008f86c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14008c51c
mov rdi, rax
test rax, rax
je 0x14008f8b4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007e8a0
mov rbp, rdi
xor ecx, ecx
call fcn.14008990c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400940d0
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.14008b194
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14008b194
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140094220
cmp rax, 0xffffffffffffffff
je 0x140094220
xor edi, edi
test rbp, rbp
jle 0x1400941cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14008a1cc
mov rbx, rax
test rax, rax
jne 0x140094158
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400941c1
mov edx, 0x8000
mov ecx, r14d
call fcn.140089620
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.14008be88
cmp eax, 0xffffffff
je 0x1400941a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140094168
mov edx, r15d
mov ecx, r14d
call fcn.140089620
jmp 0x1400941c1
cmp byte [rsi + 0x38], dil
je 0x1400941b8
cmp dword [rsi + 0x34], 5
jne 0x1400941b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400941c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008990c
jmp 0x140094234
jns 0x140094234
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14008b194
cmp rax, 0xffffffffffffffff
jne 0x1400941ec
cmp byte [rsi + 0x30], dil
je 0x140094234
mov edi, dword [rsi + 0x2c]
jmp 0x140094234
mov ecx, r14d
call fcn.1400901a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140094234
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 0x140094234
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14009422d
mov eax, dword [rsi + 0x2c]
jmp 0x140094232
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14008b194
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