joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007f00
Capabilities:
Access pe header
Get file attributes
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xc0
and qword [rbp + 0x67], 0
xor eax, eax
and dword [rbp + 0x23], 0
xorps xmm0, xmm0
and dword [rbp + 0x3b], 0
xorps xmm1, xmm1
mov qword [rbp + 0x17], rax
mov rdi, rdx
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm1
test rcx, rcx
je 0x14000805b
test rdx, rdx
je 0x14000805b
and dword [rsp + 0x50], eax
lea ebx, [rax + 1]
and qword [r11 - 0x80], rax
lea r9, [rbp - 9]
and qword [rbp + 0x27], rax
lea r8, [rbp + 0x1f]
mov dword [rsp + 0x40], 0x20
mov edx, 0x100001
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov qword [rbp + 0x2f], rcx
lea rcx, [rbp + 0x67]
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], rax
mov dword [rbp + 0x1f], 0x30
mov dword [rbp + 0x37], 0x200
movdqu xmmword [rbp + 0x3f], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x140008060
mov rcx, qword [rbp + 0x67]
lea r9d, [rbx + 0x17]
lea r8, [rbp + 7]
mov dword [rsp + 0x20], 5
lea rdx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x140007fe6
mov rdx, qword [rbp + 0xf]
mov r8d, 0x2a6cf6e7
mov ecx, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rdi], rax
and qword [rsp + 0x40], 0
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
mov eax, dword [rbp + 0xf]
xor edx, edx
mov rcx, qword [rbp + 0x67]
mov dword [rsp + 0x30], eax
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
js 0x140008036
mov rcx, qword [rdi]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
mov ecx, 0xc000007b
cmove ebx, ecx
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
jns 0x140008057
mov rcx, qword [rdi]
test rcx, rcx
je 0x140008057
mov edx, 0x2a6cf6e7
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x140008060
mov eax, 0xc000000d
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140009158
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rdi, r8
test dl, dl
je 0x140009171
lea rax, [r8 + rbx]
jmp 0x1400091d3
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
test rax, rax
je 0x1400091d1
mov ecx, 0xf8
lea r8d, [rcx + 0x13]
cmp word [rax + 0x18], r8w
lea edx, [rcx + 0x10]
cmovne ecx, edx
lea rdx, [rcx + rax]
movzx eax, word [rax + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x1400091d1
mov r8d, dword [rdx + 0xc]
cmp ebx, r8d
jb 0x1400091bb
mov ecx, dword [rdx + 8]
add ecx, r8d
cmp ebx, ecx
jb 0x1400091c1
add rdx, 0x28
jmp 0x1400091a3
mov eax, dword [rdx + 0x14]
sub ebx, r8d
mov ecx, ebx
add rcx, rdi
add rax, rcx
jmp 0x1400091d3
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140009254
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
xor r14d, r14d
mov rdi, rcx
cmp qword [0x1400040b0], r14
mov dword [rbp + 0x28], r14d
je 0x140009292
test rcx, rcx
je 0x1400093b2
mov eax, dword [0x1400040b8]
mov dword [rcx], eax
jmp 0x1400093b2
xorps xmm0, xmm0
lea r8, [0x14000a3d0]
movups xmmword [rbp - 0x10], xmm0
mov rax, r8
mov ecx, 0x7fff
mov edx, 2
cmp word [rax], r14w
je 0x1400092be
add rax, rdx
sub rcx, 1
jne 0x1400092ad
jmp 0x1400092d8
add cx, cx
mov qword [rbp - 8], r8
mov eax, 0xfffe
sub ax, cx
mov word [rbp - 0x10], ax
add ax, dx
mov word [rbp - 0xe], ax
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
je 0x1400093bb
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rbp + 0x28]
test eax, eax
je 0x1400093bb
mov edx, eax
xor ecx, ecx
mov r8d, 0x2a6cf6e7
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rbp + 0x28]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.1400021c0
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14000939f
mov r9d, dword [rbx]
mov edx, r14d
test r9d, r9d
je 0x14000939f
lea rcx, [rbx + 0x20]
mov r8, qword [rcx - 8]
cmp rsi, r8
jb 0x140009369
mov eax, dword [rcx]
add rax, r8
cmp rsi, rax
jb 0x140009379
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x14000939f
jmp 0x140009356
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x1400040b0], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x1400040b8], eax
test rdi, rdi
je 0x14000939f
mov dword [rdi], eax
test rbx, rbx
je 0x1400093b2
mov edx, 0x2a6cf6e7
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x1400040b0]
jmp 0x1400093bd
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x1400093d0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ecx, ecx
call fcn.140009254
mov rsi, rax
mov rax, qword [0x1400040c0]
test rax, rax
jne 0x1400094b1
test rsi, rsi
je 0x1400094af
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rbp, rax
movzx ecx, word [rax + 6]
lea rdi, [rax + 0x108]
lea rdx, [rcx + rcx*4]
lea rcx, [rdi + rdx*8]
cmp rdi, rcx
jae 0x1400094af
lea rbx, [rdi + 8]
mov ecx, dword [rbx + 0x1c]
and ecx, 0x2a000000
cmp ecx, 0x28000000
jne 0x140009496
mov eax, dword [rbx - 8]
cmp eax, 0x643578
je 0x140009496
cmp eax, 0x73366f2f
je 0x140009496
movups xmm0, xmmword [0x14000a3f0]
mov r9d, dword [rbx + 4]
lea rcx, [rsp + 0x50]
mov eax, dword [rbx]
add r9, rsi
and qword [rsp + 0x50], 0
mov r8d, 0xf
mov qword [rsp + 0x28], rcx
mov dl, 0xcc
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x30], xmm0
call fcn.140001d14
test eax, eax
jns 0x1400094c6
movzx eax, word [rbp + 6]
add rbx, 0x28
lea rcx, [rax + rax*4]
lea rdx, [rdi + rcx*8]
lea rax, [rbx - 8]
cmp rax, rdx
jb 0x140009433
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + 3]
add rax, 7
add rax, rcx
mov qword [0x1400040c0], rax
jmp 0x1400094b1
Function at 0x1400096b0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
test rcx, rcx
je 0x140009828
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x20], 0
mov rbx, rcx
and qword [rbp + 0x28], 0
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov r14d, 2
cmp rax, qword [rbx]
jne 0x1400096ed
lea edi, [r14 - 1]
jmp 0x14000971c
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rbx]
lea rdx, [rbp + 0x28]
xor edi, edi
cmp rax, qword [rbx + 0x10]
cmove edi, r14d
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140009758
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000972f
mov rdx, qword [rbx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
lea rdx, [rbx + 0x38]
mov cl, 1
call fcn.140009608
cmp edi, 1
je 0x140009749
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140009758
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp edi, r14d
je 0x140009783
mov rcx, qword [rbx + 0x10]
lea rdx, [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400097c9
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rbp + 0x20]
jmp 0x140009789
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, qword [rbx + 0x30]
mov r8b, 1
mov rcx, rax
call fcn.1400098cc
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400097ab
mov rdx, qword [rbx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
cmp edi, r14d
je 0x1400097ba
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400097c9
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400097fd
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x1400097ed
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
and qword [rbx + 0x28], 0
mov rcx, qword [rbx + 0x20]
mov edx, 0x2a6cf6e7
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rbx + 0x20], 0
lea rdx, [rbx + 0x38]
xor ecx, ecx
call fcn.140009608
mov rdx, rbx
lea rcx, [0x1400044c0]
call qword [sym.imp.ntoskrnl.exe_RtlDeleteElementGenericTableAvl]
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
Function at 0x140009d14
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov ecx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140009de7
mov eax, dword [0x140004550]
test eax, eax
je 0x140009de2
add rax, qword [rsp + 0x30]
mov r8d, 0xa05
cmp dword [0x140004540], r8d
jl 0x140009ddb
mov ecx, dword [rdi + 4]
test ecx, ecx
jne 0x140009d6b
mov byte [rax], cl
jmp 0x140009d73
cmp ecx, 1
jne 0x140009d73
mov byte [rax], 0x62
mov edx, dword [rdi + 8]
cmp edx, 2
je 0x140009db2
mov eax, dword [0x140004554]
test eax, eax
je 0x140009db2
mov ecx, eax
and edx, 1
add rcx, qword [rsp + 0x30]
cmp dword [0x140004540], r8d
mov eax, dword [rcx]
jl 0x140009da7
btr eax, 8
shl edx, 8
or eax, edx
mov dword [rcx], eax
jmp 0x140009db2
shl edx, 0xa
btr eax, 0xa
or edx, eax
mov dword [rcx], edx
mov edx, dword [rdi + 0xc]
cmp edx, 2
je 0x140009de7
mov eax, dword [0x140004550]
mov rcx, qword [rsp + 0x30]
cmp edx, 1
jne 0x140009dd3
mov word [rax + rcx - 2], 0x808
jmp 0x140009de7
and word [rax + rcx - 2], 0
jmp 0x140009de7
mov ebx, 0xc00000bb
jmp 0x140009de7
mov ebx, 0xc0000141
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140009df7
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b000
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
xor ebx, ebx
mov r14, rcx
test rcx, rcx
jne 0x14000b02e
mov eax, 0xc000000d
jmp 0x14000b1c1
xorps xmm0, xmm0
mov dword [rbp - 0x19], 0x7e007c
lea rax, [0x14000b5f0]
mov dword [rbp + 7], 0x160014
mov qword [rbp - 0x11], rax
lea r8, [rbp + 0x17]
lea rax, [0x14000b670]
mov dword [rbp - 9], 0x80006
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 0x6f]
lea rax, [0x14000b690]
mov qword [rbp + 0x6f], rbx
mov qword [rbp - 1], rax
mov edx, 0x20019
lea rax, [rbp - 0x19]
mov qword [rbp + 0x17], 0x30
mov qword [rbp + 0x27], rax
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp + 0x2f], 0x240
mov qword [rbp + 0x1f], rbx
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
test eax, eax
js 0x14000b1bf
mov edx, 0x1000
mov ecx, 1
mov r8d, 0x2a6cf6e7
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [rbp + 0x67], ebx
mov rdi, rax
test rax, rax
je 0x14000b1b0
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 9]
mov r9, rdi
mov dword [rsp + 0x20], 0x1000
mov r8d, 1
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
test eax, eax
js 0x14000b10e
mov eax, dword [rdi + 8]
mov ecx, dword [rax + rdi]
mov dword [r14], ecx
jmp 0x14000b1a0
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 7]
mov r9, rdi
mov dword [rsp + 0x20], 0x1000
mov r8d, 1
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
test eax, eax
js 0x14000b1a0
mov r8d, dword [rdi + 0x10]
mov edx, dword [rdi + 0xc]
add r8, rdi
test edx, edx
je 0x14000b1a0
mov r9d, ebx
cmp word [r8 + r9*2 + 0x14], 0x2e
jne 0x14000b16a
lea ecx, [rbx + 1]
jmp 0x14000b166
cmp word [r8 + rcx*2 + 0x14], 0x2e
je 0x14000b172
inc ecx
cmp ecx, edx
jb 0x14000b15b
inc ebx
cmp ebx, edx
jae 0x14000b1a0
jmp 0x14000b14a
add r8, 0x16
sub cx, bx
add cx, cx
mov edx, 0xa
mov word [rbp - 0x27], cx
mov word [rbp - 0x29], cx
lea rcx, [rbp - 0x29]
lea rax, [r8 + r9*2]
mov r8, r14
mov qword [rbp - 0x21], rax
call qword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToInteger]
mov esi, eax
mov edx, 0x2a6cf6e7
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000b1b5
mov esi, 0xc0000017
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000b4b0
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, qword [rsp + 0xa0]
mov rbp, r9
mov r12b, r8b
mov r13, rdx
test r15, r15
jne 0x14000b4f0
mov eax, 0xc000000d
jmp 0x14000b588
xor ecx, ecx
call fcn.140009254
mov rbx, rax
test rax, rax
je 0x14000b583
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
test rax, rax
jne 0x14000b51b
mov eax, 0xc000007b
jmp 0x14000b588
lea r14, [rax + 0x108]
movzx eax, word [rax + 6]
mov rdi, r14
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp r14, rax
jae 0x14000b583
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x14000b5a6
movzx eax, word [rsi + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp rdi, rax
jb 0x14000b536
mov eax, 0xc0000225
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r9d, dword [rdi + 0xc]
lea rcx, [rsp + 0xa0]
mov eax, dword [rdi + 8]
add r9, rbx
and qword [rsp + 0xa0], 0
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov dl, r12b
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140001d14
test eax, eax
js 0x14000b588
mov ecx, dword [rsp + 0xa0]
sub ecx, ebx
mov dword [r15], ecx
jmp 0x14000b588
Function at 0x2fc4d2380
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d3460
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d2d82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d2e1a
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d2dfe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d2df2
cmp qword [rbp - 0x10], 0
je 0x2fc4d2df2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d2db8
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d2e1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d2f20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d2f48
mov eax, 0
jmp 0x2fc4d2f96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d2f71
mov eax, 0
jmp 0x2fc4d2f96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d2f91
mov eax, 0
jmp 0x2fc4d2f96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d2f9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d301a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3011
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d3011
mov rax, qword [rbp - 8]
jmp 0x2fc4d302f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d2fe4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000cb20
Capabilities:
Print debug messages

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, 0x40
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor ebx, ebx
mov eax, dword [0x140531a00]
test eax, eax
je 0x14000cb72
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140531a00]
test eax, eax
jne 0x14000cb7b
call fcn.14000cc70
test eax, eax
je 0x14000cb97
lea rdx, [rsp + 0x30]
mov rcx, qword [0x14052a0a8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14000cb9f
xor eax, eax
jmp 0x14000cbf7
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rsi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rsi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
test rsi, rsi
sete bl
test ebx, ebx
je 0x14000cbd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14000cbdb
xor edi, edi
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14000cbf4
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret

Function at 0x14000f8b0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14000f92a
xor r8d, r8d
call fcn.14000fb70
mov rsi, rax
test rax, rax
jne 0x14000f8e6
mov eax, edi
jmp 0x14000f940
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14000f8e2
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140019140
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.140021198
mov rdi, rax
test rax, rax
je 0x1400191bc
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1400191b7
cmp dword [rbx], 0x40
jb 0x1400191b7
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x1400191b7
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x1400191c0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001dbd8
Capabilities:
Print debug messages

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, 0x70
mov edi, r9d
mov rsi, r8
mov r14, rdx
mov r15d, ecx
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor ebx, ebx
mov eax, dword [0x140531a00]
test eax, eax
je 0x14001dc2a
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140531a00]
test eax, eax
jne 0x14001dc33
call fcn.14000cc70
test eax, eax
je 0x14001dc4f
lea rdx, [rsp + 0x60]
mov rcx, qword [0x14052a0a8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14001dc5a
xor eax, eax
jmp 0x14001dd08
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
mov rdx, r14
mov ecx, r15d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
mov qword [rsp + 0x68], rax
xor ebx, ebx
test rsi, rsi
sete bl
test ebx, ebx
je 0x14001dcea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14001dcec
xor edi, edi
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14001dd05
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret