joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029ae0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x78
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x88]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x140029b0f
mov eax, 1
add rsp, 0x78
pop rsi
pop rbx
ret
mov r8d, dword [rsp + 0x38]
mov r9d, r8d
and r9d, 1
mov qword [rsp + 0x70], rdi
mov eax, r8d
mov r10d, r8d
mov ecx, r9d
mov edi, 0x41000000
or ecx, 2
and al, 2
mov eax, r8d
cmove ecx, r9d
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov eax, edx
or eax, 0x10
and r10d, 0x10
cmove eax, edx
mov ecx, eax
or ecx, 0x20
and r8b, 0x20
cmove ecx, eax
test r10d, r10d
mov eax, 0x81000000
cmove edi, eax
or edi, ecx
test r9d, r9d
jne 0x140029b80
test r10d, r10d
mov edi, 0x41800000
mov eax, 0x81800000
cmove edi, eax
or edi, ecx
mov rcx, qword [rbx + 0x88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rbx + 0x70], rax
cmp rax, 0x28
jbe 0x140029cc1
cmp qword [rbx + 0x20], 0
jne 0x140029cc1
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 2
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [rsp + 0x90], ax
jne 0x140029cac
mov edx, dword [rsp + 0xa8]
lea ecx, [rdx + 0x34]
cmp qword [rbx + 0x70], rcx
jbe 0x140029cac
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x30]
cmp eax, 0x5a4d
je 0x140029ca8
add eax, 0xffffbab4
cmp eax, 4
ja 0x140029cac
mov ecx, reloc.OLEAUT32.dll_SafeArrayUnlock
bt ecx, eax
jae 0x140029cac
bts edi, 0x16
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x44]
movabs r9, 0xd6bf94d5e57a42bd
movabs r8, 0xfe624e212ac18000
mov dword [rsi + 0x10], edi
add rcx, r8
mov rax, r9
imul rcx
add rdx, rcx
mov rcx, qword [rsp + 0x4c]
sar rdx, 0x17
add rcx, r8
add r8, qword [rsp + 0x3c]
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r9
mov dword [rsi], edx
imul rcx
mov rax, r9
add rdx, rcx
sar rdx, 0x17
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
lea rcx, [rsp + 0x4c]
mov dword [rsi + 4], edx
imul r8
add rdx, r8
lea r8, [rsp + 0xa0]
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rsi + 8], edx
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [rsp + 0xa0]
movzx ecx, word [rsp + 0x90]
mov rdi, qword [rsp + 0x70]
shl ecx, 0x10
or ecx, eax
mov dword [rsi + 0xc], ecx
xor eax, eax
add rsp, 0x78
pop rsi
pop rbx
ret
Function at 0x14002c810
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 0x14002c878
mov edx, 0x8b1f
call fcn.14002d210
mov edx, 0x808
mov rcx, rbx
call fcn.14002d210
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.14002d210
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.14002d210
mov edx, 0xb02
mov rcx, rbx
call fcn.14002d210
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
inc r8d
jmp 0x14002c9d4
mov edx, 0x4034b50
call fcn.14002d210
mov edx, 0x403
mov rcx, rbx
call fcn.14002d210
mov edx, 0x2d
mov rcx, rbx
call fcn.14002d210
movzx edx, word [rdi + 0x30]
mov rcx, rbx
call fcn.14002d210
movzx edx, word [rdi + 2]
mov rcx, rbx
call fcn.14002d210
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.14002d210
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.14002d210
mov edx, dword [rdi + 8]
mov rcx, rbx
call fcn.14002d210
movzx edx, word [rdi + 0xa]
mov rcx, rbx
call fcn.14002d210
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002d210
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002d210
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002d210
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14002d210
mov edx, dword [rdi + 0x20]
mov rcx, rbx
call fcn.14002d210
mov edx, dword [rdi + 0x24]
mov rcx, rbx
add edx, 0x14
call fcn.14002d210
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
mov rcx, rbx
call fcn.14002d3a0
mov edx, 1
mov rcx, rbx
call fcn.14002d210
mov edx, reloc.WSOCK32.dll_recv
mov rcx, rbx
call fcn.14002d210
mov edx, dword [rdi + 0x18]
mov rcx, rbx
call fcn.14002d210
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x10
call fcn.14002d210
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x20
call fcn.14002d210
movzx edx, word [rdi + 0x1e]
mov rcx, rbx
call fcn.14002d210
mov edx, dword [rdi + 0x10]
mov rcx, rbx
call fcn.14002d210
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x10
call fcn.14002d210
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x20
call fcn.14002d210
movzx edx, word [rdi + 0x16]
mov rcx, rbx
call fcn.14002d210
mov r8d, dword [rdi + 0x24]
test r8d, r8d
je 0x14002c9dc
mov rdx, qword [rdi + 0x40]
mov rcx, rbx
call fcn.14002d3a0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d0f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14002d0fb
xor eax, eax
ret
lea r11, [0x1400f2cd0]
not ecx
cmp r8d, 8
jb 0x14002d1d1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x14002d120
test r8d, r8d
je 0x14002d1fd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x14002d1e0
not ecx
mov eax, ecx
ret
Function at 0x14002d210
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x28], 0
mov rbx, rcx
movsxd r8, edx
jne 0x14002d395
mov eax, dword [rcx]
mov qword [rsp + 0x58], rdi
mov edi, r8d
shr edi, 8
mov byte [rsp + 0x40], r8b
mov byte [rsp + 0x41], dil
test al, 0x10
je 0x14002d319
mov r10d, dword [rcx + 0x48]
mov r11d, dword [rcx + 0x50]
mov edx, r11d
movsx rax, r8b
xor rax, r10
mov qword [rsp + 0x48], rsi
movzx ecx, al
lea rsi, [0x1400f2cd0]
and edx, 0xfffd
shr r10d, 8
or edx, 2
xor r10d, dword [rsi + rcx*4]
movzx ecx, r11b
movzx eax, r10b
add eax, dword [rbx + 0x4c]
imul r9d, eax, 0x8088405
shr r11d, 8
inc r9d
mov eax, r9d
shr rax, 0x18
xor rcx, rax
mov eax, edx
xor eax, 1
imul eax, edx
mov edx, r10d
xor r11d, dword [rsi + rcx*4]
shr eax, 8
xor al, r8b
mov r8d, r11d
mov byte [rsp + 0x40], al
and r8d, 0xfffd
or r8d, 2
movsx rax, dil
xor rax, rdx
shr edx, 8
movzx ecx, al
xor edx, dword [rsi + rcx*4]
movzx eax, dl
add eax, r9d
mov dword [rbx + 0x48], edx
imul eax, eax, 0x8088405
mov edx, r11d
shr edx, 8
inc eax
mov ecx, eax
mov dword [rbx + 0x4c], eax
shr rcx, 0x18
movzx eax, r11b
xor rcx, rax
mov eax, r8d
xor eax, 1
imul eax, r8d
xor edx, dword [rsi + rcx*4]
mov rsi, qword [rsp + 0x48]
mov dword [rbx + 0x50], edx
shr eax, 8
xor al, dil
mov byte [rsp + 0x41], al
mov eax, dword [rbx]
mov rdi, qword [rsp + 0x58]
test al, 1
je 0x14002d351
mov rdx, qword [rbx + 0x38]
lea rax, [rdx + 2]
cmp rax, qword [rbx + 0x40]
jb 0x14002d33d
mov dword [rbx + 0x28], reloc.WSOCK32.dll_inet_ntoa
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rbx + 8]
movzx eax, word [rsp + 0x40]
mov word [rdx + rcx], ax
add qword [rbx + 0x38], 2
jmp 0x14002d386
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x50]
mov r8d, 2
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002d37f
cmp dword [rsp + 0x50], 2
je 0x14002d386
mov dword [rbx + 0x28], 3
test dword [rbx], 0x40000000
je 0x14002d395
mov dword [rbx + 0x28], reloc.OLEAUT32.dll_SafeArrayLock
add rsp, 0x30
pop rbx
ret
Function at 0x14002d3a0
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 0x14002d552
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 0x14002d543
test byte [rcx], 0x10
je 0x14002d4d4
mov rcx, qword [rcx + 0x58]
mov rax, rcx
test rcx, rcx
je 0x14002d3f5
cmp dword [rbx + 0x60], edi
jae 0x14002d3f5
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 0x58], 0
jmp 0x14002d3fa
test rax, rax
jne 0x14002d41f
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 0x14002d41f
mov dword [rbx + 0x28], 2
jmp 0x14002d534
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 0x14002d4cb
xor r11d, r11d
lea rsi, [0x1400f2cd0]
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
movzx ecx, r8b
shr r8d, 8
xor edx, dword [rsi + rax*4]
movzx eax, dl
add eax, dword [rbx + 0x4c]
imul eax, eax, 0x8088405
mov dword [rbx + 0x48], edx
inc eax
mov dword [rbx + 0x4c], eax
shr rax, 0x18
xor rcx, rax
xor r8d, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
mov dword [rbx + 0x50], r8d
mov rax, qword [rbx + 0x58]
imul ecx, r9d
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rbp, 1
jne 0x14002d450
mov rsi, qword [rbx + 0x58]
mov rbp, qword [rsp + 0x40]
test byte [rbx], 1
je 0x14002d505
mov rcx, qword [rbx + 0x38]
lea rax, [rcx + rdi]
cmp rax, qword [rbx + 0x40]
jb 0x14002d4f0
mov dword [rbx + 0x28], reloc.WSOCK32.dll_inet_ntoa
jmp 0x14002d534
add rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x38], rdi
jmp 0x14002d534
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 0x14002d52d
cmp dword [rsp + 0x50], edi
je 0x14002d534
mov dword [rbx + 0x28], 3
test dword [rbx], 0x40000000
je 0x14002d543
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 0x14002d5f0
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 0x14002d626
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 0x14002d67f
mov rcx, qword [rcx + 0x98]
mov rsi, qword [rdi + 0x90]
cmp rcx, rsi
jae 0x14002d6a5
sub esi, ecx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], esi
mov eax, esi
cmp esi, r8d
jbe 0x14002d65a
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 0x14002d6bb
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 0x14002d6b7
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.14002d0f0
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 0x140030320
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 0x14003050d
cmp dword [rcx + 0x28], 0
jne 0x14003050d
cmp qword [rcx + 0x68], 0
je 0x14003050d
cmp dword [rcx + 0x2c], 0
je 0x14003050d
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 0x140030380
xor edx, edx
lea rax, [rax*2 + 2]
lea rcx, [rax + 0x10]
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x14003045f
mov rax, r8
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400303b0
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 0x1400303d0
xor eax, eax
cmp rcx, rdx
cmova rax, rcx
cmp rax, 0x400
lea rax, [r8*2 + 2]
ja 0x140030438
lea rcx, [rax + 0x10]
xor edx, edx
cmp rcx, rax
cmova rdx, rcx
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x140030416
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400ecec0
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x140030461
mov dword [rsi], 0xcccc
add rsi, 0x10
jmp 0x140030461
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 0x140030461
mov dword [rax], 0xdddd
add rsi, 0x10
jmp 0x140030461
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 0x140030470
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 0x140030490
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 0x1400304e0
test rsi, rsi
je 0x140030508
cmp dword [rsi - 0x10], 0xdddd
lea rcx, [rsi - 0x10]
jne 0x140030508
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rdi
jmp 0x14003050f
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 0x140031a30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x14012bf40], ecx
lea rax, [0x14012bf44]
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 0x140031a43
mov dword [0x140126a28], 1
mov dword [0x14012bf38], 1
ret

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

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14012bf38], 0
lea rbx, [0x14012bf40]
jne 0x140031adf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012bf40], eax
mov edx, 1
lea r8, [0x14012bf44]
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 0x140031ab0
mov dword [0x14012bf38], 1
mov eax, dword [0x14012bf40]
mov r10d, 0xe3
mov dword [0x140126a28], 0x270
mov qword [0x14012c900], 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 0x140031b00
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 0x140031b40
mov eax, dword [0x14012bf40]
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 0x140031bc0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [0x140126a28], 1
jne 0x140031bd2
call fcn.140031a80
mov rax, qword [0x14012c900]
mov ecx, dword [rax]
add rax, 4
mov qword [0x14012c900], 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 0x140031c20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [0x140126a28], 1
jne 0x140031c32
call fcn.140031a80
mov rax, qword [0x14012c900]
xorps xmm0, xmm0
mov ecx, dword [rax]
add rax, 4
mov qword [0x14012c900], 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 [0x140114438]
add rsp, 0x28
ret
Function at 0x1400322c0
Capabilities:
Write clipboard data

Disassembly:
cmp byte [rcx + 0x23], 0
jne 0x1400322ca
mov rcx, qword [rcx + 0x10]
cmp byte [rcx + 0x23], 2
jne 0x1400322e6
cmp qword [0x14012bc60], 0
je 0x1400322e6
lea rcx, [0x14012bc48]
jmp fcn.1400075e0
movzx eax, byte [rcx + 0x21]
and al, 0x86
mov byte [rcx + 0x21], al
test dl, dl
je 0x1400322f8
or al, 1
mov byte [rcx + 0x21], al
mov eax, 1
ret
Function at 0x1400380e0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x10280
call fcn.1400ecec0
sub rsp, rax
cmp qword [0x140127b10], 0
movzx esi, dl
mov rdi, rcx
je 0x14003811d
mov rdx, qword [rcx + 0xbc8]
lea r8, str._restart
xor ebx, ebx
jmp 0x1400381cc
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 0x14003819d
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 0x140038186
add rcx, 2
test edx, edx
jne 0x140038170
test r8d, r8d
jne 0x14003819d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r8, str._restart
jmp 0x1400381c5
mov r9, qword [rdi + 0xbb0]
lea r8, str._restart___s_
mov edx, 0x8010
lea rcx, [rsp + 0x260]
call fcn.1400ce300
lea r8, [rsp + 0x260]
mov rdx, qword [rdi + 0xbc8]
mov r9, qword [0x140127ab0]
lea rcx, [0x14012afc0]
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.1400612f0
lea r11, [rsp + 0x10280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400433e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
movzx eax, word [0x140125c28]
xor ebp, ebp
mov word [rsp + 0x22], ax
mov ebx, SafeArrayAllocDescriptor
mov word [rsp + 0x20], bx
mov r10, r8
mov dword [rsp + 0x24], 0x90028
mov rsi, rdx
mov dword [rsp + 0x28], 0x3e003c
mov r11, rcx
mov dword [rsp + 0x2c], 0x3d003a
mov dword [rsp + 0x30], 0x2d002b
mov dword [rsp + 0x34], 0x2f002a
mov dword [rsp + 0x38], 0x7e0021
mov dword [rsp + 0x3c], 0x7c0026
mov dword [rsp + 0x40], 0x5b005e
mov dword [rsp + 0x44], 0x3f002e
mov dword [rsp + 0x48], 0x7b
test r8, r8
je 0x1400434a4
movzx edx, word [r8]
test dx, dx
je 0x1400434a4
lea rcx, [rsp + 0x20]
movzx eax, bx
nop dword [rax + rax]
cmp dx, ax
je 0x140043518
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140043480
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x140043473
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [r10 + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x1400434b0
lea rbx, [r10 - 2]
lea rbx, [rbx + rax*2]
cmp rbx, r10
jbe 0x1400434e8
nop dword [rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x1400434df
cmp ax, 9
jne 0x1400434e8
sub rbx, 2
cmp rbx, r10
ja 0x1400434d0
mov rdi, rbx
sub rdi, r10
sar rdi, 1
inc rdi
cmp rdi, 0xfd
jbe 0x14004352a
test r9b, r9b
je 0x140043514
mov r8, r10
lea rdx, str.This_line_does_not_contain_a_recognized_action.
mov rcx, r11
call fcn.14005fed0
xor eax, eax
jmp 0x140043540
test r8, r8
je 0x1400434a4
cmp r8, r10
lea rbx, [r8 - 2]
cmovbe rbx, r8
jmp 0x1400434c4
mov r8, rdi
mov rdx, r10
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov rax, rbx
mov word [rsi + rdi*2], bp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14004bc80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10040
call fcn.1400ecec0
sub rsp, rax
mov qword [rsp + 0x20], r9
lea rcx, [rsp + 0x30]
mov r9, r8
mov rbx, rdx
lea r8, [0x14010bd20]
mov edx, 0x8001
call fcn.1400ce300
lea rcx, [rsp + 0x30]
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004bd15
test al, 0x10
je 0x14004bd15
lea ecx, [rdi + 0xfd]
movsxd rcx, ecx
lea rcx, [rcx*4 + 0x14]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
test rax, rax
je 0x14004bd15
lea ecx, [rdi + 1]
movsxd r8, ecx
lea rdx, [rsp + 0x30]
add r8, r8
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbx + 8], rdi
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
lea rax, [0x1400ef7e4]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret