joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002980
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xac0
mov rbx, rdx
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rax, [rsp + 0x70]
mov r8, rcx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0xae8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002a2d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_opening_Steam_key_n
call fcn.140002b30
add rsp, 0xac0
pop rbx
ret
mov rcx, qword [rsp + 0xae8]
lea rax, [rsp + 0xae0]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rsp + 0xb0]
mov dword [rsp + 0xae0], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0xae8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140002afb
mov ecx, dword [rsp + 0xae0]
cmp ecx, 1
jb 0x140002afb
shr ecx, 1
je 0x140002ab5
lea rax, [rsp + 0xb0]
nop dword [rax]
cmp word [rax], 0x2f
jne 0x140002aab
mov word [rax], 0x5c
add rax, 2
sub rcx, 1
jne 0x140002aa0
lea rax, [rsp + 0x30]
mov edx, 0x800
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rsp + 0x2c0]
call fcn.140002830
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x70]
call fcn.1400024d0
add rsp, 0xac0
pop rbx
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_reading_SteamExe_key_n
call fcn.140002b30
add rsp, 0xac0
pop rbx
ret
Function at 0x140002c10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov edx, dword [rcx]
mov r9d, 0x138
mov r10, rcx
xorps xmm1, xmm1
cmp edx, r9d
jne 0x140002c7a
lea r8, [rcx + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x140002c35
mov edx, dword [r10]
jmp 0x140002d8a
cmp edx, 0x270
jb 0x140002d8a
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [rcx + 0x9c8]
mov qword [rsp], rdi
mov r9, qword [rbx]
mov edi, 0x9c
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx + 0x4e0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x140002cb0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x140002d02
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
xor edx, edx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], edx
mov eax, edx
xorps xmm0, xmm0
mov rcx, qword [r10 + rax*8 + 8]
lea eax, [rdx + 1]
mov dword [r10], eax
movabs rdx, 0x38eb3ffff6d3
mov rax, rcx
shr rax, 0x1d
and rax, qword [r10 + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rdx
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rdx, rcx
shr rdx, 0x2b
xor rdx, rcx
js 0x140002de5
cvtsi2sd xmm0, rdx
jmp 0x140002dfa
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
subsd xmm0, xmm1
addsd xmm0, xmm1
mulsd xmm0, qword [0x140092268]
add rsp, 8
ret
Function at 0x1400097c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov eax, 0x5a4d
mov rdi, rdx
mov r11, rcx
cmp word [rcx], ax
jne 0x140009893
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
cmp dword [r8], 0x4550
jne 0x140009893
mov edx, 0x20b
mov eax, 0x88
cmp word [r8 + 0x18], dx
mov ecx, 0x78
cmovne eax, ecx
xor r10d, r10d
mov ebp, dword [rax + r8]
mov r15d, dword [r11 + rbp + 0x1c]
lea r14, [r11 + rbp]
mov r12d, dword [r14 + 0x24]
add r15, r11
mov esi, dword [r14 + 0x20]
add r12, r11
mov r9d, dword [r14 + 0x18]
add rsi, r11
sub r9d, 1
mov r13d, dword [rax + r8 + 4]
js 0x140009893
nop dword [rax + rax]
lea r8d, [r9 + r10]
mov rax, rdi
sar r8d, 1
movsxd rbx, r8d
mov edx, dword [rsi + rbx*4]
add rdx, r11
sub rdx, rdi
movzx ecx, byte [rax]
cmp cl, byte [rax + rdx]
jne 0x140009879
inc rax
test cl, cl
jne 0x140009866
xor eax, eax
jmp 0x14000987e
sbb eax, eax
or eax, 1
test eax, eax
jns 0x140009888
lea r9d, [r8 - 1]
jmp 0x14000988e
jle 0x1400098b2
lea r10d, [r8 + 1]
cmp r9d, r10d
jge 0x140009850
xor eax, eax
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
cmp r9d, r10d
jl 0x140009893
cmp r8d, dword [r14 + 0x14]
jge 0x140009893
movzx eax, word [r12 + rbx*2]
mov ecx, dword [r15 + rax*4]
cmp ecx, ebp
jb 0x1400098d3
mov eax, r13d
add eax, ebp
cmp ecx, eax
jb 0x140009893
lea rax, [r11 + rcx]
jmp 0x140009895
Function at 0x140009bf0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov qword [rcx], 0
lea rdx, [rsp + 0x30]
mov eax, dword [0x140093298]
lea r8, str._lsSystem32_hs
movsd xmm0, qword [0x140093290]
mov rdi, rcx
mov dword [rsp + 0x38], eax
mov esi, 0x23f0
movzx eax, byte [0x14009329c]
mov r9d, 0x7ffe0030
mov byte [rsp + 0x3c], al
mov eax, dword [str.CI.dll]
mov dword [rbp + 0x190], eax
movzx eax, word [0x1400932a4]
mov word [rbp + 0x194], ax
movzx eax, byte [0x1400932a6]
mov byte [rbp + 0x196], al
movsd qword [rsp + 0x30], xmm0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
lea rax, [rbp + 0x190]
cmp word [rcx + 0x120], si
lea rcx, [rsp + 0x50]
cmovb rax, rdx
mov edx, 0x82
mov qword [rsp + 0x20], rax
call fcn.14000a940
lea r9, [rsp + 0x40]
xor edx, edx
lea r8, [rbp + 0x198]
lea rcx, [rsp + 0x50]
call fcn.1400098e0
mov ebx, eax
test eax, eax
jns 0x140009ce2
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, str.Failed_to_map__ls:__08X_n
call fcn.140009b90
mov eax, ebx
add rsp, 0x268
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword gs:[0x30]
lea rdx, [rbp + 0x1a0]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], si
jb 0x140009d57
lea rcx, [rbp + 0x190]
call fcn.140009fd0
mov ebx, eax
test eax, eax
jns 0x140009d24
mov edx, eax
lea rcx, str.Failed_to_FindKernelModule__08X_n
call fcn.140009b90
jmp 0x140009e10
mov rdx, qword [rbp + 0x1a0]
lea r8, [rbp + 0x1a8]
mov rcx, qword [rbp + 0x198]
call fcn.14000a180
test eax, eax
je 0x140009e0b
mov rax, qword [rbp + 0x1a8]
xor ebx, ebx
mov qword [rdi], rax
jmp 0x140009e10
lea rcx, [rsp + 0x30]
call fcn.140009fd0
mov ebx, eax
test eax, eax
js 0x140009e10
mov r11, qword [rsp + 0x40]
xor r10d, r10d
xor r9d, r9d
test r11, r11
je 0x140009dff
mov rbx, qword [rbp + 0x198]
lea rsi, [0x1400931d4]
nop dword [rax]
mov r8, r9
xor edx, edx
sub r8, rsi
mov rax, rsi
add r8, rbx
nop
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
je 0x140009dad
test cl, cl
jne 0x140009dfb
inc edx
inc rax
cmp edx, 4
jb 0x140009da0
mov cl, 1
test cl, cl
mov rax, r9
cmove rax, r10
inc r9
mov r10, rax
cmp r9, r11
jb 0x140009d90
test rax, rax
je 0x140009dff
movsxd rcx, dword [rax + rbx + 4]
mov rbx, qword [rbp + 0x1a0]
add rcx, rax
add rbx, 8
add rbx, rcx
lea rcx, str.i_:_0x_llx_n_gCiEnabled_:__llx_n_gCiEnabledAddress_:__llx_n
call fcn.140009b90
mov qword [rdi], rbx
xor ebx, ebx
jmp 0x140009e10
xor cl, cl
jmp 0x140009db9
lea rcx, str.failed_to_find_CiEnabled_n
call fcn.140009b90
mov ebx, 0xc0000225
mov rdx, qword [rbp + 0x198]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
add rsp, 0x268
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140009e40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rdi, rdx
mov rbx, rcx
call fcn.140009f30
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x140009f1a
lea r8, [0x140093318]
mov dword [rsp + 0x260], 1
mov edx, 5
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, rdi
lea rcx, [rsp + 0x30]
mov edx, 0x87
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140009eb0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x30]
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140009f1a
lea rax, [rsp + 0x260]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x140009fd0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov rax, rsp
push rsi
push r14
sub rsp, 0x158
mov r14, rdx
mov qword [rdx], 0
xor edx, edx
mov dword [rax + 0x10], 0
mov rsi, rcx
lea r9, [rax + 0x10]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000a16f
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x178]
mov qword [rsp + 0x180], rbp
add r8, r8
mov qword [rsp + 0x150], rdi
mov rdx, qword [rax + 0x60]
mov rcx, qword [rdx + 0x30]
mov edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x178]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebp, eax
test eax, eax
js 0x14000a141
mov qword [rsp + 0x170], rbx
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x14000a139
nop
mov ecx, ebx
lea rax, [rsp + 0x20]
imul rcx, rcx, 0x128
mov edx, 2
add rcx, 8
add rcx, rdi
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x14000a0a0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x48]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
mov rcx, rsi
movzx eax, word [rsp + 0x46]
add rdx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000a12f
inc ebx
cmp ebx, dword [rdi]
jb 0x14000a080
jmp 0x14000a139
mov rax, qword [rsp + 0x30]
xor ebp, ebp
mov qword [r14], rax
mov rbx, qword [rsp + 0x170]
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x150]
mov eax, ebp
mov rbp, qword [rsp + 0x180]
add rsp, 0x158
pop r14
pop rsi
ret
Function at 0x14000a180
Capabilities:
Disable driver code integrity

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, rdx
xor ebx, ebx
lea rdx, str.CiInitialize
mov qword [r8], rbx
mov r14, r8
mov rsi, rcx
call fcn.1400097c0
lea rdx, str.CiInitialize
mov rcx, rsi
mov rdi, rax
call fcn.1400097c0
mov r9, rax
test rax, rax
je 0x14000a2bd
mov rax, qword gs:[0x30]
mov r10d, ebx
mov r8d, ebx
mov rcx, qword [rax + 0x60]
mov eax, 0x3fab
cmp word [rcx + 0x120], ax
jb 0x14000a252
lea r11, [0x1400931a0]
sub r9, r11
nop dword [rax]
mov ecx, ebx
mov rax, r11
movzx edx, byte [rax]
cmp byte [r9 + rax], dl
je 0x14000a212
test dl, dl
jne 0x14000a24e
inc ecx
inc rax
cmp ecx, 0x10
jb 0x14000a205
mov cl, 1
test cl, cl
mov eax, r8d
cmove eax, r10d
inc r8d
inc r9
mov r10d, eax
cmp r8d, 0xff
jl 0x14000a200
movzx ecx, bx
nop dword [rax]
inc cx
movzx eax, cx
cmp byte [rax + r11], bl
jne 0x14000a240
jmp 0x14000a2ac
xor cl, cl
jmp 0x14000a21e
lea r11, [0x1400931b8]
sub r9, r11
nop dword [rax]
mov ecx, ebx
mov rax, r11
movzx edx, byte [rax]
cmp byte [r9 + rax], dl
je 0x14000a272
test dl, dl
jne 0x14000a2c4
inc ecx
inc rax
cmp ecx, 0xc
jb 0x14000a265
mov cl, 1
test cl, cl
mov eax, r8d
cmove eax, r10d
inc r8d
inc r9
mov r10d, eax
cmp r8d, 0xff
jl 0x14000a260
mov ecx, ebx
nop dword [rax + rax]
inc cx
movzx eax, cx
cmp byte [rax + r11], bl
jne 0x14000a2a0
test r10d, r10d
jne 0x14000a2c8
lea rcx, str.failed_to_find_CipInitialize_n
call fcn.140009b90
xor eax, eax
jmp 0x14000a389
xor cl, cl
jmp 0x14000a27e
movzx r8d, cx
mov r9d, ebx
movsxd rcx, r10d
mov r10d, ebx
lea rax, [rcx + r8]
mov r11d, dword [rax + rdi]
add rdi, 4
add r11, rcx
add r11, r8
add r11, rdi
lea rdi, [0x1400931c8]
mov r8, r11
sub r8, rdi
nop word [rax + rax]
mov ecx, ebx
mov rax, rdi
movzx edx, byte [rax]
cmp byte [r8 + rax], dl
je 0x14000a312
test dl, dl
jne 0x14000a362
inc ecx
inc rax
cmp ecx, 0xc
jb 0x14000a305
mov cl, 1
test cl, cl
mov eax, r9d
cmove eax, r10d
inc r9d
inc r8
movsxd r10, eax
cmp r9d, 0xff
jl 0x14000a300
nop dword [rax]
inc bx
movzx r8d, bx
cmp byte [r8 + rdi], 0
jne 0x14000a340
test eax, eax
jne 0x14000a366
lea rcx, str.failed_to_find_Ci_gOptions_n
call fcn.140009b90
xor eax, eax
jmp 0x14000a389
xor cl, cl
jmp 0x14000a31e
lea rax, [r8 + r10]
movsxd rax, dword [rax + r11]
sub rax, rsi
add rax, 4
add rax, r8
add rax, r10
add rax, r11
add rax, rbp
mov qword [r14], rax
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140017840
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 0x1384], 0xffffffff
lea r9, [rcx + 8]
mov dword [rcx + 4], edx
mov r8d, 1
nop word [rax + rax]
mov eax, edx
lea r9, [r9 + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9 - 4], edx
cmp r8, 0x270
jb 0x140017860
mov dword [rcx], 0x270
mov rax, rcx
ret

Function at 0x14001a980
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x150
xor edi, edi
lea r14, [rsp + 0x158]
mov rbp, qword [r14]
mov rsi, rcx
xor edx, edx
mov qword [r14], rdi
lea ecx, [rdi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001aa27
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14001aa1e
nop dword [rax]
lea r8, [rsp + 0x4c]
mov rax, rsi
sub r8, rsi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14001aa03
inc rax
test ecx, ecx
jne 0x14001a9f0
test edx, edx
je 0x14001aa1a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14001a9e0
jmp 0x14001aa1e
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x150]
mov qword [r14], rbp
mov rbx, qword [r11 + 0x10]
mov eax, edi
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14001b840
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001b909
cmp byte [rcx + 0x71], 0
je 0x14001b909
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14001b8fc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x14001b8b8
sub eax, 1
je 0x14001b8bc
cmp eax, 2
jne 0x14001b8fc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14001b8ea
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001b8fc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14001bcc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x14001bd21
lea r8, [r9 + 8]
nop dword [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 0x14001bce0
mov ecx, dword [r9]
jmp 0x14001be0b
cmp ecx, 0x4e0
jb 0x14001be0b
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]
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 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14001bd40
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 0x14001bd90
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 0x140020bb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140020bd4
xor eax, eax
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov qword [rsp + 0x80], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140020c14
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140020c14
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x140020d41
cmp qword [rdi + 0x80], 0
je 0x140020d3c
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140020c4e
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140020c79
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove esi, ecx
mov eax, esi
jmp 0x140020d41
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140020cee
sub eax, 1
je 0x140020cee
cmp eax, 2
jne 0x140020d3c
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove esi, ecx
mov eax, esi
jmp 0x140020d41
mov rbx, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rbx, rax
je 0x140020d1f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140020d3c
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x140020d41
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret