joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a258
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 0x14009a28a
call fcn.140086ecc
mov dword [rax], SafeArrayUnaccessData
call fcn.140086d60
jmp 0x14009a3a9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14009a3a9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14009a3a9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14009a2b9
lock or dword [rcx + 0x14], 0x10
jmp 0x14009a3a9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14009a2cd
call fcn.14009a5fc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140098ed0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14009c20c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14009a397
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14009a362
mov rcx, rsi
call fcn.140098ed0
cmp eax, edi
je 0x14009a34d
mov rcx, rsi
call fcn.140098ed0
cmp eax, 0xfffffffe
je 0x14009a34d
mov rcx, rsi
call fcn.140098ed0
movsxd rbx, eax
lea r14, [0x1400f0440]
mov rcx, rsi
sar rbx, 6
call fcn.140098ed0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14009a354
lea rdx, [0x1400ed470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14009a362
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14009a386
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14009a386
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14009a386
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 0x14009a3ac
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 0x14009bae0
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.1400807e0
sub rsp, rax
mov rax, qword [0x1400ed080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140098ed0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14009bb2f
mov rax, rbp
jmp 0x14009bc37
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 + 0xf0440]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14009b724
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xf0440]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14009bc33
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 0x14009bc33
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14009b724
test rax, rax
js 0x14009bc33
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14009bc33
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14009bc25
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14009bc25
cmp byte [rcx], 0xd
jne 0x14009bc0b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14009bc1a
cmp byte [rcx + 1], 0xa
jne 0x14009bc1a
inc rcx
jmp 0x14009bc1a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xed4c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14009bbed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14009bc37
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14007fc70
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 0x14009bd60
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, [0x1400f0440]
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 0x14009bdbe
cmp word [rdx], r12w
jne 0x14009bdbe
or byte [rax + r8*8 + 0x38], cl
jmp 0x14009bdc4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14009bf1f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14009befa
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14009bdfd
mov rcx, r9
jmp 0x14009be20
cmp r9, rdx
jae 0x14009be37
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 0x14009bde1
jmp 0x14009bf1f
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 0x14009bef4
cmp dword [rsp + 0x80], edi
je 0x14009bef4
mov rdx, r14
lea r11, [0x1400f0440]
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 0x14009becd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14009bea0
mov word [rbx], r12w
jmp 0x14009bf1b
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 0x14009bea9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14009bf1b
cmp word [rsp + 0x70], r12w
jne 0x14009beda
cmp rbx, rsi
je 0x14009be9a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14009b72c
cmp word [rsp + 0x70], r12w
je 0x14009bf1f
mov word [rbx], r13w
jmp 0x14009bf1b
lea r11, [0x1400f0440]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14009bf17
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14009bf1f
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 0x1400a3cbc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a3d43
mov rsi, rbx
cmp word [rax], bp
je 0x1400a3d02
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a3cec
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a3ce8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140097d30
mov rdi, rax
test rax, rax
je 0x1400a3d30
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a9440
mov rbp, rdi
xor ecx, ecx
call fcn.140097cf4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a8640
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009b72c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009b72c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a8790
cmp rax, 0xffffffffffffffff
je 0x1400a8790
xor edi, edi
test rbp, rbp
jle 0x1400a873b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009a1e0
mov rbx, rax
test rax, rax
jne 0x1400a86c8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a8731
mov edx, 0x8000
mov ecx, r14d
call fcn.140097030
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14009b164
cmp eax, 0xffffffff
je 0x1400a8711
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a86d8
mov edx, r15d
mov ecx, r14d
call fcn.140097030
jmp 0x1400a8731
cmp byte [rsi + 0x38], dil
je 0x1400a8728
cmp dword [rsi + 0x34], 5
jne 0x1400a8728
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400a8731
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140097cf4
jmp 0x1400a87a4
jns 0x1400a87a4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009b72c
cmp rax, 0xffffffffffffffff
jne 0x1400a875c
cmp byte [rsi + 0x30], dil
je 0x1400a87a4
mov edi, dword [rsi + 0x2c]
jmp 0x1400a87a4
mov ecx, r14d
call fcn.1400a4764
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a87a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400a87a4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a879d
mov eax, dword [rsi + 0x2c]
jmp 0x1400a87a2
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009b72c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400a9010
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140053830]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140053840]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140057008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400537a0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140033f10
mov rcx, qword [0x1400538d0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140053820]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140033d20
mov ebx, dword [0x140057028]
lea r12d, [rbx + 1]
movsxd r12, r12d
shl r12, 3
mov rcx, r12
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, qword [0x140057020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub r12, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [rdi + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rsi, [rax + rax + 2]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [rdi + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rbx, r12
jne 0x140001288
add rbx, rbp
mov qword [rbx], 0
mov qword [0x140057020], rbp
call fcn.140033b20
mov rax, qword [0x1400537b0]
mov r8, qword [0x140057018]
mov ecx, dword [0x140057028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140057020]
call fcn.1400338d7
mov ecx, dword [0x14005700c]
mov dword [0x140057010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140057008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140053840]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.140039bc0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140053870]
mov rcx, qword [0x140053860]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140057010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140053890]
mov rcx, qword [0x140053880]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rbx, rax
jmp 0x1400012be
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140008930
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
mov rax, qword [rsp + 0x30]
mov cx, word [rax]
mov rax, qword [rsp + 0x28]
mov word [rax], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 2]
mov rax, qword [rsp + 0x28]
mov word [rax + 2], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 4]
mov rax, qword [rsp + 0x28]
mov word [rax + 4], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 6]
mov rax, qword [rsp + 0x28]
mov word [rax + 6], cx
mov dword [rsp + 0x24], 0x4d3e521d
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
sub eax, 0x4d3e521d
je 0x1400089bd
jmp 0x1400089a4
mov eax, dword [rsp + 0x20]
sub eax, 0x76e613fd
je 0x140008a40
jmp 0x1400089b8
jmp 0x140008b10
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 8]
mov rax, qword [rsp + 0x28]
mov word [rax + 8], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 0xa]
mov rax, qword [rsp + 0x28]
mov word [rax + 0xa], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 0xc]
mov rax, qword [rsp + 0x28]
mov word [rax + 0xc], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 0xe]
mov rax, qword [rsp + 0x28]
mov word [rax + 0xe], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 0x10]
mov rax, qword [rsp + 0x28]
mov word [rax + 0x10], cx
mov rax, qword [rsp + 0x30]
mov ax, word [rax + 0x12]
mov word [rsp + 0x3e], ax
mov rax, qword [rsp + 0x28]
add rax, 0x12
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0x76e613fd
jmp 0x140008b10
mov cx, word [rsp + 0x3e]
mov rax, qword [rsp + 0x40]
mov word [rax], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 0x14]
mov rax, qword [rsp + 0x28]
mov word [rax + 0x14], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 0x16]
mov rax, qword [rsp + 0x28]
mov word [rax + 0x16], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 0x18]
mov rax, qword [rsp + 0x28]
mov word [rax + 0x18], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 0x1a]
mov rax, qword [rsp + 0x28]
mov word [rax + 0x1a], cx
mov rcx, qword [rsp + 0x28]
add rcx, 0x1c
mov r8, qword [rsp + 0x30]
add r8, 0x1c
mov r9d, 8
mov rdx, r9
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_memcpy_s]
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 0x24]
mov rax, qword [rsp + 0x28]
mov word [rax + 0x24], cx
mov rax, qword [rsp + 0x30]
mov cx, word [rax + 0x26]
mov rax, qword [rsp + 0x28]
mov word [rax + 0x26], cx
mov rcx, qword [rsp + 0x28]
add rcx, 0x1c
mov r8, qword [rsp + 0x30]
add r8, 0x28
mov r9d, 0x14
mov rdx, r9
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_memcpy_s]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x3c], ecx
add rsp, 0x48
ret
jmp 0x14000898c
Function at 0x140033d30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140039a30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140033da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400570c4]
mov rbx, rcx
test esi, esi
jle 0x140033ed0
mov rax, qword [0x1400570c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140033deb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140033e75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140033dd0
mov rcx, rbx
call fcn.140034810
mov rdi, rax
test rax, rax
je 0x140033ef2
mov rax, qword [0x1400570c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140034950
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400570c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140033ed7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140033e6e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140033e80
add dword [0x1400570c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400570c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140033e6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140033d30
nop dword [rax]
xor esi, esi
jmp 0x140033df8
mov rax, qword [0x1400570c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140033d30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140033d30
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140034480
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140057120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140057100]
test rbx, rbx
je 0x1400344dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400344d3
test eax, eax
jne 0x1400344d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400344b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140034810
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140053770]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140034830
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140034838
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140034830
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14003488d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140034884
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140034830
add rax, 0x28
cmp rax, r9
jne 0x140034870
xor eax, eax
ret

Function at 0x140034890
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140053770]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400348af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400348b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400348af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140034950
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140053770]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003496f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140034978
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001ca60
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x298
movaps xmmword [rsp + 0x280], xmm6
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x140190038]
xor rax, rsp
mov qword [rsp + 0x278], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], r15
xor eax, eax
mov qword [rsp + 0x68], rax
mov esi, dword [rcx + 8]
mov r9d, esi
or r9d, 0x2001f
mov rcx, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
mov qword [rsp + 0x20], rdx
mov rdx, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001cb06
mov ebp, eax
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400d2660
mov eax, ebp
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x298
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x70]
mov r12, qword [rbx]
lea r14, [rsp + 0x58]
mov qword [r14], r12
and esi, 0x300
mov dword [r14 + 8], esi
lea r13, [rsp + 0x50]
mov qword [r13], r15
lea r15, [rsp + 0x4c]
mov dword [r15], 0x100
mov r8d, 0x200
mov rcx, rbx
mov dl, 0xaa
call fcn.1400d47c0
xorps xmm6, xmm6
mov rsi, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov qword [rsp + 0x38], r13
movups xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
mov rcx, r12
xor edx, edx
mov r8, rbx
mov r9, r15
call rsi
test eax, eax
jne 0x14001cb96
mov rcx, r14
mov rdx, rbx
call fcn.14001ca60
test eax, eax
jne 0x14001cbc4
mov dword [rsp + 0x4c], 0x100
mov r12, qword [rsp + 0x58]
jmp 0x14001cb54
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001cbaf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
call fcn.14001d250
mov ebp, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001cad8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001cad8
Function at 0x14001ff20
Capabilities:
Get graphical window text

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x140190038]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp byte [rcx + 0x7f8], 0
je 0x14001ff58
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d2660
xor eax, eax
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rsi, rcx
lea rdi, [rcx + 0x480]
mov rcx, rdi
call fcn.140023bb0
xor al, 1
mov rcx, rdi
mov edx, eax
call fcn.140023dd0
call fcn.14001b130
test rax, rax
je 0x1400200dd
mov rcx, rax
call fcn.14010a090
add rax, 0x18
lea rbx, [rsp + 0x38]
mov qword [rbx], rax
mov rcx, qword [rsi + 0x590]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [rax + 1]
mov rcx, rbx
mov edx, ebp
call fcn.14010b310
mov rcx, qword [rsi + 0x590]
mov rdx, rax
mov r8d, ebp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
mov edx, eax
call fcn.14010b2b0
lea rdx, [0x14016dd7c]
lea rcx, [rsp + 0x28]
call fcn.1400200f0
mov rax, qword [rbx]
mov rcx, qword [rax - 0x18]
test rcx, rcx
je 0x14001fff6
call fcn.140109670
test rax, rax
jne 0x14002000c
call fcn.14001b130
mov rcx, rax
call fcn.140109670
test rax, rax
je 0x1400200dd
mov rcx, rax
call fcn.14010a090
add rax, 0x18
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov r9, qword [rsp + 0x28]
mov eax, dword [r9 - 0x10]
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rdx - 0x10]
mov dword [rsp + 0x20], eax
call fcn.140021130
mov rdx, qword [rsp + 0x28]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
mov ebx, 0xffffffff
dec eax
test eax, eax
jle 0x1400200cb
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsi + 0x708]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rdi
call fcn.140023bb0
xor al, 1
movzx edx, al
mov rcx, qword [rsi + 0x788]
call qword [sym.imp.USER32.dll_EnableWindow]
mov rdx, qword [rsp + 0x30]
lock xadd dword [rdx - 8], ebx
dec ebx
test ebx, ebx
jle 0x1400200bc
mov rdx, qword [rsp + 0x38]
mov eax, 0xffffffff
lock xadd dword [rdx - 8], eax
dec eax
test eax, eax
jg 0x14001ff40
mov rcx, qword [rdx - 0x18]
add rdx, 0xffffffffffffffe8
call fcn.14010a010
jmp 0x14001ff40
mov rcx, qword [rdx - 0x18]
add rdx, 0xffffffffffffffe8
call fcn.14010a010
jmp 0x140020091
mov rcx, qword [rdx - 0x18]
add rdx, 0xffffffffffffffe8
call fcn.14010a010
jmp 0x140020055
mov ecx, 0x80004005
call fcn.14001b100
int3