joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180044ef8
Capabilities:
Clear file content

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 r14
sub rsp, 0x20
mov edi, dword [rsp + 0x58]
lea eax, [rdx - 0x3c3]
mov rbx, rcx
lea r14d, [rdx + 0x654]
mov ecx, dword [rsp + 0x50]
lea esi, [r8 - 0x128]
mov ebp, edx
add ecx, 0xfffff5a1
xor ebp, 0x3d57
xor edi, 0x7fa3
cmp ecx, eax
jl 0x180044f96
mov rcx, qword [section..data]
mov eax, dword [0x1801ba074]
cmp dword [rcx + 0xa4], eax
jae 0x180044f69
xor dword [rcx + 0xf8], 0x203d3
jmp 0x180044f7b
mov ecx, dword [rcx + 0x78]
mov eax, dword [rbx + 4]
add ecx, 0x12b3b5
imul eax, ecx
mov dword [rbx + 4], eax
mov ecx, dword [rbx + 0xf4]
mov rax, qword [section..data]
add ecx, 0xc48
mov dword [rax + 0x104], ecx
jmp 0x180044ffc
mov eax, dword [rbx + 0xf4]
sub eax, dword [0x1801ba17c]
xor eax, 0x3974
cmp ecx, eax
ja 0x180044ffc
mov rcx, qword [section..data]
mov eax, dword [rcx + 0x98]
xor eax, dword [rbx + 0xb0]
cmp dword [rcx + 0x128], eax
jae 0x180045003
mov edx, dword [rcx + 0x5c]
mov eax, esi
mov r8d, dword [rbx + 0x14]
xor eax, 0x3e14
imul eax, edi
xor r8, 0x4439
sub edx, 0x4872
movsxd rcx, eax
call qword [sym.imp.KERNEL32.dll_CreateFiber]
mov ecx, dword [0x1801ba11c]
imul ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [section..data]
xor esi, 0x7960
cmp r14d, esi
jle 0x180045069
mov eax, dword [rbx + 4]
xor eax, dword [0x1801ba17c]
xor eax, dword [rcx + 0x144]
xor eax, 0x7c3f8
mov dword [rcx + 0x144], eax
mov eax, dword [rbx + 0x120]
cmp dword [rbx + 0x8c], eax
jne 0x180045050
mov eax, dword [0x1801ba178]
xor eax, dword [0x1801ba024]
sub eax, dword [0x1801ba06c]
mov dword [rbx + 0x168], eax
jmp 0x180045069
mov rcx, qword [section..data]
mov edx, dword [rcx + 0x150]
add edx, 0x12c358
or dword [rbx + 0x168], edx
mov rbx, qword [rsp + 0x30]
xor edi, 0x3e3
mov rbp, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x2fc4d7750
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d8830
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d8152
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d81ea
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d81ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d81c2
cmp qword [rbp - 0x10], 0
je 0x2fc4d81c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d8188
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d81eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d82f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d8318
mov eax, 0
jmp 0x2fc4d8366
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d8341
mov eax, 0
jmp 0x2fc4d8366
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d8361
mov eax, 0
jmp 0x2fc4d8366
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d836c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d83ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d83e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d83e1
mov rax, qword [rbp - 8]
jmp 0x2fc4d83ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d83b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400ef180]
mov dword [rax], 1
mov rax, qword [0x1400ef190]
mov dword [rax], 1
mov rax, qword [0x1400ef1a0]
mov dword [rax], 1
mov rax, qword [0x1400ef100]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400cb130
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.1400d15d0
sub rsp, rax
xor eax, eax
xor edx, edx
lea rbx, [rsp + 0x20]
lea rsi, [rsp + 0x70]
mov word [rsp + 0x70], ax
mov rcx, rbx
mov word [rsp + 0x20], dx
call fcn.1400cb070
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400cb186
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x1400d02b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400e1990
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400e1990
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400d0f82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400fb1a8]
test eax, eax
je 0x1400d101a
lea rax, [0x1400fb180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400fb1b0]
mov qword [rbp - 8], rax
jmp 0x1400d0ffe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400d0ff2
cmp qword [rbp - 0x10], 0
je 0x1400d0ff2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400d0fb8
lea rax, [0x1400fb180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400d101b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400d1120
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400d1148
mov eax, 0
jmp 0x1400d1196
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400d1171
mov eax, 0
jmp 0x1400d1196
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400d1191
mov eax, 0
jmp 0x1400d1196
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400d119c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400d121a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400d1211
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400d1211
mov rax, qword [rbp - 8]
jmp 0x1400d122f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400d11e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400014a3
Capabilities:
Hash data using sha256

Disassembly:
mov r8d, 1
jmp 0x140016e82

Function at 0x14000b2e0
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 0x14000b370
cmp r11, r10
ja 0x14000b3e6
cmp r10, rdx
ja 0x14000b3f8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000b372
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000b350
jmp 0x14000b3d4
ja 0x14000b37a
mov r11, r10
cmp rax, r8
jne 0x14000b314
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 0x14000b3b0
mov rdi, r8
sub ecx, edx
jns 0x14000b3cb
jmp 0x14000b3d6
cmp r8, rsi
je 0x14000b407
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000b3d6
xor al, 1
cmp rdi, rsi
jne 0x14000b390
jmp 0x14000b3d6
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.140024e90
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140024c00
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_src_sliceiter.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140024c80
int3
Function at 0x14000c33a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
cmp byte [rcx + 0x79], 0
je 0x14000c34e
xor esi, esi
jmp 0x14000c4f7
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
cmp qword [rcx], 0
je 0x14000c395
lea rdx, [rdi + 8]
mov r9, qword [rdi + 0x50]
movups xmm0, xmmword [rdi + 0x58]
cmp qword [rdi + 0x38], 0xffffffffffffffff
sete byte [rsp + 0x30]
movups xmmword [rsp + 0x20], xmm0
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov r8, rsi
call fcn.14000c544
cmp qword [rbx], 0
jne 0x14000c4a3
jmp 0x14000c4c1
mov al, byte [rdi + 0x1a]
mov r8, qword [rdi + 8]
mov rdx, qword [rdi + 0x50]
mov cl, byte [rdi + 0x18]
test al, al
jne 0x14000c4c1
mov r9d, ecx
xor r9b, 1
mov byte [rdi + 0x18], r9b
mov r9, rdx
test r8, r8
je 0x14000c3d8
mov r9, rdx
sub r9, r8
jbe 0x14000c3d2
cmp byte [rsi + r8], 0xbf
jg 0x14000c3d8
jmp 0x14000c502
jne 0x14000c502
test r9, r9
je 0x14000c495
mov r11b, byte [rsi + r8]
movzx r9d, r11b
test r9b, r9b
jns 0x14000c44e
mov r10d, r9d
and r10d, 0x1f
movzx ebx, byte [rsi + r8 + 1]
and ebx, 0x3f
cmp r9b, 0xdf
jbe 0x14000c43b
movzx r9d, byte [rsi + r8 + 2]
shl ebx, 6
and r9d, 0x3f
or r9d, ebx
cmp r11b, 0xf0
jb 0x14000c447
movzx r11d, byte [rsi + r8 + 3]
and r10d, 7
shl r10d, 0x12
shl r9d, 6
and r11d, 0x3f
or r11d, r9d
or r11d, r10d
mov r9d, r11d
jmp 0x14000c44e
shl r10d, 6
or r10d, ebx
mov r9d, r10d
jmp 0x14000c44e
shl r10d, 0xc
or r9d, r10d
test cl, cl
jne 0x14000c499
cmp r9d, 0x110000
je 0x14000c4bd
mov ecx, 1
cmp r9d, 0x80
jb 0x14000c487
mov ecx, 2
cmp r9d, 0x800
jb 0x14000c487
cmp r9d, 0x10000
mov ecx, 4
sbb rcx, 0
add r8, rcx
mov qword [rdi + 8], r8
mov cl, 1
jmp 0x14000c3a3
test cl, cl
je 0x14000c4bd
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r8
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x68]
add rsi, rcx
sub rdx, rcx
mov qword [rdi + 0x68], rax
jmp 0x14000c4f7
mov byte [rdi + 0x1a], 1
cmp byte [rdi + 0x79], 0
jne 0x14000c347
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 0
je 0x14000c4df
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jmp 0x14000c4f0
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
cmp rdx, rsi
je 0x14000c347
sub rdx, rsi
add rsi, qword [rdi + 0x48]
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.x__t_
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r9, rdx
call fcn.140025170
int3

Function at 0x14000c787
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14000c7ba
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14000c7bf
call fcn.140020090
mov ecx, dword [0x14009c234]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov byte [rcx + 0x48], 1
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], rdx
add rsp, 0x38
ret
Function at 0x14000ff65
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov byte [rdx + 0xf0], 0xa
mov edx, 4
call fcn.1400100a1
mov edi, eax
mov dword [rsi], eax
lea rcx, [rbx + 4]
mov edx, 4
call fcn.1400100a1
mov dword [rsi + 4], eax
lea rcx, [rbx + 8]
mov edx, 4
call fcn.1400100a1
mov dword [rsi + 8], eax
add rbx, 0xc
mov edx, 4
mov rcx, rbx
call fcn.1400100a1
mov dword [rsi + 0xc], eax
xor ecx, ecx
mov edx, 0xff
lea r8, [0x140091070]
lea r9, [0x140091470]
lea r10, [0x140091870]
lea r11, [0x140091c70]
lea rbx, [0x140092070]
mov r14d, eax
shr r14d, 0x10
and r14d, edx
movzx ebp, byte [r8 + r14*4 + 3]
shl ebp, 0x18
xor ebp, edi
mov edi, eax
shr edi, 8
and edi, edx
movzx edi, byte [r9 + rdi*4 + 2]
shl edi, 0x10
mov r14d, eax
and r14d, edx
movzx r14d, byte [r10 + r14*4 + 1]
shl r14d, 8
xor r14d, edi
xor r14d, ebp
mov edi, eax
shr edi, 0x18
movzx edi, byte [r11 + rdi*4]
xor edi, r14d
xor edi, dword [rcx + rbx]
mov dword [rsi + rcx*4 + 0x10], edi
mov ebp, dword [rsi + rcx*4 + 4]
xor ebp, edi
mov dword [rsi + rcx*4 + 0x14], ebp
xor ebp, dword [rsi + rcx*4 + 8]
mov dword [rsi + rcx*4 + 0x18], ebp
xor eax, ebp
mov dword [rsi + rcx*4 + 0x1c], eax
add rcx, 4
cmp rcx, 0x28
jne 0x14000ffea
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140013bb0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140006fb0
cmp rax, rcx
je 0x140013bd5
cmp rdx, 4
jae 0x140013bd8
xor eax, eax
xor r8d, r8d
jmp 0x140013c70
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400275c0]
movdqa xmm3, xmmword [0x1400275d0]
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 0x140013c00
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140013c87
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140013c70
ret
Function at 0x140017ebb
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov rsi, qword [rsp + 0x58]
mov eax, dword [rdx]
mov edi, r8d
rol edi, 0x19
mov r10d, dword [rdx + 4]
mov ebx, eax
rol ebx, 0x19
mov r11d, dword [rdx + 8]
mov ebp, r10d
rol ebp, 0x19
mov r14d, r11d
rol r14d, 0x19
mov r15d, r8d
rol r15d, 0xe
xor r15d, edi
mov edi, eax
rol edi, 0xe
xor edi, ebx
mov ebx, r10d
rol ebx, 0xe
xor ebx, ebp
mov ebp, r11d
rol ebp, 0xe
xor ebp, r14d
shr r8d, 3
xor r8d, r15d
add r8d, eax
shr eax, 3
xor eax, edi
add eax, r10d
shr r10d, 3
xor r10d, ebx
add r10d, r11d
shr r11d, 3
xor r11d, ebp
add r11d, dword [rdx + 0xc]
add r8d, dword [rsi + 0xc]
add eax, dword [r9]
add r10d, dword [r9 + 4]
add r11d, dword [r9 + 8]
mov edx, dword [rsi + 4]
mov edi, edx
rol edi, 0xf
mov r9d, dword [rsi]
mov esi, edx
rol esi, 0xd
xor esi, edi
shr edx, 0xa
xor edx, esi
add edx, r11d
mov r11d, r9d
rol r11d, 0xf
mov esi, r9d
rol esi, 0xd
xor esi, r11d
shr r9d, 0xa
xor r9d, esi
mov r11d, edx
rol r11d, 0xf
add r9d, r10d
mov r10d, edx
rol r10d, 0xd
xor r10d, r11d
mov r11d, edx
shr r11d, 0xa
xor r11d, r10d
add r11d, eax
mov eax, r9d
rol eax, 0xf
mov r10d, r9d
rol r10d, 0xd
xor r10d, eax
mov eax, r9d
shr eax, 0xa
xor eax, r10d
add eax, r8d
mov dword [rcx], eax
mov dword [rcx + 4], r11d
mov dword [rcx + 8], r9d
mov dword [rcx + 0xc], edx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400187fb
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg1 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x140018817
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg2 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret
Function at 0x14001f3f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
sub esp, 0xa8

Function at 0x140020090
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 sub.advapi32.dll_SystemFunction036
test al, al
je 0x1400200d2
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, [0x14001eb60]
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.___t_
lea rcx, [rbp - 0x60]
call fcn.140024ac0
ud2

Function at 0x1400245e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14002462a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002462a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002462a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002462a
cmp dword [rcx + 0x84], 0xe
jbe 0x14002462a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002462c
xor al, al
add rsp, 0x28
ret

Function at 0x140025f20
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140005760
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x140025faf
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140025fe1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140025ff4
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x14002600c
mov rcx, qword [rsp + 0x38]
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400068a0
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x14002600c
mov edx, 1
mov rcx, rdi
call fcn.1400068a0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret