joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140320b4c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401e5ba0
sub rsp, rax
mov rax, qword [0x1403f8cc8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14031c3a4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140320b9b
mov rax, rbp
jmp 0x140320ca3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x409e10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1403331f0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x409e10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140320c9f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140320c9f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1403331f0
test rax, rax
js 0x140320c9f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140320c9f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140320c91
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140320c91
cmp byte [rcx], 0xd
jne 0x140320c77
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140320c86
cmp byte [rcx + 1], 0xa
jne 0x140320c86
inc rcx
jmp 0x140320c86
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3faeb0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140320c59
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140320ca3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14021c4f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14033224c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14032aaa8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1403322ed
cmp ebx, dword [rsp + 0x30]
je 0x1403322e6
test esi, esi
je 0x1403322e6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1403322c1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1403322ce
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1403322ab
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1403322d2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1403322ef
mov eax, 1
jmp 0x1403322ef
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140333c24
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140333c54
xor eax, eax
jmp 0x140333d17
mov rbp, rbx
cmp word [rax], si
je 0x140333c79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140333c60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140333c5c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14032a968
movsxd r14, eax
test eax, eax
jne 0x140333cb7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140333c4d
mov rcx, r14
call fcn.14032a878
mov rdi, rax
test rax, rax
jne 0x140333cd0
xor ecx, ecx
call fcn.14032a83c
jmp 0x140333cac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14032a968
test eax, eax
jne 0x140333d01
mov rcx, rdi
call fcn.14032a83c
jmp 0x140333d0b
xor ecx, ecx
call fcn.14032a83c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140333d34
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140333dbb
mov rsi, rbx
cmp word [rax], bp
je 0x140333d7a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140333d64
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140333d60
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14032a878
mov rdi, rax
test rax, rax
je 0x140333da8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14030c880
mov rbp, rdi
xor ecx, ecx
call fcn.14032a83c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140336ac0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140336ad6
mov al, 1
jmp 0x140336b36
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140336ae7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140336b34
mov ecx, dword [rcx + 0x18]
nop
call fcn.14033472c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140336b34
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140336b34
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140336b34
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140336b36
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14033746c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140409e10]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1403374c3
cmp word [rdx], r13w
jne 0x1403374c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1403374c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1403375ed
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14033760e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140337501
mov rdx, r9
mov word [rbx], cx
jmp 0x140337528
cmp r9, r8
jae 0x140337538
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1403374e2
jmp 0x1403375ed
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1403375e2
cmp dword [rsp + 0x80], esi
je 0x1403375e2
lea r8, [0x140409e10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1403375ba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14033758a
mov word [rbx], r13w
jmp 0x1403375ea
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140337597
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1403375ea
cmp word [rsp + 0x70], r13w
jne 0x1403375c7
cmp rbx, r14
je 0x140337584
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14033314c
cmp word [rsp + 0x70], r13w
je 0x1403375ed
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140409e10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1403375e7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1403375ed

Function at 0x140338000
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140338020
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14031c2f0
or eax, 0xffffffff
jmp 0x140338022
xor eax, eax
add rsp, 0x28
ret
Function at 0x14033ca0c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14030d680
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14033ca96
cmp byte [rbp - 0x21], r15b
je 0x14033ca91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14033cacc
call fcn.14032b2c8
test eax, eax
jne 0x14033cab8
cmp byte [rbp - 0x21], r15b
je 0x14033cab0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14033cacc
cmp byte [rbp - 0x21], r15b
je 0x14033cac9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14030d71c
test eax, eax
jne 0x14033cb6c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14030d680
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14033cb0b
cmp byte [rbp - 0x21], r15b
je 0x14033cb40
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14033cb40
call fcn.14032b2c8
test eax, eax
jne 0x14033cb2c
cmp byte [rbp - 0x21], r15b
je 0x14033cb25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14033cb40
cmp byte [rbp - 0x21], r15b
je 0x14033cb3d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14030d71c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14033cb6c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14033cb6f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14033cb7d
mov rcx, rdi
call fcn.14032a83c
cmp byte [rbp + 0x3f], r15b
je 0x14033cb8c
mov rcx, qword [rbp + 0x27]
call fcn.14032a83c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14033cbd4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1403f8cc8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14033cc1e
call fcn.14031c2d0
mov dword [rax], send
call fcn.14031c2b0
mov dword [rax], recv
call fcn.14031d2b4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14021c4f0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14033cc29
lea eax, [rbx + 1]
jmp 0x14033cc0b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14033cc09
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14033cc0b
Function at 0x14033e80c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14033314c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14033314c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14033e95c
cmp rax, 0xffffffffffffffff
je 0x14033e95c
xor edi, edi
test rbp, rbp
jle 0x14033e907
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14032cad4
mov rbx, rax
test rax, rax
jne 0x14033e894
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14033e8fd
mov edx, 0x8000
mov ecx, r14d
call fcn.14031db6c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140335c30
cmp eax, 0xffffffff
je 0x14033e8dd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14033e8a4
mov edx, r15d
mov ecx, r14d
call fcn.14031db6c
jmp 0x14033e8fd
cmp byte [rsi + 0x38], dil
je 0x14033e8f4
cmp dword [rsi + 0x34], 5
jne 0x14033e8f4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x14033e8fd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14032a83c
jmp 0x14033e970
jns 0x14033e970
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14033314c
cmp rax, 0xffffffffffffffff
jne 0x14033e928
cmp byte [rsi + 0x30], dil
je 0x14033e970
mov edi, dword [rsi + 0x2c]
jmp 0x14033e970
mov ecx, r14d
call fcn.14033472c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14033e970
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x14033e970
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14033e969
mov eax, dword [rsi + 0x2c]
jmp 0x14033e96e
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14033314c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400038f0
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 0x140003980
jmp 0x14000396f
jae 0x140003a40
cmp r8, 0x201
jae 0x140003980
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400039d8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400039af
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140018940
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 0x140003a01
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140003aa8
mov r8d, r14d
cmp r15, r8
jne 0x140003960
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003acb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000396f
jmp 0x140003980
cmp rsi, r8
jb 0x140003ae5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140004fd0
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 0x140003a91
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001320
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 0x140003a79
jmp 0x140003a91
lea rcx, str.internal_error:_entered_unreachable_code_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400193a0
jmp 0x140003afa
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400197f0
ud2
Function at 0x140009d30
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 [0x140033098]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140009d74
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 0x140009dda
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140009e11
test eax, eax
js 0x140009deb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140009e04
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.140004d70
mov rcx, rax
call fcn.140001a50
mov ecx, 7
int 0x29
ud2
Function at 0x1400168b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001692a
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 0x140016920
cmp r11, r10
ja 0x1400169c3
cmp r10, rdx
ja 0x1400169d7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140016922
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140016900
jmp 0x140016997
ja 0x14001692a
mov r11, r10
cmp rax, r8
jne 0x1400168d2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001699b
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 0x140016970
mov r8, r10
sub ecx, r9d
jns 0x14001698e
jmp 0x14001699d
cmp r10, rdx
je 0x1400169a9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001699d
xor al, 1
cmp r8, rdx
jne 0x140016950
jmp 0x14001699d
xor eax, eax
jmp 0x14001699d
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__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400193a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140019870
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400197f0
ud2

Function at 0x1400183c0
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
call fcn.14019e000
add rsp, 0x28
jmp 0x140014448
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x140026068], rbx
je 0x140014492
cmp rax, rbx
jne 0x1400144a7
mov edi, 1
mov eax, dword [0x140026070]
cmp eax, 1
jne 0x1400144b4
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140014521
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001447b
mov eax, dword [0x140026070]
test eax, eax
jne 0x140014517
mov dword [0x140026070], 1
lea r14, [0x140015550]
lea rbx, [0x140015538]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140014509
test eax, eax
jne 0x14001450d
cmp qword [rbx], 0
je 0x1400144fe
mov rax, qword [rbx]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400144df
test eax, eax
je 0x140014521
mov eax, 0xff
jmp 0x140014674
mov dword [0x140025414], 1
mov eax, dword [0x140026070]
cmp eax, 1
jne 0x140014549
lea rdx, [0x140015530]
lea rcx, [0x140015520]
call sub.msvcrt.dll__initterm
mov dword [0x140026070], 2
test edi, edi
jne 0x140014556
xor eax, eax
xchg qword [0x140026068], rax
cmp qword [0x140026078], 0
je 0x14001458a
lea rcx, [0x140026078]
call fcn.140014b20
test eax, eax
je 0x14001458a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140026078]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x140014616
test cl, cl
je 0x1400145ad
test edi, edi
jne 0x140014616
dec cl
cmp cl, 0x1f
ja 0x1400145c0
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x1400145ad
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001668
mov dword [0x140025410], eax
cmp dword [0x140025430], 0
jne 0x1400145ff
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140025414], 0
jne 0x140014614
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140025410]
jmp 0x140014674
cmp cl, 0x22
jne 0x140014628
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14001463a
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14001459d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret