joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x140028b0a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140028b00
cmp r11, r10
ja 0x140028b86
cmp r10, rdx
ja 0x140028b98
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140028b02
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140028ae0
jmp 0x140028b67
ja 0x140028b0a
mov r11, r10
cmp rax, r8
jne 0x140028aa7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140028b6b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140028b40
mov r8, r10
sub ecx, r9d
jns 0x140028b5e
jmp 0x140028b6d
cmp r10, rdx
je 0x140028b7a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140028b6d
xor al, 1
cmp r8, rdx
jne 0x140028b20
jmp 0x140028b6d
xor eax, eax
jmp 0x140028b6d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14002b8a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002bd00
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002bcf0
int3

Function at 0x14002a444
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14002a48e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002a48e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002a48e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002a48e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002a48e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002a490
xor al, al
add rsp, 0x28
ret
Function at 0x1400012f0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x450
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x448], rax
cmp r8, r9
je 0x140001368
mov r14, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x14000132c
mov r9, qword [r9]
mov rax, qword [rsi + 0x18]
cmp rax, r14
jae 0x140001342
mov rcx, rsi
mov rdx, r14
call fcn.140002810
jmp 0x140001368
mov r15, rsi
cmp rax, 8
jb 0x14000134e
mov r15, qword [rsi]
mov qword [rsi + 0x10], r14
lea r8, [r14 + r14]
mov rcx, r15
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [r15 + r14*2], 0
mov dword [rsp + 0x3c], 0x400
cmp qword [rdi + 0x18], 8
jb 0x14000137a
mov rdi, qword [rdi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400013f8
lea rcx, [rsp + 0x40]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rbx, rax
mov rax, qword [rsi + 0x18]
cmp rax, rbx
jae 0x1400013ce
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140002810
jmp 0x1400013f8
mov r14, rsi
cmp rax, 8
jb 0x1400013da
mov r14, qword [rsi]
mov qword [rsi + 0x10], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov word [r14 + rbx*2], 0
mov rcx, qword [rsp + 0x448]
xor rcx, rsp
call fcn.1400106c0
mov eax, edi
add rsp, 0x450
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140004fa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov word [rsp + 0x48], 0
movaps xmm0, xmmword [str.NtQuerySystemInf]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x6e6f6974616d726f
mov qword [rsp + 0x40], rax
movabs rax, 0x6c642e6c6c64746e
mov qword [rsp + 0x20], rax
mov word [rsp + 0x28], WSASetLastError
mov byte [rsp + 0x2a], 0
lea rcx, [rsp + 0x20]
call fcn.140005ba0
mov rsi, rax
movsxd rax, dword [rax + 0x3c]
mov ebx, dword [rsi + rax + 0x88]
lea rax, [rsp + 0x30]
cmp rax, 0xffff
ja 0x140005031
mov eax, dword [rsi + rbx + 0x1c]
add rax, rsi
lea rcx, [rsp + 0x30]
movzx ecx, cx
jmp 0x14000508d
mov r15d, dword [rsi + rbx + 0x18]
mov r14d, dword [rsi + rbx + 0x20]
dec r15d
add r14, rsi
xor r12d, r12d
lea rdi, [rsp + 0x30]
jmp 0x140005056
inc r13d
mov r12d, r13d
lea r13d, [r12 + r15]
shr r13d, 1
mov ecx, dword [r14 + r13*4]
add rcx, rsi
mov rdx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
js 0x140005050
je 0x14000507a
dec r13d
mov r15d, r13d
jmp 0x140005056
mov eax, dword [rsi + rbx + 0x1c]
mov ecx, dword [rsi + rbx + 0x24]
add rcx, rsi
movzx ecx, word [rcx + r13*2]
add rax, rsi
lea rax, [rax + rcx*4]
mov eax, dword [rax]
add rax, rsi
mov qword [rsp + 0x30], 8
lea rdx, [rsp + 0x30]
mov ecx, 0x67
mov r8d, 8
xor r9d, r9d
call rax
test eax, eax
sets al
test byte [rsp + 0x34], 1
sete bl
or bl, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400106c0
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140005930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp - 0x10], rdx
mov r15, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov ecx, 0x50
call fcn.140010338
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [r15], rax
mov rax, qword [rbp - 0x10]
cmp qword [rax + 0x18], 0x10
mov rcx, rax
jb 0x140005989
mov rcx, qword [rax]
call fcn.140005ba0
test rax, rax
je 0x140005aa8
mov rsi, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rsi + rax + 0x88]
cmp dword [rsi + rcx + 0x18], 0
je 0x140005aa8
mov eax, dword [rsi + rcx + 0x1c]
mov edx, dword [rsi + rcx + 0x20]
add rdx, rsi
mov qword [rbp - 0x40], rdx
mov r12d, dword [rsi + rcx + 0x24]
add r12, rsi
add rax, rsi
mov qword [rbp - 0x38], rax
xor ebx, ebx
lea r13, [rbp - 0x30]
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r12
nop dword [rax]
mov rax, qword [rbp - 0x40]
mov r14d, dword [rax + rbx*4]
movzx eax, word [r12 + rbx*2]
mov rdi, rcx
add eax, dword [rsi + rcx + 0x10]
mov dword [rbp - 4], eax
mov rcx, r15
mov rdx, r13
lea r8, [rbp - 4]
call fcn.140007290
mov r13, qword [rbp - 0x30]
lea r15, [r13 + 0x28]
add r14, rsi
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r12, rax
mov rax, qword [r13 + 0x40]
cmp rax, r12
jae 0x140005a40
mov rcx, r15
mov rdx, r12
mov r9, r14
call fcn.140006320
mov r12, qword [rbp - 0x20]
lea r13, [rbp - 0x30]
jmp 0x140005a69
cmp rax, 0x10
jb 0x140005a4a
mov r15, qword [r13 + 0x28]
mov qword [r13 + 0x38], r12
mov rcx, r15
mov rdx, r14
mov r8, r12
call sub.VCRUNTIME140.dll_memmove
mov byte [r15 + r12], 0
mov r12, qword [rbp - 0x20]
lea r13, [rbp - 0x30]
movzx eax, word [r12 + rbx*2]
mov rcx, qword [rbp - 0x38]
mov r14d, dword [rcx + rax*4]
mov rcx, qword [rbp - 0x18]
mov rdx, r13
lea r8, [rbp - 4]
call fcn.140007290
mov rax, qword [rbp - 0x30]
add r14, rsi
mov qword [rax + 0x48], r14
inc rbx
mov rcx, rdi
mov eax, dword [rsi + rdi + 0x18]
cmp rbx, rax
mov r15, qword [rbp - 0x18]
jb 0x1400059e0
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 0x18]
cmp rax, 0x10
jb 0x140005ae6
mov rcx, qword [rsi]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140005ae1
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140005b0d
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14001037c
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov rax, r15
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140014e50
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 0x140014fd6
test rdx, rdx
je 0x140014fd6
cmp qword [rdx], 0
je 0x140014fd6
xor edx, edx
mov qword [rsp + 0x58], rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test eax, eax
jne 0x140014ead
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.140037f80
inc rsi
mov qword [rsp + 0x50], rbx
lea rcx, [rsi + rsi]
call fcn.140011380
mov rbx, rax
test rax, rax
jne 0x140014ed0
mov eax, 0xfffff027
jmp 0x140014f64
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, eax
test rax, rax
jne 0x140014ef9
mov rcx, rbx
call fcn.140011390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140037f80
jmp 0x140014f64
mov qword [rsp + 0x60], r14
xor r14d, r14d
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x140014f1c
cmp rax, 3
jne 0x140014f16
cmp word [rbx + 2], 0x3a
je 0x140014f1c
mov word [rbx + rax*2 - 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]
test eax, eax
jne 0x140014f79
mov rcx, rbx
call fcn.140011390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140037f80
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 esi, eax
mov rax, qword [rdi]
cmp rsi, rax
jbe 0x140014f95
mov rcx, rbx
call fcn.140011390
mov eax, 0xfffff024
mov qword [rdi], rsi
jmp 0x140014f5f
mov qword [rsp + 0x38], r14
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], eax
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rbx
mov esi, eax
call fcn.140011390
test esi, esi
je 0x140014f52
lea ecx, [rsi - 1]
xor eax, eax
mov qword [rdi], rcx
jmp 0x140014f5f
mov rbp, qword [rsp + 0x68]
mov eax, 0xfffff019
add rsp, 0x40
pop rdi
ret
Function at 0x140015530
Capabilities:
Query environment variable

Disassembly:
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r14, r8
mov r15, rdx
test rcx, rcx
je 0x140015731
test rdx, rdx
je 0x140015731
test r8, r8
je 0x140015731
cmp qword [r8], 0
je 0x140015731
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
call fcn.140016060
test eax, eax
jne 0x140015736
mov qword [rsp + 0x4a8], rbx
xor ecx, ecx
mov qword [rsp + 0x470], rbp
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x468], rsi
mov qword [rsp + 0x460], rdi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbp
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp rdi, 0x200
jb 0x140015625
lea rax, [rsp + 0x50]
cmp rbx, rax
je 0x1400155f2
mov rcx, rbx
call fcn.140011390
inc edi
mov esi, edi
lea rcx, [rdi + rdi]
call fcn.140011380
mov rbx, rax
test rax, rax
je 0x14001564a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp rdi, rsi
jae 0x1400155e0
mov rcx, rbp
call fcn.140011390
test rdi, rdi
jne 0x140015665
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140015665
mov ecx, eax
call fcn.140037f80
mov edi, eax
jmp 0x1400156fb
mov edi, 0xfffff027
test rbp, rbp
je 0x1400156fb
mov rcx, rbp
call fcn.140011390
jmp 0x1400156fb
xor edi, edi
mov r8, rbx
mov qword [rsp + 0x38], rdi
xor edx, edx
mov qword [rsp + 0x30], rdi
mov ecx, 0xfde9
mov dword [rsp + 0x28], edi
lea r9d, [rdi - 1]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400156a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140037f80
mov edi, eax
jmp 0x1400156fb
mov rcx, qword [r14]
mov eax, eax
cmp rax, rcx
jbe 0x1400156b7
mov qword [r14], rax
mov edi, 0xfffff024
jmp 0x1400156fb
mov qword [rsp + 0x38], rdi
mov r9d, 0xffffffff
mov qword [rsp + 0x30], rdi
mov r8, rbx
mov dword [rsp + 0x28], ecx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400156f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140037f80
mov edi, eax
jmp 0x1400156fb
lea ecx, [rax - 1]
mov qword [r14], rcx
mov rsi, qword [rsp + 0x468]
lea rax, [rsp + 0x50]
mov rbp, qword [rsp + 0x470]
cmp rbx, rax
je 0x14001571d
mov rcx, rbx
call fcn.140011390
mov rbx, qword [rsp + 0x4a8]
mov eax, edi
mov rdi, qword [rsp + 0x460]
jmp 0x140015736
mov eax, 0xfffff019
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400106c0
add rsp, 0x478
pop r15
pop r14
ret
Function at 0x140015870
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 0x140015a03
test rdx, rdx
je 0x140015a03
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 0x1400158c3
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.140037f80
mov rcx, rsi
mov qword [rsp + 0x50], rbx
add rcx, rcx
call fcn.140011380
mov rbx, rax
test rax, rax
jne 0x1400158e5
mov eax, 0xfffff027
jmp 0x140015980
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test eax, eax
jne 0x14001590d
mov rcx, rbx
call fcn.140011390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140037f80
jmp 0x140015980
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 0x140015935
cmp edx, 3
jne 0x140015930
cmp word [rbx + 2], 0x3a
je 0x140015935
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 0x140015995
mov rcx, rbx
call fcn.140011390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140037f80
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 0x1400159ad
mov rcx, rbx
call fcn.140011390
mov eax, 0xfffff024
mov qword [rdi], rsi
jmp 0x14001597b
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.140011390
test esi, esi
je 0x14001596e
lea eax, [rsi - 1]
movsxd rcx, eax
xor eax, eax
mov qword [rdi], rcx
jmp 0x14001597b
mov rbp, qword [rsp + 0x68]
mov eax, 0xfffff019
add rsp, 0x40
pop rdi
ret
Function at 0x140015a20
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rcx
test rcx, rcx
jne 0x140015a55
mov eax, 0xfffff019
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400106c0
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 0x140015a99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140037f80
jmp 0x140015bc6
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
lea rbp, [rdi + rdi]
mov rcx, rbp
call fcn.140011380
mov rbx, rax
test rax, rax
jne 0x140015ac1
mov eax, 0xfffff027
jmp 0x140015bbc
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 0x140015af4
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x140015b0b
mov rcx, rbx
call fcn.140011390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140037f80
jmp 0x140015bbc
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp rsi, rdi
jbe 0x140015b45
mov rcx, rbx
call fcn.140011390
lea rcx, [rsi + rsi]
call fcn.140011380
mov rbx, rax
test rax, rax
je 0x140015bba
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [rbx + rbp - 2], 0x5c
jne 0x140015b62
cmp rdi, 3
jne 0x140015b5a
cmp word [rbx + 2], 0x3a
je 0x140015b6f
dec rdi
mov word [rbx + rdi*2], r14w
cmp rdi, 2
jb 0x140015bb2
cmp word [rbx + 2], 0x3a
jne 0x140015bb2
movzx ecx, word [rbx]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x140015b88
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140015bb2
sub cx, 0x20
test cx, cx
je 0x140015bb2
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.140011390
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.1400106c0
add rsp, 0x50
pop rsi
ret

Function at 0x140015bf0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14046e3c8]
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.1400106c0
add rsp, 0x78
ret
Function at 0x140015c40
Capabilities:
Get memory capacity

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

Function at 0x140015d70
Capabilities:
Get common file path
Get session user name

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14046e3c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
test rcx, rcx
jne 0x140015d9d
mov eax, 0xfffff019
jmp 0x140015f52
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 0x140015dcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140037f80
jmp 0x140015f52
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 0x140015e18
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.140037f80
jmp 0x140015f4a
mov ecx, dword [rsp + 0x20]
add rcx, rcx
mov qword [rsp + 0x258], rdi
call fcn.140011380
mov rcx, qword [rsp + 0x28]
mov rdi, rax
test rax, rax
jne 0x140015e49
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff027
jmp 0x140015f42
lea r8, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x140015e82
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.140011390
mov ecx, ebx
call fcn.140037f80
jmp 0x140015f42
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 0x140015ec5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.140011390
cmp ebx, 0x7a
jne 0x140015e76
mov eax, 0xfffff027
jmp 0x140015f42
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.140015f70
mov rcx, rdi
mov ebp, eax
call fcn.140011390
test ebp, ebp
je 0x140015efc
mov eax, ebp
jmp 0x140015f32
mov r8, rbx
mov qword [rbx], r14
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140015f70
mov edi, eax
test eax, eax
je 0x140015f24
mov rcx, qword [rbx + 0x18]
call fcn.140011390
mov eax, edi
jmp 0x140015f32
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.1400106c0
add rsp, 0x260
pop rbx
ret
Function at 0x140016140
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
test rdx, rdx
je 0x14001615c
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14001615c
mov eax, 0xfffff01a
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140024c0c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x14047e6b8], 0
jne 0x140024c44
lea rcx, str.HWLOC_HIDE_ERRORS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140024c3a
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x14046e650], eax
mov dword [0x14047e6b8], 1
mov eax, dword [0x14046e650]
add rsp, 0x28
ret