joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140278060
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x98
mov rax, qword [0x14039b2b0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov eax, dword [rcx + 0x10]
mov rdi, r9
mov r15, qword [rbp + 0x7f]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
test eax, eax
jne 0x1402780ac
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rbx + 0x10]
cmp eax, 1
jne 0x1402780cb
mov rcx, qword [rbx + 8]
mov r9d, edi
mov r8, rsi
mov qword [rsp + 0x20], r15
mov rdx, r14
call sub.ntdll.dll_NtReadVirtualMemory
mov eax, dword [rbx + 0x10]
cmp eax, 2
jne 0x1402781c0
mov eax, dword [rbx]
mov edx, 0x9a4
xor eax, 0x8fea0644
mov dword [rbp - 0x31], 0xf601f600
mov dword [rbp - 1], eax
mov eax, 0xfcb3e314
xor r14, rax
mov dword [rbp - 0x2d], 0xf603f670
mov rax, rdi
mov qword [rbp + 7], r14
xor rax, 0x544becbe
mov dword [rbp - 0x29], 0xf613f624
xor r14d, r14d
mov qword [rbp + 0xf], rax
mov dword [rbp - 9], r14d
mov eax, r14d
mov dword [rbp - 0x25], 0xf615f60b
mov dword [rbp - 0x21], 0xf617f601
mov dword [rbp - 0x1d], 0xf612f617
mov dword [rbp - 0x19], 0xf61bf60d
mov dword [rbp - 0x15], 0xf613
mov byte [rbp - 0x11], 1
movzx ecx, ax
sub cx, dx
xor word [rbp + rax*2 - 0x31], cx
inc rax
cmp rax, 0xf
jb 0x140278142
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rcx, [rbp - 0x31]
xor edx, edx
mov byte [rbp - 0x11], r14b
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402781c0
mov qword [rsp + 0x38], r14
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 1]
mov dword [rsp + 0x28], edi
mov r9d, Ordinal_27
mov edx, 0x22240e
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140278700
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140278560
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x98
mov rax, qword [0x14039b2b0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov eax, dword [rcx + 0x10]
mov rdi, r9
mov r15, qword [rbp + 0x7f]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
test eax, eax
jne 0x1402785ac
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rbx + 0x10]
cmp eax, 1
jne 0x1402785cb
mov rcx, qword [rbx + 8]
mov r9d, edi
mov r8, rsi
mov qword [rsp + 0x20], r15
mov rdx, r14
call sub.ntdll.dll_NtWriteVirtualMemory
mov eax, dword [rbx + 0x10]
cmp eax, 2
jne 0x1402786c0
mov eax, dword [rbx]
mov edx, 0x9a4
xor eax, 0x8fea0644
mov dword [rbp - 0x31], 0xf601f600
mov dword [rbp - 1], eax
mov eax, 0xfcb3e314
xor r14, rax
mov dword [rbp - 0x2d], 0xf603f670
mov rax, rdi
mov qword [rbp + 7], r14
xor rax, 0x544becbe
mov dword [rbp - 0x29], 0xf613f624
xor r14d, r14d
mov qword [rbp + 0xf], rax
mov dword [rbp - 9], r14d
mov eax, r14d
mov dword [rbp - 0x25], 0xf615f60b
mov dword [rbp - 0x21], 0xf617f601
mov dword [rbp - 0x1d], 0xf612f617
mov dword [rbp - 0x19], 0xf61bf60d
mov dword [rbp - 0x15], 0xf613
mov byte [rbp - 0x11], 1
movzx ecx, ax
sub cx, dx
xor word [rbp + rax*2 - 0x31], cx
inc rax
cmp rax, 0xf
jb 0x140278642
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rcx, [rbp - 0x31]
xor edx, edx
mov byte [rbp - 0x11], r14b
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402786c0
mov qword [rsp + 0x38], r14
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 1]
mov dword [rsp + 0x28], edi
mov r9d, Ordinal_27
mov edx, 0x22240a
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140278700
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0xbd0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00bd01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xbd0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xbd006f
add dl, dl
jne 0xbd0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xbd00f6
xor eax, eax
add dl, dl
jne 0xbd00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xbd01ad
add dl, dl
jne 0xbd00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xbd00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xbd007e
mov eax, 1
add dl, dl
jne 0xbd0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xbd00fb
sub eax, ebx
mov ebx, 1
jne 0xbd014c
mov ecx, 1
add dl, dl
jne 0xbd012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbd013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xbd0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xbd007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbd0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbd0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xbd015d
cmp eax, 0x7d00
jae 0xbd019b
cmp eax, 0x500
jb 0xbd0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xbd007e
cmp eax, 0x7f
ja 0xbd019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xbd007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xbd01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xbd007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140016a07
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140029050]
jne 0x140015c6a
rol rcx, 0x10
test cx, 0xffff
jne 0x140015c66
repz ret
ror rcx, 0x10
jmp 0x140016960
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14002a310]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14002a408]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400169e5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14002a310]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140016a07
mov rax, qword [rsp + 0x88]
mov qword [0x14002a408], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002a3a8], rax
mov rax, qword [0x14002a408]
mov qword [0x14002a280], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002a390], rax
mov dword [0x14002a270], 0xc0000409
mov dword [0x14002a274], 1
mov rax, qword [0x140029050]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140029058]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14002a308], eax
mov ecx, 1
call fcn.140019410
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400203c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14002a308], 0
jne 0x140016a8e
mov ecx, 1
call fcn.140019410
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140016b60
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14002a7e0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140018830
test rax, rax
je 0x140016bb4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140016c49
mov ecx, 2
call fcn.140019410
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140016d00
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140016c35
test ebx, ebx
jne 0x140016c35
lea ecx, [rax + 2]
call fcn.140019410
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140017290
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x1400291e0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1400172ce
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1400172b0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1400174b5
mov ecx, 3
call fcn.140019e60
cmp eax, 1
je 0x14001746c
mov ecx, 3
call fcn.140019e60
test eax, eax
jne 0x140017305
cmp dword [0x140029040], 1
je 0x14001746c
cmp edi, 0xfc
je 0x1400174b5
mov qword [rsp + 0x50], rbp
lea rbp, [0x14002a850]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140016430
test eax, eax
je 0x140017349
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140016ac0
lea rdx, [0x14002a869]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14002a96d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140017399
lea r8, str._program_name_unknown_
lea rcx, [0x14002a869]
mov edx, 0x2fb
call fcn.140016430
test eax, eax
je 0x140017399
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140016ac0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14002a869]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1400173e8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14002ab64]
lea r9d, [rax + 3]
lea r8, [0x1400209a4]
sub rdx, rcx
call fcn.140019d40
test eax, eax
je 0x1400173e8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140016ac0
lea r8, [0x1400209a0]
mov edx, 0x314
mov rcx, rbp
call fcn.140019c80
test eax, eax
je 0x140017414
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140016ac0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140019c80
test eax, eax
je 0x140017444
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140016ac0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140019a20
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400174b5
cmp rax, 0xffffffffffffffff
je 0x1400174b5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400174d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140019e60
cmp eax, 1
je 0x140017502
mov ecx, 3
call fcn.140019e60
test eax, eax
jne 0x1400175b6
cmp dword [0x140029040], 1
jne 0x1400175b6
mov qword [rsp + 0x48], rbx
lea rbx, [0x1400291e0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14001752e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140017518
jmp 0x1400175a2
cmp edi, 0x17
jae 0x1400175a2
mov ecx, 3
call fcn.140019e60
cmp eax, 1
je 0x140017559
mov ecx, 3
call fcn.140019e60
test eax, eax
jne 0x1400175a2
cmp dword [0x140029040], 1
jne 0x1400175a2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400175a2
cmp rax, 0xffffffffffffffff
je 0x1400175a2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.140017290
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140017fa0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14002ad7c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x140017ffc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140017fdc
mov dword [0x14002ad7c], 1
jmp 0x14001800f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140017ff6
mov dword [0x14002ad7c], 2
jmp 0x140018079
mov eax, dword [0x14002ad7c]
cmp eax, 1
jne 0x140018070
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001804a
cmp word [rdi], bp
mov rax, rdi
je 0x140018029
add rax, 2
cmp word [rax], bp
jne 0x140018017
add rax, 2
cmp word [rax], bp
jne 0x140018017
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.140018f70
test rax, rax
mov rbx, rax
jne 0x140018051
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14001816b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140015c80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14001816b
cmp eax, 2
je 0x140018079
test eax, eax
jne 0x14001804a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14001804a
cmp byte [rax], bpl
mov rbx, rax
je 0x1400180c8
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14001804a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x140018090
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.140018fe0
test rax, rax
mov r12, rax
jne 0x1400180ed
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14001816b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140018155
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14001817e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140018100
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.1400165b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140018166
Function at 0x140019a20
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140018740
xor ebx, ebx
cmp qword [0x14002b090], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x140019b4c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140019c5f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140019c5f
mov rcx, rax
call fcn.140018670
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002b090], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140018670
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002b098], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140018670
lea rcx, [rsp + 0x98]
mov qword [0x14002b0a0], rax
call fcn.140016f30
test eax, eax
je 0x140019aff
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140016ac0
cmp dword [rsp + 0x98], 2
jne 0x140019b4c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140018670
test rax, rax
mov qword [0x14002b0b0], rax
je 0x140019b4c
lea rdx, [0x140021368]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140018670
mov qword [0x14002b0a8], rax
mov rcx, qword [0x14002b0a8]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140019bf8
cmp qword [0x14002b0b0], rbp
je 0x140019bf8
call fcn.140018830
mov rcx, qword [0x14002b0b0]
mov rsi, rax
call fcn.140018830
test rsi, rsi
mov r12, rax
je 0x140019bf8
test rax, rax
je 0x140019bf8
call rsi
test rax, rax
je 0x140019bc3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140019bc3
test byte [rsp + 0x40], 1
jne 0x140019bf8
lea rcx, [rsp + 0x30]
call fcn.140016f80
test eax, eax
je 0x140019be5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140016ac0
cmp dword [rsp + 0x30], 4
jb 0x140019bf2
bts edi, 0x15
jmp 0x140019c36
bts edi, 0x12
jmp 0x140019c36
mov rcx, qword [0x14002b098]
cmp rcx, rbp
je 0x140019c36
call fcn.140018830
test rax, rax
je 0x140019c36
call rax
test rax, rax
mov rbx, rax
je 0x140019c36
mov rcx, qword [0x14002b0a0]
cmp rcx, rbp
je 0x140019c36
call fcn.140018830
test rax, rax
je 0x140019c36
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14002b090]
call fcn.140018830
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140019c5f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140019c61
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001c7b0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140029050]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14001c7f7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015c50
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14001b150
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015c50
add rsp, 0x38
ret
Function at 0x140003700
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 0x1400037a0
jmp 0x14000378f
jae 0x140003860
cmp r8, 0x201
jae 0x1400037a0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400037f8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400037cf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140017ed0
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 0x140003821
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400038c8
mov r8d, r14d
cmp r15, r8
jne 0x140003780
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400038f5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000378f
jmp 0x1400037a0
cmp rsi, r8
jb 0x14000390f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140004a60
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 0x1400038b1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140001230
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 0x140003899
jmp 0x1400038b1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140018680
jmp 0x140003924
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140018ad0
ud2
Function at 0x140008fa0
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 [0x14001aa28]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140008fe4
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 0x14000904a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140009081
test eax, eax
js 0x14000905b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140009074
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.140004830
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140001ae0
mov ecx, 7
int 0x29
ud2