joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400032a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003373
cmp byte [rcx + 0x71], 0
je 0x140003373
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000336f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003334
sub eax, 1
je 0x140003338
cmp eax, 2
jne 0x14000336f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003b80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003366
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000336f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000331c
xor al, al
jmp 0x14000331c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003b80
add rsp, 0x60
pop rbx
ret

Function at 0x140004500
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140076100]
xor rax, rsp
mov qword [rbp + 0x20], rax
movabs rax, 0x9e538bed3b852560
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
movabs rcx, 0x688b8d8b3f9e47fa
mov qword [rbp - 0x68], rcx
movabs rax, 0x6fc9a313f24f6005
mov qword [rsp + 0x48], rax
movabs rdi, 0xdd0fc6a86fd67c33
movdqa xmm0, xmmword [rsp + 0x40]
movabs rax, 0x7cffcfcac2cc9d73
mov qword [rsp + 0x50], rax
movabs rbx, 0x8ad77d973d1270
movabs rax, 0xbfc281679bbb3e8e
mov qword [rbp + 0x18], rcx
mov qword [rsp + 0x58], rax
mov r9d, 2
movdqa xmm1, xmmword [rsp + 0x50]
movabs rax, 0x97a7a355fbaed8db
mov qword [rsp + 0x60], rax
xor r8d, r8d
movabs rax, 0x28b1af5dd52ff0d1
mov qword [rbp - 0x40], rdi
mov qword [rsp + 0x68], rax
mov rcx, 0xffffffff80000002
movabs rax, 0x67dcc7d516862d3f
mov qword [rbp - 0x38], rbx
xorps xmm0, xmmword [rbp - 0x40]
mov qword [rsp + 0x70], rax
movabs rax, 0x43fcad41150d0f0f
mov qword [rsp + 0x78], rax
movabs rax, 0x70520f09359249
mov qword [rbp - 0x80], rax
movabs rax, 0xe82830501805679c
mov qword [rbp - 0x78], rax
movabs rax, 0x87df59aa1a1dc800
mov qword [rbp - 0x70], rax
movabs rax, 0x89a9ca6adbee91d
mov qword [rbp - 0x30], rax
movabs rax, 0xd3adf313f5d47dd2
mov qword [rbp - 0x28], rax
movabs rax, 0xd0c2c03c8dcb9c87
xorps xmm1, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movabs rax, 0x4dd2fc01b15d91a4
mov qword [rbp - 0x18], rax
movabs rax, 0x2f80b4ba7ff44c51
mov qword [rbp - 0x10], rax
movabs rax, 0x2c8fc43767687f76
mov qword [rbp - 8], rax
movabs rax, 0x651320606f5bd73b
mov qword [rbp], rax
movabs rax, 0x9c4679357c6a24f8
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm1, xmmword [rsp + 0x70]
xorps xmm1, xmmword [rbp - 0x10]
mov qword [rbp + 8], rax
movabs rax, 0x87df20de736faf65
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [rbp - 0x80]
xorps xmm0, xmmword [rbp]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm1, xmmword [rbp - 0x70]
mov qword [rbp + 0x10], rax
lea rax, [rbp - 0x60]
xorps xmm1, xmmword [rbp + 0x10]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001df79
mov rcx, qword [rbp - 0x60]
lea rdx, [rsp + 0x30]
mov dword [rbp - 0x58], eax
mov r9d, 4
mov qword [rsp + 0x38], rbx
movabs rax, 0xdd6ba3c40db71276
mov qword [rsp + 0x30], rax
xor r8d, r8d
movdqa xmm0, xmmword [rsp + 0x30]
lea rax, [rbp - 0x58]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rbx
xorps xmm0, xmmword [rbp - 0x50]
mov dword [rsp + 0x28], 4
movdqa xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140038300
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14001e2a0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140076100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
lea r9, [rsp + 0x20]
xor r14d, r14d
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov edi, r14d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14001e32d
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14001e2e2
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
test eax, eax
js 0x14001e3fc
mov ebx, r14d
cmp dword [rdi], ebx
jbe 0x14001e3fc
nop dword [rax]
mov eax, ebx
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rdi + 0x2e]
lea rsi, [rcx + rdi]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x14001e385
lea rcx, [rsp + 0x28]
call fcn.14001b2a0
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
mov rdx, rbp
cmova rcx, qword [rsp + 0x28]
call fcn.140042a40
test eax, eax
je 0x14001e432
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001e3f2
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e3ed
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e485
call fcn.14003835c
inc ebx
cmp ebx, dword [rdi]
jb 0x14001e350
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140038300
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
mov rbx, qword [rsi + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001e480
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e47b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e485
call fcn.14003835c
mov rax, rbx
jmp 0x14001e40f
call fcn.14003e264
int3
Function at 0x140025840
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140076100]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor eax, eax
mov dword [rbp - 0x49], 4
mov dword [rbp - 0x51], eax
lea rdx, [rbp - 0x39]
mov dword [rbp - 0x4d], eax
movabs rcx, 0x2c8fc43767687f76
mov qword [rbp - 1], rcx
movabs rax, 0x9e538bed3b852560
mov qword [rbp - 0x39], rax
movabs r14, 0xdd0fc6a86fd67c33
mov qword [rbp + 0x3f], rcx
movabs rax, 0x6fc9a313f24f6005
mov qword [rbp - 0x31], rax
movabs rsi, 0x8ad77d973d1270
movdqa xmm0, xmmword [rbp - 0x39]
movabs rax, 0x7cffcfcac2cc9d73
mov qword [rbp - 0x29], rax
movabs rdi, 0x89a9ca6adbee91d
movabs rax, 0xbfc281679bbb3e8e
mov qword [rbp + 7], r14
mov qword [rbp - 0x21], rax
movabs rbx, 0xd3adf313f5d47dd2
movdqa xmm1, xmmword [rbp - 0x29]
movabs rax, 0x92a7b249eeaecfdb
mov qword [rbp - 0x19], rax
mov r9d, 0x20019
movabs rax, 0x39b38852ed29fecb
mov qword [rbp + 0xf], rsi
xorps xmm0, xmmword [rbp + 7]
xor r8d, r8d
mov qword [rbp - 0x11], rax
mov rcx, 0xffffffff80000002
movdqa xmmword [rbp - 0x39], xmm0
movabs rax, 0x2f80b4ba7ff44c34
movdqa xmm0, xmmword [rbp - 0x19]
mov qword [rbp - 9], rax
movabs rax, 0xd0c2c03c8dcb9c87
mov qword [rbp + 0x27], rax
movabs rax, 0x4dd2fc01b15d91a4
mov qword [rbp + 0x2f], rax
movabs rax, 0x2f80b4ba7ff44c51
xorps xmm0, xmmword [rbp + 0x27]
mov qword [rbp + 0x37], rax
lea rax, [rbp - 0x59]
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], rbx
xorps xmm1, xmmword [rbp + 0x17]
movdqa xmmword [rbp - 0x29], xmm1
movdqa xmm1, xmmword [rbp - 9]
xorps xmm1, xmmword [rbp + 0x37]
movdqa xmmword [rbp - 9], xmm1
mov qword [rsp + 0x20], rax
movdqa xmmword [rbp - 0x19], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rbp - 0x59]
lea r9, [rbp - 0x49]
mov qword [rbp + 0x1f], rbx
lea rdx, [rbp + 7]
movabs rax, 0xa86ca3fb26903966
mov qword [rbp - 0x39], r14
mov qword [rbp + 7], rax
xor r8d, r8d
movabs rax, 0x6ecfa312f87f7702
mov qword [rbp - 0x31], rsi
mov qword [rbp + 0xf], rax
movabs rax, 0x89a9cc2c8d28b7c
movdqa xmm0, xmmword [rbp + 7]
xorps xmm0, xmmword [rbp - 0x39]
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x4d]
movdqa xmm1, xmmword [rbp + 0x17]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x51]
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], rbx
xorps xmm1, xmmword [rbp - 0x29]
mov qword [rsp + 0x20], rax
movdqa xmmword [rbp + 7], xmm0
movdqa xmmword [rbp + 0x17], xmm1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp - 0x51], 0
setne al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140038300
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140026e70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140076100]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x1c
xor edi, edi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x140026eef
lea rdx, str.Error_getting_AppData_Local_folder_path.
lea rcx, [0x140077b00]
call fcn.14001aec0
mov rcx, rax
call fcn.1400314d0
xorps xmm0, xmm0
lea rdx, [0x14006a82d]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov qword [rbx + 0x18], rdi
jmp 0x140026f1e
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x140026f10
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001b2a0
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140038300
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x140026f50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

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
mov eax, 0x13f0
call fcn.140038a80
sub rsp, rax
mov rax, qword [0x140076100]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov r8d, 0x3e
lea rdx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
lea rcx, [rsp + 0x30]
call fcn.14001b2a0
nop
call fcn.1400377d8
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ecx, 1
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140026fe0
mov dword [rsp + 0x50], 0x270
mov r14d, dword [rsp + 0x40]
dec r14d
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov r12d, 0x80000000
xor r14d, r12d
mov ebp, 0x1e
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
cmp r14d, 0x7fffffff
jne 0x140027067
call fcn.140035e40
mov ecx, eax
jmp 0x1400270a8
lea edi, [r14 - 0x7fffffff]
call fcn.140035e40
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x1400270a4
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x1400270a4
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.140035e40
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x140027090
shr rcx, 0x20
lea eax, [rcx + r12]
xor eax, r12d
lea rcx, [rsp + 0x30]
cmp r13, 0xf
cmova rcx, r15
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400270ef
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400270e4
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400270ff
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call fcn.140033f60
sub rbp, 1
jne 0x140027050
cmp r13, 0xf
jbe 0x14002713c
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140027134
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140027170
mov rcx, r15
call fcn.14003835c
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140038300
lea r11, [rsp + 0x13f0]
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
call fcn.14003e264
int3
Function at 0x14002c800
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x14002c824
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x14002c8b2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14002c880
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x14002c880
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14005c130
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14002c89d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14002c8a5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x14002c841
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x14002c990
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x14002c8c9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002c8cb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002c8fd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14005c130
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14002c98d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002c938
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 rsi, 0xfff
jbe 0x14002c96e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14004302c
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14002c98d
cmp rsi, rax
ja 0x14002c941
test rsi, rsi
je 0x14002c98d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14004302c
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140035a30
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword [rdx]
mov rax, r8
xor r8d, r8d
mov rdx, qword [rax]
jmp fcn.14001e490

Function at 0x140035e40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140035ea1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140035e60
mov ecx, dword [r9]
jmp 0x140035f88
cmp ecx, 0x4e0
jb 0x140035f88
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140035ec0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140035f10
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400363d4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14003640e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140036413
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14003645c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140060890]
cmp byte [rcx + rax], 0
je 0x14003645c
dec r8
sub rdx, 1
jne 0x140036442
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140036bb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400364ec
mov ebx, eax
test eax, eax
jne 0x140036be0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140036c3c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140036c33
test al, 0x10
je 0x140036c33
bt eax, 0xa
jae 0x140036c2c
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140036c54
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140036c28
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140036c4c
test edi, edi
jne 0x140036c33
and dword [rsp + 0x3c], 0
jmp 0x140036c38
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1400447d8
int3

Function at 0x1400391a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400391f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400391f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400391f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400391f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400391f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400391f4
xor al, al
add rsp, 0x28
ret

Function at 0x14003e3e0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003e44f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003e44f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003e44f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003e44f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003e44f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003e44f
cmp dword [rcx + 0xf8], 0
je 0x14003e44f
mov ecx, ebx
call fcn.14003e500
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14003e2dc
nop
cmp dword [rbp + 0x20], 0
je 0x14003e49d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003e4a8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003e3e0