joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006c200
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x14006c261
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14006c220
mov ecx, dword [r10]
jmp 0x14006c34a
cmp ecx, 0x4e0
jb 0x14006c34a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14006c280
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14006c2d0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14006d6f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call fcn.1404a7780
nop
test rax, rax
je 0x14006d73b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006d73b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006d73b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006d73b
cmp dword [rcx + 0x84], 0xe
jbe 0x14006d73b
cmp dword [rcx + 0xf8], 0
je 0x14006d73b
mov al, 1
jmp 0x14006d73d
xor al, al
add rsp, 0x28
ret
Function at 0x14001125d
Capabilities:
Terminate process

Disassembly:
jmp 0x1400133c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112e9
Capabilities:
Create thread

Disassembly:
jmp 0x140011d90
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x1400240a2]
call fcn.14001141f
lea rax, [0x14001e48c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400111fe]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400112f8
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014710
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014730
xor al, al
jmp 0x1400147b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014743
xor al, al
jmp 0x1400147b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001476d
xor al, al
jmp 0x1400147b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014781
xor al, al
jmp 0x1400147b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014793
xor al, al
jmp 0x1400147b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400147af
xor al, al
jmp 0x1400147b1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000bb90]
mov dword [rax], 1
mov rax, qword [0x14000bba0]
mov dword [rax], 1
mov rax, qword [0x14000bbb0]
mov dword [rax], 1
mov rax, qword [0x14000bb40]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001780
Capabilities:
Encode data using xor

Disassembly:
push rbx
test edx, edx
je 0x140001880
lea eax, [rdx - 1]
cmp eax, 0xe
jbe 0x140001882
movd xmm1, r8d
mov r9d, edx
mov rax, rcx
punpcklbw xmm1, xmm1
shr r9d, 4
punpcklwd xmm1, xmm1
shl r9, 4
pshufd xmm1, xmm1, 0
add r9, rcx
nop dword [rax + rax]
movdqu xmm0, xmmword [rax]
add rax, 0x10
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rax, r9
jne 0x1400017c0
mov eax, edx
and eax, 0xfffffff0
mov r9d, eax
test dl, 0xf
je 0x140001880
mov r10d, edx
sub r10d, eax
lea r11d, [r10 - 1]
cmp r11d, 6
jbe 0x140001823
movzx ebx, r8b
add rax, rcx
mov bh, bl
movq xmm1, qword [rax]
movd xmm2, ebx
pshuflw xmm0, xmm2, 0
pxor xmm1, xmm0
movq qword [rax], xmm1
mov eax, r10d
and eax, 0xfffffff8
add r9d, eax
and r10d, 7
je 0x140001880
movsxd rax, r9d
xor byte [rcx + rax], r8b
lea eax, [r9 + 1]
cmp eax, edx
jae 0x140001880
cdqe
xor byte [rcx + rax], r8b
lea eax, [r9 + 2]
cmp eax, edx
jae 0x140001880
cdqe
xor byte [rcx + rax], r8b
lea eax, [r9 + 3]
cmp eax, edx
jae 0x140001880
cdqe
xor byte [rcx + rax], r8b
lea eax, [r9 + 4]
cmp eax, edx
jae 0x140001880
cdqe
xor byte [rcx + rax], r8b
lea eax, [r9 + 5]
cmp eax, edx
jae 0x140001880
cdqe
add r9d, 6
xor byte [rcx + rax], r8b
cmp r9d, edx
jae 0x140001880
movsxd r9, r9d
xor byte [rcx + r9], r8b
pop rbx
ret
xor eax, eax
xor r9d, r9d
jmp 0x1400017e6
Function at 0x140001890
Capabilities:
Encode data using xor

Disassembly:
push rbx
test edx, edx
je 0x140001990
lea eax, [rdx - 1]
cmp eax, 0xe
jbe 0x140001992
movd xmm1, r8d
mov r9d, edx
mov rax, rcx
punpcklbw xmm1, xmm1
shr r9d, 4
punpcklwd xmm1, xmm1
shl r9, 4
pshufd xmm1, xmm1, 0
add r9, rcx
nop dword [rax + rax]
movdqu xmm0, xmmword [rax]
add rax, 0x10
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rax, r9
jne 0x1400018d0
mov eax, edx
and eax, 0xfffffff0
mov r9d, eax
test dl, 0xf
je 0x140001990
mov r10d, edx
sub r10d, eax
lea r11d, [r10 - 1]
cmp r11d, 6
jbe 0x140001933
movzx ebx, r8b
add rax, rcx
mov bh, bl
movq xmm1, qword [rax]
movd xmm2, ebx
pshuflw xmm0, xmm2, 0
pxor xmm1, xmm0
movq qword [rax], xmm1
mov eax, r10d
and eax, 0xfffffff8
add r9d, eax
and r10d, 7
je 0x140001990
movsxd rax, r9d
xor byte [rcx + rax], r8b
lea eax, [r9 + 1]
cmp eax, edx
jae 0x140001990
cdqe
xor byte [rcx + rax], r8b
lea eax, [r9 + 2]
cmp eax, edx
jae 0x140001990
cdqe
xor byte [rcx + rax], r8b
lea eax, [r9 + 3]
cmp eax, edx
jae 0x140001990
cdqe
xor byte [rcx + rax], r8b
lea eax, [r9 + 4]
cmp eax, edx
jae 0x140001990
cdqe
xor byte [rcx + rax], r8b
lea eax, [r9 + 5]
cmp eax, edx
jae 0x140001990
cdqe
add r9d, 6
xor byte [rcx + rax], r8b
cmp r9d, edx
jae 0x140001990
movsxd r9, r9d
xor byte [rcx + r9], r8b
pop rbx
ret
xor eax, eax
xor r9d, r9d
jmp 0x1400018f6

Function at 0x1400019a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r9d, edx
test r8d, r8d
je 0x140001a9f
lea eax, [r8 - 1]
cmp eax, 0xe
jbe 0x140001aa1
movd xmm1, edx
mov edx, r8d
mov rax, rcx
punpcklbw xmm1, xmm1
shr edx, 4
punpcklwd xmm1, xmm1
shl rdx, 4
pshufd xmm1, xmm1, 0
add rdx, rcx
nop dword [rax + rax]
movdqu xmm0, xmmword [rax]
add rax, 0x10
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rax, rdx
jne 0x1400019e0
mov eax, r8d
and eax, 0xfffffff0
mov edx, eax
test r8b, 0xf
je 0x140001a9f
mov r10d, r8d
sub r10d, eax
lea r11d, [r10 - 1]
cmp r11d, 6
jbe 0x140001a43
movzx ebx, r9b
add rax, rcx
mov bh, bl
movq xmm1, qword [rax]
movd xmm2, ebx
pshuflw xmm0, xmm2, 0
pxor xmm1, xmm0
movq qword [rax], xmm1
mov eax, r10d
and eax, 0xfffffff8
add edx, eax
and r10d, 7
je 0x140001a9f
movsxd rax, edx
xor byte [rcx + rax], r9b
lea eax, [rdx + 1]
cmp eax, r8d
jae 0x140001a9f
cdqe
xor byte [rcx + rax], r9b
lea eax, [rdx + 2]
cmp eax, r8d
jae 0x140001a9f
cdqe
xor byte [rcx + rax], r9b
lea eax, [rdx + 3]
cmp eax, r8d
jae 0x140001a9f
cdqe
xor byte [rcx + rax], r9b
lea eax, [rdx + 4]
cmp eax, r8d
jae 0x140001a9f
cdqe
xor byte [rcx + rax], r9b
lea eax, [rdx + 5]
cmp eax, r8d
jae 0x140001a9f
cdqe
add edx, 6
xor byte [rcx + rax], r9b
cmp edx, r8d
jae 0x140001a9f
movsxd rdx, edx
xor byte [rcx + rdx], r9b
pop rbx
ret
xor eax, eax
xor edx, edx
jmp 0x140001a07
Function at 0x140001ab0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r9d, edx
test r8d, r8d
je 0x140001baf
lea eax, [r8 - 1]
cmp eax, 0xe
jbe 0x140001bb1
movd xmm1, edx
mov edx, r8d
mov rax, rcx
punpcklbw xmm1, xmm1
shr edx, 4
punpcklwd xmm1, xmm1
shl rdx, 4
pshufd xmm1, xmm1, 0
add rdx, rcx
nop dword [rax + rax]
movdqu xmm0, xmmword [rax]
add rax, 0x10
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rax, rdx
jne 0x140001af0
mov eax, r8d
and eax, 0xfffffff0
mov edx, eax
test r8b, 0xf
je 0x140001baf
mov r10d, r8d
sub r10d, eax
lea r11d, [r10 - 1]
cmp r11d, 6
jbe 0x140001b53
movzx ebx, r9b
add rax, rcx
mov bh, bl
movq xmm1, qword [rax]
movd xmm2, ebx
pshuflw xmm0, xmm2, 0
pxor xmm1, xmm0
movq qword [rax], xmm1
mov eax, r10d
and eax, 0xfffffff8
add edx, eax
and r10d, 7
je 0x140001baf
movsxd rax, edx
xor byte [rcx + rax], r9b
lea eax, [rdx + 1]
cmp eax, r8d
jae 0x140001baf
cdqe
xor byte [rcx + rax], r9b
lea eax, [rdx + 2]
cmp eax, r8d
jae 0x140001baf
cdqe
xor byte [rcx + rax], r9b
lea eax, [rdx + 3]
cmp eax, r8d
jae 0x140001baf
cdqe
xor byte [rcx + rax], r9b
lea eax, [rdx + 4]
cmp eax, r8d
jae 0x140001baf
cdqe
xor byte [rcx + rax], r9b
lea eax, [rdx + 5]
cmp eax, r8d
jae 0x140001baf
cdqe
add edx, 6
xor byte [rcx + rax], r9b
cmp edx, r8d
jae 0x140001baf
movsxd rdx, edx
xor byte [rcx + rdx], r9b
pop rbx
ret
xor eax, eax
xor edx, edx
jmp 0x140001b17

Function at 0x140001f80
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002c52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000f108]
test eax, eax
je 0x140002cea
lea rax, [0x14000f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000f110]
mov qword [rbp - 8], rax
jmp 0x140002cce
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 0x140002cc2
cmp qword [rbp - 0x10], 0
je 0x140002cc2
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 0x140002c88
lea rax, [0x14000f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002ceb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002df0
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 0x140002e18
mov eax, 0
jmp 0x140002e66
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 0x140002e41
mov eax, 0
jmp 0x140002e66
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 0x140002e61
mov eax, 0
jmp 0x140002e66
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002e6c
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 0x140002eea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002ee1
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 0x140002ee1
mov rax, qword [rbp - 8]
jmp 0x140002eff
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 0x140002eb4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140009640
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
sub rsp, 0x3a8
lea rsi, [0x14000b0a0]
call sym.__main
lea rdi, [rsp + 0x20]
mov ecx, 0x6f
movdqu xmm1, xmmword [0x14000b420]
rep movsq qword [rdi], qword [rsi]
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x390]
mov eax, dword [rsi]
mov dword [rdi], eax
movzx eax, word [0x14000b41c]
mov word [rdi + 4], ax
movzx eax, byte [0x14000b41e]
mov byte [rdi + 6], al
mov rax, rcx
nop dword [rax + rax]
movdqu xmm0, xmmword [rax]
add rax, 0x10
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rdx, rax
jne 0x140009698
movq xmm0, qword [rsp + 0x390]
mov edx, 0x37e
movq xmm1, qword [0x14000b420]
xor dword [rsp + 0x398], 0xabababab
xor word [rsp + 0x39c], 0xabab
pxor xmm0, xmm1
movq qword [rsp + 0x390], xmm0
call sym.ExecuteShellcode
xor eax, eax
add rsp, 0x3a8
pop rsi
pop rdi
ret
Function at 0x140028500
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x280
mov ebx, r9d
mov rsi, r8
mov edi, edx
mov r14, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140185020]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140028621
mov r15, rax
lea r9, [rsp + 0x68]
mov qword [r9], 0
mov rcx, r14
xor edx, edx
xor r8d, r8d
call qword [0x1401a4bf8]
test eax, eax
jns 0x1400286bc
test bl, bl
je 0x1400286bc
xor edi, edi
lea r9, [rsp + 0x68]
mov rcx, r14
mov edx, 0x8800
xor r8d, r8d
mov rax, r15
call qword [0x1401a4bf8]
test eax, eax
js 0x1400286c6
mov rdx, qword [rsp + 0x68]
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140113100
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400285c5
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rax
test rax, rax
js 0x1400286f7
je 0x1400285e3
test rdi, rdi
je 0x14002870a
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400b4b20
mov rcx, rsi
mov rdx, rdi
call fcn.140049000
mov rcx, rdi
call fcn.1400b4c50
cmp byte [rsp + 0x57], 0
jns 0x140028619
mov rcx, qword [rsp + 0x40]
call fcn.1400dae18
mov dil, 1
jmp 0x1400286c6
lea r14, [rsp + 0x70]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1400de440
mov word [r14], 0
mov qword [rsp + 0x20], r14
xor ecx, ecx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x14002867b
cmp eax, 0x80070057
je 0x14002867b
test bl, bl
je 0x14002867b
or edi, 0xa000
mov qword [rsp + 0x20], r14
xor ecx, ecx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
setns dil
js 0x1400286d6
lea rbx, [rsp + 0x30]
mov qword [rbx], r14
mov rcx, r14
call fcn.1400f9ef4
mov qword [rbx + 8], rax
lea r14, [rsp + 0x40]
mov rcx, r14
mov rdx, rbx
call fcn.1400b4b20
mov rcx, rsi
mov rdx, r14
call fcn.140049000
mov rcx, r14
call fcn.1400b4c50
jmp 0x1400286d6
test eax, eax
jns 0x1400285a1
xor edi, edi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400286d6
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400dc300
mov eax, edi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14018467d]
lea rdx, str....._third_partylibc_srcinclude_string_view:311:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.140114030
lea rcx, [0x14018467d]
lea rdx, str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.140114030
int3
Function at 0x140028720
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rcx, section..rdata
mov edx, 0xd
mov r8, rsi
xor r9d, r9d
call fcn.140028500
test al, al
je 0x14002874b
mov al, 1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140172010]
mov edx, 5
mov r8, rsi
mov r9b, 1
add rsp, 0x20
pop rsi
jmp fcn.140028500

Function at 0x140028770
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x140172020]
mov edx, 0x27
mov r8, rsi
xor r9d, r9d
call fcn.140028500
test al, al
je 0x14002879b
mov al, 1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140172010]
mov edx, 5
mov r8, rsi
mov r9b, 1
add rsp, 0x20
pop rsi
jmp fcn.140028500

Function at 0x1400287c0
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x140172040]
mov edx, 0xe
mov r8, rsi
xor r9d, r9d
call fcn.140028500
test al, al
je 0x1400287eb
mov al, 1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140172010]
mov edx, 5
mov r8, rsi
mov r9b, 1
add rsp, 0x20
pop rsi
jmp fcn.140028500

Function at 0x14002e9d0
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0x101
lea rbx, [rsp + 0x30]
mov r8d, 0x202
mov rcx, rbx
mov dl, 0xaa
call fcn.1400de440
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edi, eax
test eax, eax
je 0x14002ea2e
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14003a9a0
test edi, edi
setne bl
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1400dc300
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002ff90
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x14002ffd6
mov r14, r12
test r14, r14
je 0x1400300d8
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x140030038
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x140030024
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1400ddd90
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
jmp 0x14002ffb2
mov rax, r12
sub rax, r15
sar rax, 2
cmp r12, r15
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x1400300fe
lea rcx, [r13*8]
call fcn.1400daddc
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, r12
mov r14, rcx
sub rdx, rbx
je 0x14003009e
lea r14, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x1400300d8
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x140030086
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdx
cmp r12, rbx
je 0x1400300be
add r12, 0xfffffffffffffff8
jne 0x1400300b1
jmp 0x1400300eb
test r15, r15
je 0x14002ffb2
mov rcx, r15
call fcn.1400dae18
mov r14, qword [rsi + 0x10]
jmp 0x14002ffb2
lea rcx, [0x14018467d]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140114030
lea rcx, [0x14018467d]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140114030
call fcn.140113200
int3

Function at 0x14003c5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003c638
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14003c622
cmp dword [rsp + 0x38], 4
jne 0x14003c622
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400dc300
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14003c622
Function at 0x14003c640
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400dc2a0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400de440
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003c6f3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14003c6f7
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.14003a9a0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400dc300
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14003c6d4
cmp eax, 2
jne 0x14003c73f
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400de440
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14003c746
lea rdx, [rsp + 0x40]
jmp 0x14003c6ca
mov edi, 0x3f4
jmp 0x14003c6d4
mov edi, 0xea
jmp 0x14003c6d4