joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010fff0
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.140111350
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140110cc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140133168]
test eax, eax
je 0x140110d5a
lea rax, [0x140133140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140133170]
mov qword [rbp - 8], rax
jmp 0x140110d3e
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 0x140110d32
cmp qword [rbp - 0x10], 0
je 0x140110d32
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 0x140110cf8
lea rax, [0x140133140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140110d5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140110e60
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 0x140110e88
mov eax, 0
jmp 0x140110ed6
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 0x140110eb1
mov eax, 0
jmp 0x140110ed6
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 0x140110ed1
mov eax, 0
jmp 0x140110ed6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140110edc
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 0x140110f5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140110f51
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 0x140110f51
mov rax, qword [rbp - 8]
jmp 0x140110f6f
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 0x140110f24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00406650]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00406660]
mov dword [rax], 1
mov rax, qword [0x00406670]
mov dword [rax], 1
mov rax, qword [0x00406640]
mov dword [rax], 1
mov rax, qword [0x00406530]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00406630]
mov dword [0x00409008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004065f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004064c0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x4028a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00409624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402a28
mov rax, qword [0x00409628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4028ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402975
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4028d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x402a5d
mov rax, qword [0x00409628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00409628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402a40
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40296e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4029d0
add dword [0x00409624], 1
cmp edi, 8
jae 0x4029a3
test dil, 4
jne 0x402a14
test edi, edi
je 0x402998
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x402a2f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402998
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4029bc
jmp 0x402998
add rsi, qword [0x00409628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40296e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402998
xor esi, esi
jmp 0x4028f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402998
mov rax, qword [0x00409628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4031b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004098e0]
test rbx, rbx
je 0x403204
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4031fb
test rsi, rsi
je 0x4031fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4031e0
lea rcx, [0x00409900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403440
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x403450
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x403460
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4034a1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x403498
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4034a3
add rax, 0x28
cmp rax, r9
jne 0x403484
xor eax, eax
ret

Function at 0x403540
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406530]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4035ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4035ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4035ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4035a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4035af
add rax, 0x28
cmp rax, r9
jne 0x403590
xor eax, eax
add rsp, 0x28
ret

Function at 0x4036b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406530]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4036d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4036c8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40372d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403724
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403734
add rax, 0x28
cmp rax, r9
jne 0x403710
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403750
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00406530]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4037be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4037be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4037be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4037be
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x4037b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4037c5
add rcx, 0x28
cmp rcx, rax
jne 0x4037a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4037d8
jmp 0x4037be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4037e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4037be
test r9d, r9d
jg 0x4037d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x404de0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140f877ec
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f877f6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f8781f
pop rbp
sub rbp, 0x33
sub rbp, 0xf877ec
sub rsp, 0x20
jmp 0x140f8783e
mov rax, 0xf877ec
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x97e3b2a
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f8785d
jmp 0x140f87874
invalid
Function at 0x140007ecc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140007d5f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007d5f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007d5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007d5f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007d5f
cmp dword [rcx + 0x84], 0xe
jbe 0x140007d5f
cmp dword [rcx + 0xf8], 0
je 0x140007d5f
mov ecx, ebx
call fcn.140007e00
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140007bf0
cmp dword [rbp + 0x20], 0
je 0x140007dac
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007db4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140007cf8
Function at 0x140019e78
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140019e55
call fcn.1400119e8
mov dword [rax], 0x16
call fcn.140015ff4
or eax, 0xffffffff
jmp 0x140019e72
sub dword [rcx + 0x10], 1
jns 0x140019e64
add rsp, 0x28
jmp 0x140022d70
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140019e34
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x140022da2
call fcn.1400119e8
mov dword [rax], 0x16
call fcn.140015ff4
jmp 0x140022ebf
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140022ebf
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140022ebf
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140022dd1
lock or dword [rcx + 0x14], 0x10
jmp 0x140022ebf
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140022de5
call fcn.140023b14
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.140018a64
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.1400253f4
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140022ead
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x140022e78
mov rcx, rdi
call fcn.140018a64
cmp eax, esi
je 0x140022e63
mov rcx, rdi
call fcn.140018a64
cmp eax, 0xfffffffe
je 0x140022e63
mov rcx, rdi
call fcn.140018a64
movsxd rbx, eax
lea r14, [0x140037010]
mov rcx, rdi
sar rbx, 6
call fcn.140018a64
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140022e6a
lea rdx, [0x1400357d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140022e78
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x140022e9c
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x140022e9c
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x140022e9c
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x140022ec2
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140022edc
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 0x140022c02
call fcn.1400119e8
mov dword [rax], 0x16
call fcn.140015ff4
jmp 0x140022d4d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140022d4d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140022d4d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140022c31
lock or dword [rcx + 0x14], 0x10
jmp 0x140022d4d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140022c45
call fcn.140023b14
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140022c55
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140022c58
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140018a64
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1400253f4
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140022d3b
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140022ce9
mov rcx, rbx
call fcn.140018a64
cmp eax, 0xffffffff
je 0x140022cd4
mov rcx, rbx
call fcn.140018a64
cmp eax, 0xfffffffe
je 0x140022cd4
mov rcx, rbx
call fcn.140018a64
movsxd rdi, eax
lea r14, [0x140037010]
mov rcx, rbx
sar rdi, 6
call fcn.140018a64
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140022cdb
lea rdx, [0x1400357d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140022ce9
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140022d0d
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140022d0d
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140022d0d
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140022d2b
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140022d36
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140022d52
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 0x140022bcc
Function at 0x140009e10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor ebp, ebp
cmp byte [rcx + 0x10], bpl
jne 0x140009eb9
mov byte [rcx + 0x10], 1
lea ecx, [rbp + 0x10]
call fcn.1400a4d50
mov rdi, rax
mov qword [rsp + 0x30], rax
lea ecx, [rbp + 0x10]
call fcn.1400a4d50
mov qword [rax], rbx
lea rcx, [0x14000ce60]
mov qword [rax + 8], rcx
mov qword [rsp + 0x38], rax
lea rsi, [rdi + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x14000c9d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140009ee8
mov rcx, qword [rbx + 8]
mov qword [rbx + 8], rdi
test rcx, rcx
je 0x140009eb9
cmp dword [rcx + 8], ebp
je 0x140009eaf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov edx, 0x10
call fcn.1400a4fe0
mov eax, 0xe
cmp qword [rbx + 8], 0
cmovne eax, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a4d30
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov dword [rsi], ebp
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14000f150
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
xor esi, esi
mov edi, 8
mov rax, qword gs:[0x58]
add rdi, qword [rax]
mov eax, dword [rdi]
cmp dword [0x1400e35b0], eax
jle 0x14000f1d4
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x14000f1d4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8d, 0x15
lea rdx, [0x1400b6f28]
lea rcx, [rsp + 0x30]
call fcn.14000b750
nop
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [0x1400e3598]
call fcn.140011150
nop
lea rcx, [rsp + 0x30]
call fcn.14000ad90
mov ecx, 0x10
call fcn.1400a4d50
lea rcx, [0x14000f690]
mov qword [rax], rcx
mov qword [rax + 8], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140011a20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000f35c
cmp dword [rbx + 8], 0
jne 0x14000f355
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rbx], xmm1
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x14001d9d0.0]
mov eax, dword [rdi]
cmp dword [0x1400e35b0], eax
jle 0x14000f2e9
lea rcx, [0x1400e35b0]
call fcn.1400a50d0
cmp dword [0x1400e35b0], 0xffffffff
jne 0x14000f2e9
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400e3598], xmm0
mov qword [0x1400e35a8], rax
call fcn.1400444b0
lea rcx, [0x1400ad430]
call fcn.1400a4fc4
nop
lea rcx, [0x1400e35b0]
call fcn.1400a5064
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8d, 0x12
lea rdx, str.cef_is_initialized
lea rcx, [rsp + 0x30]
call fcn.14000b750
nop
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [0x1400e3598]
call fcn.140011150
nop
lea rcx, [rsp + 0x30]
call fcn.14000ad90
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a4d30
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140012280
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400de1e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, rcx
xor ebx, ebx
mov dword [rsp + 0x28], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
test rax, rax
je 0x14001237e
mov edi, 1
cmp dword [rsp + 0x28], edi
jle 0x140012375
lea rsi, [rax + 8]
lea r12, [0x1400b70c4]
lea r15, [0x1400b70cc]
nop
mov rdx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140012310
lea rcx, [rsp + 0x30]
call fcn.140012c90
nop
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
setae r11b
mov r9, qword [rsp + 0x30]
cmovae r8, r9
mov r10, qword [rsp + 0x40]
cmp r10, 2
jne 0x1400123bc
mov rdx, r10
mov rcx, r12
sub r8, r12
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x1400123bc
add rcx, 2
sub rdx, 1
jne 0x140012352
lea rcx, [rsp + 0x30]
call fcn.14000ad20
mov ebx, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rax, vtable.RegistryService.0
mov qword [rsp + 0x20], rax
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140041210
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a4d30
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea r8, [rsp + 0x30]
test r11b, r11b
cmovne r8, r9
cmp r10, 2
jne 0x1400123fe
mov rdx, r10
mov rax, r15
sub r8, r15
nop word [rax + rax]
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x1400123fe
add rax, 2
sub rdx, 1
jne 0x1400123e0
lea rcx, [rbp + 0x10]
call fcn.14000fd10
nop
lea rcx, [rsp + 0x30]
call fcn.14000ad20
inc edi
add rsi, 8
cmp edi, dword [rsp + 0x28]
jge 0x140012375
jmp 0x1400122f0