joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004da40
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400aeaf0
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14004db05
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400bf96e
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14004dae6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14004dad8
test rsi, rsi
je 0x1400bf96e
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14004da98
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14004db34
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop

Function at 0x14004db50
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14004dc0d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400bf974
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14004dbee
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14004dbe0
test rsi, rsi
je 0x1400bf974
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14004dba0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400a5090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x1400ec9d1], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400a5118
lea rdx, [0x1400cc592]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400a5180
mov rbx, qword [0x1400ec878]
jmp 0x1400a50d5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400a50d0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1400943a0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400ec878], rax
mov ebx, dword [rax]
mov qword [0x1400ec878], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400ec878], rdx
call fcn.1400a41c0
cmp eax, ebx
jne 0x1400a521a
mov byte [0x1400ec9d1], 1
jmp 0x1400a50ae
cmp byte [0x1400ec9d0], 0
jne 0x1400a50c5
mov rbx, qword [sym.imp.python38.dll_PyDict_New]
lea rsi, [0x1400ec068]
call rbx
mov qword [0x1400ed328], rax
call rbx
mov qword [0x1400ed320], rax
call rbx
mov qword [0x1400ed318], rax
call rbx
mov qword [0x1400ed310], rax
call rbx
mov qword [0x1400ed308], rax
call rbx
mov qword [0x1400ed300], rax
call rbx
mov qword [0x1400ed2f8], rax
call rbx
mov r13, qword [sym.imp.python38.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x1400ed2f0], rax
nop dword [rax]
mov ecx, ebx
call r13
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x1400a51f8
mov byte [0x1400ec9d0], 1
jmp 0x1400a50c5
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400ad7d0
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.1400beec0
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.1400beec0
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 0x1400ae4a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ed788]
test eax, eax
je 0x1400ae53a
lea rax, [0x1400ed760]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ed790]
mov qword [rbp - 8], rax
jmp 0x1400ae51e
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 0x1400ae512
cmp qword [rbp - 0x10], 0
je 0x1400ae512
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 0x1400ae4d8
lea rax, [0x1400ed760]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400ae53b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400ae640
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 0x1400ae668
mov eax, 0
jmp 0x1400ae6b6
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 0x1400ae691
mov eax, 0
jmp 0x1400ae6b6
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 0x1400ae6b1
mov eax, 0
jmp 0x1400ae6b6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400ae6bc
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 0x1400ae73a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400ae731
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 0x1400ae731
mov rax, qword [rbp - 8]
jmp 0x1400ae74f
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 0x1400ae704
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140158686
Capabilities:
Encode data using xor

Disassembly:
add r8, 0xc
xor eax, eax
test r10, r10
lea rsp, [rsp + 0x10]
je 0x140164174
mov ecx, 0x211f3f05
push r9
ror ecx, 0xe
inc cl
lea r9, [rcx + rcx*2 - 0x66f6e873]
lea rcx, [0x140162ca0]
mov r9d, 0xdb2c4721
ror r9w, 0x21
movzx r9d, byte [rbp + riz]
push 0x70981f2b
xor r9d, eax
and r9d, 0xff
mov r9d, dword [rcx + r9*4]
shr eax, 8
xor eax, r9d
inc rbp
xor eax, 0x861d55ac
sal word [rsp + 2], 0xe7
dec r10
lea rsp, [rsp + 8]
jne 0x1401586b8
call fcn.14016416a
not eax
push 0x11b85815
mov dword [r8], eax
lea rsp, [rsp + 8]
jmp fcn.140156d25

Function at 0x140163e3f
Capabilities:
Encode data using xor

Disassembly:
push 0xfffffffffabc3699
mov r8d, 0x67218983
shr r8b, 0xe1
movzx r8d, byte [r8 + rbp - 0x67218941]
xor r8d, r11d
not qword [rsp]
and r8d, 0xff
mov r8d, dword [rbx + r8*4]
shr r11d, 8
inc word [rsp + 6]
xor r11d, r8d
sar qword [rsp], 0xf7
inc rbp
xor r11d, 0xff8026ae
dec rax
lea rsp, [rsp + 8]
jne 0x1401593a4
pop rbx
not r11d
mov dword [rbx], r11d
push 0x7b104d84
lea rsp, [rsp + 8]
jmp fcn.14014a5af
sal word [rsp + rax*2 - 0x29643214], 0xaf
movzx eax, byte [r10 + rax*4 - 0x52c86440]
call fcn.140155da7
mov ebp, 0x7387e893
lea rbp, [rbp - 0xe6fca47]
bswap ebp
mov rsi, qword [r10 + rbp - 0x4c1e1865]
ror bpl, 0x81
jno 0x1401593ca
or rbp, 0xe91a907
mov ebp, dword [rsi + rbp - 0x4e9fb9b7]
call fcn.1401386fd
sub r10, 8
mov qword [r10], rbp
lea rsp, [rsp + 8]
jmp fcn.1401507f8

Function at 0x14016afac
Capabilities:
Encode data using xor

Disassembly:
push r10
xchg dword [rsp + rbp - 0x4b2db220], ebp
pop r10
pop rsi
jae 0x140156cf7
add byte [rax], al
add cl, bh
cmp eax, 0x3aff944a
cmp eax, 0xa433ae2e
mov eax, 0x1bd3349e
scasb al, byte [rdi]
xor esp, dword [rax + rdi*4 + 0x1bd3349e]
or edx, dword [rax + 0x4d]
lea edi, [rbx]
push rdi
cmp dh, byte [rdi]
push 0x5e
movabs dword [0x44e64730d4595aa1], eax
cmpsb byte [rsi], byte [rdi]
ja 0x14016afc8
xor ebx, dword [rsi + riz]
call 0x12f2d3a99
invalid
Function at 0x1400012b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp - 0x28], rcx
mov r14, qword [rdx]
lea rcx, [rbp - 0x48]
mov rdx, r8
mov r8, r9
call fcn.1400017d0
mov dword [rbp + 0x1c], 0x800
mov dword [rbp + 0x18], 0
movzx eax, byte [0x140028181]
mov ecx, 0x800
mov edx, 1
call fcn.140002100
test rax, rax
je 0x140001470
mov rbx, rax
mov qword [rbp], 0x800
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rdi, qword [rbp - 0x40]
lea r12, [rbp + 0x1c]
lea r15, [rbp + 0x18]
mov rsi, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov r13, qword [rbp]
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x30], rax
sub r13, rax
nop
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call rsi
cmp eax, 0xea
jne 0x14000138a
mov r8d, dword [rbp + 0x1c]
cmp r13, r8
jae 0x140001350
mov rcx, rbp
mov rdx, qword [rbp - 0x30]
call fcn.14001c360
mov rbx, qword [rbp + 8]
jmp 0x140001340
movabs r14, 0x8000000000000000
test eax, eax
jne 0x1400013bb
mov eax, dword [rbp + 0x1c]
mov qword [rbp + 0x10], rax
mov eax, dword [rbp + 0x18]
cmp eax, 0xb
mov rsi, qword [rbp - 0x28]
jbe 0x140001452
movabs rax, 0xde00000002
jmp 0x1400013c7
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], r14
mov rdx, qword [rbp]
test rdx, rdx
je 0x1400013e6
mov r8d, 1
mov rcx, rbx
call fcn.140002110
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x140001400
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140002110
cmp qword [rbp - 0x20], r14
jne 0x140001413
mov rax, qword [rbp - 0x18]
mov qword [rsi + 8], rax
mov qword [rsi], r14
jmp 0x14000143b
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.140002160
mov rcx, qword [rbp - 0x20]
movabs rax, 0x8000000000000000
cmp rcx, rax
je 0x14000143b
mov rdx, qword [rbp - 0x18]
call fcn.140001000
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x10], rcx
movups xmm0, xmmword [rbp]
movaps xmmword [rbp - 0x20], xmm0
mov byte [rbp - 8], al
mov rdx, qword [rbp - 0x48]
test rdx, rdx
jne 0x1400013ef
jmp 0x140001400
mov ecx, 1
mov edx, 0x800
call fcn.14001ce90
ud2
Function at 0x140001580
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea rcx, [rbp - 0x28]
mov rdx, r9
call fcn.1400024d0
mov rdi, qword [rdi]
lea rcx, [rbp - 0x40]
mov rdx, rbx
mov r8, rsi
call fcn.1400017d0
movzx r9d, byte [rbp - 0x10]
mov rdx, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x20]
mov eax, dword [rbp - 0x18]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov qword [rbp - 8], rdx
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov edi, eax
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x140001602
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 8]
call fcn.140002110
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x140001619
mov r8d, 1
mov rcx, rsi
call fcn.140002110
mov rcx, rdi
shl rcx, 0x20
or rcx, 2
xor eax, eax
test edi, edi
cmovne rax, rcx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005540
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], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400055e0
jmp 0x1400055cf
jae 0x1400056a0
cmp r8, 0x201
jae 0x1400055e0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140005638
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000560f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001c6f0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
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 0x140005661
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140005708
mov r8d, r14d
cmp r15, r8
jne 0x1400055c0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005735
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400055cf
jmp 0x1400055e0
cmp rsi, r8
jb 0x14000574f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400078a0
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 rbx, rbx
je 0x1400056f1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140002110
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 + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400056d9
jmp 0x1400056f1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14001d070
jmp 0x140005764
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001d4c0
ud2
Function at 0x14000bdb0
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.14000df60
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
movabs r14, 0x8000000000000000
cmp rax, r14
je 0x14000be22
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.14000cc70
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
cmp rax, r14
jne 0x14000be40
mov qword [rsi + 8], rdx
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 8], rax
mov qword [rbp], rdx
mov r8, qword [rbp + 0x70]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.14000df60
mov rax, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
cmp rax, r14
je 0x14000be92
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.14000cc70
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
cmp rbx, r14
jne 0x14000bec3
mov r14, qword [rbp]
mov r15, qword [rbp + 8]
mov qword [rsi + 8], rdi
mov qword [rsi], 1
test r15, r15
je 0x14000be2d
add r15, r15
mov r8d, 2
mov rcx, r14
mov rdx, r15
call fcn.140002110
jmp 0x14000be2d
mov qword [rbp - 0x18], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x14000bfa0]
lea r9, [rbp - 0x18]
mov r14, qword [rbp]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
mov r15, qword [rbp + 8]
je 0x14000bf15
mov rax, qword [rbp - 0x18]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rbx, rbx
jne 0x14000bf37
jmp 0x14000bea5
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
je 0x14000bea5
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.140002110
jmp 0x14000bea5
Function at 0x14000bfc0
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 [0x140020300]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000c004
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 0x14000c06a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000c0a1
test eax, eax
js 0x14000c07b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000c094
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.1400075e0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400037f0
mov ecx, 7
int 0x29
ud2
Function at 0x14001a8a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001a91a
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 0x14001a910
cmp r11, r10
ja 0x14001a9a5
cmp r10, rdx
ja 0x14001a9b7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001a912
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001a8f0
jmp 0x14001a987
ja 0x14001a91a
mov r11, r10
cmp rax, r8
jne 0x14001a8c2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001a98b
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 0x14001a960
mov r8, r10
sub ecx, r9d
jns 0x14001a97e
jmp 0x14001a98d
cmp r10, rdx
je 0x14001a999
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001a98d
xor al, 1
cmp r8, rdx
jne 0x14001a940
jmp 0x14001a98d
xor eax, eax
jmp 0x14001a98d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001cf10
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001d540
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001d4c0
int3

Function at 0x14001bf50
Capabilities:
Parse pe header

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