joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e9f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14001f080]
xor rax, rsp
mov qword [rbp - 8], rax
mov esi, 0xffff
xor r14d, r14d
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x14000ea32
movzx eax, r14w
jmp 0x14000eb5d
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14000ea6e
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x14000ea6e
lea ecx, [r9 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
movzx eax, di
jmp 0x14000eb5d
cmp qword [rcx + 0x80], r14
je 0x14000eb5a
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000eaac
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000eace
movzx ecx, di
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
jmp 0x14000ea66
lea rax, [rbp - 0x40]
mov word [rbp - 0x30], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2e]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_unsigned_short_int__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__unsigned_short_int_const____ptr64__unsigned_short_int_const____ptr64__unsigned_short_int_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000eb1c
sub eax, 1
je 0x14000eb1c
cmp eax, 2
jne 0x14000eb5a
movzx ecx, word [rbp - 0x30]
jmp 0x14000eab8
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14000eb4a
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14000eb5a
lea rax, [rbp - 0x30]
mov byte [rbx + 0x72], 1
cmp qword [rbp - 0x38], rax
cmovne si, di
movzx eax, si
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140012650
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000ef04
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14001f080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000ef7e
cmp byte [rcx + 0x72], 0
je 0x14000ef7e
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
mov rax, qword [rax + 0x18]
call qword [0x140015878]
cmp di, ax
je 0x14000efd6
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_unsigned_short_int__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000ef98
sub eax, 1
je 0x14000ef9c
cmp eax, 2
jne 0x14000efd6
mov byte [rbx + 0x72], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140012650
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000efcd
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000efd6
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14000ef80
xor al, al
jmp 0x14000ef80
Function at 0x14000f25c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12, r8
mov r14, rdx
mov rsi, rcx
movabs r15, 0xcbf29ce484222325
xor r13d, r13d
mov ecx, r13d
movzx eax, byte [r8 + rcx]
xor r15, rax
movabs rdx, 0x100000001b3
imul r15, rdx
inc rcx
cmp rcx, 4
jb 0x14000f289
mov rax, qword [rsi + 0x30]
and rax, r15
add rax, rax
mov rcx, qword [rsi + 0x18]
mov rbx, qword [rcx + rax*8 + 8]
lea r8, [rsi + 8]
mov rbp, qword [r8]
cmp rbx, rbp
jne 0x14000f2e8
mov rbx, rbp
movabs rax, 0x492492492492492
cmp qword [rsi + 0x10], rax
jne 0x14000f322
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rdx, qword [rcx + rax*8]
mov eax, dword [r12]
jmp 0x14000f2fb
cmp rbx, rdx
je 0x14000f31a
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x14000f2f2
mov rbp, qword [rbx]
mov rax, rbx
mov rbx, rbp
test rax, rax
je 0x14000f2ca
mov qword [r14], rax
mov byte [r14 + 8], r13b
jmp 0x14000f464
mov rbp, rbx
mov rax, r13
jmp 0x14000f309
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r13
lfence
mov ecx, 0x38
call fcn.1400126a4
mov rdi, rax
mov qword [rsp + 0x38], rax
mov ecx, dword [r12]
mov dword [rax + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [rax + 0x18], xmm0
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], 7
mov word [rax + 0x18], r13w
mov rcx, qword [rsi + 0x10]
add rcx, 1
xorps xmm0, xmm0
js 0x14000f374
cvtsi2ss xmm0, rcx
jmp 0x14000f389
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rsi + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x14000f39c
cvtsi2ss xmm1, rcx
jmp 0x14000f3b1
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rsi]
seta al
test al, al
je 0x14000f40a
mov rcx, rsi
call fcn.14000f804
mov rcx, qword [rsi + 0x30]
and rcx, r15
add rcx, rcx
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [rsi + 8]
cmp rax, rbx
je 0x14000f400
mov r8, qword [rdx + rcx*8]
mov ecx, dword [rdi + 0x10]
jmp 0x14000f3f8
mov rbx, rax
cmp rax, r8
je 0x14000f43e
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x14000f3ec
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rbp, qword [rsp + 0x20]
mov rdx, qword [rbx + 8]
inc qword [rsi + 0x10]
mov qword [rdi], rbp
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
and rax, r15
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [rsi + 8]
jne 0x14000f445
mov qword [rcx + rax*8], rdi
jmp 0x14000f457
mov qword [rsp + 0x20], rax
jmp 0x14000f405
cmp r8, rbp
jne 0x14000f450
mov qword [rcx + rax*8], rdi
jmp 0x14000f45c
cmp qword [rcx + rax*8 + 8], rdx
jne 0x14000f45c
mov qword [rcx + rax*8 + 8], rdi
mov qword [r14], rdi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f804
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x14000f834
cvtsi2ss xmm0, rdx
jmp 0x14000f849
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x1400181e4]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14000f877
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14000f877
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14000f8a5
cmp rbx, 0x200
jae 0x14000f8a2
shl rbx, 3
cmp rbx, rcx
jae 0x14000f8a5
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
jbe 0x14000f8ce
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [rsi + 8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400049e8
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14000f9e0
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [r9 + rax + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 4
jb 0x14000f927
mov r11, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x18]
and r11, r8
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x14000f966
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x14000f9d4
mov r10, qword [rdi + r11*8 + 8]
mov edx, dword [rax + 0x10]
cmp edx, dword [r10 + 0x10]
jne 0x14000f9a9
mov r10, qword [r10]
cmp r10, rax
je 0x14000f95f
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000f95f
mov r10, qword [r10 + 8]
cmp edx, dword [r10 + 0x10]
je 0x14000fa06
cmp qword [rdi + r11*8], r10
jne 0x14000f99f
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14000f917
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.14000fbf8
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000f9d4
Function at 0x14000fccc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], rcx
mov rbp, r8
mov r13, rdx
cmp rdx, r8
je 0x14000fd9c
mov rax, qword [rcx + 8]
mov rsi, rdx
mov r14, qword [rdx + 8]
movabs r15, 0xcbf29ce484222325
mov r12, qword [rcx + 0x18]
xor edx, edx
mov qword [rsp + 0x20], rax
movabs r8, 0x100000001b3
movzx eax, byte [rdx + r13 + 0x10]
inc rdx
xor r15, rax
imul r15, r8
cmp rdx, 4
jb 0x14000fd26
and r15, qword [rcx + 0x30]
add r15, r15
mov rax, qword [r12 + r15*8]
mov qword [rsp + 0x30], rax
mov rax, qword [r12 + r15*8 + 8]
mov qword [rsp + 0x28], rax
mov rbx, rsi
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rbx + 0x18]
call fcn.140003208
mov edx, 0x38
mov rcx, rbx
call fcn.14001269c
mov rdx, qword [rsp + 0x38]
dec qword [rdx + 0x10]
cmp rbx, qword [rsp + 0x28]
je 0x14000fdbd
cmp rsi, rbp
jne 0x14000fd56
cmp qword [rsp + 0x30], r13
jne 0x14000fd95
mov qword [r12 + r15*8], rsi
mov qword [r14], rsi
mov qword [rsi + 8], r14
lea r11, [rsp + 0x40]
mov rax, rbp
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
cmp qword [rsp + 0x30], r13
jne 0x14000fdd2
mov r13, qword [rsp + 0x20]
mov qword [r12 + r15*8], r13
mov rax, r13
jmp 0x14000fdd5
mov rax, r14
mov qword [r12 + r15*8 + 8], rax
jmp 0x14000fe67
movabs rcx, 0xcbf29ce484222325
xor r8d, r8d
movabs r13, 0x100000001b3
movzx eax, byte [rsi + r8 + 0x10]
inc r8
xor rcx, rax
imul rcx, r13
cmp r8, 4
jb 0x14000fdf6
mov r15, qword [rdx + 0x30]
mov r13, qword [rsp + 0x20]
and r15, rcx
add r15, r15
mov rax, qword [r12 + r15*8 + 8]
mov qword [rsp + 0x28], rax
mov rbx, rsi
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rbx + 0x18]
call fcn.140003208
mov edx, 0x38
mov rcx, rbx
call fcn.14001269c
mov rdx, qword [rsp + 0x38]
dec qword [rdx + 0x10]
cmp rbx, qword [rsp + 0x28]
je 0x14000fe5e
cmp rsi, rbp
jne 0x14000fe25
jmp 0x14000fd91
mov qword [r12 + r15*8], r13
mov qword [r12 + r15*8 + 8], r13
cmp rsi, rbp
jne 0x14000fddf
jmp 0x14000fd95

Function at 0x140010390
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14001f080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [r9]
mov rbx, r8
add eax, eax
mov rdi, r9
mov dword [rsp + 0x30], eax
xor esi, esi
mov dword [r9], esi
lea rax, [r11 - 0x28]
mov rcx, qword [rcx]
lea r9, [r11 - 0x24]
mov qword [r11 - 0x30], rax
xor r8d, r8d
mov qword [r11 - 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001040b
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140010406
mov ecx, dword [rsp + 0x30]
test rbx, rbx
je 0x140010423
test ecx, ecx
je 0x140010420
test cl, 1
jne 0x140010406
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x140010423
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140012650
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x14001040b
Function at 0x140011e80
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, str.InitPerf
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InitPerf2
mov rcx, rbx
mov qword [0x140020060], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PerfCodeMarker
mov rcx, rbx
mov qword [0x140020068], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitPerf
mov rcx, rbx
mov qword [0x140020078], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BeginLogging
mov rcx, rbx
mov qword [0x140020070], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WriteLog
mov rcx, rbx
mov qword [0x140020080], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetPerformanceRegRoot
mov rcx, rbx
mov qword [0x140020088], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140020090], rax
mov qword [0x140020098], rbx
mov byte [0x1400200a0], 1
add rsp, 0x20
pop rbx
ret

Function at 0x140012030
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov dil, dl
mov rbx, rcx
test rcx, rcx
jne 0x140012050
xor al, al
jmp 0x1400120e9
lea r8, [rsp + 0x68]
mov qword [rsp + 0x68], rbp
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.140012100
test eax, eax
jne 0x1400120e6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400120e6
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1400120b1
cmp esi, 0xea
jne 0x1400120e6
cmp dword [rsp + 0x50], ebp
je 0x1400120e6
mov r8, qword [str.Disable]
lea r9, [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x60], ebp
mov rcx, 0xffffffff80000002
call fcn.140012190
mov ecx, dword [rsp + 0x60]
test eax, eax
cmovne ecx, ebp
test ecx, ecx
sete al
jmp 0x1400120e9
mov al, dil
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x140012190
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rdi, r8
lea r8, [rsp + 0x38]
mov rbx, r9
call fcn.140012100
test eax, eax
jne 0x14001220c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x1400121c3
lea eax, [rcx + 2]
jmp 0x14001220c
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 4
mov eax, 0xd
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140012218
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test rdx, rdx
je 0x140012471
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov rax, qword [0x14001f080]
xor rax, rsp
mov qword [rbp + 0x980], rax
xor r15d, r15d
mov esi, r9d
cmp qword [0x140020098], r15
mov rdi, rdx
mov r14d, ecx
jne 0x14001244c
mov dl, r8b
mov rcx, rdi
call fcn.140012030
test al, al
je 0x1400122c4
mov rdx, qword [str.Microsoft.Internal.Performance.CodeMarkers.dll]
lea rax, [rsp + 0x60]
sub rdx, rax
lea rcx, [rsp + 0x60]
mov ebx, 0x104
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x1400122b0
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400122b0
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x14001228e
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
jmp 0x140012386
cmp byte [rbp + 0x9e0], r15b
je 0x14001244c
mov ebx, 0x104
lea rdx, [rbp + 0x370]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x14001244c
lea ecx, [rbx - 4]
mov r8d, 3
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x580]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x170]
mov qword [rsp + 0x30], rcx
lea rax, [rbp + 0x780]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x54]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x370]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s
test eax, eax
jne 0x14001244c
lea rax, str..dll
mov edx, ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x170]
mov rax, qword [str.Microsoft.VisualStudio.CodeMarkers]
lea r8, [rsp + 0x54]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s
test eax, eax
jne 0x14001244c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001244c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14001244c
mov rcx, rax
call fcn.140011e80
mov rax, qword [0x140020090]
test rax, rax
je 0x1400123b9
mov rcx, rdi
call rax
cmp qword [0x140020078], r15
je 0x14001240e
cmp qword [0x140020070], r15
je 0x14001240e
cmp qword [0x140020068], r15
je 0x1400123ef
mov rcx, qword [str.VSCodeMarkersEnabled]
call qword [sym.imp.KERNEL32.dll_AddAtomW]
mov rdx, rdi
mov ecx, r14d
call qword [0x140020068]
jmp 0x14001240e
cmp qword [0x140020060], r15
je 0x14001240e
mov rcx, qword [str.VSCodeMarkersEnabled]
call qword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, r14d
call qword [0x140020060]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], r15d
lea r8, str.AutoStartupLoggingEndMarker
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.140012190
mov edx, dword [rsp + 0x50]
test eax, eax
cmovne edx, r15d
test edx, edx
mov dword [rsp + 0x50], edx
cmovne esi, edx
test esi, esi
je 0x14001244c
mov ecx, esi
call fcn.140011fb0
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.140012650
mov rbx, qword [rsp + 0xad0]
add rsp, 0xa90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013220
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001326a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001326a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001326a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001326a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001326a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001326c
xor al, al
add rsp, 0x28
ret
Function at 0x14002fbd0
Capabilities:
Log keystrokes via polling

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x38
movzx eax, byte [0x14090b940]
test eax, eax
jne 0x14002fbf6
mov rcx, qword [0x14090b970]
call fcn.1401f8d30
movzx eax, al
test eax, eax
jne 0x14002fbfa
xor al, al
jmp 0x14002fc30
movzx eax, byte [0x14090b942]
test eax, eax
je 0x14002fc0e
movzx eax, byte [rsp + 0x40]
jmp 0x14002fc30
mov ecx, dword [reloc.WS2_32.dll_bind]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14002fc26
mov byte [rsp + 0x20], 1
jmp 0x14002fc2b
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140031e40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x14090abc0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140035420
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400327a0
nop
lea rax, [0x140031db0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.1400319c0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140031ee4
lea rcx, [rsp + 0x40]
call fcn.1400371e0
nop
jmp 0x140031efb
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x40]
call fcn.140034140
nop
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402fe980
add rsp, 0x58
ret
Function at 0x1400639c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14090abc0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x1400639fd
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140063a04
mov al, 1
jmp 0x140063b5c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.1400359b0
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.1400359b0
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.1400359c0
movzx eax, al
test eax, eax
je 0x140063a59
xor al, al
jmp 0x140063b5c
mov qword [rsp + 0x60], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140063ac9
cmp dword [rsp + 0x30], 1
je 0x140063ad5
cmp dword [rsp + 0x30], 3
je 0x140063b4a
jmp 0x140063b5a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140063b21
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x140063b21
xor al, al
jmp 0x140063b5c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140063b3b
mov dword [rsp + 0x34], 1
jmp 0x140063b43
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x140063b5c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140063b5c
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1402fe980
add rsp, 0xa8
ret