joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402f4f01
Capabilities:
Encode data using base64

Disassembly:
ror edx, cl
shl bp, 0x27
mov qword [rsp + rbp - 0x22999680], rbx
cmove cx, bx
not edx
rol edx, 3
or ax, bx
mov qword [rsp + rcx - 0x63f1d2a1], rdi
inc r8d
bt cx, bx
xor dword [rsp + rbp*2 - 0x45332d00], edx
sar rsi, cl
mov edi, ebp

Function at 0x1402f59b8
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x3e386f05
mov rax, qword [rbp + rax*2 - 0x7c70de0a]
jmp 0x1402e1653
call fcn.1402eb37c
call fcn.1402f5e08
mov eax, 0xa415148c
mov edx, 0x1e3bddb5
mov bx, word [rdx + r9 - 0x1e3bddb5]
movsx ebp, dx
cqo
movzx r8d, bp
mov cl, byte [rdx + r9 + 2]
imul bp
lea r9, [rdx + r9 - 0xfd3d]
bt ebp, r8d
add rbp, rbp
dec r8w
shl bx, cl
idiv rbp
div ebp
mov word [r9 + r8 - 0xddb4], bx
movsx ebx, al
push rdx
mov ecx, dword [rax + r11 - 0xcbeff]
xadd qword [rsp + rax - 0xcbeff], rbx
sbb ebx, dword [rsp + rax*2 - 0x197dfd]
idiv r8w
lea r11, [rax + r11 - 0xc7bc3]
inc byte [rsp + rax*2 - 0x18f78d]
and dword [rsp + rax - 0xc7bc4], r8d
xor ecx, edi
push r8
call fcn.1402b46bf
push 0x7898b4a1
mov ebp, dword [r9]
push 0x6a98909
pop rcx
sal qword [rsp + rcx*2 - 0xd531212], cl
mov ebx, dword [r9 + rcx - 0x6a98905]
movzx esi, byte [rsp + rcx*2 - 0xd53120f]
adc cl, byte [rsp + rsi - 0x2a]
not ebp
shr dword [rsp + rcx - 0x6a98908], cl
inc qword [rsp + rcx*4 - 0x1aa62424]
call fcn.1402ccf4e
lea rsp, [rsp + 0x18]
je 0x1402c25d9
mov eax, 0xda343639
shl eax, 0x37
mov rax, qword [rbp + rbx*8]
push 0xffffffff82173a84
add dword [rsp], 0xe5339a21
neg word [rsp + 2]
cmp ebx, 1
jmp 0x1402e81c7
Function at 0x1402fc710
Capabilities:
Authenticate hmac

Disassembly:
mov qword [rsp], 0xffffffff8734a695
add rax, rdx
mov qword [rbp + riz - 8], rax
neg byte [rsp]
jnp 0x1402ecef9

Function at 0x1402fdde9
Capabilities:
Encode data using base64

Disassembly:
bt r8, rsi
ror rdx, 0x4c
call fcn.1402daffb
mov edx, 0x1786578b
mov rbp, qword [r9 + rdx - 0x1786578b]
movsx ebx, dx
mov esi, ebx
mov esi, dword [rbp + rdx*2 - 0x2f0caf16]
movzx r8d, dl
call fcn.1402bcbdb
cwde
movsxd rbp, ebp
mov qword [rsp + rdx - 0x6fb8f8e0], r8
push rax
add r10, rbp
dec word [rsp + rdx - 0x6fb8f8dc]
jo 0x1402fc392
mov word [rsp + rdx - 0x6fb8f8d6], 0xeb0d
add ebx, dword [rdx + r9 - 0x6fb8f8e0]
mov cl, byte [r9 + rdx - 0x6fb8f8dc]
imul r8
mov ebp, 0x413bcaa0
inc edx
lea r9, [r9 + rdx*8 - 6]
add dl, r8b
not dword [rsp + rdx*8 - 0x26c]
shl ebx, cl
neg ebp
mov dword [r9 + rdx*4 - 0x13c], ebx
cdq
lea rcx, [rdx*8 + 0x3a060fa8]
mov qword [rsp + r8 - 0x5fee4c4e], r10
ret 8
Function at 0x14000f050
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
add rcx, 0x50
mov r9d, 0x14
jmp 0x140011b40
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x10
cmp r8d, 0x20
mov eax, 0x255cc9d8
mov r8d, 0x93050021
cmove r8d, eax
test r9d, r9d
mov eax, 0xb0aa052d
mov r10d, 0x45c4bf01
cmove r10d, eax
lea rsi, [rdx + 0x10]
mov edi, 0xd9e57aa5
lea r14, str.expand_16_byte_k
lea r15, str.expand_32_byte_k
nop dword [rax + rax]
cmp edi, 0x255cc9d7
jle 0x140011bc0
cmp edi, 0x255cc9d8
je 0x140011be0
cmp edi, 0x45c4bf01
je 0x140011bfa
cmp edi, 0x7c502b01
jne 0x140011b90
jmp 0x140011c40
cmp edi, 0x93050021
je 0x140011bed
cmp edi, 0xb0aa052d
je 0x140011c31
cmp edi, 0xd9e57aa5
jne 0x140011b90
mov ebp, r9d
mov edi, r10d
jmp 0x140011b90
mov edi, 0x7c502b01
mov r11, r15
mov rax, rsi
jmp 0x140011b90
mov edi, 0x7c502b01
mov r11, r14
mov rax, rdx
jmp 0x140011b90
mov dword [rsp + 0xc], ebp
mov qword [rsp], rcx
mov rdi, qword [rsp]
mov ebx, dword [rdx]
mov dword [rdi + 0x10], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 4]
mov dword [rdi + 0x14], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 8]
mov dword [rdi + 0x18], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 0xc]
mov dword [rdi + 0x1c], ebx
mov edi, r8d
jmp 0x140011b90
mov edi, 0x45c4bf01
mov ebp, 0x14
jmp 0x140011b90
mov rdx, qword [rsp]
mov ebp, dword [rax]
mov dword [rdx + 0x20], ebp
mov rdx, qword [rsp]
mov ebp, dword [rax + 4]
mov dword [rdx + 0x24], ebp
mov rdx, qword [rsp]
mov ebp, dword [rax + 8]
mov dword [rdx + 0x28], ebp
mov rdx, qword [rsp]
mov eax, dword [rax + 0xc]
mov dword [rdx + 0x2c], eax
mov rax, qword [rsp]
mov edx, dword [r11]
mov dword [rax], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 4]
mov dword [rax + 4], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 8]
mov dword [rax + 8], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 0xc]
mov dword [rax + 0xc], edx
mov eax, dword [rsp + 0xc]
mov dword [rcx + 0x88], eax
mov dword [rcx + 0x84], 0
xor eax, eax
add rsp, 0x10
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140011b40
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
add rcx, 0x50
mov r9d, 0x14
jmp 0x140011b40
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x10
cmp r8d, 0x20
mov eax, 0x255cc9d8
mov r8d, 0x93050021
cmove r8d, eax
test r9d, r9d
mov eax, 0xb0aa052d
mov r10d, 0x45c4bf01
cmove r10d, eax
lea rsi, [rdx + 0x10]
mov edi, 0xd9e57aa5
lea r14, str.expand_16_byte_k
lea r15, str.expand_32_byte_k
nop dword [rax + rax]
cmp edi, 0x255cc9d7
jle 0x140011bc0
cmp edi, 0x255cc9d8
je 0x140011be0
cmp edi, 0x45c4bf01
je 0x140011bfa
cmp edi, 0x7c502b01
jne 0x140011b90
jmp 0x140011c40
cmp edi, 0x93050021
je 0x140011bed
cmp edi, 0xb0aa052d
je 0x140011c31
cmp edi, 0xd9e57aa5
jne 0x140011b90
mov ebp, r9d
mov edi, r10d
jmp 0x140011b90
mov edi, 0x7c502b01
mov r11, r15
mov rax, rsi
jmp 0x140011b90
mov edi, 0x7c502b01
mov r11, r14
mov rax, rdx
jmp 0x140011b90
mov dword [rsp + 0xc], ebp
mov qword [rsp], rcx
mov rdi, qword [rsp]
mov ebx, dword [rdx]
mov dword [rdi + 0x10], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 4]
mov dword [rdi + 0x14], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 8]
mov dword [rdi + 0x18], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 0xc]
mov dword [rdi + 0x1c], ebx
mov edi, r8d
jmp 0x140011b90
mov edi, 0x45c4bf01
mov ebp, 0x14
jmp 0x140011b90
mov rdx, qword [rsp]
mov ebp, dword [rax]
mov dword [rdx + 0x20], ebp
mov rdx, qword [rsp]
mov ebp, dword [rax + 4]
mov dword [rdx + 0x24], ebp
mov rdx, qword [rsp]
mov ebp, dword [rax + 8]
mov dword [rdx + 0x28], ebp
mov rdx, qword [rsp]
mov eax, dword [rax + 0xc]
mov dword [rdx + 0x2c], eax
mov rax, qword [rsp]
mov edx, dword [r11]
mov dword [rax], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 4]
mov dword [rax + 4], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 8]
mov dword [rax + 8], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 0xc]
mov dword [rax + 0xc], edx
mov eax, dword [rsp + 0xc]
mov dword [rcx + 0x88], eax
mov dword [rcx + 0x84], 0
xor eax, eax
add rsp, 0x10
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140011dd4
Capabilities:
Execute syscall

Disassembly:
mov r11, rcx
nop
mov r10, r11
nop
mov eax, dword [0x14002f090]
nop
syscall
ret
Function at 0x140014b70
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140014ca0
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140014d07
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014d07
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014d07
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014d07
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014d07
cmp dword [rcx + 0x84], 0xe
jbe 0x140014d07
cmp dword [rcx + 0xf8], 0
je 0x140014d07
mov ecx, ebx
call fcn.140014bec
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140014e20
cmp dword [rbp + 0x20], 0
je 0x140014d54
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140014c48
int3
Function at 0x1400019e0
Capabilities:
Swap mouse buttons

Disassembly:
sub rsp, 0x28
mov ecx, 1
call sub.user32.dll_SwapMouseButton
mov dword [rsp + 0x24], eax
add rsp, 0x28
ret
Function at 0x14003ed90
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
sub rsp, 0x108
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], r8
mov eax, 0xffffffff
mov eax, eax
mov r9d, eax
lea rcx, [rsp + 0x58]
lea rax, [0x140067830]
mov qword [rsp + 0x20], rax
call fcn.14003e1e0
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.14003e320
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x70]
call fcn.14003e340
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x14003ee41
mov dword [rsp + 0x3c], 0
jmp 0x14003eede
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rdx
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xe0], 0
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xd8], rcx
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], rax
mov r8d, eax
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0xb8], eax
shr eax, 0x1e
cmp eax, 3
je 0x14003eeea
jmp 0x14003edfd
mov eax, dword [rsp + 0x3c]
add rsp, 0x108
ret
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xf0], rax
mov edx, eax
call qword [sym.imp.advapi32.dll_SystemFunction036]
mov byte [rsp + 0xbf], al
cmp al, 0
jne 0x14003edfd
mov ecx, dword [rsp + 0x38]
xor ecx, 0x80000000
mov dword [rsp + 0xc0], ecx
call fcn.14003e080
mov ecx, eax
mov dword [rsp + 0xc4], ecx
call fcn.14003eba0
mov dword [rsp + 0x3c], eax
jmp 0x14003eede
Function at 0x140047f80
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 0x140048010
jmp 0x140047fff
jae 0x1400480d0
cmp r8, 0x201
jae 0x140048010
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140048068
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14004803f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140063990
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 0x140048091
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140048138
mov r8d, r14d
cmp r15, r8
jne 0x140047ff0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004815b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140047fff
jmp 0x140048010
cmp rsi, r8
jb 0x140048175
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14004b430
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 0x140048121
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.14000b7b0
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 0x140048109
jmp 0x140048121
lea rcx, str.internal_error:_entered_unreachable_code_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140064840
jmp 0x14004818a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140064d90
ud2
Function at 0x1400490e0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x1400490f0
mov rcx, rdx
mov rdx, r8
jmp fcn.140049100
mov rcx, rdx
mov rdx, r8
jmp fcn.1400519d0

Function at 0x14004be30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14004be60
test ecx, ecx
jne 0x14004beb0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14004be6c
test ecx, ecx
jne 0x14004beb0
mov rcx, rdi
call fcn.14004bd10
movzx eax, al
test bpl, bpl
jne 0x14004beb7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14004bea3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14004c028]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14004bea3.2
xor eax, eax
test bpl, bpl
je 0x14004be7c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14004c009
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14004beea
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14004bf69
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14004bf30
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14004bf4b
inc rax
dec rdi
cmp rax, 1
jne 0x14004bf10
jmp 0x14004bf69
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14004bf4b
cmp ebx, 0x5c
je 0x14004bf4b
inc rax
dec rdi
cmp rax, 1
jne 0x14004bf30
jmp 0x14004bf69
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14004c017
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14004bf93
mov al, 9
cmp rdx, 2
je 0x14004bf97
cmp rdx, 1
jne 0x14004bfa7
cmp byte [r8], 0x2e
jne 0x14004bfa7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14004bfa7
mov al, 0xa
jmp 0x14004bfa7
cmp byte [r8], 0x2e
jne 0x14004bfa7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x14004bea3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x14004bea3.2
mov ecx, 2
jmp case.0x14004bea3.2
lea r8, str.library_std_srcpath.rs
call fcn.140064d10
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140064d10
ud2
Function at 0x1400519d0
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.140054860
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140051a87
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.140052db0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140051a87
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x140051a5b
test rsi, rsi
je 0x140051a57
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.14000b7b0
xor esi, esi
jmp 0x140051a87
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140051a84
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.14000b7b0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140051f00
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x20]
call fcn.140054860
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
test rax, rax
je 0x140052012
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.140052db0
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
test rax, rax
je 0x140052012
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], rdx
mov r8, qword [rbp + 0x50]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call fcn.140054860
mov rax, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x18]
test rax, rax
je 0x14005201f
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.140052db0
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
test rbx, rbx
je 0x14005201f
mov qword [rbp - 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x1400520c0]
lea r9, [rbp - 0x20]
mov r14, qword [rbp - 0x28]
mov rcx, r14
mov rdx, rbx
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x140052030
mov rax, qword [rbp - 0x20]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rdi, rdi
jne 0x14005204e
jmp 0x140052062
mov qword [rsi + 8], rdx
mov qword [rsi], 1
jmp 0x14005207c
mov r14, qword [rbp - 0x28]
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140052062
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdi, rdi
je 0x140052062
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call fcn.14000b7b0
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x14005207c
add rdx, rdx
mov r8d, 2
mov rcx, r14
call fcn.14000b7b0
mov rax, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140052110
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 [0x1400699c8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140052154
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 0x1400521ba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400521f1
test eax, eax
js 0x1400521cb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400521e4
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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.14004b1a0
mov rcx, rax
call fcn.140045ac0
mov ecx, 7
int 0x29
ud2

Function at 0x140053af0
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 [0x140079131]
mov ecx, 0x10
mov edx, 8
call fcn.14000b7a0
test rax, rax
je 0x140053bcf
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140053c60]
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 0x140053bc1
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 0x140053b98
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.14000b7b0
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.14000b7b0
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 - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140064720
ud2
Function at 0x140061540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400615ba
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 0x1400615b0
cmp r10, r11
jb 0x140061653
cmp r10, rdx
ja 0x140061667
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400615b2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140061590
jmp 0x140061627
ja 0x1400615ba
mov r11, r10
cmp rax, r8
jne 0x140061562
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14006162b
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 0x140061600
mov r8, r10
sub ecx, r9d
jns 0x14006161e
jmp 0x14006162d
cmp r10, rdx
je 0x140061639
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14006162d
xor al, 1
cmp r8, rdx
jne 0x1400615e0
jmp 0x14006162d
xor eax, eax
jmp 0x14006162d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140064840
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140064e10
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140064d90
ud2

Function at 0x140063320
Capabilities:
Parse pe header

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