joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bfbb2
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400e0c00
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x8e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3f8]
mov rax, qword [0x14029f068]
xor rax, rbp
mov qword [rbp + 0x3a8], rax
lea rcx, [0x1402bc18c]
call fcn.1400c35eb
mov edx, dword [rbp + 0x3d8]
lea rcx, [rbp + 0x1c8]
call fcn.1400be18b
mov qword [rbp + 0x338], rax
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x340], rax
mov rax, qword [rbp + 0x340]
mov qword [rbp + 0x348], rax
lea rdx, [0x140254840]
lea rcx, [rbp + 0x208]
call fcn.1400bfd01
mov qword [rbp + 0x350], rax
mov rax, qword [rbp + 0x350]
mov qword [rbp + 0x358], rax
mov r8, qword [rbp + 0x358]
lea rdx, [0x14025484c]
lea rcx, [rbp + 0x248]
call fcn.1400bf284
mov qword [rbp + 0x360], rax
mov rax, qword [rbp + 0x360]
mov qword [rbp + 0x368], rax
lea r8, [0x14025483c]
mov rdx, qword [rbp + 0x368]
lea rcx, [rbp + 0x288]
call fcn.1400c12af
mov qword [rbp + 0x370], rax
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x378], rax
mov rax, qword [rbp + 0x378]
mov qword [rbp + 0x380], rax
mov r8, qword [rbp + 0x348]
mov rdx, qword [rbp + 0x380]
lea rcx, [rbp + 0x2c8]
call fcn.1400c170f
mov qword [rbp + 0x388], rax
mov rax, qword [rbp + 0x388]
mov qword [rbp + 0x390], rax
lea r8, [0x140254830]
mov rdx, qword [rbp + 0x390]
lea rcx, [rbp + 0x308]
call fcn.1400c12af
mov qword [rbp + 0x398], rax
mov rax, qword [rbp + 0x398]
mov qword [rbp + 0x3a0], rax
mov r8, qword [rbp + 0x3e0]
mov rdx, qword [rbp + 0x3a0]
lea rcx, [rbp + 8]
call fcn.1400c3b27
nop
lea rcx, [rbp + 0x308]
call fcn.1400c2961
nop
lea rcx, [rbp + 0x2c8]
call fcn.1400c2961
nop
lea rcx, [rbp + 0x288]
call fcn.1400c2961
nop
lea rcx, [rbp + 0x248]
call fcn.1400c2961
nop
lea rcx, [rbp + 0x208]
call fcn.1400c2961
nop
lea rcx, [rbp + 0x1c8]
call fcn.1400c2961
lea rdx, [rbp + 8]
lea rcx, [0x1402a1ad0]
call fcn.1400c108e
mov qword [rbp + 0x338], rax
lea rdx, [0x1400c09a9]
mov rcx, qword [rbp + 0x338]
call fcn.1400c239e
lea rcx, [rbp + 8]
call fcn.1400bfd6f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rcx, [rbp + 8]
call fcn.1400c2961
lea rcx, [rbp - 0x20]
lea rdx, [0x140253c70]
call fcn.1400c271d
mov rcx, qword [rbp + 0x3a8]
xor rcx, rbp
call fcn.1400c096d
lea rsp, [rbp + 0x3b8]
pop rdi
pop rbp
ret
Function at 0x1400c0661
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401ddc50
mov rax, rcx
neg rcx
test rax, 7
je 0x1401ddc6d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401ddcc8
test al, 7
jne 0x1401ddc60
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401ddc81
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401ddcf2
test dh, dh
je 0x1401ddcec
shr rdx, 0x10
test dl, dl
je 0x1401ddce6
test dh, dh
je 0x1401ddce0
shr rdx, 0x10
test dl, dl
je 0x1401ddcda
test dh, dh
je 0x1401ddcd4
shr edx, 0x10
test dl, dl
je 0x1401ddcce
test dh, dh
jne 0x1401ddc81
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400c069d
Capabilities:
Query environment variable

Disassembly:
jmp 0x14021e3c0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14021df40
lea rcx, [rsp + 0x20]
call fcn.14021df90
movzx eax, al
test eax, eax
jne 0x14021e405
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14021df70
mov rax, qword [rsp + 0x40]
jmp 0x14021e4ff
lea rcx, [rsp + 0x20]
call fcn.14021e090
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14021e030
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400c0a62
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400bffd6
lea rcx, [rsp + 0x28]
call fcn.1400c0f62
movzx eax, al
test eax, eax
jne 0x14021e49f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400c24c5
lea rcx, [rsp + 0x20]
call fcn.14021df70
mov rax, qword [rsp + 0x50]
jmp 0x14021e4ff
lea rcx, [rsp + 0x20]
call fcn.14021e090
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400c34f1
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400c0990
lea rcx, [rsp + 0x28]
call fcn.1400c3ec9
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400c24c5
lea rcx, [rsp + 0x20]
call fcn.14021df70
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400c0c10
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14016f7b0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14016f130
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016f7ef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402bd020]
jmp 0x14016f7f9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400c0e8b
Capabilities:
Query environment variable

