joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801216b8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x28]
xor ebx, ebx
cmp dword [rdi - 0x10], ebx
je 0x180121730
mov rsi, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
call fcn.18002005c
mov rcx, rax
test rax, rax
je 0x180121707
mov rax, qword [rax]
mov rax, qword [rax + 0xe8]
call qword [case.0x18004530e.0]
test rax, rax
je 0x180121707
mov rcx, qword [rax + 0x40]
jmp 0x18012170a
mov rcx, rbx
mov dword [rsp + 0x28], 1
mov r9, rbp
mov r8, rdi
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setae bl
mov eax, ebx
jmp 0x180121732
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18012a638
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1802671fc], 0
mov ebx, ecx
je 0x18012a6d5
cmp dword [0x1802677c8], 0xfffffffe
jne 0x18012a6c2
cmp ecx, 0xffffffff
je 0x18012a6d5
lea rcx, [0x1802740f8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x180274120], 0
jne 0x18012a6db
xor r8d, r8d
lea rcx, [0x18012a6e4]
xor edx, edx
call fcn.1801ac95c
mov rcx, rax
mov qword [0x180274120], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x18012a6a7
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x1802677c8], ebx
jmp 0x18012a6af
and qword [0x180274120], 0
lea rcx, [0x1802740f8]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x1802677c8], ebx
cmp ebx, 0xffffffff
jne 0x18012a6d5
and qword [0x180274120], 0
add rsp, 0x20
pop rbx
ret
call fcn.1800212f8
int3
Function at 0x18012cb10
Capabilities:
Log keystrokes via polling

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, 0x20
cmp dword [rdx + 8], 0x100
mov rbp, rdx
mov rbx, rcx
jne 0x18012cc00
xor edx, edx
call fcn.18007a7d4
mov rcx, rbx
test rax, rax
je 0x18012cb58
mov rdx, rbp
call fcn.180064908
jmp 0x18012cc0b
call fcn.18007864c
cmp dword [rbx + 0x1394], 0
mov esi, eax
je 0x18012cb6e
sub esi, dword [rbx + 0x1388]
mov r14d, dword [rbx + 0x1138]
test r14d, r14d
js 0x18012cc00
cmp r14d, esi
jge 0x18012cc00
mov edi, dword [rbp + 0x10]
cmp edi, 9
jne 0x18012cba1
lea ecx, [rdi + 7]
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, al
btc edi, 7
shr edi, 6
or edi, 0x25
mov rcx, rbx
call fcn.18002eb04
bt eax, 0x16
jae 0x18012cbc1
cmp edi, 0x25
je 0x18012cc43
cmp edi, 0x27
je 0x18012cc99
sub edi, 0xd
je 0x18012ccdf
sub edi, 0xe
je 0x18012ccad
sub edi, 0xa
je 0x18012cc99
sub edi, 2
je 0x18012cc43
mov rcx, rbx
cmp edi, 1
je 0x18012cc26
mov rax, qword [rbx]
mov edx, dword [rbp + 0x10]
mov rax, qword [rax + 0x728]
call qword [case.0x18004530e.0]
test eax, eax
jne 0x18012cc3c
mov rdx, rbp
mov rcx, rbx
call fcn.18007e828
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov edx, dword [rbx + 0x1138]
call fcn.180078694
mov rdx, rax
mov rcx, rbx
call fcn.18007fc90
mov eax, 1
jmp 0x18012cc0b
inc dword [rbx + 0x1138]
cmp dword [rbx + 0x1138], esi
jl 0x18012cc58
and dword [rbx + 0x1138], 0
mov edx, r14d
mov rcx, rbx
call fcn.18007bc48
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.18007bc48
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x1138]
mov rax, qword [rax + 0x4b8]
call qword [case.0x18004530e.0]
jmp 0x18012cc00
sub dword [rbx + 0x1138], 1
jns 0x18012cc58
lea eax, [rsi - 1]
mov dword [rbx + 0x1138], eax
jmp 0x18012cc58
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x6c0]
call qword [case.0x18004530e.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x6c8]
call qword [case.0x18004530e.0]
and dword [0x180274128], 0
jmp 0x18012cc00
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.180078694
mov rdx, rax
mov rcx, rbx
call fcn.18007fc90
test eax, eax
jne 0x18012cc3c
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.180078694
mov rdx, rax
mov rcx, rbx
call fcn.18007a758
jmp 0x18012cc3c
Function at 0x180142d54
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1801b4994
test eax, eax
jne 0x180142db8
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.18002fc10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180142d78
jmp 0x180142dca
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180143068
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x180143129
mov ebx, 0x811c9dc5
xor esi, esi
mov rcx, rdx
call fcn.1801b5ddc
mov r8, rax
mov eax, 0xcccccccd
mul r8d
shr edx, 3
inc edx
test r8d, r8d
je 0x1801430cc
movzx ecx, word [rdi + rsi*2]
imul ebx, ebx, 0x1000193
xor ebx, ecx
add esi, edx
cmp esi, r8d
jb 0x1801430b9
mov dword [r14], ebx
xor edx, edx
mov eax, ebx
div dword [rbp + 0x10]
mov dword [r15], edx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x180143109
mov rbx, qword [rbx + rdx*8]
jmp 0x180143104
mov eax, dword [r14]
cmp dword [rbx + 8], eax
jne 0x180143101
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.1801b5bd8
nop
test eax, eax
je 0x180143124
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1801430e8
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rax, rbx
jmp 0x18014310b
call fcn.1800212f8
int3
Function at 0x18014b558
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
cmp dword [rdx + 8], 0x100
jne 0x18014b68e
mov ebx, dword [rdx + 0x10]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x18014b68e
cmp ebx, 0x43
je 0x18014b5a6
cmp ebx, 0x2d
jne 0x18014b68e
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18014b68e
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop
call fcn.1800224f0
mov rcx, rax
test rax, rax
je 0x18014b6ad
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x18004530e.0]
add rax, 0x18
mov qword [rsp + 0x48], rax
movzx eax, byte [rsi + 0x196]
movzx r9d, byte [rsi + 0x195]
movzx r8d, byte [rsi + 0x194]
mov dword [rsp + 0x20], eax
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x48]
call fcn.1800231c8
mov rbx, qword [rsp + 0x48]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
test rax, rax
je 0x18014b666
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x18014b666
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbp
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18014b68e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x18004530e.0]
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp method.CDialogEx.virtual_536
mov ecx, 0x80004005
call fcn.18001eba4
int3
Function at 0x18016cad0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov esi, edx
mov rdi, rcx
xor ebp, ebp
cmp edx, 0x79
jne 0x18016cafe
lea ecx, [rdx - 0x69]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x18016cb03
cmp esi, 0x5d
jne 0x18016cb28
or eax, 0xffffffff
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov r8, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, rdi
call fcn.18016d8e8
mov eax, 1
jmp 0x18016cbca
mov edx, esi
mov rcx, qword [rdi + 0x1558]
call fcn.180168ecc
test eax, eax
jne 0x18016cb1e
cmp qword [rdi + 0x1560], rbp
je 0x18016cb84
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.180083900
mov ebx, eax
mov dword [rsp + 0x28], eax
mov dword [0x180273dac], ebp
mov rcx, qword [rdi + 0x1560]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1b8]
mov edx, esi
call qword [case.0x18004530e.0]
nop
mov dword [0x180273dac], ebx
jmp 0x18016cbca
cmp qword [rdi + 0x1580], rbp
je 0x18016cbc8
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.180083900
mov ebx, eax
mov dword [rsp + 0x28], eax
mov dword [0x180273dac], ebp
mov rcx, qword [rdi + 0x1580]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1d0]
mov edx, esi
call qword [case.0x18004530e.0]
nop
jmp 0x18016cb7c
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1801959b4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx + 8], 0x100
mov rdi, rdx
mov rbx, rcx
jne 0x180195ac2
cmp qword [rdx + 0x10], 9
je 0x1801959f8
cmp qword [rdx + 0x10], 0x1b
jne 0x180195a4c
call fcn.180026f8c
test rax, rax
je 0x180195a4c
mov rcx, rbx
call fcn.180026f8c
jmp 0x180195a3a
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.180026770
test rax, rax
je 0x180195a4c
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.180026770
mov rdx, qword [rbx + 0x40]
xor r8d, r8d
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov rcx, rax
call fcn.180026770
mov rcx, rax
call fcn.18002efc0
mov eax, 1
jmp 0x180195acd
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.180026770
cmp rax, rbx
jne 0x180195ac2
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x180195ac2
mov rax, qword [rdi + 0x10]
cmp rax, 0x2e
je 0x180195abb
cmp rax, 0x43
je 0x180195ab4
cmp rax, 0x56
je 0x180195a9d
cmp rax, 0x58
je 0x180195a96
cmp rax, 0x5a
jne 0x180195ac2
lea edx, [rax + 0x6d]
jmp 0x180195aa2
mov edx, 0x300
jmp 0x180195aa2
mov edx, 0x302
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x180195a42
mov edx, 0x301
jmp 0x180195aa2
mov edx, 0x303
jmp 0x180195aa2
mov rdx, rdi
mov rcx, rbx
call fcn.1800454a8
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1801acce8
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1801acce8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1801acd57
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801acd57
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801acd57
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801acd57
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801acd57
cmp dword [rcx + 0x84], 0xe
jbe 0x1801acd57
cmp dword [rcx + 0xf8], 0
je 0x1801acd57
mov ecx, ebx
call fcn.1801acc20
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1801ace7c
nop
cmp dword [rbp + 0x20], 0
je 0x1801acda5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1801accb4
int3
Function at 0x1801b3f18
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180021190
sub rsp, rax
mov rax, qword [0x1802667c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1801add30
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1801b3f67
mov rax, rbp
jmp 0x1801b406f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x274b50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1801c1560
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x274b50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1801b406b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801b406b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1801c1560
test rax, rax
js 0x1801b406b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1801b406b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1801b405d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1801b405d
cmp byte [rcx], 0xd
jne 0x1801b4043
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1801b4052
cmp byte [rcx + 1], 0xa
jne 0x1801b4052
inc rcx
jmp 0x1801b4052
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x268ba0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1801b4025
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1801b406f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18001ca10
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1801b6420
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1801b6448
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1801b6448
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1801c196c
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 0x1801c199c
xor eax, eax
jmp 0x1801c1a5f
mov rbp, rbx
cmp word [rax], si
je 0x1801c19c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1801c19a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1801c19a4
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.1801b9ad4
movsxd r14, eax
test eax, eax
jne 0x1801c19ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1801c1995
mov rcx, r14
call fcn.1801b99e4
mov rdi, rax
test rax, rax
jne 0x1801c1a18
xor ecx, ecx
call fcn.1801b99a8
jmp 0x1801c19f4
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.1801b9ad4
test eax, eax
jne 0x1801c1a49
mov rcx, rdi
call fcn.1801b99a8
jmp 0x1801c1a53
xor ecx, ecx
call fcn.1801b99a8
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 0x1801c1a7c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1801c1b03
mov rsi, rbx
cmp word [rax], bp
je 0x1801c1ac2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1801c1aac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1801c1aa8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1801b99e4
mov rdi, rax
test rax, rax
je 0x1801c1af0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1801ce220
mov rbp, rdi
xor ecx, ecx
call fcn.1801b99a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1801c4314
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1801c432a
mov al, 1
jmp 0x1801c438a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1801c433b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1801c4388
mov ecx, dword [rcx + 0x18]
nop
call fcn.1801ae294
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801c4388
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1801c4388
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1801c4388
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1801c438a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1801c4cc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180274b50]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1801c4d17
cmp word [rdx], r13w
jne 0x1801c4d17
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801c4d1c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801c4e41
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1801c4e62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801c4d55
mov rdx, r9
mov word [rbx], cx
jmp 0x1801c4d7c
cmp r9, r8
jae 0x1801c4d8c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1801c4d36
jmp 0x1801c4e41
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801c4e36
cmp dword [rsp + 0x80], esi
je 0x1801c4e36
lea r8, [0x180274b50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801c4e0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1801c4dde
mov word [rbx], r13w
jmp 0x1801c4e3e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1801c4deb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801c4e3e
cmp word [rsp + 0x70], r13w
jne 0x1801c4e1b
cmp rbx, r14
je 0x1801c4dd8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1801c14bc
cmp word [rsp + 0x70], r13w
je 0x1801c4e41
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180274b50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801c4e3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801c4e41
Function at 0x1801c93ec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1801b9c14
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1801c948d
cmp ebx, dword [rsp + 0x30]
je 0x1801c9486
test esi, esi
je 0x1801c9486
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1801c9461
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1801c946e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1801c944b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1801c9472
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1801c948f
mov eax, 1
jmp 0x1801c948f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1801cd960
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1801c14bc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1801c14bc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1801cdab0
cmp rax, 0xffffffffffffffff
je 0x1801cdab0
xor edi, edi
test rbp, rbp
jle 0x1801cda5b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1801bd4ec
mov rbx, rax
test rax, rax
jne 0x1801cd9e8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1801cda51
mov edx, 0x8000
mov ecx, r14d
call fcn.1801cd7e4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1801c3484
cmp eax, 0xffffffff
je 0x1801cda31
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1801cd9f8
mov edx, r15d
mov ecx, r14d
call fcn.1801cd7e4
jmp 0x1801cda51
cmp byte [rsi + 0x38], dil
je 0x1801cda48
cmp dword [rsi + 0x34], 5
jne 0x1801cda48
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1801cda51
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1801b99a8
jmp 0x1801cdac4
jns 0x1801cdac4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1801c14bc
cmp rax, 0xffffffffffffffff
jne 0x1801cda7c
cmp byte [rsi + 0x30], dil
je 0x1801cdac4
mov edi, dword [rsi + 0x2c]
jmp 0x1801cdac4
mov ecx, r14d
call fcn.1801ae294
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1801cdac4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1801cdac4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1801cdabd
mov eax, dword [rsi + 0x2c]
jmp 0x1801cdac2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1801c14bc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret