joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d50
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x10], 0
mov rdi, rcx
jne 0x140001e10
add rcx, 0x638
mov qword [rsp + 0x40], rbx
call fcn.1400043e0
xor r9d, r9d
lea rbx, [rdi + 0x12]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor ecx, ecx
lea edx, [r9 + 0x2a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, str.HPHP_Hotkey_SupportHPSysInfo.exe
mov edx, 0x104
mov rcx, rbx
call fcn.14001b10c
xor r9d, r9d
lea rbx, [rdi + 0x21a]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor ecx, ecx
lea edx, [r9 + 0x2a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, str.HPHP_Hotkey_SupporthpSmartAdapterHelp.exe
mov edx, 0x104
mov rcx, rbx
call fcn.14001b10c
xor r9d, r9d
lea rbx, [rdi + 0x422]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor ecx, ecx
lea edx, [r9 + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, str.Hewlett_PackardHP_Power_AssistantHPPA_Main.exe
mov edx, 0x104
mov rcx, rbx
call fcn.14001b10c
mov rbx, qword [rsp + 0x40]
mov byte [rdi + 0x10], 1
add rsp, 0x30
pop rdi
ret
Function at 0x140004be0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140004c13
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140004c5a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140004c55
nop
cmp rbx, rcx
jae 0x140004c5a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140004c40
cmp rbx, rcx
jb 0x140004c5e
xor eax, eax
jmp 0x140004c6a
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140006c50
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
call fcn.140005200
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0xa8]
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x140006d9e
mov ecx, esi
call fcn.140029af8
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140006d91
mov r9, rax
mov r8d, esi
mov edx, dword [rsp + 0xa8]
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140006d91
mov qword [rsp + 0x28], r14
mov dword [rsp + 0xa0], r14d
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x28]
lea rdx, str.StringFileInfo040904E4ProductName
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140006d2e
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x140006d2e
mov r8d, eax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.14000c420
nop
mov rdx, rax
mov rcx, rdi
call fcn.140004550
nop
jmp 0x140006d86
mov qword [rsp + 0x28], r14
mov dword [rsp + 0xa0], r14d
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x28]
lea rdx, str.StringFileInfo040904B0ProductName
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140006d91
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x140006d91
mov r8d, eax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.14000c420
nop
mov rdx, rax
mov rcx, rdi
call fcn.140004550
nop
lea rcx, [rsp + 0x40]
call fcn.140005230
nop
test rbx, rbx
je 0x140006d9e
mov rcx, rbx
call fcn.14000d6d4
mov rax, rdi
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400078c0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rdx
mov rbp, qword [rdx + 0x18]
lea rsi, [rdx + 0x28]
mov rcx, rsi
call fcn.140005280
add rbp, 0xa
add rbp, qword [rax]
mov eax, 2
mul rbp
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140029af8
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
call fcn.140004660
mov rbx, qword [rax]
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x140007961
add rdi, 8
cmp qword [rdi + 0x18], 0x10
jb 0x140007935
mov rdi, qword [rdi]
mov rcx, rsi
call fcn.140005220
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str._S_:__s_r_n
mov rdx, rbp
mov rcx, rbx
call fcn.140006470
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
test rbx, rbx
je 0x14000796e
mov rcx, rbx
call fcn.14000d6d4
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008750
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x230], 0
mov rsi, rdx
mov rdi, rcx
je 0x140008829
mov r9d, dword [rcx + 0x224]
mov eax, dword [rcx + 0x220]
mov qword [rsp + 0x30], rbx
lea r8d, [rax + rax*4]
add r8d, r8d
lea eax, [r9 + 1]
mov dword [rcx + 0x224], eax
cmp r9d, r8d
jle 0x1400087be
xor edx, edx
call fcn.140008980
test al, al
je 0x1400087ad
mov dword [rdi + 0x224], 0
jmp 0x1400087be
mov eax, dword [rdi + 0x224]
cdq
sub eax, edx
sar eax, 1
mov dword [rdi + 0x224], eax
mov rcx, rsi
call fcn.1400072b0
mov rcx, rax
call fcn.140005280
mov rcx, rsi
mov rbx, qword [rax]
call fcn.1400072b0
mov rcx, rax
call fcn.140005220
mov r9, qword [rdi + 0x230]
mov rcx, rax
mov r8, rbx
mov edx, 2
call fcn.14001b5f8
mov r9, qword [rdi + 0x230]
lea rcx, [0x14003e664]
mov edx, 2
mov rbx, rax
lea r8d, [rdx - 1]
call fcn.14001b5f8
add eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140008840
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi]
mov r9, rbx
mov rsi, qword [rax]
mov rdx, rsi
mov r8, qword [rsi + 8]
call fcn.14000bb00
mov rdx, rax
movabs rcx, 0x1745d1745d1745c
mov rax, qword [rdi + 8]
sub rcx, rax
cmp rcx, 1
jb 0x140007b31
inc rax
mov qword [rdi + 8], rax
mov qword [rsi + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
cmp byte [rdi + 0x18], 0
jne 0x140007b12
mov rcx, qword [rdi + 0x20]
xor ebx, ebx
test rcx, rcx
je 0x140007ae0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], rbx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x28], rax
lea r8, [0x140007b40]
mov r9, rdi
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call fcn.14001cf10
test rax, rax
mov qword [rdi + 0x20], rax
setne al
mov byte [rdi + 0x18], al
lea rcx, [rdi + 0x28]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, str.list_T__too_long
call fcn.14000d640
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp word [rcx + 0x18], 0
mov rdi, rdx
mov rbx, rcx
je 0x14000889a
mov rcx, qword [rcx + 0x248]
test rcx, rcx
je 0x14000887b
cmp byte [rbx + 0x228], 0
je 0x14000887b
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140007a60
mov rcx, rbx
call fcn.140008620
test eax, eax
je 0x14000889a
mov rdx, rdi
mov rcx, rbx
call fcn.140008750
mov rcx, rbx
call fcn.1400086f0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400088b0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
mov r9, qword [rcx + 0x230]
xor eax, eax
mov rbx, rcx
mov qword [r11 - 0x48], rax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x40], rax
xor dil, dil
mov qword [r11 - 0x38], rax
lea edx, [rax + 2]
mov qword [r11 - 0x30], rax
lea r8d, [rax + 0x18]
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
call fcn.14001d4d0
test rax, rax
je 0x140008952
cmp word [rsp + 0x28], 0x2f
jne 0x140008945
cmp word [rsp + 0x2e], 0x2f
jne 0x140008945
cmp word [rsp + 0x34], 0x20
jne 0x140008945
cmp word [rsp + 0x3a], 0x3a
jne 0x140008945
cmp word [rsp + 0x40], 0x3a
jne 0x140008945
cmp word [rsp + 0x46], 0x2e
jne 0x140008945
cmp word [rsp + 0x4e], 0x7c
jne 0x140008945
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [rbx + 0x230]
call fcn.14001d598
mov rbx, qword [rsp + 0x70]
test eax, eax
movzx ecx, dil
mov edx, 1
cmovne ecx, edx
movzx eax, cl
add rsp, 0x60
pop rdi
ret
Function at 0x140009230
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
push rdi
sub rsp, 0x60
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 0x220], 0xffffffff
jne 0x140009347
mov dword [rax + 0x20], 0
mov dword [rax + 8], 4
lea rdx, str.MaxLogSize
lea rcx, [rax - 0x28]
call fcn.1400058d0
nop
test rsi, rsi
je 0x1400092da
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.140005220
mov rdx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400092da
mov eax, dword [rsp + 0x88]
test eax, eax
je 0x1400092da
mov dword [rbx + 0x220], eax
jmp 0x140009335
test rdi, rdi
je 0x14000932b
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.140005220
mov rdx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000932b
mov eax, dword [rsp + 0x88]
test eax, eax
jne 0x1400092d2
mov dword [rbx + 0x220], 0x800
lea rcx, [rsp + 0x40]
call fcn.140005230
mov eax, dword [rbx + 0x220]
jmp 0x14000934d
mov eax, dword [rcx + 0x220]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140009360
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x40], 0
mov rax, r8
mov dword [rsp + 0x50], 4
mov rdi, rdx
mov rbx, rcx
test r8, r8
je 0x1400093c0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x58]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
lea rdx, str.QueuedWrites
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400093fd
test rdi, rdi
je 0x14000940b
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.QueuedWrites
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000940b
cmp dword [rsp + 0x40], 0
setne al
mov byte [rbx + 0x228], al
movzx eax, byte [rbx + 0x228]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140009480
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov eax, dword [rdx + 0x48]
mov rbx, rdx
mov rdi, rcx
cmp eax, dword [rcx + 8]
jl 0x140009516
cmp eax, 5
jg 0x140009516
mov rcx, rdx
call fcn.1400072b0
mov rcx, rax
call fcn.140005220
mov r9d, dword [rbx + 0x48]
mov r10d, 1
mov qword [rsp + 0x60], rax
cmp r9d, 2
jl 0x1400094e1
cmp r9d, 3
jle 0x1400094e1
cmp r9d, 4
je 0x1400094da
cmp r9d, 5
jne 0x1400094e1
movzx eax, r10w
jmp 0x1400094e6
mov eax, 2
jmp 0x1400094e6
mov eax, 4
xor edx, edx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 0x18]
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], r10w
mov qword [rsp + 0x20], rdx
movzx edx, ax
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14000cb60
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x2f0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x318], rbx
mov rdi, r8
mov rbx, rdx
xor ebp, ebp
test r8, r8
jne 0x14000cb97
mov eax, 0x80004003
jmp 0x14000ccc2
test rbx, rbx
je 0x14000ccba
cmp bp, word [rdx]
je 0x14000ccba
mov dword [r8], ebp
mov qword [rsp + 0x310], rbp
lea rcx, [rsp + 0x28]
call fcn.1400045e0
nop
lea rcx, [rsp + 0x28]
call fcn.140004660
mov rcx, rax
mov qword [rsp + 0x320], rax
mov qword [rsp + 0x328], rax
test rax, rax
je 0x14000cbfd
call fcn.1400049a0
nop
lea rax, vtable.std::_Func_impl_class__lambda_87e47ad309c28abcd2a66f1ac2c44586___class_std::allocator_int___void___.0
mov qword [rcx], rax
lea rax, [rsp + 0x310]
mov qword [rcx + 8], rax
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140004670
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.140001a80
nop
lea rcx, [rsp + 0x28]
call fcn.140004390
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov qword [rsp + 0x310], rax
cmp rax, 0xffffffffffffffff
je 0x14000ccac
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0xb4]
call fcn.140010440
mov dword [rsp + 0xb0], 0x238
lea rdx, [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000ccac
mov rdx, rbx
lea rcx, [rsp + 0xdc]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000cca3
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14000cc72
mov ecx, dword [rsp + 0xb8]
mov dword [rdi], ecx
lea rcx, [rsp + 0x70]
call fcn.140001b00
mov eax, ebp
jmp 0x14000ccc2
mov dword [r8], ebp
mov eax, 0x80070057
mov rbx, qword [rsp + 0x318]
add rsp, 0x2f0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d070
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rbp, r9
mov r14, r8
mov r15, rdx
mov eax, 0xa0
mov ebx, eax
xor ecx, ecx
test rdx, rdx
cmovne ebx, ecx
test r8, r8
cmove ebx, eax
mov rdi, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x118]
test rsi, rsi
je 0x14000d0d3
test rdi, rdi
jne 0x14000d0d3
mov ebx, eax
jmp 0x14000d1bd
cmp ebx, eax
je 0x14000d1bd
mov qword [rsp + 0xf0], rcx
lea rcx, [rsp + 0x38]
call fcn.1400045e0
nop
lea rcx, [rsp + 0x38]
call fcn.140004660
mov rcx, rax
mov qword [rsp + 0x118], rax
mov qword [rsp + 0xf8], rax
test rax, rax
je 0x14000d12c
call fcn.1400049a0
nop
lea rax, vtable.std::_Func_impl_class__lambda_bb05c3d3386d4e0504466c62a1cc26b3___class_std::allocator_int___void___.0
mov qword [rcx], rax
lea rax, [rsp + 0xf0]
mov qword [rcx + 8], rax
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140004670
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x80]
call fcn.140001a80
nop
lea rcx, [rsp + 0x38]
call fcn.140004390
mov r9d, dword [rsp + 0x128]
or r9d, 0x20019
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000d1b0
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
mov r9, qword [rsp + 0x110]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
lea rcx, [rsp + 0x80]
call fcn.140001b00
mov eax, ebx
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001bc5c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14001ba30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ba30
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ba30
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ba30
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ba30
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ba30
cmp dword [rcx + 0xf8], esi
je 0x14001ba30
mov ecx, r14d
call fcn.14001bb78
mov ecx, 2
call fcn.14002175c
nop
cmp byte [0x140048aa0], 0
jne 0x14001bafa
mov r15d, 1
mov eax, r15d
xchg dword [0x140048a90], eax
test ebx, ebx
jne 0x14001baa3
mov rdi, qword [0x140047008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140048a98]
cmp rcx, rax
je 0x14001ba9a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400049b0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140048ce0]
jmp 0x14001baaf
cmp ebx, r15d
jne 0x14001bab5
lea rcx, [0x140048cf8]
call fcn.14001c5c8
nop
test ebx, ebx
jne 0x14001bacc
lea rdx, [0x14002f608]
lea rcx, [0x14002f5e8]
call fcn.14001c90c
lea rdx, [0x14002f618]
lea rcx, [0x14002f610]
call fcn.14001c90c
movzx eax, byte [0x140048aa0]
test esi, esi
cmove eax, r15d
mov byte [0x140048aa0], al
jmp 0x14001bafa
mov ecx, 2
call fcn.1400217b0
test esi, esi
jne 0x14001bb11
mov ecx, r14d
call fcn.14001bb2c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001b9c0
Function at 0x14002508c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140024f2c
call fcn.14001b0ec
mov dword [rax], SafeArrayPutElement
call fcn.14001af9c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140024f14
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140024f14
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140024f5e
lock or dword [rax + 0x14], 0x10
jmp 0x140024f14
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140024f7b
mov rcx, qword [rbp + 0x10]
call fcn.140026e38
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14001fbb0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140024964
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140024fd2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140024f14
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14002503e
mov rcx, qword [rbp + 0x10]
call fcn.14001fbb0
cmp eax, 0xffffffff
je 0x140025025
mov rcx, qword [rbp + 0x10]
call fcn.14001fbb0
cmp eax, 0xfffffffe
je 0x140025025
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14001fbb0
movsxd rdi, eax
lea rsi, [0x140048d70]
mov rcx, rbx
sar rdi, 6
call fcn.14001fbb0
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14002502c
lea rax, [0x1400473a0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002503e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140025074
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140025070
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140025070
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140024f17
jmp 0x140024ee4
Function at 0x140001f80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, 0x2a
mov edx, 0x402
mov ecx, eax
lea r8d, [r9 - 0x13]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x30]
lea rdx, [r9 - 1]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140002012
cmp dword [rsp + 0x38], 0x402
jne 0x140002012
cmp qword [rsp + 0x40], 0x17
jne 0x140002012
cmp qword [rsp + 0x48], 0x2a
jne 0x140002012
xor r8d, r8d
lea rcx, str.aoeuhtns
xor edx, edx
call qword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
test eax, eax
je 0x14000200d
xor edx, edx
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.140001390
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140002500
add rsp, 0x78
ret

Function at 0x140002f80
Capabilities:
Parse pe header

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

Function at 0x14000a3e0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000a1d0
Function at 0x14000d194
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 0x14000d1c4
xor eax, eax
jmp 0x14000d287
mov rbp, rbx
cmp word [rax], si
je 0x14000d1e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d1d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d1cc
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.14000d0e4
movsxd r14, eax
test eax, eax
jne 0x14000d227
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d1bd
mov rcx, r14
call fcn.14000b738
mov rdi, rax
test rax, rax
jne 0x14000d240
xor ecx, ecx
call fcn.14000b810
jmp 0x14000d21c
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.14000d0e4
test eax, eax
jne 0x14000d271
mov rcx, rdi
call fcn.14000b810
jmp 0x14000d27b
xor ecx, ecx
call fcn.14000b810
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