Disassembly:
jmp 0x14021e110
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14021df40
lea rcx, [rsp + 0x40]
call fcn.14021e0c0
movzx eax, al
test eax, eax
jne 0x14021e158
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14021df70
mov rax, qword [rsp + 0x70]
jmp 0x14021e329
lea rcx, [rsp + 0x40]
call fcn.14021e090
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14021e030
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14021e090
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400c20b5
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14021e1fe
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14021df70
mov rax, qword [rsp + 0x80]
jmp 0x14021e329
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400c0a62
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400c080f
lea rcx, [rsp + 0x48]
call fcn.1400c01f2
movzx eax, al
test eax, eax
jne 0x14021e265
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400bed52
lea rcx, [rsp + 0x40]
call fcn.14021df70
mov rax, qword [rsp + 0x88]
jmp 0x14021e329
lea rcx, [rsp + 0x48]
call fcn.1400c1390
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14021e090
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400c20b5
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14021e2fb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400bed52
lea rcx, [rsp + 0x40]
call fcn.14021df70
mov rax, qword [rsp + 0xa0]
jmp 0x14021e329
lea rcx, [rsp + 0x48]
call fcn.1400c07c4
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400bed52
lea rcx, [rsp + 0x40]
call fcn.14021df70
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400c0ea4
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14016f6e0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14016f0b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016f721
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402bd020]
jmp 0x14016f727
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400c0f71
Capabilities:
Get geographical location

Disassembly:
jmp 0x1402011b0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1402000e0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140201217
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402bd030]
jmp 0x140201239
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400c016b
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400c0f8f
Capabilities:
Terminate process

Disassembly:
jmp 0x14014c540
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400c132c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14022b470
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14029f068]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14022b496
jmp 0x14022b513
mov rcx, qword [rbp + 0x30]
call fcn.1400c0661
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14022b4af
jmp 0x14022b513
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14022b4cc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400bef87
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400bf5db
test eax, eax
jne 0x14022b513
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400c096d
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400c1791
Capabilities:
Set environment variable

Disassembly:
jmp 0x140220270
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x1400c1aed
Capabilities:
Parse pe header

Disassembly:
jmp 0x14014df80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14014dfa0
xor al, al
jmp 0x14014e021
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14014dfb3
xor al, al
jmp 0x14014e021
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14014dfdd
xor al, al
jmp 0x14014e021
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14014dff1
xor al, al
jmp 0x14014e021
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14014e003
xor al, al
jmp 0x14014e021
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14014e01f
xor al, al
jmp 0x14014e021
mov al, 1
add rsp, 0x38
ret
Function at 0x1400c2399
Capabilities:
Terminate process

Disassembly:
jmp 0x140170780
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401707ae
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400c2fab
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400c3032
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401fe800
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400c31b3
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14016f820
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14016f170
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016f869
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402bd020]
jmp 0x14016f878
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400c32d0
Capabilities:
Set environment variable

Disassembly:
jmp 0x140239730
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400bff86
lea rcx, [rsp + 0x48]
call fcn.1400bff86
call fcn.1400c0e04
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400bfc52
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14023979f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400c04ef
lea rcx, [rsp + 0x78]
call fcn.1400c04ef
mov eax, dword [rsp + 0x24]
jmp 0x140239830
call fcn.1400c0e04
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400bfc52
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1402397e6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400c04ef
lea rcx, [rsp + 0x78]
call fcn.1400c04ef
mov eax, dword [rsp + 0x2c]
jmp 0x140239830
lea rcx, [rsp + 0x48]
call fcn.1400bfea5
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400bfea5
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400c04ef
lea rcx, [rsp + 0x78]
call fcn.1400c04ef
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14020f5a0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400bef87
sub rsp, rax
mov rax, qword [0x14029f068]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402a3d60]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14020f792
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14020f6e6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14020f6e6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14020f6cb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14020f668
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14020f752
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14020f7b1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14020f78d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14020f7b1
jmp 0x14020f63e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c096d
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14020f860
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400bef87
sub rsp, rax
mov rax, qword [0x14029f068]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402a3d60]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14020fa6d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14020f9b9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14020f9b9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14020f999
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14020f928
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14020fa2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14020fa8c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14020fa68
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14020fa8c
jmp 0x14020f8fe
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c096d
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140009530
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 0x1400095c0
jmp 0x1400095af
jae 0x140009680
cmp r8, 0x201
jae 0x1400095c0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140009618
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400095ef
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140029bf0
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 0x140009641
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400096e8
mov r8d, r14d
cmp r15, r8
jne 0x1400095a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000970b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400095af
jmp 0x1400095c0
cmp rsi, r8
jb 0x140009725
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000b3a0
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 0x1400096d1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400024c0
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 0x1400096b9
jmp 0x1400096d1
lea rcx, str.internal_error:_entered_unreachable_codeX
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002a7e0
jmp 0x14000973a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14002ac30
ud2