joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420e60
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
movdqa xmmword [rbp + 0x20], xmm6
mov rbx, rdx
movapd xmm6, xmm2
mov rcx, rbx
mov edx, 0xa
xor r8, r8
call fcn.00406870
movsd xmm0, qword [0x00420f20]
comisd xmm0, xmm6
jbe 0x420e99
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
call fcn.00406720
call fcn.00406630
mov rcx, rax
xor r8, r8
jmp 0x420f01
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov r9, rdx
movsxd r10, r8d
mov r11d, 0xa
mov eax, r9d
cdq
idiv r11d
mov r11, rdx
mov esi, 0xa
mov eax, r9d
cdq
idiv esi
shl eax, 4
add r11b, al
mov byte [rbx + r10], r11b
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov rcx, rax
add r8d, 1
test rcx, rcx
jle 0x420f0c
cmp r8d, 9
jl 0x420eaf
mov rax, rbx
movdqa xmm6, xmmword [rbp + 0x20]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret

Function at 0x424e10
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x424e37
movzx rax, word [rbp + 0x2c]
jmp 0x424e39
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x426470
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00426210
mov ebx, eax
mov rax, qword [0x00494068]
cmp byte [rax], 0
je 0x4265a8
mov rcx, qword [0x00493d28]
call fcn.004067e0
call fcn.00405ac0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00426430]
mov r8d, 1
movsxd r9, esi
call fcn.0040c700
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00426648]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x4265ee
mov rcx, qword [0x00499d68]
call fcn.0040c870
mov rcx, rax
mov rax, qword [0x00493ca0]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00426430]
call fcn.0040c740
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4286f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040a320
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040ed30
mov esi, eax
cmp esi, 0x104
jbe 0x42874d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405780
mov rdi, rax
jmp 0x428751
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040ed30
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x4287a7
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x42878b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x4287b9
mov rcx, rdi
call fcn.004057b0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x455100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x455137
mov rcx, rbp
call fcn.00454ff0
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x455156
mov rcx, rbp
call fcn.00454ff0
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.00454a10
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x45d4f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
cmp qword [0x0049e418], 0
jne 0x45d5a5
xor rcx, rcx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc_1
mov rbx, rax
mov rax, qword [0x0049e410]
mov qword [rbx], rax
lea rcx, [0x0048f670]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.00405b50
lea rax, [0x0045d4b0]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.0045d4e0
mov dword [rsi + 1], eax
mov rax, qword [0x0049e418]
mov qword [rsi + 5], rax
mov qword [0x0049e418], rsi
add rsi, 0x15
mov rax, rbx
neg rax
lea rax, [rsi + rax]
cmp rax, 0xfed
jl 0x45d563
mov qword [0x0049e410], rbx
mov rax, qword [0x0049e418]
mov rsi, qword [0x0049e418]
mov rcx, qword [rsi + 5]
mov qword [0x0049e418], rcx
lea rdi, [rsi + 5]
lea rsi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x46c030
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x0049e4e0]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00405b50
mov dword [0x0049e428], 0xb7e15163
mov ebx, 1
lea rax, [0x0049e428]
movsxd rcx, ebx
lea rdx, [0x0049e424]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x46c063
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x0049e428]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.0046be80
mov r13d, eax
lea rax, [0x0049e428]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.0046be80
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x46c09f
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x471570
Capabilities:
Set registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov rbx, rdx
mov rsi, r8
mov rdi, r9
call fcn.0040af20
mov rcx, rdi
mov rdx, rax
xor r8, r8
lea r9, [0x00471648]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
jne 0x47161c
xor rdi, rdi
test rsi, rsi
je 0x4715da
mov edi, dword [rsi - 4]
mov rcx, rbx
call fcn.0040af20
mov rbx, rax
mov rcx, rsi
call fcn.0040af20
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rax
add edi, 1
add edi, edi
mov dword [rsp + 0x28], edi
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
mov rcx, qword [rbp + 0x58]
call sub.advapi32.dll_RegCloseKey_1
test edi, edi
je 0x47163d
mov rcx, qword [0x0046e2c8]
mov dl, 1
mov r8, qword [0x00493d58]
call fcn.00426810
mov rcx, rax
call fcn.00408d50
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x471650
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040af20
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
add rsp, 0x20
pop rbx
ret

Function at 0x4741c0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
xor rbx, rbx
call sub.kernel32.dll_GetCommandLineW_1
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
xor rdx, rdx
xor r8, r8
call fcn.00474030
jmp 0x4741e7
add ebx, 1
lea rcx, [rsp + 0x28]
xor rdx, rdx
xor r8, r8
call fcn.00474030
test al, al
jne 0x4741e4
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x479e70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov edi, ecx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x479ecf
lea rcx, [rbp + 0x30]
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 1
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x479ebd
lea rcx, [rbp + 0x30]
call sub.user32.dll_TranslateMessage
lea rcx, [rbp + 0x30]
call sub.user32.dll_DispatchMessageW
mov ecx, 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
sub ebx, esi
cmp ebx, edi
jl 0x479e8d
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140004630
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
mov r8d, 0x100
mov eax, 1
cmp rdx, 0x40
jb 0x140004732
test cl, 3
je 0x140004657
mov r8d, 0x400
jmp 0x140004732
movzx r9d, word [rcx]
cmp r9d, 0x5a4d
jne 0x14000472c
mov r9d, dword [rcx + 0x3c]
test r9b, 3
jne 0x14000464c
cmp r9d, 0x1000000
jbe 0x140004686
mov r8d, 0x700
jmp 0x140004732
lea r11, [r9 + 0x88]
cmp r11, rdx
ja 0x140004732
cmp dword [rcx + r9], 0x4550
jne 0x14000472c
movzx esi, word [rcx + r9 + 0x18]
cmp esi, 0x20b
je 0x1400046ba
cmp esi, 0x10b
jne 0x14000472c
mov edi, dword [rcx + r9 + 0x54]
cmp rdi, rdx
ja 0x140004732
mov r10d, dword [rcx + r9 + 0x50]
cmp edi, r10d
ja 0x14000467b
movzx esi, si
cmp esi, 0x20b
jne 0x140004738
mov esi, dword [rcx + r9 + 0x84]
cmp esi, 0x10
mov edi, 0x10
cmovb edi, esi
shl edi, 3
add r11, rdi
cmp r11, rdx
ja 0x140004732
movzx r11d, word [rcx + r9 + 6]
cmp r11, 0x60
ja 0x14000467b
lea r11, [r11 + r11*4]
lea r11, [r9 + r11*8]
movzx ecx, word [rcx + r9 + 0x14]
add rcx, r11
add rcx, 0x18
cmp rcx, rdx
ja 0x140004732
shl r10, 0x20
xor eax, eax
mov r8, r10
jmp 0x140004732
mov r8d, 0x500
or rax, r8
pop rdi
pop rsi
ret
mov r8d, 0x600
jmp 0x140004732
Function at 0x140004bd0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 4], 0
mov qword [rbp - 0x30], rdx
mov r14, qword [rdx]
mov edi, 8
lea r15, [rbp - 4]
xor ebx, ebx
xor esi, esi
jmp 0x140004c2d
mov r13, r12
mov qword [rbp - 0x18], r13
mov rbx, r13
mov esi, r12d
lea r8d, [rbx*8]
mov dword [rsp + 0x20], 3
mov rcx, r14
mov rdx, rdi
mov r9, r15
call sub.PSAPI.DLL_EnumProcessModulesEx
test eax, eax
je 0x140004ccc
mov r12d, dword [rbp - 4]
cmp r12d, esi
jbe 0x140004d28
mov rsi, r12
sub rsi, rbx
jbe 0x140004c20
mov rax, qword [rbp - 0x20]
sub rax, rbx
mov r13, rbx
cmp rax, rsi
jae 0x140004c8a
lea rcx, [rbp - 0x28]
mov rdx, rbx
mov r8, rsi
call fcn.14002f9a0
mov rdi, qword [rbp - 0x28]
mov r13, qword [rbp - 0x18]
lea rcx, [rdi + r13*8]
cmp rsi, 2
jb 0x140004cbd
mov r8, rbx
not r8
add r8, r12
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [r12 + r13]
sub rax, rbx
lea rcx, [rdi + rax*8]
add rcx, 0xfffffffffffffff8
add r13, rsi
dec r13
mov qword [rcx], 0
inc r13
jmp 0x140004c23
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 8], rax
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rcx + 0x10], xmm0
mov rax, qword [rbp - 0x38]
mov qword [rcx + 0x20], rax
mov qword [rcx], 0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x140004d13
shl rdx, 3
mov r8d, 8
mov rcx, rdi
call fcn.1400040d0
mov rax, qword [rbp - 0x10]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r14d, r12d
shr r14d, 3
cmp rbx, r14
jb 0x140004df8
cmp r12d, 8
jae 0x140004d4a
mov eax, 8
xor ecx, ecx
jmp 0x140004dcf
mov r15, r14
shl r15, 4
movzx eax, byte [0x1400771b1]
mov edx, 8
mov rcx, r15
call fcn.1400040c0
test rax, rax
je 0x140004e0c
cmp r14d, 1
jne 0x140004d7c
xor ecx, ecx
mov r10, qword [rbp - 0x30]
jmp 0x140004db5
mov edx, r14d
and edx, 0xfffffffe
lea r8, [rax + 0x18]
xor ecx, ecx
mov r10, qword [rbp - 0x30]
nop dword [rax]
mov r9, qword [rdi + rcx*8]
mov qword [r8 - 0x18], r10
mov qword [r8 - 0x10], r9
mov r9, qword [rdi + rcx*8 + 8]
mov qword [r8 - 8], r10
mov qword [r8], r9
add rcx, 2
add r8, 0x20
cmp rdx, rcx
jne 0x140004d90
test r14b, 1
je 0x140004dcc
mov rdx, qword [rdi + rcx*8]
shl rcx, 4
mov qword [rax + rcx], r10
mov qword [rax + rcx + 8], rdx
mov rcx, r14
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], rcx
mov qword [rdx], 4
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x140004d01
jmp 0x140004d13
lea r8, str.C:UsersAnonymous.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinproc_0.6.4_srcprocessmod.rsh
mov rcx, r14
mov rdx, rbx
call fcn.140030930
jmp 0x140004e19
mov ecx, 8
mov rdx, r15
call fcn.140030340
ud2
Function at 0x1400077d0
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 0x140007860
jmp 0x14000784f
jae 0x140007920
cmp r8, 0x201
jae 0x140007860
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400078b8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000788f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14002fbe0
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 0x1400078e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140007988
mov r8d, r14d
cmp r15, r8
jne 0x140007840
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400079ab
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000784f
jmp 0x140007860
cmp rsi, r8
jb 0x1400079c5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140008ea0
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 0x140007971
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400040d0
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 0x140007959
jmp 0x140007971
lea rcx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400304e0
jmp 0x1400079da
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140030930
ud2
Function at 0x140007a30
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14000ea10
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x140007bb6
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140007af0
jmp 0x140007adf
jae 0x140007bc8
cmp r8, 0x201
jae 0x140007af0
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x140007b48
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x140007b1f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.14002fbe0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140007b77
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140007c9b
mov r8d, esi
cmp r12, r8
jne 0x140007ad0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140007cc5
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140007adf
jmp 0x140007af0
lea rcx, [rbp - 0x58]
call fcn.1400058d0
mov byte [rsi + 0x18], 2
jmp 0x140007c5a
cmp r15, r8
jb 0x140007cdf
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.140008ea0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140007c19
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.1400040d0
cmp byte [rbp + 0x3d8], 2
jne 0x140007c71
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.1400058d0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x140007c5a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1400040d0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x140007c45
jmp 0x140007c5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140007c01
jmp 0x140007c19
lea rcx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400304e0
jmp 0x140007cf4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140030930
ud2
Function at 0x14000d0c0
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 [0x14006aa40]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000d104
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 0x14000d16a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000d1a1
test eax, eax
js 0x14000d17b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000d194
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.140008c70
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140005a70
mov ecx, 7
int 0x29
ud2
Function at 0x14001bb80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001bbfa
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 0x14001bbf0
cmp r11, r10
ja 0x14001bc93
cmp r10, rdx
ja 0x14001bca7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001bbf2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001bbd0
jmp 0x14001bc67
ja 0x14001bbfa
mov r11, r10
cmp rax, r8
jne 0x14001bba2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001bc6b
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 0x14001bc40
mov r8, r10
sub ecx, r9d
jns 0x14001bc5e
jmp 0x14001bc6d
cmp r10, rdx
je 0x14001bc79
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001bc6d
xor al, 1
cmp r8, rdx
jne 0x14001bc20
jmp 0x14001bc6d
xor eax, eax
jmp 0x14001bc6d
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.1400304e0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400309b0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140030930
ud2