joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180083480
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov rax, qword [rcx]
mov r11, rcx
mov r10d, edx
movsxd rcx, dword [rax + 0x10]
sub r10d, dword [r11 + 0x14]
mov eax, ecx
mov rbx, rcx
imul eax, edx
movsxd r9, eax
add r9, qword [r11 + 0x20]
cmp dword [r11 + 0x10], 0xfe
jge 0x180083510
nop
mov rcx, qword [r11 + 8]
mov eax, r10d
dec r8d
cdq
inc r10d
idiv dword [rcx + 0x14]
movsxd rcx, dword [rcx + 0x10]
movsxd rax, edx
imul rcx, rax
mov rax, qword [r11 + 0x28]
movzx edx, byte [rcx + rax]
mov eax, dword [r11 + 0x10]
mov ecx, 0x100
inc eax
imul edx, eax
movzx eax, byte [r9]
shr edx, 8
sub ecx, edx
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [r9], cl
add r9, rbx
test r8d, r8d
jg 0x1800834b0
mov rbx, qword [rsp + 8]
ret
mov rcx, qword [r11 + 8]
mov eax, r10d
dec r8d
cdq
inc r10d
idiv dword [rcx + 0x14]
movsxd rcx, dword [rcx + 0x10]
movsxd rax, edx
imul rcx, rax
mov rax, qword [r11 + 0x28]
movzx edx, byte [rcx + rax]
movzx eax, byte [r9]
mov ecx, 0x100
sub ecx, edx
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [r9], cl
add r9, rbx
test r8d, r8d
jg 0x180083510
mov rbx, qword [rsp + 8]
ret

Function at 0x18008a8d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx edi, byte [rcx]
mov rsi, rcx
mov ebx, edx
lea eax, [rdi + 1]
movsxd rcx, eax
call fcn.18009f808
mov r10, rax
cmp dil, 1
jb 0x18008a92d
mov r11, rax
xor r9d, r9d
lea r8, [rsi + 1]
sub r11, rsi
movzx edx, dil
nop dword [rax]
lea eax, [rbx + r9]
movzx ebx, byte [r8]
add r9b, 0x4f
xor al, byte [r8]
lea r8, [r8 + 1]
mov byte [r11 + r8 - 2], al
dec rdx
jne 0x18008a910
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
mov byte [rax + r10], 0
mov rax, r10
add rsp, 0x20
pop rdi
ret
Function at 0x180099640
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rbp
movzx r15d, r9b
cmp byte [rax + 0x130], 0
mov esi, r8d
mov r14, rdx
mov rbx, rcx
je 0x1800996e4
test byte [0x1804235cc], 0x70
mov ebp, 1
jne 0x1800996e6
mov qword [rsp + 0x50], rdi
call fcn.1800459a0
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
lea ecx, [rbp + 1]
mov edi, 0
shr eax, 0xf
test bpl, al
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovne edi, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test bpl, al
je 0x1800996b4
or edi, 0x20
mov ecx, 4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test bpl, al
je 0x1800996ca
or edi, 0x40
mov eax, dword [0x1804236f0]
and eax, 0xffffff8f
or eax, edi
mov rdi, qword [rsp + 0x50]
mov dword [0x1804236f0], eax
test al, 0x70
jne 0x1800996e6
xor ebp, ebp
mov rcx, qword [rbx + 0x20]
mov byte [rbx + 0x48], bpl
call fcn.180098280
mov rbp, qword [rsp + 0x48]
test al, al
jne 0x180099740
mov rcx, qword [rbx + 0x20]
mov eax, dword [rcx + 0x18c]
add eax, 0xa
cmp esi, eax
jbe 0x1800997de
mov byte [0x180421c0c], 1
mov rax, qword [rcx + 0xc8]
xor edx, edx
test rax, rax
je 0x1800997be
mov rcx, rax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rsi
jmp fcn.1800978f0
test r15b, r15b
je 0x1800997d4
mov rcx, qword [rbx + 0x20]
mov eax, dword [rcx + 0x188]
add eax, 0xfa
cmp esi, eax
jbe 0x1800997d4
cmp byte [rbx + 0x48], 0
jne 0x1800997d4
cmp byte [rsp + 0x60], 0
jne 0x1800997d4
mov eax, dword [r14]
lea rdx, [rsp + 0x40]
mov r8b, 1
mov dword [rsp + 0x40], eax
mov eax, dword [r14 + 4]
mov dword [rsp + 0x44], eax
call fcn.18016db70
mov rcx, qword [rbx + 0x20]
test al, al
je 0x1800997a0
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rsi
jmp fcn.180098fd0
cmp byte [rcx + 0x130], 0
jne 0x1800997b2
cmp byte [rcx + 0x132], 0
jne 0x1800997de
cmp byte [rsp + 0x68], 0
jne 0x1800997de
jmp 0x180099718
xor r8d, r8d
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rsi
jmp fcn.1800977c0
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x18c], esi
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x1800a9e50
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1804219e0], eax
call fcn.1800b7a40
mov rcx, rbx
call fcn.1800a9e70
cmp dword [0x1804219e0], 0
jne 0x1800b087e
mov ecx, 1
call fcn.1800b7a40
mov ecx, 0xc0000409
add rsp, 0x20
pop rbx
jmp 0x1800a9e50
Function at 0x1800bc150
Capabilities:
Enumerate gui resources

Disassembly:
mov r11, rsp
push rbx
push rbp
push rdi
sub rsp, 0x80
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov rbx, qword [rcx]
mov qword [r11 + 8], rbx
lea rcx, [rbx - 0x10]
lea rbp, [0x1802bccb0]
cmp rcx, rbp
je 0x1800bc189
mov eax, 1
lock xadd dword [rcx], eax
mov rbx, qword [r11 + 8]
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
lea rdx, [rsp + 0x48]
lea rcx, [0x1800bc620]
call qword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [rsp + 0x58]
dec eax
movsxd rdi, eax
js 0x1800bc285
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x60], 0xc403
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rbx]
inc rbx
test al, al
jns 0x1800bc201
movzx eax, byte [rbx]
and al, 0xc0
cmp al, 0x80
jne 0x1800bc205
inc rbx
movzx eax, byte [rbx]
and al, 0xc0
cmp al, 0x80
je 0x1800bc1f3
jmp 0x1800bc205
test eax, eax
je 0x1800bc20a
inc rcx
jmp 0x1800bc1e0
lea eax, [rcx*4 + 4]
mov dword [rsp + 0x68], eax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa8]
call fcn.180016e40
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x1f40
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x60]
mov r8, qword [0x180421b50]
mov edx, 0x4a
mov rcx, qword [rax + rdi*8]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rbx, qword [rsp + 0xa0]
dec rdi
jns 0x1800bc1d0
mov rcx, qword [rsp + 0x48]
call fcn.1800a09c8
nop
lea rcx, [rbx - 0x10]
cmp rcx, rbp
je 0x1800bc2ac
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800bc2ac
call fcn.1800a0c6c
add rsp, 0x80
pop rdi
pop rbp
pop rbx
ret

Function at 0x1800bd0f0
Capabilities:
Send data
Send data on socket

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x40], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x1800bd15b
cmp byte [rax + 0x11], 0
jne 0x1800bd156
cmp byte [rax + 0x10], 0
je 0x1800bd156
movsxd rcx, dword [rax + 0xc]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
jmp 0x1800bd179
or ebx, 0xffffffff
jmp 0x1800bd179
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1800bd177
mov r9d, dword [rbx + 0x58]
mov r8d, esi
mov rdx, rbp
call fcn.1800eaef0
mov ebx, eax
jmp 0x1800bd179
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800beb00
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [0x1802bcc1c]
mov rbx, rcx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x40], rax
lea rax, [0x1802bcc20]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rax
call fcn.18000ab20
lea rdx, [rsp + 0x40]
mov rcx, qword [rax]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
call fcn.18000aa60
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x40], rax
call fcn.18001a640
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x1800bfc30
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x10], 0
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x1800bfc5d
mov byte [rcx + 0x10], 1
mov rcx, qword [rcx + 8]
xor edx, edx
call fcn.180013be0
mov rbx, qword [rbx + 8]
mov dword [rsp + 0x30], 0
cmp byte [rbx + 0xa0], 0
jne 0x1800bfcb4
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1800bfcb4
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [rsp + 0x30]
add qword [rbx + 0x98], rcx
mov eax, ecx
test ecx, ecx
jne 0x1800bfcb6
mov byte [rbx + 0xa0], 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800bfcd0
Capabilities:
Get http content length

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x10], 0
mov rbx, rcx
jne 0x1800bfcee
mov byte [rcx + 0x10], 1
mov rcx, qword [rcx + 8]
xor edx, edx
call fcn.180013be0
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x78]
test rcx, rcx
je 0x1800bfd3a
xor eax, eax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x48]
mov edx, 0x20000005
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1800bfd3a
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
or rax, 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret
Function at 0x1800c0030
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov r8b, 1
lea rdx, [rbp + 0x38]
call fcn.1800c1430
nop
mov rbx, qword [rbp + 0x38]
mov qword [rbp + 0x48], rbx
mov edx, 0x40
lea rcx, [rbp + 0x48]
call fcn.180019df0
or rsi, 0xffffffffffffffff
lea r15, [0x1802bccb0]
test eax, eax
js 0x1800c00db
mov qword [rbp - 0x20], rbx
lea edx, [rsi + 0x3b]
lea rcx, [rbp - 0x20]
call fcn.180019df0
test eax, eax
jns 0x1800c00db
lea r8, [rbp + 0x38]
lea rdx, str.mailto:
lea rcx, [rbp - 0x40]
call fcn.1800ec3a0
mov rcx, rbx
mov rbx, qword [rax]
mov qword [rbp + 0x38], rbx
mov qword [rax], rcx
mov rcx, qword [rbp - 0x40]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x1800c00db
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, esi
jne 0x1800c00d7
call fcn.1800a0c6c
mov rbx, qword [rbp + 0x38]
lea rax, [0x1802bccc0]
mov qword [rbp + 0x40], rax
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.180016d90
mov r14, qword [rax]
cmp byte [rbx], 0
jne 0x1800c0104
lea rdi, [0x1802bcf68]
jmp 0x1800c0163
mov qword [rbp - 0x28], rbx
lea rcx, [rbp - 0x28]
call fcn.18001b380
mov rdi, rsi
inc rdi
cmp byte [rbx + rdi], 0
jne 0x1800c0114
add rdi, 4
mov ecx, 0xfffffffc
and rdi, rcx
mov qword [rbp - 0x30], rbx
lea r8, [rax + 3]
add r8, rdi
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 8]
call fcn.180012500
mov rbx, qword [rax]
mov qword [rbp + 0x38], rbx
movsxd rdi, edi
add rdi, rbx
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x50], rbx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x48]
call fcn.18001c460
mov qword [rbp - 0x38], rdi
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], 0
mov r9, r14
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
seta dil
mov rax, qword [rbp + 0x40]
lea rcx, [rax - 0x10]
cmp rcx, r15
je 0x1800c01b3
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800c01af
call fcn.1800a0c6c
mov rbx, qword [rbp + 0x38]
lea rcx, [rbx - 0x10]
cmp rcx, r15
je 0x1800c01cd
lock xadd dword [rcx], esi
lea edx, [rsi - 1]
cmp edx, 0xffffffff
jne 0x1800c01cd
call fcn.1800a0c6c
movzx eax, dil
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800c2690
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x230
xor eax, eax
mov rbx, rcx
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x1fe
mov dword [rsp + 0x20], eax
mov word [rsp + 0x30], ax
call fcn.1800a7360
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x240], 0xff
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov r8d, dword [rsp + 0x240]
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x248]
mov rcx, rbx
mov qword [rsp + 0x248], rax
call fcn.18001a9f0
mov rax, rbx
add rsp, 0x230
pop rbx
ret
Function at 0x1800c27d0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
lea rdx, [rsp + 0x30]
lea rcx, [0x1802c0b88]
mov dword [rsp + 0x30], 0
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x1800c2888
mov ecx, edi
call fcn.1800a0a4c
mov edx, dword [rsp + 0x30]
lea rcx, [0x1802c0b88]
mov r9, rax
mov r8d, edi
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1800c2880
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [0x1802c0934]
mov rcx, rbx
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1800c2880
test edi, edi
je 0x1800c2880
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1800c2880
cmp dword [rax], 0xfeef04bd
jne 0x1800c2880
mov edi, dword [rax + 8]
mov rcx, rbx
call fcn.1800a09c8
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.1800a09c8
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1800c28a0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [rcx]
mov qword [rsp + 0x40], rax
lea rcx, [rax - 0x10]
lea rbx, [0x1802bccb0]
cmp rcx, rbx
je 0x1800c28d0
mov eax, 1
lock xadd dword [rcx], eax
lea r8, [0x1802c0924]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1800eb4b0
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
cmp rcx, rbx
je 0x1800c291f
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800c291f
call fcn.1800a0c6c
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x180421b30]
test rcx, rcx
je 0x1800d09c3
mov rax, qword [rcx]
jmp qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rdx
jmp 0x1800c28a0

Function at 0x1800c3020
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x440
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x30]
mov ecx, 0x204
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x458], rax
lea rdx, [rsp + 0x458]
lea rcx, [rsp + 0x450]
call fcn.18001a640
nop
lea rdx, [rsp + 0x450]
mov rcx, rbx
call fcn.1800e7430
nop
mov rcx, qword [rsp + 0x450]
add rcx, 0xfffffffffffffff0
lea rax, [0x1802bccb0]
cmp rcx, rax
je 0x1800c30af
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800c30af
call fcn.1800a0c6c
mov rax, rbx
add rsp, 0x440
pop rbx
ret
Function at 0x1800c3290
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xd8
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rbx, rdx
xor esi, esi
mov dword [rsp + 0x40], esi
mov rax, qword [rcx]
mov qword [rsp + 0x100], rax
lea rcx, [rax - 0x10]
lea rbp, [0x1802bccb0]
cmp rcx, rbp
je 0x1800c32d2
mov eax, 1
lock xadd dword [rcx], eax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x108]
call fcn.1800c3fe0
nop
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.180016d90
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8d, [r9 + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
sete dil
mov rcx, qword [rsp + 0x108]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x1800c334a
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800c334a
call fcn.1800a0c6c
test dil, dil
je 0x1800c3354
mov word [rsp + 0x50], si
lea rax, [rsp + 0x50]
mov qword [rsp + 0x110], rax
lea rdx, [rsp + 0x110]
mov rcx, rbx
call fcn.18001a640
mov rax, rbx
add rsp, 0xd8
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1800c34a0
Capabilities:
Clear file content

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
cmp qword [rcx + 0x18], 0
jne 0x1800c34f4
mov rax, qword [rcx + 0x20]
mov qword [rdx], rax
mov qword [rsp + 0x68], rax
lea rcx, [rax - 0x10]
lea rbx, [0x1802bccb0]
cmp rcx, rbx
je 0x1800c35a5
mov eax, 1
lock xadd dword [rcx], eax
jmp 0x1800c35a5
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1800c351c
lea rcx, [rsp + 0x60]
call fcn.18000bdd0
mov rdx, rax
mov ecx, 2
jmp 0x1800c352e
lea rcx, [rsp + 0x50]
call fcn.1800c3cf0
mov rdx, rax
mov ecx, 4
mov rax, qword [rdx]
mov qword [rdi], rax
lea rax, [0x1802bccc0]
mov qword [rdx], rax
or ecx, 1
mov dword [rsp + 0x20], ecx
or esi, 0xffffffff
lea rbx, [0x1802bccb0]
test cl, 4
je 0x1800c3581
and ecx, 0xfffffffb
mov dword [rsp + 0x20], ecx
mov rdx, qword [rsp + 0x50]
add rdx, 0xfffffffffffffff0
cmp rdx, rbx
je 0x1800c3581
mov eax, esi
lock xadd dword [rdx], eax
dec eax
cmp eax, esi
jne 0x1800c357d
mov rcx, rdx
call fcn.1800a0c6c
mov ecx, dword [rsp + 0x20]
test cl, 2
je 0x1800c35a5
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff0
cmp rcx, rbx
je 0x1800c35a5
lock xadd dword [rcx], esi
lea eax, [rsi - 1]
cmp eax, 0xffffffff
jne 0x1800c35a5
call fcn.1800a0c6c
mov rax, rdi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800c3630
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
xor eax, eax
test rcx, rcx
je 0x1800c36a0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800c369c
lea rcx, [rsp + 0x58]
call fcn.1800c3cf0
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rax]
mov qword [rbx + 0x20], rdx
mov qword [rax], rcx
mov rcx, qword [rsp + 0x58]
lea rax, [0x1802bccb0]
add rcx, 0xfffffffffffffff0
cmp rcx, rax
je 0x1800c369c
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800c369c
call fcn.1800a0c6c
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret

Function at 0x1800c37c0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
xor eax, eax
test rcx, rcx
je 0x1800c3830
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800c382c
lea rcx, [rsp + 0x58]
call fcn.1800c3cf0
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rax]
mov qword [rbx + 0x20], rdx
mov qword [rax], rcx
mov rcx, qword [rsp + 0x58]
lea rax, [0x1802bccb0]
add rcx, 0xfffffffffffffff0
cmp rcx, rax
je 0x1800c382c
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800c382c
call fcn.1800a0c6c
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret

Function at 0x1800c39c0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov rdx, r8
lea rcx, [rsp + 0x68]
call fcn.180016d90
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1800c3a10
lea rcx, [rsp + 0x58]
call fcn.18000bdd0
mov rdx, rax
mov ecx, 1
jmp 0x1800c3a22
lea rcx, [rsp + 0x50]
call fcn.1800c3cf0
mov rdx, rax
mov ecx, 2
mov rax, qword [rdx]
mov qword [rbx], rax
lea rax, [0x1802bccc0]
mov qword [rdx], rax
or ecx, 4
mov dword [rsp + 0x20], ecx
or edi, 0xffffffff
lea rsi, [0x1802bccb0]
test cl, 2
je 0x1800c3a75
and ecx, 0xfffffffd
mov dword [rsp + 0x20], ecx
mov rdx, qword [rsp + 0x50]
add rdx, 0xfffffffffffffff0
cmp rdx, rsi
je 0x1800c3a75
mov eax, edi
lock xadd dword [rdx], eax
dec eax
cmp eax, edi
jne 0x1800c3a71
mov rcx, rdx
call fcn.1800a0c6c
mov ecx, dword [rsp + 0x20]
test cl, 1
je 0x1800c3a99
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1800c3a99
lock xadd dword [rcx], edi
lea eax, [rdi - 1]
cmp eax, 0xffffffff
jne 0x1800c3a99
call fcn.1800a0c6c
mov rax, rbx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800c3b60
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
cmp byte [rax], 0
je 0x1800c3bfb
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800c3bfb
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1800c3bd5
cmp eax, 0xffffffff
je 0x1800c3bd5
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ecx, ecx
test eax, eax
setne cl
movzx eax, cl
add rsp, 0x20
pop rbx
ret
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
test eax, eax
setne cl
movzx eax, cl
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1800c3c70
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
cmp byte [rax], 0
je 0x1800c3c9d
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1800c3c9d
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x1800c3e80
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x440
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, edx
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1800c3f15
lea rax, [rsp + 0x30]
mov qword [rsp + 0x468], rax
lea rdx, [rsp + 0x468]
lea rcx, [rsp + 0x460]
call fcn.18001a640
nop
lea rdx, [rsp + 0x460]
mov rcx, rbx
call fcn.1800e7430
nop
mov rcx, qword [rsp + 0x460]
add rcx, 0xfffffffffffffff0
lea rax, [0x1802bccb0]
cmp rcx, rax
je 0x1800c3f1f
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800c3f1f
call fcn.1800a0c6c
jmp 0x1800c3f1f
lea rax, [0x1802bccc0]
mov qword [rbx], rax
mov rax, rbx
add rsp, 0x440
pop rbx
ret

Function at 0x1800c3f40
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rax, qword [rcx]
mov qword [rsp + 0x40], rax
lea rcx, [rax - 0x10]
lea rdi, [0x1802bccb0]
cmp rcx, rdi
je 0x1800c3f75
mov eax, 1
lock xadd dword [rcx], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1800c3fe0
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x1800c3fc0
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
cmp edx, 0xffffffff
jne 0x1800c3fc0
call fcn.1800a0c6c
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret