joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f060
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14002f06b
xor eax, eax
ret
lea r11, [0x1400fccc0]
not ecx
cmp r8d, 8
jb 0x14002f141
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 0x14002f090
test r8d, r8d
je 0x14002f16d
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 0x14002f150
not ecx
mov eax, ecx
ret
Function at 0x14002f180
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 0x14002f307
mov qword [rsp + 0x30], rdi
mov edi, esi
shr edi, 8
test byte [rcx], 0x10
mov byte [rsp + 0x50], sil
mov byte [rsp + 0x51], dil
je 0x14002f289
mov edx, dword [rcx + 0x48]
mov r11d, dword [rcx + 0x50]
mov r8d, r11d
mov qword [rsp + 0x58], rbp
and r8d, 0xfffd
lea rbp, [0x1400fccc0]
movsx rax, sil
xor rax, rdx
or r8d, 2
movzx ecx, al
shr edx, 8
xor edx, dword [rbp + rcx*4]
movzx eax, dl
mov r10d, edx
add eax, dword [rbx + 0x4c]
imul edx, eax, 0x8088405
inc edx
mov eax, edx
shr rax, 0x18
xor rax, r11
shr r11d, 8
movzx ecx, al
mov eax, r8d
xor eax, 1
imul eax, r8d
xor r11d, dword [rbp + rcx*4]
mov ecx, r10d
mov r9d, r11d
shr r10d, 8
and r11d, 0xfffd
shr eax, 8
or r11d, 2
xor al, sil
mov byte [rsp + 0x50], al
movsx rax, dil
xor rcx, rax
movzx eax, cl
xor r10d, dword [rbp + rax*4]
movzx eax, r10b
add eax, edx
mov dword [rbx + 0x48], r10d
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0x4c], ecx
shr rcx, 0x18
xor rcx, r9
shr r9d, 8
movzx eax, cl
xor r9d, dword [rbp + rax*4]
mov eax, r11d
mov rbp, qword [rsp + 0x58]
xor eax, 1
imul eax, r11d
mov dword [rbx + 0x50], r9d
shr eax, 8
xor al, dil
mov byte [rsp + 0x51], al
test byte [rbx], 1
mov rdi, qword [rsp + 0x30]
je 0x14002f2c3
mov rdx, qword [rbx + 0x38]
lea rax, [rdx + 2]
cmp rax, qword [rbx + 0x40]
jb 0x14002f2af
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 0x14002f2f8
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 0x14002f2f1
cmp dword [rsp + 0x60], 2
je 0x14002f2f8
mov dword [rbx + 0x28], 3
test dword [rbx], 0x40000000
je 0x14002f307
mov dword [rbx + 0x28], reloc.OLEAUT32.dll_SafeArrayLock
add rsp, 0x38
pop rsi
pop rbx
ret
Function at 0x14002f310
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 0x14002f4c7
push rbx
push rsi
push r14
sub rsp, 0x30
cmp dword [rcx + 0x28], 0
mov r14, rdx
mov qword [rsp + 0x58], rdi
mov rbx, rcx
lea rdi, [rcx + 0x28]
mov esi, r8d
jne 0x14002f4ba
test byte [rcx], 0x10
mov qword [rsp + 0x50], rbp
je 0x14002f446
mov rcx, qword [rcx + 0x58]
mov rax, rcx
test rcx, rcx
je 0x14002f36c
cmp dword [rbx + 0x60], esi
jae 0x14002f36c
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 0x58], 0
jmp 0x14002f371
test rax, rax
jne 0x14002f399
lea eax, [rsi + rsi]
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 0x14002f399
mov dword [rdi], 2
lea rdi, [rbx + 0x28]
jmp 0x14002f4a7
mov r8, rsi
mov rdx, r14
mov rcx, rax
mov rbp, rsi
call sub.VCRUNTIME140.dll_memcpy
test esi, esi
je 0x14002f43c
xor r11d, r11d
lea r14, [0x1400fccc0]
mov rdi, rsi
nop
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 [r14 + 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 [r14 + 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 rdi, 1
jne 0x14002f3c0
mov r14, qword [rbx + 0x58]
lea rdi, [rbx + 0x28]
jmp 0x14002f449
mov rbp, rsi
test byte [rbx], 1
je 0x14002f479
mov rcx, qword [rbx + 0x38]
lea rax, [rcx + rbp]
cmp rax, qword [rbx + 0x40]
jb 0x14002f464
mov dword [rdi], reloc.WSOCK32.dll_inet_ntoa
jmp 0x14002f4a7
add rcx, qword [rbx + 8]
mov r8, rbp
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x38], rbp
jmp 0x14002f4a7
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x60]
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002f4a1
cmp dword [rsp + 0x60], esi
je 0x14002f4a7
mov dword [rdi], 3
test dword [rbx], 0x40000000
mov rbp, qword [rsp + 0x50]
je 0x14002f4ba
mov dword [rdi], reloc.OLEAUT32.dll_SafeArrayLock
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14002f560
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx]
mov rsi, rdx
mov rbx, rcx
bt eax, 0x1e
jae 0x14002f596
mov dword [rcx + 0x28], reloc.OLEAUT32.dll_SafeArrayLock
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test al, al
jns 0x14002f5f4
mov rcx, qword [rcx + 0x98]
mov rdi, qword [rbx + 0x90]
cmp rcx, rdi
jae 0x14002f61a
sub edi, ecx
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x40], edi
mov eax, edi
mov ebp, edi
cmp edi, r8d
jbe 0x14002f5cf
mov edi, r8d
mov dword [rsp + 0x40], r8d
mov eax, r8d
mov ebp, r8d
mov rdx, qword [rbx + 0x88]
add rdx, rcx
mov r8d, eax
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, ebp
add qword [rbx + 0x98], rax
mov rbp, qword [rsp + 0x48]
jmp 0x14002f630
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 0x14002f62c
mov dword [rbx + 0x28], 7
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov edi, dword [rsp + 0x40]
mov ecx, edi
mov r8d, edi
add qword [rbx + 0x78], rcx
mov rdx, rsi
mov ecx, dword [rbx + 0x80]
call fcn.14002f060
mov rsi, qword [rsp + 0x58]
mov dword [rbx + 0x80], eax
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400321e0
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 0x1400323cd
cmp dword [rcx + 0x28], 0
jne 0x1400323cd
cmp qword [rcx + 0x68], 0
je 0x1400323cd
cmp dword [rcx + 0x2c], 0
je 0x1400323cd
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 0x140032240
xor edx, edx
lea rax, [rax*2 + 2]
lea rcx, [rax + 0x10]
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x14003231f
mov rax, r8
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140032270
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 0x140032290
xor eax, eax
cmp rcx, rdx
cmova rax, rcx
cmp rax, 0x400
lea rax, [r8*2 + 2]
ja 0x1400322f8
lea rcx, [rax + 0x10]
xor edx, edx
cmp rcx, rax
cmova rdx, rcx
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x1400322d6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400f7000
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x140032321
mov dword [rsi], 0xcccc
add rsi, 0x10
jmp 0x140032321
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 0x140032321
mov dword [rax], 0xdddd
add rsi, 0x10
jmp 0x140032321
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 0x140032330
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 0x140032350
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 0x1400323a0
test rsi, rsi
je 0x1400323c8
cmp dword [rsi - 0x10], 0xdddd
lea rcx, [rsi - 0x10]
jne 0x1400323c8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rdi
jmp 0x1400323cf
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 0x140032f40
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]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x140032f80
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x140133b48]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x140032fbe
cmp rsi, r14
jb 0x140032fb6
cmp rsi, r15
jae 0x140032fb6
cmp qword [rsi + 8], 0
jne 0x140033187
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140032fa1
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 0x140033052
nop dword [rax]
nop dword [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 0x140033049
nop word [rax + rax]
mov r8d, gethostbyname
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140033049
cmp dword [rsp + 0x70], 0x10000
je 0x1400330cb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x140033049
sub rbx, rbp
cmp rbx, r14
jae 0x140033010
test rsi, rsi
jne 0x140033130
cmp rdi, r15
ja 0x14003316f
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 0x14003316f
mov r8d, gethostbyname
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14003316f
cmp dword [rsp + 0x70], 0x10000
je 0x140033101
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 0x140033082
jmp 0x14003316f
test rbx, rbx
je 0x140033049
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 0x140033130
cmp rbx, r14
jae 0x140032ff0
jmp 0x140033052
test rdi, rdi
je 0x14003316f
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 0x140033130
cmp rdi, r15
jbe 0x140033060
jmp 0x14003316f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x140033140
mov rax, qword [0x140133b48]
mov qword [rsi], rax
mov qword [0x140133b48], 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 0x140033220
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x68
mov r12, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140032f40
test rax, rax
je 0x1400333fe
mov rsi, qword [rax + 8]
mov r9, qword [rsi]
inc dword [rax + 0x10]
mov qword [rax + 8], r9
test rsi, rsi
je 0x1400333fe
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rsi
call fcn.1400334e0
test eax, eax
je 0x1400333f6
mov ecx, reloc.WSOCK32.dll_gethostbyname
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400333f6
mov ecx, dword [rsp + 0x40]
mov qword [rsp + 0x90], rbp
mov ebp, dword [rsp + 0x44]
and ebp, 0xf
mov qword [rsp + 0x98], r13
shl ebp, 3
mov qword [rsp + 0xa0], r14
mov r14, qword [rsp + 0x38]
mov qword [rax + 8], r14
mov qword [rsp + 0x60], r15
mov r15, qword [rsp + 0x20]
mov qword [rax], r15
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x10], rax
mov eax, dword [rbx + 0x20]
and eax, 0xffffff80
or ebp, eax
mov eax, ecx
and eax, 1
or ebp, eax
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x24], rax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x2c], rax
mov dword [rbx + 0x20], ebp
test ecx, ecx
je 0x140033314
mov eax, dword [rdi - 5]
mov dword [rbx + 0x18], eax
movzx eax, word [rdi - 1]
mov word [rbx + 0x1c], ax
movzx eax, byte [rdi + 1]
mov byte [rbx + 0x1e], al
jmp 0x140033320
mov eax, dword [rdi]
mov dword [rbx + 0x18], eax
movzx eax, byte [rdi + 4]
mov byte [rbx + 0x1c], al
shl ebp, 0x1f
lea rdi, [r15 - 5]
mov eax, 5
sar ebp, 0x1f
test ebp, ebp
lea r9, [rsp + 0xa8]
mov r13d, 7
mov r8d, 0x40
cmove rdi, r15
cmove r13d, eax
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140033397
mov rcx, rsi
call fcn.1400331a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov r14, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0x60]
add rsp, 0x68
pop r12
pop rdi
pop rsi
pop rbx
ret
sub r14d, edi
mov byte [rdi], 0xe9
sub r14d, 5
mov dword [rdi + 1], r14d
test ebp, ebp
je 0x1400333af
mov word [r15], 0xf9eb
mov r8d, dword [rsp + 0xa8]
lea r9, [rsp + 0xa8]
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r13
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test r12, r12
je 0x1400333ee
mov rax, qword [rsp + 0x30]
mov qword [r12], rax
mov rax, rbx
jmp 0x140033370
mov rcx, rsi
call fcn.1400331a0
xor eax, eax
add rsp, 0x68
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140033410
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
mov edx, dword [rcx + 0x20]
mov rbx, rcx
shl edx, 0x1f
mov esi, 7
sar edx, 0x1f
mov r8d, 0x40
test edx, edx
lea rdi, [rax - 5]
cmove rdi, rax
mov eax, 5
cmove esi, eax
mov rcx, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003347a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x140033496
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x14003349d
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x38]
mov eax, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400338e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x140136fe0], ecx
lea rax, [0x140136fe4]
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 0x1400338f3
mov dword [0x140131a68], 1
mov dword [0x140136fdc], 1
ret

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

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140136fdc], 0
lea rbx, [0x140136fe0]
jne 0x14003398f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140136fe0], eax
mov edx, 1
lea r8, [0x140136fe4]
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 0x140033960
mov dword [0x140136fdc], 1
mov eax, dword [0x140136fe0]
mov r9d, 0xe3
mov dword [0x140131a68], 0x270
mov qword [0x1401379a0], rbx
nop dword [rax]
mov r10d, dword [rbx + 4]
mov edx, r10d
xor edx, eax
and edx, 0x7ffffffe
xor edx, eax
mov eax, r10d
shr edx, 1
and al, 1
neg al
mov eax, r10d
sbb ecx, ecx
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [rbx + 0x634]
mov dword [rbx], edx
add rbx, 4
sub r9d, 1
jne 0x1400339b0
mov r11d, 0x18c
nop
mov r9d, dword [rbx + 4]
lea r8, [rbx + 4]
mov edx, r9d
mov eax, r9d
xor edx, r10d
and al, 1
and edx, 0x7ffffffe
xor edx, r10d
mov r10d, r9d
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 0x1400339f0
mov ecx, dword [0x140136fe0]
and r9d, 0x80000001
mov eax, ecx
and cl, 1
and eax, 0x7ffffffe
or r9d, eax
shr r9d, 1
neg cl
sbb eax, eax
and eax, 0x9908b0df
xor r9d, eax
xor r9d, dword [r8 - 0x38c]
mov dword [r8], r9d
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
sub dword [0x140131a68], 1
jne 0x140033a82
call fcn.140033930
mov rax, qword [0x1401379a0]
mov ecx, dword [rax]
add rax, 4
mov qword [0x1401379a0], 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 0x140033ad0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [0x140131a68], 1
jne 0x140033ae2
call fcn.140033930
mov rax, qword [0x1401379a0]
xorps xmm0, xmm0
mov ecx, dword [rax]
add rax, 4
mov qword [0x1401379a0], 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 [0x14011e468]
add rsp, 0x28
ret
Function at 0x1400341c0
Capabilities:
Write clipboard data

Disassembly:
cmp byte [rcx + 0x23], 0
jne 0x1400341ca
mov rcx, qword [rcx + 0x10]
cmp byte [rcx + 0x23], 2
jne 0x1400341e6
cmp qword [0x140136d00], 0
je 0x1400341e6
lea rcx, [0x140136ce8]
jmp fcn.140007740
movzx eax, byte [rcx + 0x21]
and al, 0x86
mov byte [rcx + 0x21], al
test dl, dl
je 0x1400341f8
or al, 1
mov byte [rcx + 0x21], al
mov eax, 1
ret
Function at 0x14003a1f0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x10280
call fcn.1400f7000
sub rsp, rax
cmp qword [0x140132b68], 0
movzx esi, dl
mov rdi, rcx
je 0x14003a22d
mov rdx, qword [rcx + 0xbc8]
lea r8, str._restart
xor ebx, ebx
jmp 0x14003a2dc
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 0x14003a2ad
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 0x14003a296
add rcx, 2
test edx, edx
jne 0x14003a280
test r8d, r8d
jne 0x14003a2ad
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r8, str._restart
jmp 0x14003a2d5
mov r9, qword [rdi + 0xbb0]
lea r8, str._restart___s_
mov edx, 0x8010
lea rcx, [rsp + 0x260]
call fcn.1400d6690
lea r8, [rsp + 0x260]
mov rdx, qword [rdi + 0xbc8]
mov r9, qword [0x140132b08]
lea rcx, [0x140136060]
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.140065f10
lea r11, [rsp + 0x10280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140045bf0
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 [0x140130c70]
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 0x140045cb4
movzx edx, word [r8]
test dx, dx
je 0x140045cb4
lea rcx, [rsp + 0x20]
movzx eax, bx
nop dword [rax + rax]
cmp dx, ax
je 0x140045d28
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140045c90
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x140045c83
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [r10 + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140045cc0
lea rbx, [r10 - 2]
lea rbx, [rbx + rax*2]
cmp rbx, r10
jbe 0x140045cf8
nop dword [rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140045cef
cmp ax, 9
jne 0x140045cf8
sub rbx, 2
cmp rbx, r10
ja 0x140045ce0
mov rdi, rbx
sub rdi, r10
sar rdi, 1
inc rdi
cmp rdi, 0xfd
jbe 0x140045d3a
test r9b, r9b
je 0x140045d24
mov r8, r10
lea rdx, str.This_line_does_not_contain_a_recognized_action.
mov rcx, r11
call fcn.140064aa0
xor eax, eax
jmp 0x140045d50
test r8, r8
je 0x140045cb4
cmp r8, r10
lea rbx, [r8 - 2]
cmovbe rbx, r8
jmp 0x140045cd4
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 0x14004eee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10040
call fcn.1400f7000
sub rsp, rax
mov qword [rsp + 0x20], r9
lea rcx, [rsp + 0x30]
mov r9, r8
mov rbx, rdx
lea r8, [0x140115d70]
mov edx, 0x8001
call fcn.1400d6690
lea rcx, [rsp + 0x30]
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004ef75
test al, 0x10
je 0x14004ef75
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
mov rcx, rax
test rax, rax
je 0x14004ef75
lea eax, [rdi + 1]
movsxd r8, eax
lea rdx, [rsp + 0x30]
add r8, r8
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbx + 8], rdi
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret
lea rax, [0x1400f97e4]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x10050]
add rsp, 0x10040
pop rdi
ret