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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14001c4d8]
xor edi, edi
cmp rcx, rdi
jne 0x1400012e9
lea r8d, [rdi + 0x6c]
lea rdx, [0x140014cf4]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
mov rbx, rax
cmp rax, rdi
je 0x1400012ca
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rdi
je 0x1400012ca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov qword [0x14001c4d8], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x14001c4d8]
cmp eax, 0x200
cmovne rcx, rdi
mov qword [0x14001c4d8], rcx
jmp 0x1400012d1
mov rcx, qword [0x14001c4d8]
cmp rcx, rdi
jne 0x1400012e9
lea rcx, str.Error_loading_Boot_sector_from_internal_resource_n
call fcn.140003e94
mov rcx, qword [0x14001c4d8]
mov rax, rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400015f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov edx, 1
lea r8d, [rdx + 2]
call fcn.140001354
xor ebx, ebx
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001657
lea r9, [rsp + 0x50]
mov r8d, 0x200
mov rdx, rdi
mov rcx, rax
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x50], 0x200
mov rcx, rsi
mov edi, eax
cmovne edi, ebx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001659
mov edi, ebx
cmp edi, ebx
jne 0x140001665
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140001678
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.140001354
xor ebx, ebx
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400016db
lea r9, [rsp + 0x50]
mov r8d, 0x200
mov rdx, rdi
mov rcx, rax
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x50], 0x200
mov rcx, rsi
mov edi, eax
cmovne edi, ebx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400016dd
mov edi, ebx
cmp edi, ebx
jne 0x1400016e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400018a4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x640
mov rax, qword [0x14001af08]
xor rax, rsp
mov qword [rsp + 0x630], rax
mov rdi, rdx
lea rdx, [rsp + 0x30]
mov esi, ecx
call fcn.1400015f4
mov ebx, eax
test eax, eax
jne 0x140001946
test rdi, rdi
jne 0x140001902
lea rdx, str.mbr_d.bin
lea rcx, [rsp + 0x230]
mov r8d, esi
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdi, [rsp + 0x230]
lea r8, [0x140014dac]
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14000449c
test eax, eax
jne 0x14000193e
mov r9, qword [rsp + 0x20]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x30]
mov edx, 0x200
call fcn.1400042c0
mov rcx, qword [rsp + 0x20]
call fcn.1400040ac
jmp 0x140001946
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x630]
xor rcx, rsp
call fcn.140004000
lea r11, [rsp + 0x640]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140001970
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x640
mov rax, qword [0x14001af08]
xor rax, rsp
mov qword [rsp + 0x630], rax
mov ebx, ecx
test rdx, rdx
jne 0x1400019b2
mov r8d, ecx
lea rdx, str.mbr_d.bin
lea rcx, [rsp + 0x230]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [rsp + 0x230]
lea r8, [0x140014dbc]
lea rcx, [rsp + 0x20]
call fcn.14000449c
test eax, eax
jne 0x140001a09
mov r9, qword [rsp + 0x20]
lea edx, [rax + 1]
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call fcn.14000481c
cmp rax, 0x200
jne 0x1400019f5
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.140001678
jmp 0x1400019fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call fcn.1400040ac
jmp 0x140001a11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x630]
xor rcx, rsp
call fcn.140004000
add rsp, 0x640
pop rbx
ret
Function at 0x1400020c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x50
xor ebx, ebx
mov r12d, r8d
mov rdi, rdx
lea edx, [rbx + 1]
lea r8d, [rbx + 3]
mov rsi, r9
call fcn.140001354
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140002104
xor eax, eax
jmp 0x1400021f1
shl rdi, 9
lea r8, [rsp + 0x3c]
xor r9d, r9d
mov edx, edi
mov rcx, rax
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x38], eax
cmp eax, 0xffffffff
jne 0x140002137
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400021e6
lea r8, [0x140014dac]
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14000449c
test eax, eax
jne 0x1400021e6
mov eax, 0x100000
shl r12d, 9
cmp r12d, eax
mov r14d, r12d
cmova r14d, eax
mov ecx, r14d
call fcn.140004d48
and dword [rsp + 0x30], ebx
xor esi, esi
mov rdi, rax
test r12d, r12d
je 0x1400021d4
and dword [rsp + 0x30], 0
mov r13d, r12d
lea r9, [rsp + 0x30]
sub r13d, esi
mov rdx, rdi
mov rcx, rbp
cmp r13d, r14d
cmova r13d, r14d
and qword [rsp + 0x20], 0
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
cmp dword [rsp + 0x30], r13d
jne 0x1400021d2
mov r9, qword [rsp + 0x40]
mov edx, r13d
mov r8d, 1
mov rcx, rdi
call fcn.1400042c0
add esi, dword [rsp + 0x30]
cmp esi, r12d
jb 0x14000217c
jmp 0x1400021d4
xor ebx, ebx
mov rcx, rdi
call fcn.140004cd0
mov rcx, qword [rsp + 0x40]
call fcn.1400040ac
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x140002210
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x60
xor ebx, ebx
mov r12d, r8d
mov rdi, rdx
and qword [rax - 0x48], rbx
and dword [rax - 0x50], ebx
lea r8d, [rbx + 3]
mov rsi, r9
lea edx, [rbx + 1]
xor r9d, r9d
mov dword [rax - 0x58], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x140002263
xor eax, eax
jmp 0x140002346
lea r8, [rsp + 0x4c]
xor r9d, r9d
mov edx, edi
mov rcx, rax
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x48], eax
cmp eax, 0xffffffff
jne 0x140002292
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000233b
lea r8, [0x140014dac]
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.14000449c
test eax, eax
jne 0x14000233b
mov eax, 0x100000
mov ebp, r12d
cmp r12d, eax
cmova ebp, eax
mov ecx, ebp
call fcn.140004d48
and dword [rsp + 0x40], ebx
xor esi, esi
mov rdi, rax
test r12d, r12d
je 0x140002329
and dword [rsp + 0x40], 0
mov r14d, r12d
lea r9, [rsp + 0x40]
sub r14d, esi
mov rdx, rdi
mov rcx, r13
cmp r14d, ebp
cmova r14d, ebp
and qword [rsp + 0x20], 0
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
cmp dword [rsp + 0x40], r14d
jne 0x140002327
mov r9, qword [rsp + 0x50]
mov edx, r14d
mov r8d, 1
mov rcx, rdi
call fcn.1400042c0
add esi, dword [rsp + 0x40]
cmp esi, r12d
jb 0x1400022d1
jmp 0x140002329
xor ebx, ebx
mov rcx, rdi
call fcn.140004cd0
mov rcx, qword [rsp + 0x50]
call fcn.1400040ac
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret

Function at 0x140002368
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 r12
sub rsp, 0x40
xor ebx, ebx
mov r12, r8
mov rbp, rdx
lea edx, [rbx + 1]
lea r8d, [rbx + 3]
mov esi, r9d
call fcn.140001354
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400023a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000240e
shl rbp, 9
lea r8, [rsp + 0x3c]
xor r9d, r9d
mov edx, ebp
mov rcx, rax
mov qword [rsp + 0x38], rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x38], eax
cmp eax, 0xffffffff
jne 0x1400023d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1400023fb
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r12
mov rcx, rdi
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x30], esi
je 0x140002403
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x14000242c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x40
xor ebx, ebx
mov r12, r8
mov rbp, rdx
lea edx, [rbx + 2]
lea r8d, [rbx + 1]
mov esi, r9d
call fcn.140001354
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000246d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400024d2
shl rbp, 9
lea r8, [rsp + 0x3c]
xor r9d, r9d
mov edx, ebp
mov rcx, rax
mov qword [rsp + 0x38], rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x38], eax
cmp eax, 0xffffffff
jne 0x14000249c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1400024bf
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r12
mov rcx, rdi
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x30], esi
je 0x1400024c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x1400024f0
Capabilities:
Get disk information
Get volume information via ioctl

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x480
mov rax, qword [0x14001af08]
xor rax, rsp
mov qword [rsp + 0x470], rax
movsx r12d, cl
mov rdi, r8
mov rbp, rdx
mov esi, r9d
xor ebx, ebx
lea r8, str._c:_
lea edx, [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov r9d, r12d
call fcn.140004ea8
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.140004ba0
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x400
call fcn.140004ba0
mov dword [rsp + 0x38], 0x400
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
lea rcx, [rsp + 0x50]
mov r8d, esi
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, ebx
jne 0x1400025bc
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov rcx, rdi
call fcn.140004e00
cmp rax, rbx
ja 0x1400025dc
lea rcx, [rsp + 0x70]
call fcn.140004e00
cmp rax, rbx
jbe 0x140002664
lea r8, str.._c:
lea rcx, [rsp + 0x50]
mov r9d, r12d
mov edx, 0x20
call fcn.140004ea8
mov r8d, 3
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov edx, 0x180
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002664
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x90064
mov rcx, rdi
mov dword [rsp + 0x28], 0x60
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140004000
add rsp, 0x480
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002988
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14001af08]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x1400029c5
call fcn.140004e00
test rax, rax
jne 0x1400029f7
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor edx, edx
lea r8, [rsp + 0x40]
bt eax, edx
jae 0x1400029df
lea ecx, [rdx + 0x41]
mov byte [r8], cl
jmp 0x1400029e3
mov byte [r8], 0x20
inc edx
inc r8
cmp edx, 0x20
jl 0x1400029d2
mov byte [rsp + 0x60], dil
lea rbx, [rsp + 0x40]
cmp byte [rbx], dil
je 0x140002aae
movsx ecx, byte [rbx]
call fcn.1400054e4
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x140002aa2
movsx ebp, al
lea rcx, str.Flushing_drive__c:_n
mov edx, ebp
call fcn.140003e94
lea r8, str.._c:
lea rcx, [rsp + 0x68]
mov r9d, ebp
mov edx, 0x20
call fcn.140004ea8
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
lea rcx, [rsp + 0x68]
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002a8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_flush_drive__c:___d__n
mov edx, ebp
mov r8d, eax
mov edi, eax
call fcn.140003e94
jmp 0x140002aa2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x140002a71
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rbx
cmp byte [rbx], 0
jne 0x140002a00
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140004000
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005834
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.14000b884
nop
cmp dword [0x14001c558], 1
je 0x1400057e0
mov dword [0x14001c554], 1
mov byte [0x14001c550], r12b
test ebx, ebx
jne 0x1400057cc
mov rcx, qword [0x14001e5f0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400057b9
mov rcx, qword [0x14001e5e8]
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 0x140005758
call fcn.140009754
cmp qword [rdi], rax
jne 0x140005758
jmp 0x14000573e
cmp rdi, rsi
jb 0x1400057b9
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140009754
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14001e5f0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14001e5e8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140005797
cmp r13, rax
je 0x1400057b7
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 0x14000573e
lea rdx, [0x140013320]
lea rcx, [0x140013308]
call fcn.140005588
lea rdx, [0x140013330]
lea rcx, [0x140013328]
call fcn.140005588
nop
test r12d, r12d
je 0x1400057ef
mov ecx, 8
call fcn.14000b784
test r12d, r12d
jne 0x14000581a
mov dword [0x14001c558], 1
lea ecx, [r12 + 8]
call fcn.14000b784
mov ecx, r15d
call fcn.14000551c
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 0x1400056a8

Function at 0x140005840
Capabilities:
Terminate process

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

Disassembly:
cmp rcx, qword [0x14001af08]
jne 0x14000401a
rol rcx, 0x10
test cx, 0xffff
jne 0x140004016
repz ret
ror rcx, 0x10
jmp 0x140007808
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001c630]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14001c728]
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 0x14000788d
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, [0x14001c630]
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 0x1400078af
mov rax, qword [rsp + 0x88]
mov qword [0x14001c728], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001c6c8], rax
mov rax, qword [0x14001c728]
mov qword [0x14001c5a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001c6b0], rax
mov dword [0x14001c590], 0xc0000409
mov dword [0x14001c594], 1
mov rax, qword [0x14001af08]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001af10]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001c628], eax
mov ecx, 1
call fcn.14000e9e8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400169b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001c628], 0
jne 0x140007936
mov ecx, 1
call fcn.14000e9e8
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 0x1400119a4
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.140009754
xor ebx, ebx
mov rdi, rax
cmp qword [0x14001d250], rbx
jne 0x140011aaa
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140011b7f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011b7f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001d250], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14001d258], 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 [0x14001d260], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14001d270], rax
test rax, rax
je 0x140011aa1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14001d268], rax
jmp 0x140011ab1
mov rax, qword [0x14001d268]
jmp 0x140011ab8
mov rax, qword [0x14001d268]
mov r11, qword [0x14001d270]
cmp rax, rdi
je 0x140011b20
cmp r11, rdi
je 0x140011b20
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14001d270]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140011b20
test rax, rax
je 0x140011b20
call rsi
test rax, rax
je 0x140011b1a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140011b1a
test byte [rsp + 0x38], 1
jne 0x140011b20
bts ebp, 0x15
jmp 0x140011b5e
mov rcx, qword [0x14001d258]
cmp rcx, rdi
je 0x140011b5e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140011b5e
call rax
mov rbx, rax
test rax, rax
je 0x140011b5e
mov rcx, qword [0x14001d260]
cmp rcx, rdi
je 0x140011b5e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140011b5e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001d250]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140011b7f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140011b81
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 0x140002070
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, qword [0x14000a900]
xor sil, sil
xor ebx, ebx
mov r15, r8
mov rbp, rdx
mov r14, rcx
test rdi, rdi
je 0x1400020f4
mov rbx, rdi
mov eax, 1
lock xadd dword [rdi], eax
inc eax
cmp eax, 1
jle 0x1400020e2
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rdi + 4], ecx
je 0x1400020f1
mov rcx, qword [rdi + 0x10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov dword [rdi + 4], ecx
inc dword [rdi + 8]
cmp byte [0x14000a059], sil
je 0x140002248
cmp byte [0x14000a04c], sil
je 0x140002248
cmp byte [0x14000a054], sil
je 0x140002248
mov r8d, 0x208
lea rdx, [rsp + 0x30]
lea rcx, str.log_enabled
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400021dc
lea rcx, [rsp + 0x30]
mov sil, 1
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
test eax, eax
mov ecx, eax
setne al
mov byte [r14], al
test ecx, ecx
je 0x1400021dc
mov r8d, 0x208
lea rdx, [rsp + 0x30]
lea rcx, str.log_minpriority
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140002194
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
cmp eax, 3
jge 0x140002194
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
jmp 0x140002196
xor eax, eax
mov r8d, 0x208
mov dword [rbp], eax
lea rdx, [rsp + 0x30]
lea rcx, str.log_destination
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400021d5
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
cmp eax, 2
jge 0x1400021d5
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [r15], eax
jmp 0x1400021dc
mov dword [r15], 0
cmp byte [r14], 0
jne 0x140002267
lea r8, [rsp + 0x20]
lea rdx, str.log_enabled
call fcn.140004b90
test al, al
je 0x140002267
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x140002267
setne al
lea r8, [rsp + 0x20]
lea rdx, str.log_minpriority
mov byte [r14], al
mov sil, 1
call fcn.140004b90
xor ecx, ecx
lea r8, [rsp + 0x20]
test al, al
lea rdx, str.log_destination
cmovne ecx, dword [rsp + 0x20]
mov dword [rbp], ecx
call fcn.140004b90
xor ecx, ecx
test al, al
cmovne ecx, dword [rsp + 0x20]
mov dword [r15], ecx
jmp 0x140002267
movzx eax, byte [0x14000a058]
mov sil, 1
mov byte [r14], al
mov eax, dword [0x14000a048]
mov dword [rbp], eax
mov eax, dword [0x14000a050]
mov dword [r15], eax
test rbx, rbx
je 0x14000229e
add dword [rbx + 8], 0xffffffff
mov eax, dword [rbx + 8]
jne 0x14000227c
mov dword [rbx + 4], 0
mov ecx, 0xffffffff
lock xadd dword [rbx], ecx
cmp ecx, 1
je 0x14000229e
test eax, eax
jne 0x14000229e
mov rcx, qword [rbx + 0x10]
lea edx, [rax + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
movzx eax, sil
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140004d40
mov rbx, qword [rsp + 0x298]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret