joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a4220
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400f7680]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400a4277
cmp word [rdx], r13w
jne 0x1400a4277
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400a427c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400a43a1
mov r11d, SafeArrayDestroy
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400a43c2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400a42b5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400a42dc
cmp r9, r8
jae 0x1400a42ec
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400a4296
jmp 0x1400a43a1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a4396
cmp dword [rsp + 0x80], esi
je 0x1400a4396
lea r8, [0x1400f7680]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400a436e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400a433e
mov word [rbx], r13w
jmp 0x1400a439e
mov ecx, SafeArrayDestroy
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400a434b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400a439e
cmp word [rsp + 0x70], r13w
jne 0x1400a437b
cmp rbx, r14
je 0x1400a4338
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a4e88
cmp word [rsp + 0x70], r13w
je 0x1400a43a1
mov ecx, SafeArrayDestroy
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400f7680]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400a439b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400a43a1
Function at 0x1400a9c94
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14009fbb4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a9d35
cmp ebx, dword [rsp + 0x30]
je 0x1400a9d2e
test esi, esi
je 0x1400a9d2e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a9d09
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a9d16
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a9cf3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a9d1a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a9d37
mov eax, 1
jmp 0x1400a9d37
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400aadc8
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 0x1400aae4f
mov rsi, rbx
cmp word [rax], bp
je 0x1400aae0e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400aadf8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400aadf4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a05f8
mov rdi, rax
test rax, rax
je 0x1400aae3c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400afe70
mov rbp, rdi
xor ecx, ecx
call fcn.1400a03b8
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 0x1400af0c0
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.1400a4e88
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a4e88
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400af210
cmp rax, 0xffffffffffffffff
je 0x1400af210
xor edi, edi
test rbp, rbp
jle 0x1400af1bb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400a1b84
mov rbx, rax
test rax, rax
jne 0x1400af148
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400af1b1
mov edx, 0x8000
mov ecx, r14d
call fcn.14009f4ac
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.1400a35d8
cmp eax, 0xffffffff
je 0x1400af191
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400af158
mov edx, r15d
mov ecx, r14d
call fcn.14009f4ac
jmp 0x1400af1b1
cmp byte [rsi + 0x38], dil
je 0x1400af1a8
cmp dword [rsi + 0x34], 5
jne 0x1400af1a8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400af1b1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400a03b8
jmp 0x1400af224
jns 0x1400af224
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a4e88
cmp rax, 0xffffffffffffffff
jne 0x1400af1dc
cmp byte [rsi + 0x30], dil
je 0x1400af224
mov edi, dword [rsi + 0x2c]
jmp 0x1400af224
mov ecx, r14d
call fcn.1400ab414
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400af224
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 0x1400af224
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400af21d
mov eax, dword [rsi + 0x2c]
jmp 0x1400af222
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a4e88
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 0x1400af9a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400af9c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400af9c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001122
Capabilities:
Execute shellcode via indirect call

Disassembly:
jmp 0x140002500
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x40]
lea rcx, section..data
call fcn.1400010cd
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x353
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
mov r8d, 0x353
lea rdx, section..data
mov rcx, qword [rsp + 0x20]
call fcn.140005350
call qword [rsp + 0x20]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140002500
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x140002500
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x40]
lea rcx, section..data
call fcn.1400010cd
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x353
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
mov r8d, 0x353
lea rdx, section..data
mov rcx, qword [rsp + 0x20]
call fcn.140005350
call qword [rsp + 0x20]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140007820
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140007688
Function at 0x140004ff0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x18
movdqa xmmword [rsp], xmm7
mov rdi, rcx
mov rsi, rdx
mov ecx, esi
mov rax, rdi
movdqa xmm7, xmmword [0x140683a40]
test rax, 0xf
jne 0x140005067
sub rcx, 2
jl 0x140005040
movdqa xmm0, xmmword [rax]
movdqa xmm1, xmmword [rax + 0x10]
pxor xmm0, xmm7
pxor xmm1, xmm7
movdqa xmmword [rax], xmm0
movdqa xmmword [rax + 0x10], xmm1
add rax, 0x20
sub rcx, 2
jge 0x14000501c
add rcx, 2
je 0x14000505b
movdqu xmm0, xmmword [rax]
pxor xmm0, xmm7
movdqu xmmword [rax], xmm0
add rax, 0x10
dec rcx
jne 0x140005046
movdqa xmm7, xmmword [rsp]
add rsp, 0x18
pop rdi
pop rsi
ret
test rax, 7
jne 0x140005046
shl rcx, 1
movq xmm7, qword [0x140683a48]
movq xmm0, qword [rax + rcx*8 - 8]
pxor xmm0, xmm7
movq qword [rax + rcx*8 - 8], xmm0
shr rcx, 1
add rax, 8
dec rcx
je 0x14000505b
jmp 0x140005016

Function at 0x1400059a0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x18
movdqa xmmword [rsp], xmm7
mov rdi, rcx
mov rsi, rdx
mov ecx, esi
mov rax, rdi
movdqa xmm7, xmmword [0x140683a80]
test rax, 0xf
jne 0x140005a17
sub rcx, 2
jl 0x1400059f0
movdqa xmm0, xmmword [rax]
movdqa xmm1, xmmword [rax + 0x10]
pxor xmm0, xmm7
pxor xmm1, xmm7
movdqa xmmword [rax], xmm0
movdqa xmmword [rax + 0x10], xmm1
add rax, 0x20
sub rcx, 2
jge 0x1400059cc
add rcx, 2
je 0x140005a0b
movdqu xmm0, xmmword [rax]
pxor xmm0, xmm7
movdqu xmmword [rax], xmm0
add rax, 0x10
dec rcx
jne 0x1400059f6
movdqa xmm7, xmmword [rsp]
add rsp, 0x18
pop rdi
pop rsi
ret
test rax, 7
jne 0x1400059f6
shl rcx, 1
movq xmm7, qword [0x140683a88]
movq xmm0, qword [rax + rcx*8 - 8]
pxor xmm0, xmm7
movq qword [rax + rcx*8 - 8], xmm0
shr rcx, 1
add rax, 8
dec rcx
je 0x140005a0b
jmp 0x1400059c6

Function at 0x140006350
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x18
movdqa xmmword [rsp], xmm7
mov rdi, rcx
mov rsi, rdx
mov ecx, esi
mov rax, rdi
movdqa xmm7, xmmword [0x140683ac0]
test rax, 0xf
jne 0x1400063c7
sub rcx, 2
jl 0x1400063a0
movdqa xmm0, xmmword [rax]
movdqa xmm1, xmmword [rax + 0x10]
pxor xmm0, xmm7
pxor xmm1, xmm7
movdqa xmmword [rax], xmm0
movdqa xmmword [rax + 0x10], xmm1
add rax, 0x20
sub rcx, 2
jge 0x14000637c
add rcx, 2
je 0x1400063bb
movdqu xmm0, xmmword [rax]
pxor xmm0, xmm7
movdqu xmmword [rax], xmm0
add rax, 0x10
dec rcx
jne 0x1400063a6
movdqa xmm7, xmmword [rsp]
add rsp, 0x18
pop rdi
pop rsi
ret
test rax, 7
jne 0x1400063a6
shl rcx, 1
movq xmm7, qword [0x140683ac8]
movq xmm0, qword [rax + rcx*8 - 8]
pxor xmm0, xmm7
movq qword [rax + rcx*8 - 8], xmm0
shr rcx, 1
add rax, 8
dec rcx
je 0x1400063bb
jmp 0x140006376
Function at 0x140006d00
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x18
movdqa xmmword [rsp], xmm7
mov rdi, rcx
mov rsi, rdx
mov ecx, esi
mov rax, rdi
movdqa xmm7, xmmword [0x140683b00]
test rax, 0xf
jne 0x140006d77
sub rcx, 2
jl 0x140006d50
movdqa xmm0, xmmword [rax]
movdqa xmm1, xmmword [rax + 0x10]
pxor xmm0, xmm7
pxor xmm1, xmm7
movdqa xmmword [rax], xmm0
movdqa xmmword [rax + 0x10], xmm1
add rax, 0x20
sub rcx, 2
jge 0x140006d2c
add rcx, 2
je 0x140006d6b
movdqu xmm0, xmmword [rax]
pxor xmm0, xmm7
movdqu xmmword [rax], xmm0
add rax, 0x10
dec rcx
jne 0x140006d56
movdqa xmm7, xmmword [rsp]
add rsp, 0x18
pop rdi
pop rsi
ret
test rax, 7
jne 0x140006d56
shl rcx, 1
movq xmm7, qword [0x140683b08]
movq xmm0, qword [rax + rcx*8 - 8]
pxor xmm0, xmm7
movq qword [rax + rcx*8 - 8], xmm0
shr rcx, 1
add rax, 8
dec rcx
je 0x140006d6b
jmp 0x140006d26
Function at 0x1401895c0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_wcsrchr
mov rbx, rax
add rbx, 2
je 0x140189701
xor esi, esi
lea r8, str.ErrorReportConfig.xml
mov edx, 0x104
mov word [rbx], si
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14018971a
lea r8d, [rsi + 4]
lea rdx, str.x86_
lea rcx, [rbx - 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
lea rcx, [rsp + 0x20]
test eax, eax
jne 0x14018967b
lea r8, str.ErrorReportConfig.xml
mov word [rbx - 8], si
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x1401896f2
mov edx, 0x5c
call sub.VCRUNTIME140.dll_wcsrchr
add rax, 2
je 0x1401896f2
lea r8, [rsp + 0x20]
mov word [rax], si
mov edx, 0x104
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str.x86_
mov edx, 0x104
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, str.ErrorReportConfig.xml
mov edx, 0x104
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rsp + 0x230]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14018971a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140189716
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140189796
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140397f60
mov ebx, eax
test eax, eax
js 0x140189796
lea rdx, str._error_report_client
mov rcx, rdi
call fcn.140398250
xor r9d, r9d
lea rdx, str.automatedReporting
xor r8d, r8d
mov rcx, rdi
call fcn.1403985f0
xor r9d, r9d
mov byte [rdi + 0x218], al
xor r8d, r8d
lea rdx, str.logging
mov rcx, rdi
call fcn.1403985f0
xor r9d, r9d
mov byte [rdi + 0x219], al
lea rdx, str.reportTimeoutSecs
mov rcx, rdi
lea r8d, [r9 + 0xf]
call fcn.1403986f0
mov rcx, rdi
mov dword [rdi + 0x21c], eax
call fcn.140398220
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14039bbb0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14018a000
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [rsp + 0x28], 0
lea rdx, str.open
mov rcx, rax
xor r9d, r9d
lea rax, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x250
pop rbx
ret

Function at 0x14018a080
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x2b8
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor eax, eax
lea rdx, [rsp + 0x90]
add rcx, 0x4328
mov word [rsp + 0x90], ax
mov r8d, 0x104
call sym.ErrorReportClient.exe_SfGetPathNameFromFilePath
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, str.explore
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x38], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x2b8
ret
Function at 0x14018b420
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, r8
mov rsi, rdx
mov r8d, edx
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_wcsrchr
mov rdi, rax
add rdi, 2
je 0x14018b53a
xor r14d, r14d
mov r8, rbp
mov rdx, rsi
mov word [rdi], r14w
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14018b536
lea r8d, [r14 + 4]
lea rdx, str.x86_
lea rcx, [rdi - 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov rcx, rbx
test eax, eax
jne 0x14018b4c7
mov r8, rbp
mov word [rdi - 8], r14w
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x14018b529
mov edx, 0x5c
call sub.VCRUNTIME140.dll_wcsrchr
add rax, 2
je 0x14018b529
mov r8, rbx
mov word [rax], r14w
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str.x86_
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rbp
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14018b53a
xor eax, eax
jmp 0x14018b54c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14018b54c
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14039bbb0
add rsp, 0x240
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14018ba80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x48], rbx
cmp dword [0x14068c074], ebx
jne 0x14018bb3b
mov eax, dword [0x14068c070]
test eax, eax
jne 0x14018bb3b
mov edx, dword [0x14068c07c]
test edx, edx
je 0x14018badb
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14068c070]
mov edx, dword [0x14068c07c]
test eax, eax
jne 0x14018bb3b
test edx, edx
jne 0x14018baec
call fcn.14018bc50
test eax, eax
je 0x14018bb02
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14018bb3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x14018bb31
cmp eax, 0x78
je 0x14018bb31
cmp eax, 1
je 0x14018bb31
cmp eax, 0x32
je 0x14018bb31
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov dword [0x14068c070], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov qword [rsp + 0x20], rax
cmp dword [0x14068c074], 0
je 0x14018bb5e
cmp dword [0x14068c070], 0
jne 0x14018bb8c
mov edi, ebx
test rsi, rsi
sete dil
test edi, edi
je 0x14018bb73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14018bb8c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14018bbb0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x14068c07c]
mov rbx, rcx
test eax, eax
je 0x14018bbd6
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14068c07c]
cmp dword [0x14068c070], 0
jne 0x14018bc2f
test eax, eax
jne 0x14018bbec
call fcn.14018bc50
test eax, eax
je 0x14018bc00
mov rcx, qword [section..data]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14018bc2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x14018bc25
cmp eax, 0x78
je 0x14018bc25
cmp eax, 1
je 0x14018bc25
cmp eax, 0x32
je 0x14018bc25
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [0x14068c070], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14018d550
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
sub edx, 1
je 0x14018d5e8
sub edx, 0x3ee
je 0x14018d5cf
cmp edx, 2
je 0x14018d577
xor eax, eax
add rsp, 0x40
pop rbx
ret
test r8d, r8d
jne 0x14018d73c
mov rcx, qword [rcx + 8]
mov edx, 0x3f1
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0xf0
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx + 0x350]
cmp rax, 1
sete dl
mov byte [rbx + 0x368], dl
call fcn.140189970
mov rcx, rbx
call fcn.14018db70
mov eax, 1
add rsp, 0x40
pop rbx
ret
test r8d, r8d
jne 0x14018d73c
call fcn.14018d990
mov eax, 1
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov ecx, 0x10
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x8000
test di, ax
je 0x14018d623
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test di, ax
je 0x14018d623
mov byte [rbx + 0x369], 1
mov rcx, qword [rbx + 8]
mov edx, 0x3f6
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
mov dword [rsp + 0x68], 0xa
mov rcx, rax
mov dword [rsp + 0x6c], 0x4b0
lea r8, [rsp + 0x68]
mov edx, 0x45f
mov rbp, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, rax
cmp rax, 0xffffffff80070057
je 0x14018d719
mov rdi, qword [rbx + 0x370]
test rdi, rdi
je 0x14018d6a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 0x370], 0
lea rcx, [rsi + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov ecx, 0x40
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbx + 0x370], rax
mov r9, rax
test rax, rax
je 0x14018d719
xorps xmm0, xmm0
mov dword [rsp + 0x24], 0
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], 0x4b0
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov edx, 0x45e
mov rcx, rbp
movdqu xmmword [rsp + 0x2c], xmm0
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, 1
xor r8d, r8d
mov edx, r9d
mov rcx, rbx
call fcn.1402e51b0
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x40
pop rbx
ret

Function at 0x14018fbc0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov qword [rcx + 0x18], rdx
lea rax, [rcx + 0xc]
mov edx, dword [rcx + 8]
lea r8, [0x140190050]
mov rdi, rcx
mov qword [rsp + 0x28], rax
mov r9, rcx
xor ebx, ebx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rdi + 0x10], rax
mov ecx, 0x80004005
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret