joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a1e0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx], 0
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
jge 0x14002a248
mov edx, 0x8b1f
call fcn.14002ac00
mov edx, 0x808
mov rcx, rbx
call fcn.14002ac00
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.14002ac00
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.14002ac00
mov edx, 0xb02
mov rcx, rbx
call fcn.14002ac00
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
inc r8d
jmp 0x14002a3a4
mov edx, 0x4034b50
call fcn.14002ac00
mov edx, 0x403
mov rcx, rbx
call fcn.14002ac00
mov edx, 0x2d
mov rcx, rbx
call fcn.14002ac00
movzx edx, word [rdi + 0x30]
mov rcx, rbx
call fcn.14002ac00
movzx edx, word [rdi + 2]
mov rcx, rbx
call fcn.14002ac00
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.14002ac00
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.14002ac00
mov edx, dword [rdi + 8]
mov rcx, rbx
call fcn.14002ac00
movzx edx, word [rdi + 0xa]
mov rcx, rbx
call fcn.14002ac00
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002ac00
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002ac00
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002ac00
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002ac00
mov edx, dword [rdi + 0x20]
mov rcx, rbx
call fcn.14002ac00
mov edx, dword [rdi + 0x24]
mov rcx, rbx
add edx, 0x14
call fcn.14002ac00
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
mov rcx, rbx
call fcn.14002ada0
mov edx, 1
mov rcx, rbx
call fcn.14002ac00
mov edx, reloc.WSOCK32.dll_recv
mov rcx, rbx
call fcn.14002ac00
mov edx, dword [rdi + 0x18]
mov rcx, rbx
call fcn.14002ac00
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x10
call fcn.14002ac00
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x20
call fcn.14002ac00
movzx edx, word [rdi + 0x1e]
mov rcx, rbx
call fcn.14002ac00
mov edx, dword [rdi + 0x10]
mov rcx, rbx
call fcn.14002ac00
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x10
call fcn.14002ac00
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x20
call fcn.14002ac00
movzx edx, word [rdi + 0x16]
mov rcx, rbx
call fcn.14002ac00
mov r8d, dword [rdi + 0x24]
test r8d, r8d
je 0x14002a3ac
mov rdx, qword [rdi + 0x40]
mov rcx, rbx
call fcn.14002ada0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002aac0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x14002aad6
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x1400ddc90]
not ecx
cmp r10d, 8
jb 0x14002abc8
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x14002ab00
test r10d, r10d
je 0x14002abf0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x14002abd0
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x14002ac00
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x38
cmp dword [rcx + 0x28], 0
mov rbx, rcx
movsxd rsi, edx
jne 0x14002ad92
mov eax, dword [rcx]
mov qword [rsp + 0x58], rdi
mov edi, esi
shr edi, 8
mov byte [rsp + 0x50], sil
mov byte [rsp + 0x51], dil
test al, 0x10
je 0x14002ad15
mov edx, dword [rcx + 0x48]
mov r8d, dword [rcx + 0x50]
mov qword [rsp + 0x30], r14
mov r10d, r8d
lea r14, [0x1400ddc90]
movsx rax, sil
xor rax, rdx
and r10d, 0xfffd
movzx ecx, al
or r10d, 2
shr edx, 8
mov r9d, dword [r14 + rcx*4]
xor r9d, edx
movzx ecx, r8b
mov edx, r9d
movzx eax, r9b
add eax, dword [rbx + 0x4c]
imul eax, eax, 0x8088405
shr r8d, 8
inc eax
mov dword [rbx + 0x4c], eax
shr rax, 0x18
xor rcx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
mov r11d, dword [r14 + rcx*4]
xor r11d, r8d
mov dword [rbx + 0x50], r11d
and r11d, 0xfffd
shr eax, 8
or r11d, 2
xor al, sil
mov byte [rsp + 0x50], al
movsx rax, dil
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [r14 + rcx*4]
xor eax, edx
mov edx, dword [rbx + 0x50]
mov dword [rbx + 0x48], eax
movzx eax, al
add eax, dword [rbx + 0x4c]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rbx + 0x4c], eax
movzx eax, dl
shr rcx, 0x18
xor rcx, rax
shr edx, 8
mov eax, dword [r14 + rcx*4]
mov r14, qword [rsp + 0x30]
xor eax, edx
mov dword [rbx + 0x50], eax
mov eax, r11d
xor eax, 1
imul eax, r11d
shr eax, 8
xor al, dil
mov byte [rsp + 0x51], al
mov eax, dword [rbx]
mov rdi, qword [rsp + 0x58]
test al, 1
je 0x14002ad4e
mov rdx, qword [rbx + 0x38]
lea rax, [rdx + 2]
cmp rax, qword [rbx + 0x40]
jb 0x14002ad3a
mov dword [rbx + 0x28], reloc.WSOCK32.dll_inet_ntoa
add rsp, 0x38
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
movzx eax, word [rsp + 0x50]
mov word [rdx + rcx], ax
add qword [rbx + 0x38], 2
jmp 0x14002ad83
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x60]
mov r8d, 2
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002ad7c
cmp dword [rsp + 0x60], 2
je 0x14002ad83
mov dword [rbx + 0x28], 3
test dword [rbx], 0x40000000
je 0x14002ad92
mov dword [rbx + 0x28], reloc.OLEAUT32.dll_SafeArrayLock
add rsp, 0x38
pop rsi
pop rbx
ret
Function at 0x14002ada0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
test r8d, r8d
je 0x14002af55
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x28], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
jne 0x14002af46
test byte [rcx], 0x10
je 0x14002aed7
mov rcx, qword [rcx + 0x58]
mov rax, rcx
test rcx, rcx
je 0x14002adf5
cmp dword [rbx + 0x60], edi
jae 0x14002adf5
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov qword [rbx + 0x58], 0
test rax, rax
jne 0x14002ae1f
lea eax, [rdi + rdi]
xor ecx, ecx
mov edx, eax
mov dword [rbx + 0x60], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x14002ae1f
mov dword [rbx + 0x28], 2
jmp 0x14002af37
mov qword [rsp + 0x40], rbp
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call sub.VCRUNTIME140.dll_memcpy
test edi, edi
je 0x14002aece
xor r11d, r11d
lea rsi, [0x1400ddc90]
nop word [rax + rax]
mov rax, qword [rbx + 0x58]
lea r11, [r11 + 1]
mov r8d, dword [rbx + 0x50]
mov edx, dword [rbx + 0x48]
mov r9d, r8d
mov ecx, edx
and r9d, 0xfffd
movsx r10, byte [r11 + rax - 1]
or r9d, 2
xor rcx, r10
shr edx, 8
movzx eax, cl
mov ecx, dword [rsi + rax*4]
xor ecx, edx
movzx eax, cl
add eax, dword [rbx + 0x4c]
mov dword [rbx + 0x48], ecx
imul eax, eax, 0x8088405
movzx ecx, r8b
shr r8d, 8
inc eax
mov dword [rbx + 0x4c], eax
shr rax, 0x18
xor rcx, rax
mov eax, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
xor eax, r8d
imul ecx, r9d
mov dword [rbx + 0x50], eax
mov rax, qword [rbx + 0x58]
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rbp, 1
jne 0x14002ae50
mov rsi, qword [rbx + 0x58]
mov rbp, qword [rsp + 0x40]
test byte [rbx], 1
je 0x14002af08
mov rcx, qword [rbx + 0x38]
lea rax, [rcx + rdi]
cmp rax, qword [rbx + 0x40]
jb 0x14002aef3
mov dword [rbx + 0x28], reloc.WSOCK32.dll_inet_ntoa
jmp 0x14002af37
add rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x38], rdi
jmp 0x14002af37
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002af30
cmp dword [rsp + 0x50], edi
je 0x14002af37
mov dword [rbx + 0x28], 3
test dword [rbx], 0x40000000
je 0x14002af46
mov dword [rbx + 0x28], reloc.OLEAUT32.dll_SafeArrayLock
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14002b090
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx]
mov rbp, rdx
mov rdi, rcx
bt eax, 0x1e
jae 0x14002b0c6
mov dword [rcx + 0x28], reloc.OLEAUT32.dll_SafeArrayLock
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test al, al
jns 0x14002b11f
mov rcx, qword [rcx + 0x98]
mov rsi, qword [rdi + 0x90]
cmp rcx, rsi
jae 0x14002b145
sub esi, ecx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], esi
mov eax, esi
cmp esi, r8d
jbe 0x14002b0fa
mov esi, r8d
mov dword [rsp + 0x40], r8d
mov eax, r8d
mov rdx, qword [rdi + 0x88]
add rdx, rcx
mov r8d, eax
mov rcx, rbp
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
add qword [rdi + 0x98], rbx
mov rbx, qword [rsp + 0x48]
jmp 0x14002b15b
mov rcx, qword [rcx + 0x88]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002b157
mov dword [rdi + 0x28], 7
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov esi, dword [rsp + 0x40]
mov ecx, esi
mov r8d, esi
add qword [rdi + 0x78], rcx
mov rdx, rbp
mov ecx, dword [rdi + 0x80]
call fcn.14002aac0
mov rbp, qword [rsp + 0x50]
mov dword [rdi + 0x80], eax
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14002cc90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x48
mov r8, qword [rcx + 8]
mov rbp, rcx
movabs rcx, 0xffffffff00000000
movzx eax, word [r8 + 0x14]
mov r12, qword [r8 + 0x30]
mov r9d, dword [rbp + 0x70]
and r12, rcx
dec r9
mov r11d, dword [rax + r8 + 0x20]
not r9
mov ecx, dword [rax + r8 + 0x28]
or r11, r12
and r9, r11
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], r9
test ecx, ecx
jne 0x14002ccf9
mov edx, dword [rax + r8 + 0x3c]
test dl, 0x40
je 0x14002ccf1
mov ecx, dword [r8 + 0x20]
jmp 0x14002ccf9
test dl, dl
jns 0x14002ccf9
mov ecx, dword [r8 + 0x24]
mov edx, dword [rax + r8 + 0x3c]
mov r13d, 1
mov r15d, r13d
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
mov r10d, ecx
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 0
cmp r13w, word [r8 + 6]
jae 0x14002cdfa
lea rdi, [r8 + 0x64]
add rdi, rax
nop word [rax + rax]
mov esi, dword [rdi - 0x1c]
mov ebx, dword [rbp + 0x70]
or rsi, r12
mov eax, dword [rdi - 0x14]
neg rbx
and rbx, rsi
test eax, eax
jne 0x14002cd7b
mov ecx, dword [rdi]
test cl, 0x40
je 0x14002cd73
mov eax, dword [r8 + 0x20]
jmp 0x14002cd7b
test cl, cl
jns 0x14002cd7b
mov eax, dword [r8 + 0x24]
mov r14d, eax
cmp r9, rbx
je 0x14002cdc1
lea rax, [r10 + r11]
cmp rax, rbx
ja 0x14002cdc1
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.14002cbc0
test eax, eax
je 0x14002ce9b
mov edx, dword [rdi]
mov r11, rsi
mov r8, qword [rbp + 8]
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov r10d, r14d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r14
jmp 0x14002cde1
mov ecx, dword [rdi]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x14002cdd3
btr edx, 0x19
mov r10, r14
sub r10, r11
add r10, rsi
mov qword [rsp + 0x30], r10
movzx eax, word [r8 + 6]
inc r15d
add rdi, 0x28
mov dword [rsp + 0x38], edx
cmp r15d, eax
jl 0x14002cd50
test r10, r10
je 0x14002ce1d
bt edx, 0x19
jae 0x14002ce46
cmp r11, r9
jne 0x14002ce1d
mov r9, qword [rbp + 0x60]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + reloc.WSOCK32.dll_getservbyport]
mov eax, r13d
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x48
pop r15
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov rax, rcx
shr rcx, 0x1e
shr rax, 0x1d
and ecx, r13d
and eax, r13d
lea rcx, [rcx + rax*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x1400de090]
mov eax, dword [rax + rcx*4]
mov r8d, eax
bts r8d, 9
mov rcx, r11
and edx, 0x4000000
mov rdx, r10
cmove r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14002ce1d
xor eax, eax
jmp 0x14002ce20
Function at 0x14002dc60
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], rdi
mov rdi, rdx
mov qword [rbp + 0x28], r14
mov r14, rcx
test rcx, rcx
je 0x14002de4d
cmp dword [rcx + 0x28], 0
jne 0x14002de4d
cmp qword [rcx + 0x68], 0
je 0x14002de4d
cmp dword [rcx + 0x2c], 0
je 0x14002de4d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, 0xffffffffffffffff
mov rbx, rax
mov rax, r8
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14002dcc0
xor edx, edx
lea rax, [rax*2 + 2]
lea rcx, [rax + 0x10]
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x14002dd9f
mov rax, r8
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14002dcf0
lea rdx, [rax*2 + 2]
lea rcx, [rdx + 0x10]
nop dword [rax + rax]
cmp word [rbx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14002dd10
xor eax, eax
cmp rcx, rdx
cmova rax, rcx
cmp rax, 0x400
lea rax, [r8*2 + 2]
ja 0x14002dd78
lea rcx, [rax + 0x10]
xor edx, edx
cmp rcx, rax
cmova rdx, rcx
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14002dd56
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400d7ad0
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x14002dda1
mov dword [rsi], 0xcccc
add rsi, 0x10
jmp 0x14002dda1
lea rdx, [rax + 0x10]
xor ecx, ecx
cmp rdx, rax
cmova rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14002dda1
mov dword [rax], 0xdddd
add rsi, 0x10
jmp 0x14002dda1
xor esi, esi
mov rdx, rsi
mov rcx, rbx
sub rdx, rbx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14002ddb0
mov rcx, rbx
sub rcx, rdi
nop word [rax + rax]
movzx eax, word [rdi]
mov word [rcx + rdi], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x14002ddd0
mov r8, qword [r14 + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, rax
mov edx, WSAAsyncSelect
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, rsi
sub rbx, rsi
nop dword [rax]
movzx ecx, word [rdx]
mov word [rbx + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x14002de20
test rsi, rsi
je 0x14002de48
cmp dword [rsi - 0x10], 0xdddd
lea rcx, [rsi - 0x10]
jne 0x14002de48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rdi
jmp 0x14002de4f
xor eax, eax
mov rbx, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x18]
mov rdi, qword [rbp + 0x20]
mov r14, qword [rbp + 0x28]
mov rsp, rbp
pop rbp
ret
Function at 0x14002e9f0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
cmp rdi, 0x40000000
jbe 0x14002ea2b
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x140114ab8]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x30], r15
cmovbe r15, qword [rsp + 0x30]
sub r15, 0xfff
test rsi, rsi
je 0x14002ea6d
cmp rsi, r14
jb 0x14002ea65
cmp rsi, r15
jae 0x14002ea65
cmp qword [rsi + 8], 0
jne 0x14002ec35
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14002ea50
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x14002eaf9
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x14002eaf9
nop word [rax + rax]
mov r8d, gethostbyaddr
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14002eaf9
cmp dword [rsp + 0x70], 0x10000
je 0x14002eb7b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x14002eaf9
sub rbx, rbp
cmp rbx, r14
jae 0x14002eac0
test rsi, rsi
jne 0x14002ebe0
cmp rdi, r15
ja 0x14002ec1d
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x14002ec1d
mov r8d, gethostbyaddr
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14002ec1d
cmp dword [rsp + 0x70], 0x10000
je 0x14002ebb1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x14002eb32
jmp 0x14002ec1d
test rbx, rbx
je 0x14002eaf9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14002ebe0
cmp rbx, r14
jae 0x14002eaa0
jmp 0x14002eb02
test rdi, rdi
je 0x14002ec1d
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14002ebe0
cmp rdi, r15
jbe 0x14002eb10
jmp 0x14002ec1d
xor eax, eax
lea rcx, [rsi + 0x40]
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add r12, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp r12, 0xfc0
jbe 0x14002ebf0
mov rax, qword [0x140114ab8]
mov qword [rsi], rax
mov qword [0x140114ab8], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x14002f340
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x140117f30], ecx
lea rax, [0x140117f34]
mov r8d, 1
mov edx, dword [rax - 4]
lea rax, [rax + 4]
shr edx, 0x1e
xor edx, dword [rax - 8]
imul ecx, edx, 0x6c078965
add ecx, r8d
inc r8d
mov dword [rax - 4], ecx
cmp r8d, 0x270
jl 0x14002f353
mov dword [0x140112a18], 1
mov dword [0x140117f28], 1
ret

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

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140117f28], 0
lea rbx, [0x140117f30]
jne 0x14002f3ef
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140117f30], eax
mov edx, 1
lea r8, [0x140117f34]
nop
mov ecx, dword [r8 - 4]
lea r8, [r8 + 4]
shr ecx, 0x1e
xor ecx, dword [r8 - 8]
imul eax, ecx, 0x6c078965
add eax, edx
inc edx
mov dword [r8 - 4], eax
cmp edx, 0x270
jl 0x14002f3c0
mov dword [0x140117f28], 1
mov eax, dword [0x140117f30]
mov r10d, 0xe3
mov dword [0x140112a18], 0x270
mov qword [0x1401188f0], rbx
nop dword [rax]
mov r9d, dword [rbx + 4]
mov edx, r9d
xor edx, eax
and edx, 0x7ffffffe
xor edx, eax
mov eax, r9d
shr edx, 1
and al, 1
neg al
mov eax, r9d
sbb ecx, ecx
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [rbx + 0x634]
mov dword [rbx], edx
add rbx, 4
sub r10d, 1
jne 0x14002f410
mov r11d, 0x18c
nop
mov r10d, dword [rbx + 4]
lea r8, [rbx + 4]
mov edx, r10d
mov eax, r10d
xor edx, r9d
and al, 1
and edx, 0x7ffffffe
xor edx, r9d
mov r9d, r10d
shr edx, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [rbx - 0x38c]
mov dword [rbx], edx
lea rbx, [r8]
sub r11d, 1
jne 0x14002f450
mov eax, dword [0x140117f30]
mov ecx, r10d
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
xor ecx, r10d
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [r8 - 0x38c]
mov dword [r8], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x14002f4d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [0x140112a18], 1
jne 0x14002f4e2
call fcn.14002f390
mov rax, qword [0x1401188f0]
mov ecx, dword [rax]
add rax, 4
mov qword [0x1401188f0], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
add rsp, 0x28
ret

Function at 0x14002f530
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [0x140112a18], 1
jne 0x14002f542
call fcn.14002f390
mov rax, qword [0x1401188f0]
xorps xmm0, xmm0
mov ecx, dword [rax]
add rax, 4
mov qword [0x1401188f0], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400ff448]
add rsp, 0x28
ret
Function at 0x14002fe10
Capabilities:
Write clipboard data

Disassembly:
cmp byte [rcx + 0x23], 0
jne 0x14002fe1a
mov rcx, qword [rcx + 0x10]
cmp byte [rcx + 0x23], 2
jne 0x14002fe36
cmp qword [0x140117c50], 0
je 0x14002fe36
lea rcx, [0x140117c38]
jmp fcn.1400070e0
movzx eax, byte [rcx + 0x21]
and al, 0x86
mov byte [rcx + 0x21], al
test dl, dl
je 0x14002fe48
or al, 1
mov byte [rcx + 0x21], al
mov eax, 1
ret
Function at 0x140035d80
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x10280
call fcn.1400d7ad0
sub rsp, rax
cmp qword [0x140113b00], 0
movzx esi, dl
mov rdi, rcx
je 0x140035dbd
mov rdx, qword [rcx + 0xbc8]
lea r8, str._restart
xor ebx, ebx
jmp 0x140035e6c
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
mov dword [rsp + 0x102a0], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x102a0]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0x102a0], 1
jne 0x140035e3d
mov r9, qword [rax]
lea rcx, [rsp + 0x50]
sub r9, rcx
nop word [rax + rax]
movzx r8d, word [rcx]
movzx edx, word [rcx + r9]
sub r8d, edx
jne 0x140035e26
add rcx, 2
test edx, edx
jne 0x140035e10
test r8d, r8d
jne 0x140035e3d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r8, str._restart
jmp 0x140035e65
mov r9, qword [rdi + 0xbb0]
lea r8, str._restart___s_
mov edx, 0x8010
lea rcx, [rsp + 0x260]
call fcn.1400ba350
lea r8, [rsp + 0x260]
mov rdx, qword [rdi + 0xbc8]
mov r9, qword [0x140113aa0]
lea rcx, [0x140116fb0]
mov qword [rsp + 0x48], rbx
mov byte [rsp + 0x40], bl
mov byte [rsp + 0x38], bl
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], sil
call fcn.140058970
lea r11, [rsp + 0x10280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret