joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014d150
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x170
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
call fcn.1401617b0
mov rcx, qword [rdi + 0xa0]
xor r9d, r9d
lea edx, [r9 + 0xe]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
add eax, 1
movsxd rbx, eax
lea rcx, [rbx + rbx]
call fcn.1400be650
mov rcx, qword [rdi + 0xa0]
mov r8, rbx
mov r9, rax
mov edx, recv
mov rsi, rax
mov qword [rsp + 0x38], rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x28]
mov rbx, rsi
xor esi, esi
test rcx, rcx
mov edx, esi
mov qword [rsp + 0x28], rsi
mov r12, rsi
mov dword [rsp + 0x20], edx
je 0x14014d1f6
call fcn.1400be6d0
mov edx, esi
lea rbp, [rdi + 0x40]
mov r15, rsi
mov ecx, 0x100
mov qword [rsp + 0x1a8], r14
nop
nop
movzx eax, word [rbx]
mov r13, rbx
test ax, ax
je 0x14014d23e
nop
nop
cmp ax, 0xd
jne 0x14014d231
cmp word [rbx + 2], 0xa
je 0x14014d2ca
mov ax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x14014d220
mov rdi, rbx
sub rdi, r13
sar rdi, 1
cmp esi, edx
jl 0x14014d295
lea esi, [rdx + rdx]
test esi, esi
cmove esi, ecx
movsxd rcx, esi
imul rcx, rcx, 0xd0
call fcn.1400be650
movsxd r8, dword [rsp + 0x20]
mov rdx, r12
mov rcx, rax
mov r14, rax
imul r8, r8, 0xd0
call fcn.140193220
test r12, r12
je 0x14014d289
mov rcx, r12
call fcn.1400be6d0
mov dword [rsp + 0x20], esi
mov rsi, qword [rsp + 0x28]
mov r12, r14
lea rcx, [rsp + 0x40]
mov r8d, edi
mov rdx, r13
call fcn.1401627d0
mov eax, dword [rsp + 0x40]
mov dword [r15 + r12 + 0x10], eax
mov edx, dword [rsp + 0x40]
add edx, 1
cmp edx, 0x100
jle 0x14014d2dc
mov rcx, rbp
call fcn.1400d35c0
mov rcx, rax
jmp 0x14014d301
mov rdi, rbx
sub rdi, r13
sar rdi, 1
add rbx, 4
jmp 0x14014d247
mov rax, qword [rbp + 0x10]
movsxd rdi, edx
lea rcx, [rdi + rax]
cmp rcx, qword [rbp + 0x18]
jb 0x14014d2f5
mov rcx, rbp
call fcn.1400d34f0
mov rcx, qword [rbp + 0x10]
lea rax, [rcx + rdi]
mov qword [rbp + 0x10], rax
mov qword [r15 + r12 + 8], rcx
movsxd r8, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
call fcn.140193220
mov rax, qword [r15 + r12 + 8]
movsxd r11, dword [rsp + 0x40]
mov edx, dword [rsp + 0x20]
add esi, 1
mov byte [r11 + rax], 0
add r15, 0x20
cmp word [rbx], 0
mov qword [rsp + 0x28], rsi
mov ecx, 0x100
jne 0x14014d210
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x28], r12
mov dword [rax + 0x30], esi
call fcn.1400be6d0
lea rcx, [rsp + 0x40]
call fcn.140001150
mov r14, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401931f0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14014d7b0
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x5b8
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov qword [r11 + 0x20], rbp
mov rdi, rcx
mov qword [r11 - 0x18], rsi
lea rcx, [r11 - 0x248]
mov rbp, r8
mov rsi, rdx
call fcn.1401617b0
lea rcx, [rsp + 0x380]
mov rdx, rsi
call fcn.140167a80
test rbp, rbp
je 0x14014d906
lea rcx, [rsp + 0x160]
call fcn.1401617b0
lea rcx, [rsp + 0x40]
call fcn.1401617b0
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [rsp + 0x164]
add eax, 1
cmp eax, ebx
jle 0x14014d857
lea rcx, [rsp + 0x160]
mov edx, eax
call fcn.1401677d0
mov ebx, dword [rsp + 0x164]
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rsp + 0x168]
lea r8d, [rbx + 1]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
mov rcx, rax
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x34]
mov r11d, dword [rsp + 0x30]
mov rcx, rax
sub r11d, eax
mov rax, qword [rsp + 0x168]
lea r9, [rax + rcx*2]
lea rdx, str._s_T_s
lea rcx, [rsp + 0x40]
mov r8, rsi
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r11d
call fcn.140162e20
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x380]
call fcn.140167a80
lea rcx, [rsp + 0x40]
call fcn.140001150
lea rcx, [rsp + 0x160]
call fcn.140001150
jmp 0x14014d916
lea rcx, [rsp + 0x380]
mov rdx, rsi
call fcn.140167a80
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9, qword [rsp + 0x388]
mov edx, 0xc2
mov rcx, rax
mov r8d, 1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, qword [rsp + 0x5b0]
test rbp, rbp
mov rbp, qword [rsp + 0x5e8]
je 0x14014d9dc
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
mov rcx, rax
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11d, dword [rsp + 0x30]
mov rcx, qword [rdi + 0x10]
add r11d, 0xffffffff
mov edx, 0x3ea
mov dword [rsp + 0x30], r11d
mov ebx, r11d
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9, rbx
xor r8d, r8d
mov edx, 0xb1
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x10]
mov ebx, dword [rsp + 0x30]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9, rbx
mov r8, rbx
mov rcx, rax
mov edx, 0xb1
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x380]
call fcn.140001150
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.1401931f0
add rsp, 0x5b8
pop rdi
pop rbx
ret
Function at 0x14014da20
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x5b8
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov qword [r11 + 0x20], rbp
mov rdi, rcx
mov qword [r11 - 0x18], rsi
lea rcx, [r11 - 0x248]
mov rsi, r8
mov rbp, rdx
call fcn.1401617b0
test rsi, rsi
je 0x14014db66
lea rcx, [rsp + 0x160]
call fcn.1401617b0
lea rcx, [rsp + 0x40]
call fcn.1401617b0
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [rsp + 0x164]
add eax, 1
cmp eax, ebx
jle 0x14014dab7
lea rcx, [rsp + 0x160]
mov edx, eax
call fcn.1401677d0
mov ebx, dword [rsp + 0x164]
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rsp + 0x168]
lea r8d, [rbx + 1]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
mov rcx, rax
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x34]
mov r11d, dword [rsp + 0x30]
mov rcx, rax
sub r11d, eax
mov rax, qword [rsp + 0x168]
lea r9, [rax + rcx*2]
lea rdx, str._s_T_s
lea rcx, [rsp + 0x40]
mov r8, rbp
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r11d
call fcn.140162e20
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x380]
call fcn.140167a80
lea rcx, [rsp + 0x40]
call fcn.140001150
lea rcx, [rsp + 0x160]
call fcn.140001150
jmp 0x14014db76
lea rcx, [rsp + 0x380]
mov rdx, rbp
call fcn.140167a80
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9, qword [rsp + 0x388]
mov edx, 0xc2
mov rcx, rax
mov r8d, 1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, qword [rsp + 0x5e8]
test rsi, rsi
mov rsi, qword [rsp + 0x5b0]
je 0x14014dc3c
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
mov rcx, rax
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11d, dword [rsp + 0x30]
mov rcx, qword [rdi + 0x10]
add r11d, 0xffffffff
mov edx, 0x3ef
mov dword [rsp + 0x30], r11d
mov ebx, r11d
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9, rbx
xor r8d, r8d
mov edx, 0xb1
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x10]
mov ebx, dword [rsp + 0x30]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9, rbx
mov r8, rbx
mov rcx, rax
mov edx, 0xb1
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x380]
call fcn.140001150
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.1401931f0
add rsp, 0x5b8
pop rdi
pop rbx
ret
Function at 0x140164090
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov esi, r8d
mov ebx, edx
call fcn.1401617b0
mov r9d, dword [rsp + 0x24]
mov r8, qword [rsp + 0x28]
mov edx, esi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140164128
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140164172
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140164172
mov r9d, dword [rsp + 0x24]
cmp eax, r9d
jle 0x140164115
lea rcx, [rsp + 0x20]
mov edx, eax
call fcn.1401677d0
mov r9d, dword [rsp + 0x24]
mov r8, qword [rsp + 0x28]
mov edx, esi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1401640d7
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140159570
mov dword [rdi], eax
lea ebx, [rax + 1]
mov eax, dword [rdi + 4]
cmp ebx, eax
jle 0x1401641b7
cmp eax, 0x104
jle 0x140164151
mov rcx, qword [rdi + 8]
call fcn.1400be6d0
cmp ebx, 0x104
jle 0x1401641a8
add ebx, 0xffff
and ebx, 0xffff0000
movsxd rcx, ebx
call fcn.1400be650
mov dword [rdi + 4], ebx
jmp 0x1401641b3
mov eax, dword [rdi + 4]
cmp eax, 1
jge 0x140164199
cmp eax, 0x104
jle 0x14016418a
mov rcx, qword [rdi + 8]
call fcn.1400be6d0
lea rax, [rdi + 0x10]
mov dword [rdi + 4], 0x104
mov qword [rdi + 8], rax
mov rax, qword [rdi + 8]
mov byte [rax], 0
mov dword [rdi], 0
jmp 0x1401641c3
lea rax, [rdi + 0x10]
mov dword [rdi + 4], 0x104
mov qword [rdi + 8], rax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140158700
lea rcx, [rsp + 0x20]
call fcn.140001150
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401931f0
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401647c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rbx, rcx
xor edi, edi
lea edx, [rdi + 1]
mov rcx, rax
call fcn.1400c4490
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1401648ad
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1400c6610
test eax, eax
je 0x1401648a4
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14016486f
lea rcx, [rax + 1]
test rcx, rcx
je 0x1401648a4
mov edx, 0x80000000
cmp rcx, rdx
jge 0x1401648a4
lea edx, [rax + 1]
mov rcx, rbx
call fcn.140161830
test eax, eax
je 0x1401648a4
mov rax, qword [rsp + 0x58]
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x50]
mov r8d, eax
mov rcx, rsi
mov dword [rbx], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401648a4
movsxd rax, dword [rbx]
cmp dword [rsp + 0x50], eax
jne 0x1401648a4
mov rcx, rax
mov rax, qword [rbx + 8]
mov byte [rcx + rax], dil
jmp 0x14016489f
mov eax, dword [rbx + 4]
cmp eax, 1
jge 0x140164896
cmp eax, 0x104
jle 0x140164887
mov rcx, qword [rbx + 8]
call fcn.1400be6d0
lea rax, [rbx + 0x10]
mov dword [rbx + 4], 0x104
mov qword [rbx + 8], rax
mov rax, qword [rbx + 8]
mov byte [rax], dil
mov dword [rbx], edi
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14016a650
Capabilities:
Encode data using xor

Disassembly:
movzx r9d, byte [rcx + 0x5c]
xor edx, edx
mov r8, rcx
cmp dword [rcx + 0x60], edx
jle 0x14016a69a
movzx r10d, r9b
lea r11, [0x1401f1590]
nop
nop
mov ecx, dword [r8 + 0x288]
add edx, 1
mov rax, rcx
shl ecx, 8
shr rax, 0x18
xor rax, r10
mov eax, dword [r11 + rax*4]
xor eax, ecx
mov dword [r8 + 0x288], eax
cmp edx, dword [r8 + 0x60]
jl 0x14016a670
mov eax, dword [r8 + 0x5c]
mov byte [rax + r8 + 0x80], 1
movsxd rdx, dword [r8 + 0x60]
mov ecx, edx
sub ecx, 1
je 0x14016a745
sub ecx, 1
je 0x14016a734
cmp ecx, 1
je 0x14016a723
mov byte [rdx + r8 + 0x7c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movzx edx, byte [r8 + 0x60]
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
sub dl, 4
mov byte [rcx + rax], dl
add dword [r8 + 0x6c], 1
ret
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
ret
Function at 0x140193830
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
test r8, r8
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x14019387c
call fcn.1401950a0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], socket
call fcn.1401953a0
xor eax, eax
jmp 0x140193922
mov qword [rsp + 0x50], rdi
call fcn.1400c7c70
mov edx, 0x2d8
mov ecx, 1
call fcn.1401951d0
test rax, rax
mov rdi, rax
je 0x140193908
call fcn.140194580
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.140194360
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
test rcx, rcx
lea r8, [rsp + 0x60]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x140193790]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14019391d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140193a10
test ebx, ebx
je 0x14019391b
mov ecx, ebx
call fcn.1401950d0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret
Function at 0x140193ff7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1401f22c8]
jne 0x14019320a
rol rcx, 0x10
test cx, 0xffff
jne 0x140193206
repz ret
ror rcx, 0x10
jmp 0x140193f50
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1401f3bf0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1401f3ce8]
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 0x140193fd5
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, [0x1401f3bf0]
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 0x140193ff7
mov rax, qword [rsp + 0x88]
mov qword [0x1401f3ce8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1401f3c88], rax
mov rax, qword [0x1401f3ce8]
mov qword [0x1401f3b60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1401f3c70], rax
mov dword [0x1401f3b50], 0xc0000409
mov dword [0x1401f3b54], 1
mov rax, qword [0x1401f22c8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1401f22d0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1401f3be8], eax
mov ecx, 1
call fcn.140197520
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1401d0070]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1401f3be8], 0
jne 0x14019407e
mov ecx, 1
call fcn.140197520
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 0x1401953a0
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 [0x1401f4130]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140194260
test rax, rax
je 0x1401953f4
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 0x140195489
mov ecx, 2
call fcn.140197520
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140193570
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 0x140195475
test ebx, ebx
jne 0x140195475
lea ecx, [rax + 2]
call fcn.140197520
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 0x1401954b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x1401f2520]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1401954ee
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1401954d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1401956d5
mov ecx, 3
call fcn.140198520
cmp eax, 1
je 0x14019568c
mov ecx, 3
call fcn.140198520
test eax, eax
jne 0x140195525
cmp dword [0x1401f22e0], 1
je 0x14019568c
cmp edi, 0xfc
je 0x1401956d5
mov qword [rsp + 0x50], rbp
lea rbp, [0x1401f4140]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140198470
test eax, eax
je 0x140195569
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140195300
lea rdx, [0x1401f4159]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x1401f425d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1401955b9
lea r8, str._program_name_unknown_
lea rcx, [0x1401f4159]
mov edx, 0x2fb
call fcn.140198470
test eax, eax
je 0x1401955b9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140195300
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x1401f4159]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140195608
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x1401f4454]
lea r9d, [rax + 3]
lea r8, [0x1401b9364]
sub rdx, rcx
call fcn.140198350
test eax, eax
je 0x140195608
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140195300
lea r8, [0x1401d0680]
mov edx, 0x314
mov rcx, rbp
call fcn.140198290
test eax, eax
je 0x140195634
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140195300
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140198290
test eax, eax
je 0x140195664
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140195300
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140198030
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 0x1401956d5
cmp rax, 0xffffffffffffffff
je 0x1401956d5
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 0x1401956f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140198520
cmp eax, 1
je 0x140195722
mov ecx, 3
call fcn.140198520
test eax, eax
jne 0x1401957d6
cmp dword [0x1401f22e0], 1
jne 0x1401957d6
mov qword [rsp + 0x48], rbx
lea rbx, [0x1401f2520]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14019574e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140195738
jmp 0x1401957c2
cmp edi, 0x17
jae 0x1401957c2
mov ecx, 3
call fcn.140198520
cmp eax, 1
je 0x140195779
mov ecx, 3
call fcn.140198520
test eax, eax
jne 0x1401957c2
cmp dword [0x1401f22e0], 1
jne 0x1401957c2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1401957c2
cmp rax, 0xffffffffffffffff
je 0x1401957c2
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.1401954b0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140196ee0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x1401f45c8]
test eax, eax
jne 0x140196f33
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140196f13
mov dword [0x1401f45c8], 1
jmp 0x140196f4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140196f2d
mov dword [0x1401f45c8], 2
jmp 0x140197029
mov eax, dword [0x1401f45c8]
cmp eax, 1
jne 0x140197020
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140197073
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x140196f75
add rbx, 2
cmp word [rbx], 0
jne 0x140196f61
add rbx, 2
cmp word [rbx], 0
jne 0x140196f61
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x140197013
mov rcx, rbp
call fcn.140195160
test rax, rax
mov rsi, rax
je 0x140197013
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140196fed
mov rcx, rsi
call fcn.140193a10
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140196ff9
cmp eax, 2
je 0x140197029
test eax, eax
jne 0x140197073
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x140197073
cmp byte [rax], 0
je 0x140197052
nop
add rax, 1
cmp byte [rax], 0
jne 0x140197040
add rax, 1
cmp byte [rax], 0
jne 0x140197040
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.140195160
test rax, rax
mov rdi, rax
jne 0x140197085
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140193220
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret