joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002f40
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002f9d
lea rbx, [0x14004eb00]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002f84
cmp r10, 2
jb 0x140002f84
cmp byte [r9], r8b
jne 0x140002f84
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002f60
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002fdf
lea rbx, [0x14004eb00]
cmp r8b, 0x23
jne 0x140002fc3
cmp byte [r9], r8b
jne 0x140002fc3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002fb0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003120
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000313a
mov qword [r8], 0
lea rdx, [0x14004e864]
call fcn.140002ff0
mov rbx, rax
test rax, rax
jne 0x14000315a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140003233
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003233
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003233
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003233
cmp rdi, 0xffffffffffffffff
je 0x140003233
mov rax, qword [0x14005c9d8]
test rax, rax
je 0x1400031d0
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003233
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140003220
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14005c9d8]
test rax, rax
je 0x140003215
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000323c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000322e
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000323e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140005300
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd0]
lea r8, [0x14004eb00]
movsxd rcx, dword [rcx + 0xc8]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov rax, qword [0x14005c9d8]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
shr ebx, 8
xor rcx, r11
xor ebx, dword [r8 + rcx*4]
not ebx
cmp dword [rax + 0x3e74], ebx
jne 0x14000538c
mov dword [rax + 0x3e78], ebx
cmp dword [rax + 0x3ec0], ebx
jne 0x14000539b
mov byte [rax + 0x3ec4], 1
cmp dword [rax + 0x3e5c], ebx
jne 0x1400053b2
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.140017ca0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400053c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm0, dword [rcx + 0xe8]
lea r10, [0x14004eb00]
mov rax, qword [rcx + 0xd0]
movss xmm1, dword [rcx + 0xec]
movss xmm2, dword [rdx]
movss xmm4, dword [rdx + 8]
subss xmm2, xmm0
movss xmm3, dword [rdx + 4]
subss xmm4, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm3, xmm1
movsxd rcx, dword [rcx + 0xc8]
subss xmm0, xmm1
movd r8d, xmm2
movss dword [rsp], xmm2
mov r9d, dword [rax + rcx*4 - 4]
movzx eax, byte [rsp]
not r9d
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
movss dword [rsp + 4], xmm3
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
movss dword [rsp + 8], xmm4
movss dword [rsp + 0xc], xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 4]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm3
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 8]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm4
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
shr eax, 8
movzx edx, al
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
mov eax, r8d
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0xc]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
mov rax, qword [0x14005c9d8]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
not r9d
cmp dword [rax + 0x3e74], r9d
jne 0x1400055c0
mov dword [rax + 0x3e78], r9d
cmp dword [rax + 0x3ec0], r9d
jne 0x1400055d0
mov byte [rax + 0x3ec4], 1
mov eax, r9d
add rsp, 0x18
ret
Function at 0x14000fac0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [0x14005c9d8]
lea r10, [0x14004eb00]
movsxd r9, ecx
mov rbx, qword [r8 + 0x3e28]
add rbx, 0xc8
movsxd rdx, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + rdx*4 - 4]
not edi
movzx eax, r9b
movzx ecx, dil
xor rcx, rax
shr edi, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rdx, rcx
shr edi, 8
shr eax, 0x10
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
movzx edx, al
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
not edi
cmp dword [r8 + 0x3e5c], edi
jne 0x14000fb65
mov r8, r9
mov edx, 4
mov ecx, edi
call fcn.140017ca0
mov r8d, dword [rbx]
mov ecx, dword [rbx + 4]
cmp r8d, ecx
jne 0x14000fb99
inc r8d
test ecx, ecx
je 0x14000fb82
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x14000fb87
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.140018c60
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140011610
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14005c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14005c9d8]
mov edi, ecx
cmp byte [rbx + 0x41cd], 0
jne 0x140011671
cmp byte [rbx + 0x41ce], 0
jne 0x140011671
movsx r9d, word [rbx + 0x52ae]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002ec0
test dil, 1
je 0x140011798
jmp 0x1400116fc
movss xmm1, dword [rbx + 0x3830]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x52ae]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140053f98]
mov edx, 0x10
mulss xmm1, dword [0x140053f84]
addss xmm0, dword [rbx + 0xd0c]
addss xmm1, dword [rbx + 0xd10]
mov qword [rbx + 0x3f48], rax
mov dword [rbx + 0x3f34], 1
movss dword [rbx + 0x3f40], xmm0
movss dword [rbx + 0x3f44], xmm1
movss xmm0, dword [rbx + 0x388c]
mulss xmm0, dword [0x140053e70]
or dword [rbx + 0x3f30], 0x41
movss dword [rbx + 0x3f90], xmm0
call fcn.140002ec0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140011750
lea r11, [0x14004eb00]
nop dword [rax]
cmp r9b, 0x23
jne 0x140011733
cmp byte [r8], r9b
jne 0x140011733
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140011720
not ecx
call fcn.14000a5f0
test rax, rax
je 0x140011798
cmp byte [rax + 0x8e], 0
je 0x140011798
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x52ae]
mov edx, 0x10
movsx r9d, word [rbx + 0x52ae]
call fcn.140002ec0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000cd50
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004c120
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400169f0
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 + 0x5360], 0
lea rbx, [rcx + 0x5368]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140016a97
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140016a4a
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.140018a30
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400038b0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5360]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5370]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14005c9d0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140016a9f
mov rcx, rbx
call fcn.1400038b0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400420b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x14005c040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x1400420f0
cmp al, 0x25
jne 0x1400420e4
cmp byte [r8 + 1], al
jne 0x1400420f0
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x1400420d7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x14004224e
cmp byte [r8 + 1], dl
je 0x14004224e
lea r11, [rsp + 0x28]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14004212d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x140042155
sub dl, 0x61
cmp dl, 0x19
ja 0x140042147
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x140042155
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140042110
jmp 0x140042158
inc r9
cmp r8, r9
jae 0x14004218f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140042184
bt rdx, rax
jb 0x14004218a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140042170
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x28]
mov edx, 0x40
lea rcx, [rsp + 0x50]
movq r9, xmm3
call fcn.140002ec0
cmp byte [rsp + 0x50], 0x20
lea rcx, [rsp + 0x50]
jne 0x1400421c8
nop
inc rcx
cmp byte [rcx], 0x20
je 0x1400421c0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14004223c
movzx r8d, byte [rcx]
movzx eax, r8b
cmp r8b, 0x2d
jne 0x1400421e8
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, byte [rax]
cmp al, 0x2b
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14004222a
movss xmm2, dword [0x140053f8c]
cmp al, 0x39
ja 0x14004222a
movsx eax, byte [rdx]
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140042204
cmp r8b, 0x2d
jne 0x140042249
xorps xmm1, xmmword [0x1400544e0]
movaps xmm0, xmm1
jmp 0x140042251
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140042251
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14004c120
add rsp, 0xa0
pop rbx
ret
Function at 0x140042270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x14005c040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x1400422b0
cmp al, 0x25
jne 0x1400422a4
cmp byte [r8 + 1], al
jne 0x1400422b0
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x140042297
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x140042408
cmp byte [r8 + 1], dl
je 0x140042408
lea r11, [rsp + 0x28]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x1400422ed
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x140042315
sub dl, 0x61
cmp dl, 0x19
ja 0x140042307
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x140042315
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x1400422d0
jmp 0x140042318
inc r9
cmp r8, r9
jae 0x14004234f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140042344
bt rdx, rax
jb 0x14004234a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140042330
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x28]
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.140002ec0
cmp byte [rsp + 0x50], 0x20
lea rcx, [rsp + 0x50]
jne 0x140042388
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x140042380
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x1400423fa
movzx r8d, byte [rcx]
movzx eax, r8b
cmp r8b, 0x2d
jne 0x1400423a8
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, byte [rax]
cmp al, 0x2b
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x1400423e8
movsd xmm2, qword [0x140053f30]
cmp al, 0x39
ja 0x1400423e8
movsx eax, byte [rdx]
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x1400423c4
cmp r8b, 0x2d
jne 0x140042403
xorps xmm1, xmmword [0x1400544d0]
movaps xmm0, xmm1
jmp 0x14004240b
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14004240b
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14004c120
add rsp, 0xa0
pop rbx
ret
Function at 0x140042830
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x13f8
call fcn.14004d170
sub rsp, rax
mov rax, qword [0x14005c040]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rax, qword gs:[0x58]
mov rdi, rdx
mov rbx, rcx
mov edx, 4
mov ebp, r9d
mov esi, r8d
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14005cae4], eax
jle 0x1400428c1
lea rcx, [0x14005cae4]
call fcn.14004c1b4
cmp dword [0x14005cae4], 0xffffffff
jne 0x1400428c1
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.SetWindowPos
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14005cae4]
mov qword [0x14005caf8], rax
call fcn.14004c148
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13d4], 0xffffffff
mov ecx, 1
mov dword [rsp + 0x54], eax
nop dword [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [rsp + rcx*4 + 0x54], eax
inc rcx
cmp rcx, 0x270
jb 0x1400428e0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x270
call fcn.14004bf80
mov eax, dword [rsp + 0x1450]
mov r9d, ebp
mov dword [rsp + 0x30], eax
mov r8d, esi
mov eax, dword [rsp + 0x1448]
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov rcx, rbx
mov eax, dword [rsp + 0x1440]
mov dword [rsp + 0x20], eax
call qword [0x14005caf8]
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.14004c120
add rsp, 0x13f8
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x13d0
call fcn.14004d170
sub rsp, rax
mov rax, qword [0x14005c040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rax, qword gs:[0x58]
mov edi, edx
mov ebx, ecx
mov edx, 4
mov esi, r8d
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14005cb10], eax
jle 0x1400429eb
lea rcx, [0x14005cb10]
call fcn.14004c1b4
cmp dword [0x14005cb10], 0xffffffff
jne 0x1400429eb
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.mouse_event
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14005cb10]
mov qword [0x14005caf0], rax
call fcn.14004c148
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13b4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x34], eax
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x34], eax
inc rdx
cmp rdx, 0x270
jb 0x140042a10
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x270
call fcn.14004bf80
cmp ebx, 2
jne 0x140042a5d
test eax, eax
js 0x140042a5d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.mouse_event_n
call fcn.14004a6f0
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov r8d, esi
mov edx, edi
mov ecx, ebx
call qword [0x14005caf0]
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.14004c120
add rsp, 0x13d0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140042aa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13d0
call fcn.14004d170
sub rsp, rax
mov rax, qword [0x14005c040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rax, qword gs:[0x58]
mov ebx, ecx
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14005cae8], eax
jle 0x140042b24
lea rcx, [0x14005cae8]
call fcn.14004c1b4
cmp dword [0x14005cae8], 0xffffffff
jne 0x140042b24
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x140053938]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14005cae8]
mov qword [0x14005cb08], rax
call fcn.14004c148
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13b4], 0xffffffff
mov r8d, 1
mov dword [rsp + 0x34], eax
nop
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rsp + r8*4 + 0x34], eax
inc r8
cmp r8, 0x270
jb 0x140042b40
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x270
call fcn.14004bf80
mov ecx, ebx
call qword [0x14005cb08]
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.14004c120
add rsp, 0x13d0
pop rbx
ret
Function at 0x14004bf80
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 0x14004bfe1
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 0x14004bfa0
mov ecx, dword [r9]
jmp 0x14004c0cb
cmp ecx, 0x4e0
jb 0x14004c0cb
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 0x14004c000
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 0x14004c050
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 0x14004cd10
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x60
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov word [rsp + 0x7c], 0x500
lea rax, [rsp + 0x80]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x78], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1400016c8
add rsp, 0x60
pop rbx
ret
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x70]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret

Function at 0x140001710
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x1a8
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001660
test eax, eax
jne 0x1400017a3
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400017a3
xor edx, edx
mov dword [rsp + 0x20], 0x70
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.140004b50
lea rax, [0x14001a570]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x38], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x1400017b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x1400017ab
add rsp, 0x1a8
ret
xor ecx, ecx
call fcn.140005ea4
int3
xor ecx, ecx
call fcn.140005ea4
int3