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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6030], 0
lea rbx, [rcx + 0x6038]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140049297
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14004924a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14004ba70
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140031eb0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6030]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6040]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14022d7b1]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14004929f
mov rcx, rbx
call fcn.140031eb0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140049500
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14022d7f8]
xor ebp, ebp
cmp byte [rbx + 0x5f88], bpl
jne 0x1400495df
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400495d8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.1400316c0
mov rsi, rax
test rax, rax
je 0x1400495d8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140049564
mov rcx, rax
call fcn.140049730
mov r8, qword [0x14022d7f8]
test r8, r8
je 0x1400495cf
movsx rdx, word [r8 + 0x6110]
lea rcx, [r8 + 0x6114]
mov r9d, dword [r8 + 0x3f98]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400495c4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6110], cx
movsx rax, cx
lea rcx, [r8 + 0x6114]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x610c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f88], 1
movss xmm0, dword [rbx + 0x5f8c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14004966e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f8c], xmm0
jb 0x14004966e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140049661
mov rax, qword [0x14022d7f8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f8c], ebp
call fcn.140049990
lea rdx, [0x1400a2aac]
mov rcx, rdi
mov rsi, rax
call fcn.140031510
mov rdi, rax
test rax, rax
je 0x140049668
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140049668
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f8c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140049690
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14022d7f8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1400496f3
mov qword [rsp], rbx
lea rbx, [0x1400a2f90]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400496d3
cmp byte [r8], r9b
jne 0x1400496d3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400496c0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5fa0]
not eax
mov r8, qword [r10 + 0x5fa8]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14004971f
cmp dword [r8 + 8], eax
je 0x140049726
add r8, 0x48
cmp r8, rcx
jne 0x140049710
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140061a60
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1400ba040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14022d7f8]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140061c7e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140061c7e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14022d7f8]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140061b34
movsx rdx, word [r8 + 0x6110]
lea rax, [r8 + 0x6114]
mov r9d, dword [r8 + 0x3f98]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140061b29
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6110], cx
movsx rax, cx
lea rax, [rax*8 + 0x6114]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6108]
test rdi, rdi
je 0x140061b51
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x140061b54
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x1400a82f8]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x140061b97
mov rsi, qword [r8 + 0x90]
jmp 0x140061b9a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140061bc5
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14022d7f8]
mov rcx, qword [rax + 0x4b58]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140061c3e
inc rbx
cmp rbx, 5
jl 0x140061c20
jmp 0x140061c6a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x140061c80
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140098830
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140083d90
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x1b0
mov rax, qword [0x1400ba040]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r14, r9
mov ebp, r8d
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
mov rsi, rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x14022d800], eax
test eax, eax
jne 0x140083f7d
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x1a0], r15
xor r9d, r9d
xor r15d, r15d
xor r8d, r8d
mov qword [rsp + 0x58], r15
xor edx, edx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [0x14022d800], eax
test eax, eax
jne 0x140083f75
mov eax, dword [rsp + 0x70]
mov qword [rsp + 0x1a8], rdi
test eax, eax
je 0x140083f51
mov edi, r15d
mov qword [rsp + 0x1d0], rbx
nop dword [rax]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r15
mov edx, edi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x60], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x140083f3b
test ebp, ebp
je 0x140083ed2
mov rbx, rbp
nop word [rax + rax]
lea rcx, [0x1400a8d74]
call fcn.14002ecf0
sub rbx, 1
jne 0x140083ec0
inc edi
lea r8, [rsp + 0x80]
mov edx, edi
lea rcx, str.__d___s_n
call fcn.14002ecf0
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rsi + rcx], r15b
jne 0x140083ef1
mov eax, dword [rsp + 0x60]
add rcx, rax
call fcn.140098c84
lea r9, [rsp + 0x80]
mov r8, rsi
lea rdx, str._s_s
mov rcx, rax
mov rbx, rax
call fcn.140081de0
lea r8d, [rbp + 1]
mov r9, r14
mov rdx, rbx
mov rcx, 0xffffffff80000001
call fcn.140083d90
jmp 0x140083f3d
inc edi
cmp edi, dword [rsp + 0x70]
jb 0x140083e70
mov rbx, qword [rsp + 0x1d0]
jmp 0x140083f62
mov edx, dword [rsp + 0x74]
mov r8, r14
mov rcx, qword [rsp + 0x68]
call fcn.1400839e0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x1a8]
mov r15, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140098830
add rsp, 0x1b0
pop r14
pop rsi
pop rbp
ret
Function at 0x140083fa0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400ba040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r9, rcx
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantStore
xor r8d, r8d
call fcn.140083d90
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantStore
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140084026
cmp qword [0x1402185f8], 0xf
lea rdx, [0x1402185e0]
mov rcx, qword [rsp + 0x30]
cmova rdx, qword [0x1402185e0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140098830
add rsp, 0x48
ret
Function at 0x1400913f0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
call fcn.1400920e0
mov qword [0x14022d988], rax
test rax, rax
je 0x1400915ac
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400914a7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400914a7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xf98d6069
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1400914a2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140091480
cmp r8d, 0xcbfbcfba
je 0x1400914ac
test r9d, r9d
jne 0x140091460
mov rax, qword [rax]
jmp 0x140091430
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [0x14022d998]
mov rcx, qword [0x14022d988]
add rax, r10
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140091567
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140091567
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xa2ca4f6a
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140091562
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140091540
cmp r8d, 0x867748f7
je 0x14009156c
test r9d, r9d
jne 0x140091520
mov rax, qword [rax]
jmp 0x1400914f0
mov ecx, dword [rbx + 0x24]
lea r8, [0x14022d998]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov r9d, 2
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor edx, edx
mov rcx, qword [0x14022d988]
add rax, r10
call rax
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov byte [0x14022d7b3], 1
add rsp, 0x28
ret
Function at 0x1400920e0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400ba040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov dword [rsp + 0x40], ecx
movabs rdx, 0x4611ebcacd8665c7
mov qword [rsp + 0x20], rdx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movabs rcx, 0xfa6a37fb8e6cb964
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rdx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x78], rax
movdqa xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x30], xmm0
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140092190
lea rcx, [rsp + 0x48]
cmp rdx, 7
ja 0x1400921c2
mov qword [rsp + 0x58], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x48], di
jmp 0x1400921cc
lea r9, [rsp + 0x30]
call fcn.1400909c0
mov qword [rsp + 0x68], rdi
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140092266
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140092266
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0x6278544a
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140092261
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x140092240
cmp r8d, 0x28c7ac50
je 0x14009226b
test r9d, r9d
jne 0x140092220
mov rax, qword [rax]
jmp 0x1400921f0
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov r8d, dword [rcx + rax*4]
add r8, r10
lea rdx, [rsp + 0x40]
lea rcx, [0x140091d70]
call r8
mov rbx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400922dc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400922d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400922d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140098850
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140098830
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x140093cf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov r14d, 7
mov rax, qword gs:[0x58]
mov rsi, qword [rax]
mov r15d, 0x14
mov eax, dword [r15 + rsi]
mov r12d, 0x20
test al, 1
jne 0x140093d98
or eax, 1
mov dword [r15 + rsi], eax
mov ebx, r12d
add rbx, rsi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbx + 0x1384], 0xffffffff
mov dword [rbx + 4], eax
mov ecx, 1
lea r8, [rbx + 8]
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [r8], edx
inc rcx
lea r8, [r8 + 4]
cmp rcx, 0x270
jb 0x140093d70
mov dword [rbx], 0x270
mov eax, dword [r15 + rsi]
mov ecx, 0x13a8
test al, 2
jne 0x140093db9
or eax, 2
mov dword [r15 + rsi], eax
mov qword [rcx + rsi], rbp
mov qword [rcx + rsi + 8], 0x33
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x20], 1
lea r15, [rcx + rsi]
mov ebx, r12d
add rbx, rsi
lea r12, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
nop word [rax + rax]
dec r14
mov qword [rsp + 0x28], rbx
mov rbp, qword [r15]
mov rdx, qword [r15 + 8]
sub rdx, rbp
cmp rdx, 0xffffffffffffffff
jne 0x140093e25
mov rcx, rbx
call fcn.140095d10
mov esi, eax
shl rsi, 0x20
mov rcx, rbx
call fcn.140095d10
mov eax, eax
or rsi, rax
jmp 0x140093e35
inc rdx
lea rcx, [rsp + 0x28]
call fcn.140095b20
mov rsi, rax
lea rax, [rsi + rbp]
movzx r9d, byte [rax + r12]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140093e6a
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140093e5f
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140093e72
mov rcx, rdi
call fcn.140004ed0
test r14, r14
jne 0x140093df0
mov rax, rdi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140095d10
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 0x140095d71
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 0x140095d30
mov ecx, dword [r9]
jmp 0x140095e5b
cmp ecx, 0x4e0
jb 0x140095e5b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
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 [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140095d90
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
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 [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140095de0
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 0x140095ff0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1400ba040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r14, rdx
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x2000
mov rcx, rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [rsp + 0x20], ebp
mov rdi, rax
test rax, rax
je 0x1400960f9
lea r9, [rsp + 0x20]
mov r8d, 0x2000
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x14009609b
mov r8, rdi
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400960f9
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400960f9
cmp dword [rdi], ebp
jbe 0x1400960f9
mov qword [rsp + 0x50], rbx
mov ebx, ebp
mov qword [rsp + 0x60], rsi
nop dword [rax + rax]
movsxd rax, ebx
mov rdx, r14
imul rsi, rax, 0x128
lea rcx, [rsi + 0x30]
add rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x1400960d7
inc ebx
cmp ebx, dword [rdi]
jb 0x1400960b0
jmp 0x1400960dc
mov rbp, qword [rsi + rdi + 0x18]
mov r8, rdi
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x60]
mov rax, rbp
mov rbx, qword [rsp + 0x50]
jmp 0x1400960fb
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140098830
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140097b8c
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 0x140097bc6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140097bcb
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 0x140097c14
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14009fc60]
cmp byte [rcx + rax], 0
je 0x140097c14
dec r8
sub rdx, 1
jne 0x140097bfa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140098360
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.140097ca4
mov ebx, eax
test eax, eax
jne 0x140098390
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400983f3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400983ea
test al, 0x10
je 0x1400983ea
bt eax, 0xa
jae 0x1400983e3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140098404
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400983df
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400983df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400983ea
and dword [rsp + 0x3c], 0
jmp 0x1400983ef
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

Function at 0x140099618
Capabilities:
Parse pe header

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