joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140190880
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movzx eax, byte [rcx + 0xf]
lea rsi, [0x1402bc260]
mov r8d, eax
mov r11, rcx
and eax, 0xf
and r8, 0xfffffffffffffff0
add rax, rax
mov rbx, rdx
mov edi, 0xe
mov r10, qword [rdx + rax*8 + 8]
mov r9, qword [rdx + rax*8]
mov rcx, r10
and ecx, 0xf
shr r10, 4
mov rax, r9
shl r9, 0x3c
shr rax, 4
or r10, r9
xor rax, qword [rsi + rcx*8]
xor rax, qword [r8 + rdx]
xor r10, qword [r8 + rdx + 8]
movzx ecx, byte [rdi + r11]
mov r9, rax
mov r8d, ecx
shl rax, 0x3c
and ecx, 0xf
shr r9, 4
add rcx, rcx
and r8, 0xfffffffffffffff0
lea rdx, [rbx + rcx*8]
mov rcx, r10
shr r10, 4
and ecx, 0xf
or rax, r10
xor rax, qword [rdx + 8]
xor r9, qword [rsi + rcx*8]
mov rcx, rax
xor r9, qword [rdx]
and ecx, 0xf
mov rdx, rax
mov r10, r9
shl r10, 0x3c
mov rax, r9
shr rax, 4
xor rax, qword [rsi + rcx*8]
xor rax, qword [r8 + rbx]
shr rdx, 4
or r10, rdx
xor r10, qword [r8 + rbx + 8]
sub rdi, 1
jns 0x1401908e0
mov rbx, qword [rsp + 8]
mov rdx, rax
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov byte [r11 + 7], al
shr rdx, 0x20
mov ecx, edx
mov byte [r11 + 3], dl
shr ecx, 0x18
mov byte [r11], cl
mov ecx, edx
shr ecx, 0x10
mov byte [r11 + 1], cl
mov ecx, edx
shr ecx, 8
mov byte [r11 + 2], cl
mov ecx, eax
shr ecx, 0x18
mov byte [r11 + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [r11 + 5], cl
mov ecx, eax
shr ecx, 8
mov byte [r11 + 6], cl
mov rcx, r10
shr rcx, 0x20
mov eax, ecx
mov byte [r11 + 0xb], cl
shr eax, 0x18
mov byte [r11 + 8], al
mov eax, ecx
shr eax, 0x10
mov byte [r11 + 9], al
mov eax, ecx
shr eax, 8
mov byte [r11 + 0xa], al
mov eax, r10d
shr eax, 0x18
mov byte [r11 + 0xc], al
mov eax, r10d
shr eax, 0x10
mov byte [r11 + 0xd], al
mov eax, r10d
shr eax, 8
mov byte [r11 + 0xe], al
mov byte [r11 + 0xf], r10b
ret
Function at 0x140194b30
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0xb0
call fcn.140244960
sub rsp, rax
mov rax, qword [0x140343618]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xf0]
mov rbp, r8
mov dword [rsp + 0x60], 0x61707865
mov rsi, rdx
mov dword [rsp + 0x64], 0x3320646e
mov rdi, rcx
mov dword [rsp + 0x68], 0x79622d32
mov dword [rsp + 0x6c], 0x6b206574
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x80], xmm1
movups xmmword [rsp + 0x90], xmm0
test r8, r8
je 0x140194d11
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], r14
nop
mov ebx, 0x40
lea rdx, [rsp + 0x60]
cmp rbp, rbx
lea rcx, [rsp + 0x20]
cmovb rbx, rbp
call fcn.140194d30
xor eax, eax
test rbx, rbx
je 0x140194ceb
cmp rbx, 0x40
jb 0x140194cb9
lea rdx, [rdi - 1]
add rdx, rbx
lea rcx, [rsp + rbx + 0x1f]
cmp rdi, rcx
ja 0x140194c0f
lea rcx, [rsp + 0x20]
cmp rdx, rcx
jae 0x140194cb9
lea rcx, [rsi - 1]
add rcx, rbx
cmp rdi, rcx
ja 0x140194c24
cmp rdx, rsi
jae 0x140194cb9
mov r10, rbx
and r10, 0xffffffffffffffc0
mov rdx, rsi
lea r8, [rsp + 0x20]
lea r11, [rsp + 0x30]
sub rdx, rdi
sub r8, rdi
lea r14, [rsp + 0x40]
sub r11, rdi
lea rcx, [rdi + 0x10]
sub r14, rdi
nop dword [rax]
movdqu xmm0, xmmword [r8 + rcx - 0x10]
add rax, 0x40
movdqu xmm1, xmmword [rdx + rcx - 0x10]
movdqu xmm2, xmmword [rcx + r8]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x40]
movdqu xmmword [rcx - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x30]
movdqu xmm1, xmmword [rcx + r11 - 0x40]
movdqu xmmword [rcx - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x20]
movdqu xmm2, xmmword [rcx + r14 - 0x40]
movdqu xmmword [rcx - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x20], xmm2
cmp rax, r10
jb 0x140194c50
cmp rax, rbx
jae 0x140194ceb
lea rcx, [rsp + 0x20]
mov r8, rsi
sub r8, rcx
mov r9, rdi
lea rcx, [rsp + 0x20]
sub r9, rcx
nop
lea rdx, [rsp + 0x20]
add rdx, rax
inc rax
movzx ecx, byte [rdx + r8]
xor cl, byte [rdx]
mov byte [rdx + r9], cl
cmp rax, rbx
jb 0x140194cd0
inc dword [rsp + 0x90]
add rdi, rbx
add rsi, rbx
sub rbp, rbx
jne 0x140194bc0
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140243d80
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140197fe0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.140244960
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x140198009
lea rax, [0x140196640]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14018e4b0
lea rax, [0x1401957f0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14018e1f0
Function at 0x1401f7b80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x20
call fcn.140244960
sub rsp, rax
mov rsi, r9
mov rbp, r9
shr rsi, 3
mov rdi, r8
mov rbx, rdx
mov r14, rcx
cmp r8, r9
jb 0x1401f7c40
nop
xor edx, edx
test rsi, rsi
je 0x1401f7c30
nop word [rax + rax]
movzx eax, byte [rbx + 6]
movzx ecx, byte [rbx + 7]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 5]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 4]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 3]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 2]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx]
shl rcx, 8
add rbx, 8
or rcx, rax
xor qword [r14 + rdx*8], rcx
inc rdx
cmp rdx, rsi
jb 0x1401f7bd0
mov rcx, r14
call fcn.1401f7350
sub rdi, rbp
cmp rdi, rbp
jae 0x1401f7bc0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x14020fad0
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x140343618]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
xor edi, edi
lea rcx, [0x140349e38]
call fcn.140221070
mov eax, 2
xchg dword [0x140349df0], eax
cmp eax, 1
je 0x14020fb1a
lea rcx, [0x140349e38]
call fcn.140221040
xor eax, eax
jmp 0x14020fc04
xor r9d, r9d
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x30], rdi
lea rcx, str.conout_
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 0x14020fb82
lea rdx, [0x140349df8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14020fb82
lock or dword [0x140349df4], 1
mov r14d, 1
mov dword [rsp + 0x50], 0xd0001
mov ebp, 0xd
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 0x14020fbeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x14020fbfa
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.140243d80
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1402111b0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140343618]
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 0x1402111ee
mov eax, 0xffffffff
jmp 0x140211270
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 0x14021121e
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.140211110
mov rcx, qword [rbx + 0x110]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x140211269
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x140211200
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov eax, 0xffffffff
jmp 0x14021126b
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140243d80
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret

Function at 0x140211620
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140343618]
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 0x140211668
test cl, 1
jne 0x140211668
test cl, 4
je 0x140211668
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x140211668
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
bt eax, 0x10
jae 0x1402116dd
bt eax, 0x19
jae 0x1402116c4
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, 0x10
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 0x1402116dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140243d80
add rsp, 0x50
pop rbx
ret
bt eax, 0x15
jb 0x1402116dd
mov rcx, rbx
call fcn.14020fad0
test eax, eax
jne 0x1402116df
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140243d80
add rsp, 0x50
pop rbx
ret
Function at 0x140211700
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140343618]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx ebp, word [0x1403433ec]
xor r14d, r14d
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x30], r14d
cmp dword [rdx], r14d
jne 0x140211752
mov rcx, qword [rcx + 0x110]
movzx edx, bp
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x14021175c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov eax, 0xffffffff
jmp 0x14021180e
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 0x1402117f9
nop
mov rcx, qword [rdi + 0x110]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1402117f9
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 0x1402117ee
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 0x14021182c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x140211780
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.140243d80
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x38]
mov dword [0x1403433d0], r14d
call fcn.140211fe0
mov rcx, qword [rdi + 0x110]
lea rdx, [0x140349e48]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
test eax, eax
je 0x1402117f9
xor eax, eax
jmp 0x140211806
Function at 0x140212db0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
xor r9d, r9d
mov r11d, edx
mov rdi, rcx
mov r10d, r9d
mov ebx, r9d
cmp edx, 2
jb 0x14020e871
lea eax, [rdx - 2]
mov qword [rsp + 0x10], rsi
shr eax, 1
mov r8, rcx
inc eax
mov edx, eax
lea esi, [rax + rax]
lea rcx, [rax + rax]
mov eax, dword [r8]
lea r8, [r8 + 0x20]
add r9, rax
mov eax, dword [r8 - 0x10]
add r10, rax
sub rdx, 1
jne 0x14020e842
cmp esi, r11d
mov rsi, qword [rsp + 0x10]
jb 0x14020e880
lea rax, [r10 + r9]
add rax, rbx
mov rbx, qword [rsp + 0x18]
pop rdi
ret
test r11d, r11d
je 0x14020e886
mov rcx, r9
nop dword [rax]
add rcx, rcx
mov ebx, dword [rdi + rcx*8]
lea rax, [r10 + r9]
add rax, rbx
mov rbx, qword [rsp + 0x18]
pop rdi
ret
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x100], 0
mov ebx, r8d
mov rdi, rdx
jbe 0x14020fec9
mov eax, 0xfffff008
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x30]
call fcn.140212040
test eax, eax
je 0x14020feea
mov ecx, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140220130
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14020e810
mov eax, dword [rcx + 0x58]
test al, 1
je 0x140212dbd
mov eax, 0xfffff00d
ret
bt eax, 0xf
jb 0x140212dc9
mov eax, 0xfffff031
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x140212deb
cmp eax, 0xc
je 0x140212de6
cmp eax, 0xe
je 0x140212de1
mov eax, 0xfffff02a
ret
jmp 0x14020fea0
jmp 0x14021a790
mov eax, 0xfffff008
ret
sub rsp, 0x48
cmp dword [rcx + 0x100], 0
jbe 0x14021a7a7
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 0x14021a7e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140220130
add rsp, 0x48
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x140213030
Capabilities:
Get common file path
Get session user name

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140343618]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
test rcx, rcx
jne 0x14021305d
mov eax, 0xfffff019
jmp 0x140213212
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 0x14021308c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140220130
jmp 0x140213212
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 0x1402130d8
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.140220130
jmp 0x14021320a
mov ecx, dword [rsp + 0x20]
add rcx, rcx
mov qword [rsp + 0x258], rdi
call fcn.14020ea50
mov rcx, qword [rsp + 0x28]
mov rdi, rax
test rax, rax
jne 0x140213109
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff027
jmp 0x140213202
lea r8, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x140213142
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.14020e8a0
mov ecx, ebx
call fcn.140220130
jmp 0x140213202
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 0x140213185
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.14020e8a0
cmp ebx, 0x7a
jne 0x140213136
mov eax, 0xfffff027
jmp 0x140213202
mov qword [rsp + 0x278], rbp
lea r8, [rbx + 0x18]
mov edx, 0xffffffff
mov qword [rsp + 0x280], rsi
mov rcx, rdi
mov qword [rbx + 0x18], r14
call fcn.140212e60
mov rcx, rdi
mov ebp, eax
call fcn.14020e8a0
test ebp, ebp
je 0x1402131bc
mov eax, ebp
jmp 0x1402131f2
mov r8, rbx
mov qword [rbx], r14
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140212e60
mov edi, eax
test eax, eax
je 0x1402131e4
mov rcx, qword [rbx + 0x18]
call fcn.14020e8a0
mov eax, edi
jmp 0x1402131f2
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.140243d80
add rsp, 0x260
pop rbx
ret

Function at 0x1402132e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
test rdx, rdx
je 0x1402132fc
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1402132fc
mov eax, 0xfffff01a
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140213360
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x140343618]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rcx
test rcx, rcx
jne 0x140213395
mov eax, 0xfffff019
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140243d80
add rsp, 0x50
pop rsi
ret
mov qword [rsp + 0x48], rdi
mov r8, rsi
mov qword [rsp + 0x40], r14
xor edx, edx
xor r14d, r14d
mov ecx, 0xfde9
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
lea r9d, [r14 - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
test eax, eax
jne 0x1402133d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140220130
jmp 0x140213506
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
lea rbp, [rdi + rdi]
mov rcx, rbp
call fcn.14020ea50
mov rbx, rax
test rax, rax
jne 0x140213401
mov eax, 0xfffff027
jmp 0x1402134fc
mov dword [rsp + 0x28], edi
mov r9d, 0xffffffff
mov r8, rsi
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rbx
test eax, eax
je 0x140213434
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14021344b
mov rcx, rbx
call fcn.14020e8a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140220130
jmp 0x1402134fc
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp rsi, rdi
jbe 0x140213485
mov rcx, rbx
call fcn.14020e8a0
lea rcx, [rsi + rsi]
call fcn.14020ea50
mov rbx, rax
test rax, rax
je 0x1402134fa
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [rbx + rbp - 2], 0x5c
jne 0x1402134a2
cmp rdi, 3
jne 0x14021349a
cmp word [rbx + 2], 0x3a
je 0x1402134af
dec rdi
mov word [rbx + rdi*2], r14w
cmp rdi, 2
jb 0x1402134f2
cmp word [rbx + 2], 0x3a
jne 0x1402134f2
movzx ecx, word [rbx]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x1402134c8
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x1402134f2
sub cx, 0x20
test cx, cx
je 0x1402134f2
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.14020e8a0
xor eax, eax
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140243d80
add rsp, 0x50
pop rsi
ret
Function at 0x140213530
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbp, rcx
test rcx, rcx
je 0x1402136c3
test rdx, rdx
je 0x1402136c3
xor edx, edx
mov qword [rsp + 0x58], rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x140213583
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
jmp fcn.140220130
mov rcx, rsi
mov qword [rsp + 0x50], rbx
add rcx, rcx
call fcn.14020ea50
mov rbx, rax
test rax, rax
jne 0x1402135a5
mov eax, 0xfffff027
jmp 0x140213640
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test eax, eax
jne 0x1402135cd
mov rcx, rbx
call fcn.14020e8a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140220130
jmp 0x140213640
mov qword [rsp + 0x60], r14
lea eax, [rdx - 1]
xor r14d, r14d
cmp word [rbx + rax*2], 0x5c
mov word [rbx + rdx*2], r14w
jne 0x1402135f5
cmp edx, 3
jne 0x1402135f0
cmp word [rbx + 2], 0x3a
je 0x1402135f5
mov word [rbx + rax*2], r14w
mov qword [rsp + 0x38], r14
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
jne 0x140213655
mov rcx, rbx
call fcn.14020e8a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140220130
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov eax, dword [rdi]
cmp esi, eax
jle 0x14021366d
mov rcx, rbx
call fcn.14020e8a0
mov eax, 0xfffff024
mov qword [rdi], rsi
jmp 0x14021363b
mov edx, 0x7fffffff
mov qword [rsp + 0x38], r14
cmp qword [rdi], rdx
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r14
mov r8, rbx
cmova eax, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], eax
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rbx
mov esi, eax
call fcn.14020e8a0
test esi, esi
je 0x14021362e
lea eax, [rsi - 1]
movsxd rcx, eax
xor eax, eax
mov qword [rdi], rcx
jmp 0x14021363b
mov rbp, qword [rsp + 0x68]
mov eax, 0xfffff019
add rsp, 0x40
pop rdi
ret

Function at 0x1402137e0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140343618]
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]
mov rdx, 0xffffffffffffffff
test eax, eax
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140243d80
add rsp, 0x78
ret