joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001cf4c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001cf7c
xor eax, eax
jmp 0x14001d03f
mov rbp, rbx
cmp word [rax], si
je 0x14001cfa1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001cf88
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001cf84
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001b550
movsxd r14, eax
test eax, eax
jne 0x14001cfdf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001cf75
mov rcx, r14
call fcn.140017004
mov rdi, rax
test rax, rax
jne 0x14001cff8
xor ecx, ecx
call fcn.140016b84
jmp 0x14001cfd4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001b550
test eax, eax
jne 0x14001d029
mov rcx, rdi
call fcn.140016b84
jmp 0x14001d033
xor ecx, ecx
call fcn.140016b84
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400229d8
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.14001919c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001919c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140022b28
cmp rax, 0xffffffffffffffff
je 0x140022b28
xor edi, edi
test rbp, rbp
jle 0x140022ad3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140017c9c
mov rbx, rax
test rax, rax
jne 0x140022a60
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140022ac9
mov edx, 0x8000
mov ecx, r14d
call fcn.1400128a8
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.140016874
cmp eax, 0xffffffff
je 0x140022aa9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140022a70
mov edx, r15d
mov ecx, r14d
call fcn.1400128a8
jmp 0x140022ac9
cmp byte [rsi + 0x38], dil
je 0x140022ac0
cmp dword [rsi + 0x34], 5
jne 0x140022ac0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140022ac9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140016b84
jmp 0x140022b3c
jns 0x140022b3c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001919c
cmp rax, 0xffffffffffffffff
jne 0x140022af4
cmp byte [rsi + 0x30], dil
je 0x140022b3c
mov edi, dword [rsi + 0x2c]
jmp 0x140022b3c
mov ecx, r14d
call fcn.14001d544
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140022b3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140022b3c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140022b35
mov eax, dword [rsi + 0x2c]
jmp 0x140022b3a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001919c
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 0x14000fbb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140056038]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x80], rdi
lea ecx, [rdi + 0x28]
call fcn.140038010
mov r9, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov rax, qword [rbx + 0xe8]
test rax, rax
je 0x14000fc11
lock inc dword [rax + 8]
mov rax, qword [rbx + 0xe0]
mov qword [r9], rax
mov rax, qword [rbx + 0xe8]
mov qword [r9 + 8], rax
mov rax, qword [rbx + 8]
mov qword [r9 + 0x10], rax
mov rax, qword [rbx]
mov qword [r9 + 0x18], rax
mov qword [rsp + 0x80], r9
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r8, [0x140010af0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14000fd44
mov qword [rsp + 0x80], rdi
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x78], 0
jne 0x14000fc99
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14000fcbc
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x70], xmm0
cmp dword [rsp + 0x78], 0
je 0x14000fcd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
lea rcx, [rbx + 0x130]
mov qword [rsp + 0x38], rcx
call fcn.140010570
nop
mov rbx, qword [rbx + 0xe8]
test rbx, rbx
je 0x14000fd23
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14000fd23
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14000fd23
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140037fe0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
mov dword [rsp + 0x78], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400157e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140015974
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140015974
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x14001587b
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14001599b
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140015892
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140015892
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1400158a5
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x1400158f2
mov r8d, eax
cmp eax, 0x800
jae 0x1400158bf
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x1400158f2
cmp eax, 0x10000
jae 0x1400158d9
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x1400158f2
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x140015974
add qword [r14], 2
test sil, sil
jne 0x140015913
cmp r10d, 3
jae 0x14001591f
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x140015951
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x140015930
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14001582f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x140015982
Function at 0x140037060
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140056038]
xor rax, rsp
mov qword [rbp + 0x60], rax
cmp dword [rcx + 0x28], 0
mov rbx, rcx
jne 0x140037242
movdqa xmm0, xmmword [0x140048b40]
lea r9, [rsp + 0x20]
movdqa xmm1, xmmword [0x140048bb0]
lea rdx, [rcx + 0x2c]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, 0x8b31
movdqa xmm0, xmmword [0x140048b30]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [0x140048be0]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [0x140048b50]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmm1, xmmword [0x140048b90]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm0, xmmword [0x140048b80]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm1, xmmword [0x140048af0]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm0, xmmword [0x140048bc0]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm1, xmmword [0x140048c00]
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmm0, xmmword [0x140048b60]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm1, xmmword [0x140048ba0]
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmm0, xmmword [0x140048bf0]
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmm1, xmmword [0x140048b70]
movdqa xmmword [rbp], xmm0
movdqa xmm0, xmmword [0x140048b00]
movdqa xmmword [rbp - 0x10], xmm1
movdqa xmm1, xmmword [0x140048af0]
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmm0, xmmword [0x140048b10]
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmm1, xmmword [0x140048bd0]
movdqa xmmword [rbp + 0x40], xmm0
mov dword [rbp - 0x50], 0x6f6f4378
mov dword [rbp - 0x4c], 0xa3b6472
mov word [rbp - 0x48], 0x7d
movdqa xmmword [rbp + 0x30], xmm1
mov dword [rbp + 0x50], 0x7d0a3b
call fcn.140037270
cmp eax, 0x3000
jne 0x140037247
lea r9, [rbp - 0x40]
mov r8d, 0x8b30
lea rdx, [rbx + 0x30]
call fcn.140037270
cmp eax, 0x3000
jne 0x140037247
call qword [0x140057a78]
mov dword [rbx + 0x28], eax
call qword [0x1400579f0]
cmp eax, 0x3000
jne 0x140037247
mov edx, dword [rbx + 0x2c]
mov ecx, dword [rbx + 0x28]
call qword [0x140057ab8]
call qword [0x1400579f0]
cmp eax, 0x3000
jne 0x140037247
mov edx, dword [rbx + 0x30]
mov ecx, dword [rbx + 0x28]
call qword [0x140057ab8]
call qword [0x1400579f0]
cmp eax, 0x3000
jne 0x140037247
mov ecx, dword [rbx + 0x28]
call qword [0x140057a48]
mov ecx, dword [rbx + 0x28]
call qword [0x140057a40]
call qword [0x1400579f0]
cmp eax, 0x3000
jne 0x140037247
mov eax, 0x3000
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140037fe0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140045520
Capabilities:
Terminate process

Disassembly:
xchg esp, eax
jl 0x14002940c
push 0xffffffffb34d748e
mov edx, 0x8a28eb60
rcr dword [rsi], cl
mov r13b, 0x67
pop r8
add bh, 0x25
invalid
add eax, 0x29c32f52
invalid
cld
pop r11
jmp 0x14004552d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004553d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140045525
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140045555
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140045542
sub eax, 3
jb 0x14004556f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400455a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140045596
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140045594
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140045583
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400454e2
jmp 0x14004552d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29600
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400455f6
cmp rsi, rcx
jae 0x1400455fe
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400455dd
cmp al, 0x8f
ja 0x1400455dd
cmp byte [rsi - 2], 0xf
je 0x1400455e3
sub al, 0xe8
cmp al, 1
ja 0x1400455c7
cmp rsi, rcx
jae 0x1400455fe
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400455cd
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400455fe
lodsb al, byte [rsi]
jmp 0x1400455dd
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x43000]
mov eax, dword [rdi]
or eax, eax
je 0x14004565b
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x451dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14004560b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140045655
mov qword [rbx], rax
add rbx, 8
jmp 0x14004562b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140045695
cmp al, 0xef
ja 0x140045687
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140045667
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140045676
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400456e9
sub rsp, 0xffffffffffffff80
jmp 0x1400293c8
Function at 0x1400035cc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000343c

Function at 0x140006858
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14001b550]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400045a4
xor ebx, ebx
cmp qword [0x14001cb58], rbx
mov rdi, rax
jne 0x14000696b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140006a42
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006a42
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001cb58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14001cb60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14001cb68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14001cb78], rax
test rax, rax
je 0x140006962
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14001cb70], rax
jmp 0x140006972
mov rax, qword [0x14001cb70]
jmp 0x140006979
mov rax, qword [0x14001cb70]
mov r11, qword [0x14001cb78]
cmp rax, rdi
je 0x1400069e0
cmp r11, rdi
je 0x1400069e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14001cb78]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400069e0
test rax, rax
je 0x1400069e0
call rsi
test rax, rax
je 0x1400069da
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400069da
test byte [rsp + 0x40], 1
jne 0x1400069e0
bts ebp, 0x15
jmp 0x140006a20
mov rcx, qword [0x14001cb60]
cmp rcx, rdi
je 0x140006a20
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140006a20
call rax
mov rbx, rax
test rax, rax
je 0x140006a20
mov rcx, qword [0x14001cb68]
cmp rcx, rdi
je 0x140006a20
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140006a20
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001cb58]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140006a42
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140006a44
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006ca0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000ee0f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001b550]
jne 0x140006cba
rol rcx, 0x10
test cx, 0xffff
jne 0x140006cb6
repz ret
ror rcx, 0x10
jmp 0x14000ed68
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001cd00]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001cdf8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000eded
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14001cd00]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000ee0f
mov rax, qword [rsp + 0x88]
mov qword [0x14001cdf8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001cd98], rax
mov rax, qword [0x14001cdf8]
mov qword [0x14001cc70], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001cd80], rax
mov dword [0x14001cc60], 0xc0000409
mov dword [0x14001cc64], 1
mov rax, qword [0x14001b550]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001b558]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001ccf8], eax
mov ecx, 1
call fcn.14000ec58
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140017298]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001ccf8], 0
jne 0x14000ee96
mov ecx, 1
call fcn.14000ec58
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001a6c
Capabilities:
Create directory
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14000c030]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rcx, rdx
mov rsi, rdx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
cmp byte [rcx + rsi - 1], 0x5c
je 0x140001ac0
lea rdx, [0x1400083d4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x104
movsxd rbp, eax
call fcn.140002880
cmp ebp, 2
jle 0x140001b39
cmp byte [rsi + 1], 0x3a
jne 0x140001b39
xor edi, edi
test rbp, rbp
jle 0x140001b3b
lea rax, [rsp + 0x20]
sub rsi, rax
test ebx, ebx
je 0x140001b3b
lea rax, [rsp + rdi + 0x20]
mov cl, byte [rsi + rax]
mov byte [rax], cl
cmp cl, 0x5c
jne 0x140001b2f
cmp rdi, 2
je 0x140001b2f
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x140001b2f
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
inc rdi
cmp rdi, rbp
jl 0x140001af8
jmp 0x140001b3b
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002980
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140001b68
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14000c030]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov edi, 0x104
lea rcx, [rsp + 0x20]
mov edx, edi
mov rbp, r8
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
cmp byte [rsp + rcx + 0x1f], 0x5c
je 0x140001bca
lea rdx, [0x1400083d4]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x130]
mov r8, rdi
xor edx, edx
call fcn.140002880
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.Advapi32.dll
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140001c4c
test rbp, rbp
je 0x140001c4c
test rsi, rsi
je 0x140001c4c
lea rdx, str.ConvertSidToStringSidA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001c43
mov rdx, rbp
mov rcx, rsi
call rax
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140002980
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret