joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401defd0
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 0x1401df012
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x1401df01a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1401df02b
jmp 0x1401df042
xor r10d, r10d
jmp 0x1401df0cd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1401df042
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1401df059
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 0x1401df079
add r11, r8
jmp 0x1401df1aa
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 0x1401df142
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 0x1401df0f0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1401df160
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1401df172
jmp 0x1401df18c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1401df18c
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 0x1401df1a6
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 0x1401e1d00
Capabilities:
Hash data using fnv

Disassembly:
push rsi
cmp qword [rcx + 0x18], 0
je 0x1401e1def
mov eax, dword [rdx]
mov edx, eax
shr edx, 0x10
mov r8d, eax
shr r8d, 0x18
movzx r9d, al
movabs r10, 0xcbf29ce484222325
xor r10, r9
movabs r9, 0x100000001b3
imul r10, r9
movzx esi, ah
xor rsi, r10
imul rsi, r9
movzx edx, dl
xor rdx, rsi
imul rdx, r9
xor rdx, r8
imul rdx, r9
mov r8, qword [rcx]
mov rcx, qword [rcx + 8]
mov r9, rdx
shr r9, 0x39
movd xmm0, r9d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
xor r9d, r9d
pcmpeqd xmm1, xmm1
and rdx, rcx
movdqu xmm2, xmmword [r8 + rdx]
movdqa xmm3, xmm2
pcmpeqb xmm3, xmm0
pmovmskb r10d, xmm3
nop word cs:[rax + rax]
test r10w, r10w
je 0x1401e1dd0
lea r11d, [r10 - 1]
and r11d, r10d
tzcnt r10d, r10d
add r10, rdx
and r10, rcx
shl r10, 2
mov rsi, r8
sub rsi, r10
mov r10d, r11d
cmp eax, dword [rsi - 4]
jne 0x1401e1da0
jmp 0x1401e1deb
pcmpeqb xmm2, xmm1
pmovmskb r10d, xmm2
test r10d, r10d
jne 0x1401e1def
add rdx, r9
add rdx, 0x10
add r9, 0x10
jmp 0x1401e1d7c
mov al, 1
pop rsi
ret
xor eax, eax
pop rsi
ret

Function at 0x1401e1e00
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebx, edx
mov rsi, rcx
mov eax, edx
shr eax, 0x10
mov ecx, edx
shr ecx, 0x18
movzx edx, bl
movabs r8, 0xcbf29ce484222325
xor r8, rdx
movabs rdx, 0x100000001b3
imul r8, rdx
movzx ebp, bh
xor rbp, r8
imul rbp, rdx
movzx edi, al
xor rdi, rbp
imul rdi, rdx
xor rdi, rcx
imul rdi, rdx
cmp qword [rsi + 0x10], 0
je 0x1401e1f12
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rdi
shr rcx, 0x39
movd xmm0, ecx
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
xor r10d, r10d
pcmpeqd xmm1, xmm1
xor r11d, r11d
and rdi, rdx
movdqu xmm2, xmmword [rax + rdi]
movdqa xmm3, xmm2
pcmpeqb xmm3, xmm0
pmovmskb ebp, xmm3
nop dword [rax]
mov r9d, ebp
test bp, bp
je 0x1401e1ed0
lea ebp, [r9 - 1]
and ebp, r9d
tzcnt r14d, r9d
add r14, rdi
and r14, rdx
shl r14, 2
mov r15, rax
sub r15, r14
cmp dword [r15 - 4], ebx
jne 0x1401e1ea0
jmp 0x1401e1f71
cmp r11, 1
mov r11d, 1
je 0x1401e1ef6
pmovmskb r8d, xmm2
xor r11d, r11d
test r8d, r8d
setne r11b
tzcnt r8d, r8d
add r8, rdi
and r8, rdx
pcmpeqb xmm2, xmm1
pmovmskb ebp, xmm2
test ebp, ebp
jne 0x1401e1f28
add rdi, r10
add rdi, 0x10
add r10, 0x10
jmp 0x1401e1e89
lea r8, [rsi + 0x20]
mov edx, 1
mov rcx, rsi
call fcn.140269530
jmp 0x1401e1e5f
movzx r10d, byte [rax + r8]
test r10b, r10b
js 0x1401e1f45
movdqa xmm0, xmmword [rax]
pmovmskb r8d, xmm0
tzcnt r8d, r8d
movzx r10d, byte [rax + r8]
and r10b, 1
movzx r10d, r10b
sub qword [rsi + 0x10], r10
lea r10, [r8 - 0x10]
and r10, rdx
mov byte [rax + r8], cl
mov byte [r10 + rax + 0x10], cl
inc qword [rsi + 0x18]
shl r8, 2
neg r8
mov dword [rax + r8 - 4], ebx
test r9w, r9w
setne al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401eced0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x1401ecf42
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.advapi32.dll_SystemFunction036]
jmp 0x1401ecf08
add rdi, rbx
sub rsi, rbx
je 0x1401ecf42
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x1401ecf00
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x1401ecf00
add ebp, 0x80000000
jmp 0x1401ecf44
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1402224f0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140222580
jmp 0x14022256f
jae 0x140222640
cmp r8, 0x201
jae 0x140222580
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1402225d8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1402225af
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14026b9f0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140222601
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1402226a8
mov r8d, r14d
cmp r15, r8
jne 0x140222560
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1402226cb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14022256f
jmp 0x140222580
cmp rsi, r8
jb 0x1402226e5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140225fa0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140222691
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1401047e0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140222679
jmp 0x140222691
lea rcx, str.internal_error:_entered_unreachable_codeX
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14026c9b0
jmp 0x1402226fa
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14026cea0
ud2
Function at 0x140222850
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.140237c90
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x1402229d6
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140222910
jmp 0x1402228ff
jae 0x1402229e8
cmp r8, 0x201
jae 0x140222910
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x140222968
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14022293f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.14026b9f0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140222997
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140222abb
mov r8d, esi
cmp r12, r8
jne 0x1402228f0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140222ae5
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1402228ff
jmp 0x140222910
lea rcx, [rbp - 0x58]
call fcn.14021ad80
mov byte [rsi + 0x18], 2
jmp 0x140222a7a
cmp r15, r8
jb 0x140222aff
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.140225fa0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140222a39
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.1401047e0
cmp byte [rbp + 0x3d8], 2
jne 0x140222a91
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.14021ad80
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x140222a7a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1401047e0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x140222a65
jmp 0x140222a7a
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140222a21
jmp 0x140222a39
lea rcx, str.internal_error:_entered_unreachable_codeX
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14026c9b0
jmp 0x140222b14
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14026cea0
ud2
Function at 0x140222bd0
Capabilities:
Set environment variable

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], r8
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], r9
lea rsi, [rbp - 8]
mov rcx, rsi
call fcn.140237c90
mov rcx, qword [rbp - 8]
mov rax, qword [rbp]
test rcx, rcx
je 0x140222c82
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rax
lea rcx, [rbp - 8]
mov rdx, rbx
mov r8, rdi
call fcn.140237c90
mov r14, qword [rbp - 8]
mov rbx, qword [rbp]
test r14, r14
je 0x140222c87
mov r15, qword [rbp + 0x30]
mov rcx, r15
mov rdx, r14
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x140222cbd
xor edi, edi
test rbx, rbx
je 0x140222c77
add rbx, rbx
mov r8d, 2
mov rcx, r14
mov rdx, rbx
call fcn.1401047e0
mov rdx, qword [rbp + 0x38]
test rdx, rdx
jne 0x140222c97
jmp 0x140222ca8
mov rdi, rax
jmp 0x140222ca8
mov rdi, rbx
mov rdx, qword [rbp + 0x38]
test rdx, rdx
mov r15, qword [rbp + 0x30]
je 0x140222ca8
add rdx, rdx
mov r8d, 2
mov rcx, r15
call fcn.1401047e0
test rdi, rdi
jne 0x140222cd4
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
test rbx, rbx
jne 0x140222c63
jmp 0x140222c77
mov qword [rbp + 0x28], rdi
lea rax, [rbp - 0x18]
mov qword [rbp - 8], rax
lea rax, [0x1402287e0]
mov qword [rbp], rax
lea rcx, [rbp - 0x28]
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp + 0x18], rax
lea rax, [fcn.1402247f0]
mov qword [rbp + 0x20], rax
lea rax, [0x14069cc30]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 3
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], 3
lea rdx, str.library_std_srcenv.rsfailed_to_set_environment_variable____to___:
lea rcx, [rbp - 0x58]
call fcn.14026c900
ud2
Function at 0x140223c10
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x140223c20
mov rcx, rdx
mov rdx, r8
jmp fcn.140223c30
mov rcx, rdx
mov rdx, r8
jmp fcn.14022dc30

Function at 0x140229fb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.140251a00
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.140258480
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140231090]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.140230e30
cmp qword [rbp + 0xfe8], 0
jne 0x14022a187
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x14022a153
cmp r12, 0x1000
ja 0x14022a1a9
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x14022a127
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14022a0d0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14022a12d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x14022a110
jbe 0x14022a080
jmp 0x14022a195
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x14022a035
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.14021ad80
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.14021ad80
jmp 0x14022a153
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.14026cf20
jmp 0x14022a1bd
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.14026cea0
ud2
Function at 0x14022dc30
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.140237c90
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14022dce7
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]
mov r8b, 1
call fcn.14022fc80
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14022dce7
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14022dcbb
test rsi, rsi
je 0x14022dcb7
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1401047e0
xor esi, esi
jmp 0x14022dce7
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14022dce4
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1401047e0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14022e3f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14069e4f0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14022e434
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14022e49a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14022e4d1
test eax, eax
js 0x14022e4ab
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14022e4c4
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.140225c60
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14021b540
mov ecx, 7
int 0x29
ud2
Function at 0x140236a80
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 0x140236ab8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140236ad0
nop
add rsp, 0x38
ret

Function at 0x140236ad0
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 0x140236b13
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, [fcn.1402247f0]
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.14026c900
ud2

Function at 0x140237170
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14071e481]
mov ecx, 0x10
mov edx, 8
call fcn.1401047d0
test rax, rax
je 0x14023724f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140237300]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140237241
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140237218
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.1401047e0
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.1401047e0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14026c6c0
ud2
Function at 0x14024df10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14024df8a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14024df80
cmp r11, r10
ja 0x14024e023
cmp r10, rdx
ja 0x14024e037
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14024df82
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14024df60
jmp 0x14024dff7
ja 0x14024df8a
mov r11, r10
cmp rax, r8
jne 0x14024df32
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14024dffb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14024dfd0
mov r8, r10
sub ecx, r9d
jns 0x14024dfee
jmp 0x14024dffd
cmp r10, rdx
je 0x14024e009
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14024dffd
xor al, 1
cmp r8, rdx
jne 0x14024dfb0
jmp 0x14024dffd
xor eax, eax
jmp 0x14024dffd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1406a2df1]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14026c9b0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14026cf20
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14026cea0
ud2

Function at 0x140252074
Capabilities:
Parse pe header

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

Function at 0x140258350
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140258378
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140258378
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret