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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea r15d, [rcx - 0xb]
mov rdi, r9
mov rsi, r8
mov r13, rdx
cmp ecx, r15d
jbe case.0x1800196c9.13
mov rbx, qword [rsp + 0x40]
lea ebp, [rcx - 0xdb]
movzx r14d, byte [rsp + 0x80]
lea r8, [0x180000000]
xor r12d, r12d
lea rdx, [0x180029930]
lea r9, [0x18002c7f0]
lea r10, [0x18002cbc0]
cmp ebp, 0x1a
ja case.0x1800196c9.5
mov ecx, dword [r8 + rbp*4 + 0x19854]
add rcx, r8
jmp rcx
mov edx, 0xa0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x18001973e
mov ecx, 0x11b
nop dword [rax + rax]
mov eax, ecx
sub eax, 0x119
je 0x18001972d
sub eax, 1
je 0x18001970c
cmp eax, 1
jne 0x180019734
mov qword [rbx], r12
mov qword [rbx + 8], r12
jmp 0x180019734
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x50], r12
mov dword [rbx + 0x58], r12d
mov qword [rbx + 0x60], 0xffffffffffffffff
mov qword [rbx + 0x88], 0xffffffffffffffff
jmp 0x180019734
mov dword [rbx + 0x90], r12d
dec ecx
cmp ecx, 0x118
ja 0x1800196f0
lea r8, [0x180000000]
lea r9, [0x18002c7f0]
lea r10, [0x18002cbc0]
lea rdx, [0x180029930]
dec ebp
lea eax, [rbp + 0xdb]
cmp eax, r15d
ja 0x1800196b5
jmp case.0x1800196c9.13
mov qword [0x180092460], rdi
mov qword [rdi + 0x10], rdx
jmp case.0x1800196c9.5
mov qword [rdi + 0x38], rsi
jmp case.0x1800196c9.5
mov byte [rsp + 0x40], r14b
jmp case.0x1800196c9.5
mov qword [rsp + 0x40], rbx
jmp case.0x1800196c9.5
mov ecx, 8
call fcn.180077428
lea rcx, [0x18002cbb0]
mov qword [rax], r13
mov qword [rdi + 0x48], rax
lea rax, [0x18002c750]
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x40], rcx
jmp 0x18001973e
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x20], r9
mov qword [rdi + 0x28], r13
mov qword [rdi + 0x50], r10
jmp case.0x1800196c9.5
mov edx, dword [rsi]
xor r14b, r14b
test edx, edx
je 0x1800197fe
nop word [rax + rax]
dec dword [rsi]
movzx ecx, byte [rdi]
inc rdi
mov edx, dword [rsi]
movzx eax, r14b
xor rcx, rax
movzx r14d, byte [rcx + r8 + 0x82130]
test edx, edx
jne 0x1800197e0
lea eax, [rdx - 1]
mov dword [rsi], eax
jmp 0x180019753
mov r8, qword [r13 + 0xb8]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], r12
mov ecx, 0xe9
mov qword [rsp + 0x20], r12
call fcn.18001b3e0
mov byte [rsp + 0x40], al
mov rax, qword [rsp + 0x40]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18001b3e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
lea ebp, [rcx - 4]
mov r15, r9
mov r14, r8
mov r12, rdx
mov ebx, ecx
cmp ecx, ebp
jbe 0x18001b523
mov rdi, qword [rsp + 0xc0]
xor r13d, r13d
mov rsi, qword [rsp + 0x50]
mov eax, ebx
sub eax, 0xe8
je 0x18001b505
sub eax, 1
je 0x18001b4ca
sub eax, 4
je 0x18001b4b1
cmp eax, 4
jne 0x18001b4f9
mov rax, qword [rsp + 0xb8]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], r15
mov edx, 0xae
mov qword [rsp + 0x28], r14
mov rcx, qword [rax]
mov rax, qword [r12]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x90], 1
mov rcx, qword [rax]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x20], rax
call fcn.180042400
jmp 0x18001b52a
mov r9, rdi
mov qword [rsp + 0x20], r13
xor r8d, r8d
xor edx, edx
mov ecx, 0x8d
call fcn.18002df70
jmp 0x18001b4f9
mov qword [0x180092468], rdi
lea r8, [0x180031f50]
mov qword [rsp + 0x28], r13
mov r9, rdi
xor edx, edx
mov qword [rdi + 0x80], r14
xor ecx, ecx
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
dec ebx
cmp ebx, ebp
ja 0x18001b422
jmp 0x18001b523
test rsi, rsi
jne 0x18001b514
mov byte [rsp + 0x90], r13b
jmp 0x18001b523
xchg qword [0x180092470], rsi
mov byte [rsp + 0x90], 1
mov eax, dword [rsp + 0x90]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180053f40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x2050
call fcn.180077ba0
sub rsp, rax
mov rax, qword [0x1800923a0]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov r14, qword [rsp + 0x20b0]
lea esi, [r8 - 3]
mov rbp, r9
mov ebx, r8d
mov r15, rdx
mov rdi, rcx
cmp r8d, esi
jbe 0x18005407b
lea r12, [0x180029530]
mov eax, ebx
sub eax, 0x105
je 0x180054002
sub eax, 3
je 0x180053fc6
cmp eax, 3
jne 0x180053ff7
movsd xmm0, qword [rdi]
call sub.api_ms_win_crt_math_l1_1_0.dll_log
addsd xmm0, qword [rbp]
subsd xmm0, qword [0x18008bf58]
movsd qword [rsp + 0x30], xmm0
jmp 0x18005407b
mov eax, dword [r14]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov r8, rbp
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x28], rax
mov rdx, r15
mov rcx, rdi
mov dword [rsp + 0x20], 0xde
call fcn.18001f7a0
dec ebx
cmp ebx, esi
ja 0x180053f92
jmp 0x18005407b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x180054073
nop
mov r9, rdi
lea rcx, [rsp + 0x40]
mov edx, 1
mov r8d, 0x2000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, rax
test rax, rax
jne 0x18005404b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x180054066
mov dword [r14], 6
mov dword [rsp + 0x30], eax
jmp 0x18005407b
mov r9, rbp
lea rcx, [rsp + 0x40]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x1800540a2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x180054010
mov dword [rsp + 0x30], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.180077c10
add rsp, 0x2050
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [r14], 8
mov dword [rsp + 0x30], 0
jmp 0x18005407b
Function at 0x180077120
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rax, qword [0x1800924c0]
test rax, rax
je 0x18007714d
lea rdx, [rsp + 0x38]
call rax
jmp 0x18007716a
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov rcx, rax
call fcn.180077390
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x180077220
Capabilities:
Modify service

Disassembly:
mov r8, rcx
mov ecx, 0x49
jmp fcn.180034e60
Function at 0x1800038b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800038d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18000394c
mov rdi, r14
mov rcx, rbx
call fcn.180005430
test rax, rax
jle 0x180003924
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18000d3b0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000393c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180003944
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800038e6
sub r14, rdi
jmp 0x180003a2f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180003963
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180003965
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180003997
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18000d3b0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180003a2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800039d2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x180003a0d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18001e480
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180003a2c
cmp rbp, rax
ja 0x1800039e0
test rbp, rbp
je 0x180003a2c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18001e480
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x1800147c0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1800142a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1800147ff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x180061338]
jmp 0x180014809
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x180035750
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x18003b9a0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.18005eef0
sub rsp, rax
mov rax, qword [0x180127088]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1801295c0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x18003bb92
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x18003bae6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x18003bae6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x18003bacb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x18003ba68
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18003bb52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x18003bbb1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x18003bb8d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x18003bbb1
jmp 0x18003ba3e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.180009bc0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x18003bbd0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.18005eef0
sub rsp, rax
mov rax, qword [0x180127088]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1801295c0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x18003bddd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x18003bd29
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x18003bd29
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x18003bd09
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x18003bc98
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18003bd9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x18003bdfc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x18003bdd8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x18003bdfc
jmp 0x18003bc6e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.180009bc0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x18003e430
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.18003da50
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18003e497
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x180061340]
jmp 0x18003e4b9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.18003e7c0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret
Function at 0x18004d9c0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1800092e0
lea rcx, [rsp + 0x40]
call fcn.18004d980
movzx eax, al
test eax, eax
jne 0x18004da08
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.18004d8b0
mov rax, qword [rsp + 0x70]
jmp 0x18004dbd9
lea rcx, [rsp + 0x40]
call fcn.180006c20
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.18004d930
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.180006c20
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.18004aa10
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18004daae
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.18004d8b0
mov rax, qword [rsp + 0x80]
jmp 0x18004dbd9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.18001c8f0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800092e0
lea rcx, [rsp + 0x48]
call fcn.180009b60
movzx eax, al
test eax, eax
jne 0x18004db15
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.180009b40
lea rcx, [rsp + 0x40]
call fcn.18004d8b0
mov rax, qword [rsp + 0x88]
jmp 0x18004dbd9
lea rcx, [rsp + 0x48]
call fcn.180006c20
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.180006c20
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.18004aa10
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18004dbab
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.180009b40
lea rcx, [rsp + 0x40]
call fcn.18004d8b0
mov rax, qword [rsp + 0xa0]
jmp 0x18004dbd9
lea rcx, [rsp + 0x48]
call fcn.18000cda0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.180009b40
lea rcx, [rsp + 0x40]
call fcn.18004d8b0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140001180
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
lea rsi, [0x14000f040]
mov r10, rax
sub rbx, rax
movabs rdi, 0x95a02568095a0257
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r11d
mov rax, rdi
mul r8
mov rcx, r8
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 1]
mov byte [r9 - 1], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 2]
xor al, byte [rbx + r9]
mov byte [r9], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 3]
xor al, byte [rbx + r9 + 1]
mov byte [r9 + 1], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 4]
xor al, byte [rbx + r9 + 2]
mov byte [r9 + 2], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 5]
xor al, byte [rbx + r9 + 3]
mov byte [r9 + 3], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 6]
xor al, byte [rbx + r9 + 4]
mov byte [r9 + 4], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 7]
xor al, byte [rbx + r9 + 5]
mov byte [r9 + 5], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 8]
xor al, byte [rbx + r9 + 6]
mov byte [r9 + 6], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 + 7]
mov byte [r9 + 7], al
lea rcx, [r8 + 9]
mov rax, rdi
lea r9, [r9 + 0xe]
mul rcx
add r11d, 0xe
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xa]
xor al, byte [rbx + r9 - 6]
mov byte [r9 - 6], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xb]
xor al, byte [rbx + r9 - 5]
mov byte [r9 - 5], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xc]
xor al, byte [rbx + r9 - 4]
mov byte [r9 - 4], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xd]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r11d, 0xe
jb 0x1400011d0
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x72]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r10d, r10d
lea rsi, [0x14000f040]
mov r11, rax
sub rbx, rax
movabs rdi, 0x95a02568095a0257
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r10d
lea r9, [r9 + 2]
mov rax, rdi
mov rcx, r8
mul r8
add r10d, 2
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
shr rdx, 8
imul rax, rdx, 0x1b6
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r10d, 0x7a
jb 0x140001450
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret