joyce8/EMBER2024-capa huggingface dataset:
Function at 0x139ca8c60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
mov r11, qword [rcx]
mov rsi, rdx
mov r10, qword [rcx + 8]
mov rbx, rcx
mov r9, qword [rcx + 0x10]
mov rdi, qword [rcx + 0x18]
mov rax, qword [rcx + 0x20]
shl r11, 0x38
cmp dword [rcx + 0x30], 0
je 0x139ca8e9f
test r8, r8
je 0x139ca8e9f
mov r14d, dword [rcx + 0x2c]
cmp r8, r14
jne 0x139ca8e9f
mov ecx, dword [rcx + 0x28]
dec ecx
cmp ecx, 6
ja case.default.0x139ca8ccd
lea r8, [0x139900000]
mov edx, dword [r8 + rcx*4 + 0x3a8eb8]
add rdx, r8
jmp rdx
movzx ecx, byte [rbx + 0x3e]
shl rcx, 0x30
or r11, rcx
movzx ecx, byte [rbx + 0x3d]
shl rcx, 0x28
or r11, rcx
movzx ecx, byte [rbx + 0x3c]
shl rcx, 0x20
or r11, rcx
movzx ecx, byte [rbx + 0x3b]
shl rcx, 0x18
or r11, rcx
movzx ecx, byte [rbx + 0x3a]
shl rcx, 0x10
or r11, rcx
movzx ecx, byte [rbx + 0x39]
shl rcx, 8
or r11, rcx
movzx ecx, byte [rbx + 0x38]
or r11, rcx
xor rax, r11
cmp dword [rbx + 0x30], 0
jbe 0x139ca8d66
mov ecx, dword [rbx + 0x30]
nop dword [rax]
nop dword [rax + rax]
add r10, r9
add rdi, rax
rol r9, 0xd
xor r9, r10
rol rax, 0x10
xor rax, rdi
rol r10, 0x20
add rdi, r9
add r10, rax
rol r9, 0x11
rol rax, 0x15
xor r9, rdi
xor rax, r10
rol rdi, 0x20
sub rcx, 1
jne 0x139ca8d30
xor r10, r11
mov ecx, 0xff
cmp r14d, 0x10
mov r8d, 0xee
cmovne r8d, ecx
mov ecx, dword [rbx + 0x34]
xor r8, rdi
test ecx, ecx
je 0x139ca8dc6
nop word [rax + rax]
add r10, r9
add r8, rax
rol r9, 0xd
xor r9, r10
rol rax, 0x10
xor rax, r8
rol r10, 0x20
add r8, r9
add r10, rax
rol r9, 0x11
rol rax, 0x15
xor r9, r8
xor rax, r10
rol r8, 0x20
sub rcx, 1
jne 0x139ca8d90
mov rdx, rax
xor rdx, r8
xor rdx, r9
xor rdx, r10
mov ecx, edx
mov byte [rsi], dl
shr ecx, 8
mov byte [rsi + 1], cl
mov ecx, edx
shr ecx, 0x10
mov byte [rsi + 2], cl
mov ecx, edx
shr ecx, 0x18
shr rdx, 0x20
mov byte [rsi + 3], cl
mov ecx, edx
shr ecx, 8
mov byte [rsi + 5], cl
mov ecx, edx
mov byte [rsi + 4], dl
shr ecx, 0x10
shr edx, 0x18
mov byte [rsi + 6], cl
mov byte [rsi + 7], dl
cmp dword [rbx + 0x2c], 8
je 0x139ca8e98
mov ecx, dword [rbx + 0x34]
xor r9, 0xdd
test ecx, ecx
je 0x139ca8e57
add r10, r9
add r8, rax
rol r9, 0xd
xor r9, r10
rol rax, 0x10
xor rax, r8
rol r10, 0x20
add r8, r9
add r10, rax
rol r9, 0x11
rol rax, 0x15
xor r9, r8
xor rax, r10
rol r8, 0x20
sub rcx, 1
jne 0x139ca8e21
xor rax, r8
xor rax, r9
xor rax, r10
mov ecx, eax
mov byte [rsi + 8], al
shr ecx, 8
mov byte [rsi + 9], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 0xa], cl
mov ecx, eax
shr ecx, 0x18
shr rax, 0x20
mov byte [rsi + 0xb], cl
mov ecx, eax
shr ecx, 8
mov byte [rsi + 0xd], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 0xc], al
shr eax, 0x18
mov byte [rsi + 0xf], al
mov byte [rsi + 0xe], cl
mov eax, 1
jmp 0x139ca8ea1
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
Function at 0x139cb15e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x68
call fcn.139ce6750
sub rsp, rax
mov rax, qword [0x139d4c1c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 0x3c]
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test eax, eax
je 0x139cb1724
movups xmm0, xmmword [rcx + 0x10]
mov r15, qword [rcx + 0x20]
lea rbx, [rcx + 0x10]
dec eax
mov dword [rsp + 0x28], 1
mov dword [rcx + 0x3c], eax
xor r9d, r9d
movups xmmword [rsp + 0x48], xmm0
and byte [rsp + 0x54], 0x7f
xor r8d, r8d
psrldq xmm0, 8
xor edx, edx
movd eax, xmm0
mov rcx, r15
mov dword [rsp + 0x30], edi
and al, 0x7f
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.139b51710
test eax, eax
je 0x139cb1724
mov eax, dword [rsp + 0x30]
lea r8, [rsp + 0x30]
mov r9, r14
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, r15
call fcn.139b523e0
test eax, eax
je 0x139cb1724
mov r9, rdi
lea rdx, [rsp + 0x38]
mov r8, rbp
mov rcx, rsi
call fcn.139cb1c40
test eax, eax
je 0x139cb1724
lea rax, [rbx + 0xf]
xor r8d, r8d
lea rcx, [rsp + 0x38]
cmp rcx, rax
ja 0x139cb16f9
lea rax, [rsp + 0x47]
cmp rax, rbx
jb 0x139cb16f9
lea rcx, [rsp + 0x38]
mov eax, r8d
sub rbx, rcx
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x38]
add rdx, rax
inc rax
movzx ecx, byte [rbx + rdx]
xor byte [rdx], cl
cmp rax, 0x10
jl 0x139cb16e0
jmp 0x139cb170d
movdqu xmm1, xmmword [rsp + 0x38]
movdqu xmm0, xmmword [rbx]
pxor xmm1, xmm0
movdqu xmmword [rsp + 0x38], xmm1
mov rax, qword [rsp + 0x38]
or rax, qword [rsp + 0x40]
je 0x139cb1740
mov rdx, rdi
mov rcx, rbp
call fcn.139b6bac0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.139ce5c70
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsi + 0x38], r8d
mov eax, edi
jmp 0x139cb1726
Function at 0x139cb3420
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x139d4c1c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
xor edi, edi
lea rcx, [0x139d52800]
call fcn.139cc1850
mov eax, 2
xchg dword [0x139d527b8], eax
cmp eax, 1
je 0x139cb346a
lea rcx, [0x139d52800]
call fcn.139cc1820
xor eax, eax
jmp 0x139cb3554
xor r9d, r9d
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x30], rdi
lea rcx, [0x1399795c8]
mov qword [rsp + 0xa0], rbp
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
lea r8d, [r9 + 3]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x139cb34d2
lea rdx, [0x139d527c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x139cb34d2
lock or dword [0x139d527bc], 1
mov r14d, 1
mov dword [rsp + 0x50], 0xd0001
mov ebp, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], r14w
mov ecx, ebp
mov dword [rsp + 0x4c], r14d
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rsi + 0x110]
lea r9, [rsp + 0x40]
mov r8d, r14d
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], bp
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov r14, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x139cb353b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x139cb354a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x98]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.139ce5c70
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x139cb3d90
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x139d4c1c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xb8]
mov r15d, r9d
movzx r14d, r8b
mov ebp, edx
mov rbx, rcx
cmp dword [rdi], 0
je 0x139cb3dce
mov eax, 0xffffffff
jmp 0x139cb3e50
mov qword [rsp + 0x58], rsi
movzx esi, byte [rsp + 0xb0]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x139cb3dfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov byte [rsp + 0x28], sil
lea rdx, [rsp + 0x30]
movzx r9d, r14b
mov dword [rsp + 0x20], r15d
mov r8d, ebp
mov rcx, rbx
call fcn.139cb3cf0
mov rcx, qword [rbx + 0x110]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x139cb3e49
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x139cb3de0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0xffffffff
jmp 0x139cb3e4b
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.139ce5c70
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x139cb4190
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x139d4c1c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x139cb41d8
test cl, 1
jne 0x139cb41d8
test cl, 4
je 0x139cb41d8
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x139cb41d8
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
bt eax, 0x10
jae 0x139cb424d
bt eax, 0x19
jae 0x139cb4234
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x20]
xor eax, eax
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x38], eax
xorps xmm0, xmm0
mov eax, reloc.WS2_32.dll_recv
movups xmmword [rsp + 0x28], xmm0
mov word [rsp + 0x28], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x139cb424d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.139ce5c70
add rsp, 0x50
pop rbx
ret
bt eax, 0x15
jb 0x139cb424d
mov rcx, rbx
call fcn.139cb3420
test eax, eax
jne 0x139cb424f
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.139ce5c70
add rsp, 0x50
pop rbx
ret
Function at 0x139cb4270
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x139d4c1c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx ebp, word [reloc.WS2_32.dll_getsockopt]
xor r14d, r14d
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x30], r14d
cmp dword [rdx], r14d
jne 0x139cb42c2
mov rcx, qword [rcx + 0x110]
movzx edx, bp
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x139cb42cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov eax, 0xffffffff
jmp 0x139cb437e
mov rcx, qword [rdi + 0x110]
mov qword [rsp + 0x90], rbx
mov ebx, dword [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x139cb4369
nop
mov rcx, qword [rdi + 0x110]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x139cb4369
movsx eax, word [rsp + 0x38]
mov edx, 0x20
movsx r8d, word [rsp + 0x3a]
mov r9d, ebx
mov rcx, qword [rdi + 0x110]
imul r8d, eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x139cb435e
mov r8d, dword [rsp + 0x34]
lea rax, [rsp + 0x34]
mov rcx, qword [rdi + 0x110]
mov r9d, ebx
movzx edx, bp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x139cb439c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x139cb42f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.139ce5c70
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x38]
mov dword [0x139d4bed0], r14d
call fcn.139cb4a70
mov rcx, qword [rdi + 0x110]
lea rdx, [0x139d52810]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
test eax, eax
je 0x139cb4369
xor eax, eax
jmp 0x139cb4376
Function at 0x139cb6340
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x100], 0
mov ebx, r8d
mov rdi, rdx
jbe 0x139cb4a39
mov eax, 0xfffff008
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x30]
call fcn.139cb4bc0
test eax, eax
je 0x139cb4a5a
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.139cc08e0
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.139cb2260
mov eax, dword [rcx + 0x58]
test al, 1
je 0x139cb634d
mov eax, 0xfffff00d
ret
bt eax, 0xf
jb 0x139cb6359
mov eax, 0xfffff031
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x139cb637b
cmp eax, 0xc
je 0x139cb6376
cmp eax, 0xe
je 0x139cb6371
mov eax, 0xfffff02a
ret
jmp 0x139cb4a10
jmp 0x139cbb000
mov eax, 0xfffff008
ret
sub rsp, 0x48
cmp dword [rcx + 0x100], 0
jbe 0x139cbb017
mov eax, 0xfffff008
add rsp, 0x48
ret
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x139cbb050
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.139cc08e0
add rsp, 0x48
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x48
ret

Function at 0x139cb64c0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
lea rcx, [0x139d52820]
mov dword [0x139d52848], eax
call fcn.139cc1770
test eax, eax
jne 0x139cb651d
lea rax, [0x139fda858]
mov edx, 0x100
lea rcx, [0x139d52850]
xor r8d, r8d
nop
mov qword [rax], rcx
add rcx, 0x2880
mov qword [rax - 8], r8
lea rax, [rax + 0x10]
sub rdx, 1
jne 0x139cb6500
add rsp, 0x58
ret
lea rdx, [0x1399ae990]
mov ecx, eax
call fcn.139cc0830
int3
Function at 0x139cb7820
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r14
sub rsp, 0x20
mov r12, r8
mov r14, rdx
mov rsi, rcx
test rcx, rcx
jne 0x139cb785a
xor ebp, ebp
test rdx, rdx
je 0x139cb7846
mov qword [rdx], rbp
mov qword [r8], rbp
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x139cb7870
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x139cb7899
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x139cb7899
cmp ax, 0x2f
jne 0x139cb7880
mov qword [rsp + 0x50], r15
test rbx, rbx
jne 0x139cb78ff
test r14, r14
je 0x139cb78f1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x139cb78ea
mov ecx, ebx
add rcx, rcx
call fcn.139cb2320
mov qword [r14], rax
test rax, rax
je 0x139cb7987
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x139cb78f1
mov rcx, qword [r14]
call fcn.139cb22f0
xor ebp, ebp
mov qword [r14], rbp
mov eax, 0xffffffff
jmp 0x139cb7969
mov rcx, rsi
call fcn.139d01740
mov qword [r12], rax
jmp 0x139cb7967
xor ebp, ebp
lea r15, [rbx + rbx]
test r14, r14
je 0x139cb7933
lea rcx, [r15 + 4]
call fcn.139cb2320
mov qword [r14], rax
test rax, rax
je 0x139cb7987
lea r8, [rbx + 1]
mov rdx, rsi
mov rcx, rax
call fcn.139d016f8
mov rax, qword [r14]
mov word [rax + r15 + 2], bp
sub rdi, rbx
lea rbx, [rdi + rdi]
mov rcx, rbx
call fcn.139cb2320
mov qword [r12], rax
test rax, rax
je 0x139cb7987
lea rdx, [rsi + 2]
mov rcx, rax
add rdx, r15
lea r8, [rdi - 1]
call fcn.139d016f8
mov rax, qword [r12]
mov word [rbx + rax - 2], bp
xor eax, eax
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
lea rdx, [0x1399ae9a0]
mov ecx, recv
call fcn.139cc0830
int3
Function at 0x139cb7fa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
je 0x139cb8005
mov ecx, esi
add rcx, rcx
call fcn.139cb2320
mov rdi, rax
test rax, rax
je 0x139cb8055
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x139cb7ff7
cmp eax, esi
jb 0x139cb802d
mov rcx, rdi
call fcn.139cb22f0
mov esi, ebx
test ebx, ebx
jne 0x139cb7fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.139cc08e0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
lea ecx, [rax - 1]
cmp word [rdi + rcx*2], 0x5c
jne 0x139cb804b
cmp ebx, 3
jne 0x139cb8043
cmp word [rdi + 2], 0x3a
je 0x139cb804b
xor edx, edx
mov ebx, ecx
mov word [rdi + rcx*2], dx
mov qword [r15], rdi
xor eax, eax
mov dword [r14], ebx
jmp 0x139cb8012
mov eax, 0xfffff027
jmp 0x139cb8012
Function at 0x139cb8060
Capabilities:
Get common file path
Get session user name

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x139d4c1c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
test rcx, rcx
jne 0x139cb808d
mov eax, 0xfffff019
jmp 0x139cb8249
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x28]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x139cb80bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.139cc08e0
jmp 0x139cb8249
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
mov qword [rsp + 0x250], r14
xor edx, edx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x139cb8108
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.139cc08e0
jmp 0x139cb8241
mov ecx, dword [rsp + 0x20]
add rcx, rcx
mov qword [rsp + 0x258], rdi
call fcn.139cb2320
mov rcx, qword [rsp + 0x28]
mov rdi, rax
test rax, rax
jne 0x139cb8139
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff027
jmp 0x139cb8239
lea r8, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x139cb8172
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.139cb22f0
mov ecx, ebx
call fcn.139cc08e0
jmp 0x139cb8239
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x139cb81b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.139cb22f0
cmp ebx, 0x7a
jne 0x139cb8166
mov eax, 0xfffff027
jmp 0x139cb8239
mov qword [rsp + 0x278], rbp
lea r8, [rbx + 0x18]
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x280], rsi
mov rcx, rdi
mov qword [rbx + 0x18], r14
call fcn.139cb7e90
mov rcx, rdi
mov ebp, eax
call fcn.139cb22f0
test ebp, ebp
je 0x139cb81f1
mov eax, ebp
jmp 0x139cb8229
mov r8, rbx
mov qword [rbx], r14
mov rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
call fcn.139cb7e90
mov edi, eax
test eax, eax
je 0x139cb821b
mov rcx, qword [rbx + 0x18]
call fcn.139cb22f0
mov eax, edi
jmp 0x139cb8229
mov qword [rbx + 0x10], r14
xor eax, eax
mov qword [rbx + 8], 0xffffffffffffffff
mov rsi, qword [rsp + 0x280]
mov rbp, qword [rsp + 0x278]
mov rdi, qword [rsp + 0x258]
mov r14, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.139ce5c70
add rsp, 0x260
pop rbx
ret
jmp 0x139cb8060
Function at 0x139cb8370
Capabilities:
Set current directory
Set environment variable

Disassembly:
sub rsp, 0x48
mov rax, qword [0x139d4c1c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x20]
call fcn.139cb7ec0
test eax, eax
jne 0x139cb8458
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbx
test eax, eax
jne 0x139cb83c6
call fcn.139cb22f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.139cc08e0
jmp 0x139cb8453
mov qword [rsp + 0x40], rdi
call fcn.139cb22f0
xor edi, edi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
call fcn.139cb7fa0
cmp eax, 0xfffff027
je 0x139cb844c
test eax, eax
js 0x139cb844e
cmp dword [rsp + 0x28], 2
mov rbx, qword [rsp + 0x20]
jb 0x139cb8444
cmp word [rbx + 2], 0x3a
jne 0x139cb8444
movzx ecx, word [rbx]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x139cb841f
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x139cb8444
sub cx, 0x20
je 0x139cb8444
mov eax, 0x3d
mov word [rsp + 0x32], cx
lea rcx, [rsp + 0x30]
mov word [rsp + 0x30], ax
mov rdx, rbx
mov dword [rsp + 0x34], 0x3a
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.139cb22f0
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.139ce5c70
add rsp, 0x48
ret

Function at 0x139cb8610
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x139d4c1c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x30]
xor edx, edx
test eax, eax
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.139ce5c70
add rsp, 0x78
ret

Function at 0x139cb8660
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x139d4c1c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x28]
xor edx, edx
test eax, eax
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.139ce5c70
add rsp, 0x78
ret
Function at 0x139cb8ad0
Capabilities:
Get common file path
Get session user name

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x139d4c1c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
test rcx, rcx
jne 0x139cb808d
mov eax, 0xfffff019
jmp 0x139cb8249
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x28]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x139cb80bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.139cc08e0
jmp 0x139cb8249
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
mov qword [rsp + 0x250], r14
xor edx, edx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x139cb8108
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.139cc08e0
jmp 0x139cb8241
mov ecx, dword [rsp + 0x20]
add rcx, rcx
mov qword [rsp + 0x258], rdi
call fcn.139cb2320
mov rcx, qword [rsp + 0x28]
mov rdi, rax
test rax, rax
jne 0x139cb8139
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff027
jmp 0x139cb8239
lea r8, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x139cb8172
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.139cb22f0
mov ecx, ebx
call fcn.139cc08e0
jmp 0x139cb8239
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x139cb81b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.139cb22f0
cmp ebx, 0x7a
jne 0x139cb8166
mov eax, 0xfffff027
jmp 0x139cb8239
mov qword [rsp + 0x278], rbp
lea r8, [rbx + 0x18]
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x280], rsi
mov rcx, rdi
mov qword [rbx + 0x18], r14
call fcn.139cb7e90
mov rcx, rdi
mov ebp, eax
call fcn.139cb22f0
test ebp, ebp
je 0x139cb81f1
mov eax, ebp
jmp 0x139cb8229
mov r8, rbx
mov qword [rbx], r14
mov rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
call fcn.139cb7e90
mov edi, eax
test eax, eax
je 0x139cb821b
mov rcx, qword [rbx + 0x18]
call fcn.139cb22f0
mov eax, edi
jmp 0x139cb8229
mov qword [rbx + 0x10], r14
xor eax, eax
mov qword [rbx + 8], 0xffffffffffffffff
mov rsi, qword [rsp + 0x280]
mov rbp, qword [rsp + 0x278]
mov rdi, qword [rsp + 0x258]
mov r14, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.139ce5c70
add rsp, 0x260
pop rbx
ret
jmp 0x139cb8060