joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fbde0
Capabilities:
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
add edx, 0xffffeffe
mov rbx, rcx
cmp edx, 7
ja case.0x1400fbe0c.4103
movsxd rax, edx
lea rcx, [0x140000000]
mov edx, dword [rcx + rax*4 + 0xfbe84]
add rdx, rcx
jmp rdx
mov rcx, rbx
call fcn.1400fe870
mov rcx, rbx
call fcn.1400fca00
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400fc8d0
mov rcx, rbx
call fcn.1400fe870
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400fca00
mov rcx, rbx
call fcn.1400fe870
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400fc970
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400faf90
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400fe730
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400fe6a0
add rsp, 0x20
pop rbx
ret

Function at 0x1400fca00
Capabilities:
Open clipboard

Disassembly:
sub rsp, 0x28
cmp dword [rcx + 0x1f4], 0
jne 0x1400fca5c
lea rdx, [rsp + 0x30]
call fcn.1400f9480
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0
je 0x1400fca37
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400fca37
lea rcx, [rsp + 0x30]
call fcn.1400e7200
mov rcx, qword [rsp + 0x30]
lea rax, [0x1402901c8]
add rcx, 0xfffffffffffffff0
cmp rcx, rax
je 0x1400fca5c
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x1400fca5c
call fcn.1400bd658
add rsp, 0x28
ret
Function at 0x14013d200
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rbx, rdx
mov rdi, rcx
mov byte [rcx + 0x1be], 0
lea rdx, [rsp + 0x38]
add rcx, 0xffffffffffffff28
call fcn.140161d00
mov r8b, 1
mov rdx, rax
lea rcx, [rdi - 0xd8]
call fcn.14015c220
cmp dword [rbx + 0x10], 0
jbe 0x14013d254
mov rdx, qword [rbx]
jmp 0x14013d25b
lea rdx, [0x1404b1f80]
lea rcx, [rsp + 0x70]
call fcn.1401810f0
nop
lea rbp, [0x1402901c8]
mov rbx, qword [rsp + 0x70]
cmp byte [rbx], 0
je 0x14013d302
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x14013d2fd
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
mov ecx, 1
test al, 0x10
je 0x14013d2c4
cmp eax, 0xffffffff
je 0x14013d2c4
mov eax, ecx
jmp 0x14013d2c6
xor eax, eax
cmp al, byte [rdi + 0x1bc]
jne 0x14013d2fd
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x78], rbx
lea rax, [rbx - 0x10]
cmp rax, rbp
je 0x14013d2ea
lock xadd dword [rax], ecx
mov rbx, qword [rsp + 0x70]
lea rdx, [rsp + 0x78]
lea rcx, [rdi - 0xd8]
call fcn.14013ceb0
jmp 0x14013d302
mov rbx, qword [rsp + 0x70]
lea rcx, [rbx - 0x10]
cmp rcx, rbp
je 0x14013d31b
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x14013d31b
call fcn.1400bd658
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14013eba0
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx + 0xc8]
call fcn.140141670
movzx edx, al
mov rcx, qword [rbx + 8]
add rcx, 0xd0
call fcn.140158db0
mov rax, qword [rbx + 8]
mov rdx, qword [rax + 0xc8]
mov eax, dword [rdx + 0x128]
shr eax, 1
and al, 1
je 0x14013ec14
add rdx, 0x130
lea rcx, [rsp + 0x40]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x14013ec14
cmp eax, 0xffffffff
je 0x14013ec14
mov dl, 1
jmp 0x14013ec16
xor edx, edx
mov rcx, qword [rbx + 8]
add rcx, 0x3c0
mov rax, qword [rcx]
add rsp, 0x30
pop rbx
jmp qword [rax + 0x50]
Function at 0x140140460
Capabilities:
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rbp, rdx
mov rsi, rcx
lea rcx, [rsp + 0x68]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x140140509
cmp eax, 0xffffffff
je 0x140140509
lea rcx, [rsi - 0xc8]
mov rdx, rbp
call fcn.140140f30
mov eax, dword [rsi + 0x60]
and eax, 0x108
cmp eax, 8
jne 0x14014058e
lea rbx, [0x1402901c8]
lea rax, [rbx + 0x10]
mov qword [rsp + 0x58], rax
lea rcx, [rsi + 0x230]
mov r8b, 1
lea rdx, [rsp + 0x58]
call fcn.1400fda40
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
cmp rcx, rbx
je 0x14014058e
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x14014058e
call fcn.1400bd658
jmp 0x14014058e
lea rcx, [rsi - 0xc8]
call fcn.140006d60
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14014052c
mov ecx, 1
lock xadd dword [rax + 8], ecx
mov ebx, dword [rsi + 0x98]
test rdi, rdi
je 0x14014056f
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14014056f
test ebx, ebx
jle 0x14014056f
mov eax, dword [rsi + 0x98]
dec ebx
cmp ebx, eax
jl 0x140140557
lea ebx, [rax - 1]
test ebx, ebx
js 0x14014056f
movsxd rax, ebx
mov rcx, qword [rsi + 0x88]
mov rdx, rbp
mov rcx, qword [rcx + rax*8]
call fcn.140036418
jmp 0x140140532
test rdi, rdi
je 0x14014058e
or eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14014058e
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140141670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
xor r8d, r8d
lea rdx, [rsp + 0x48]
call fcn.140141730
mov ecx, dword [rbx + 0x128]
mov eax, ecx
shr eax, 1
and al, 1
je 0x1401416c8
test cl, 8
jne 0x1401416c4
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x1401416c4
cmp eax, 0xffffffff
jne 0x1401416f4
mov bl, 1
jmp 0x1401416f6
mov rax, qword [rsp + 0x48]
cmp byte [rax], 0
je 0x1401416f4
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x1401416f4
mov bl, 1
jmp 0x1401416f6
xor bl, bl
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
lea rax, [0x1402901c8]
cmp rcx, rax
je 0x14014171b
or edx, 0xffffffff
lock xadd dword [rcx], edx
test edx, edx
jne 0x14014171b
call fcn.1400bd658
movzx eax, bl
add rsp, 0x30
pop rbx
ret
Function at 0x140142af0
Capabilities:
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
mov dword [rsp + 0x70], 0
call fcn.140142c20
nop
lea rdx, [rdi + 0x48]
lea rcx, [rsp + 0x88]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x140142c0f
cmp eax, 0xffffffff
je 0x140142c0f
mov ecx, 0x50
call fcn.1400bd614
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rax, [0x14028ba6c]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x78]
call fcn.1400461b0
nop
mov dword [rsp + 0x70], 1
mov ecx, dword [rdi + 0x60]
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, [rdi + 0x48]
mov rcx, rbx
call fcn.14018cce0
nop
mov rbx, qword [rdi + 0xa8]
cmp rbx, rax
je 0x140142bc4
mov qword [rdi + 0xa8], rax
test rbx, rbx
je 0x140142bc4
mov rcx, rbx
call fcn.14018cbe0
mov edx, 0x50
mov rcx, rbx
call fcn.1400bd658
nop
mov dword [rsp + 0x70], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rcx, [rax - 0x10]
lea rax, [0x1402901c8]
cmp rcx, rax
je 0x140142bfb
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x140142bfb
call fcn.1400bd658
mov byte [rdi + 0xb0], 0
lea rdx, [rdi + 0x38]
mov rcx, qword [rdi + 0x58]
call fcn.140186e70
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140143110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rbp, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
add rdx, 0x48
mov rax, qword [rdx]
cmp byte [rax], 0
je 0x1401431f6
lea rcx, [rsp + 0x70]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x1401431f6
mov dword [rsp + 0x20], 0
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, rsi
call fcn.140260a94
mov rcx, rax
call fcn.140006d60
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14014319c
mov ecx, 1
lock xadd dword [rax + 8], ecx
mov ebx, dword [rsi + 0x20]
nop
test rdi, rdi
je 0x1401431d7
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1401431d7
test ebx, ebx
jle 0x1401431d7
mov eax, dword [rsi + 0x20]
dec ebx
cmp ebx, eax
jl 0x1401431c2
lea ebx, [rax - 1]
test ebx, ebx
js 0x1401431d7
movsxd rax, ebx
mov rcx, qword [rsi + 0x10]
mov rdx, rbp
mov rcx, qword [rcx + rax*8]
call fcn.140036418
jmp 0x1401431a0
test rdi, rdi
je 0x1401431f6
or eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1401431f6
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140143210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 0x10]
lea r8, [rsp + 0x30]
mov rdi, rdx
mov dword [rsp + 0x30], eax
mov edx, dword [rcx + 0x118]
mov rbx, rcx
mov rcx, qword [rcx + 0xe8]
mov r9b, 1
call fcn.140103ab0
mov rcx, qword [rbx + 0xe8]
lea rdx, [rbx + 0xf8]
add rcx, 0x128
mov r8, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140143210
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
add rdx, 0x48
mov rax, qword [rdx]
cmp byte [rax], 0
je 0x140143301
lea rcx, [rsp + 0x78]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x140143301
mov dword [rsp + 0x20], 0
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, rsi
call fcn.140260a94
mov rcx, rax
call fcn.140006d60
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1401432a5
mov ecx, 1
lock xadd dword [rax + 8], ecx
mov ebx, dword [rsi + 0x20]
test rdi, rdi
je 0x1401432e2
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1401432e2
test ebx, ebx
jle 0x1401432e2
mov eax, dword [rsi + 0x20]
dec ebx
cmp ebx, eax
jl 0x1401432ca
lea ebx, [rax - 1]
test ebx, ebx
js 0x1401432e2
movsxd rax, ebx
mov rcx, qword [rsi + 0x10]
mov r8, rbp
mov rdx, r14
mov rcx, qword [rcx + rax*8]
call fcn.140035df0
jmp 0x1401432a8
test rdi, rdi
je 0x140143301
or eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140143301
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140163130
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x78]
test rcx, rcx
jne 0x140040146
xor al, al
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp rdi, qword [rsi + 0x98]
je 0x140040213
xor r9d, r9d
mov byte [rsi + 0xa0], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetSetFilePointer]
mov eax, eax
mov qword [rsi + 0x98], rax
cmp rdi, rax
je 0x140040213
jl 0x140040139
sub rdi, rax
mov qword [rsp + 0x48], rbx
mov ecx, 0x4000
mov qword [rsp + 0x50], rbp
cmp rdi, rcx
mov eax, edi
cmovg eax, ecx
movsxd rbp, eax
mov rcx, rbp
call fcn.1400c1e7c
mov rbx, rax
test rdi, rdi
jle 0x140040201
cmp byte [rsi + 0xa0], 0
jne 0x140040201
mov rcx, qword [rsi + 0x78]
xor edx, edx
mov dword [rsp + 0x40], edx
test rcx, rcx
je 0x1400401f6
mov r8d, edi
lea r9, [rsp + 0x40]
cmp rbp, rdi
mov rdx, rbx
cmovl r8d, ebp
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [rsp + 0x40]
add qword [rsi + 0x98], rdx
test edx, edx
jne 0x1400401f6
mov byte [rsi + 0xa0], 1
movsxd rax, edx
sub rdi, rax
test rdi, rdi
jg 0x1400401b0
mov rcx, rbx
call fcn.1400c1bd0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov al, 1
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x140040120

Function at 0x140163140
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 0x14016316b
mov byte [rcx + 0x10], 1
mov rcx, qword [rcx + 8]
call fcn.14003f8e0
mov rbx, qword [rbx + 8]
mov dword [rsp + 0x30], 0
cmp byte [rbx + 0xa0], 0
jne 0x1401631c2
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1401631c2
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 0x1401631c4
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 0x1401631e0
Capabilities:
Get http content length

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x10], 0
mov rbx, rcx
jne 0x1401631fc
mov byte [rcx + 0x10], 1
mov rcx, qword [rcx + 8]
call fcn.14003f8e0
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x78]
test rcx, rcx
je 0x140163248
xor eax, eax
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x48], eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x40], eax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov edx, 0x20000005
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x140163248
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
or rax, 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret
Function at 0x140164af0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0
lea rcx, [0x14028fcd0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x140164ba8
mov ecx, edi
call fcn.1400c1e7c
mov edx, dword [rsp + 0x30]
lea rcx, [0x14028fcd0]
mov r9, rax
mov r8d, edi
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140164ba0
lea r9, [rsp + 0x38]
mov qword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov dword [rsp + 0x38], 0
lea rdx, [0x14028fa8c]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140164ba0
test edi, edi
je 0x140164ba0
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140164ba0
cmp dword [rax], 0xfeef04bd
jne 0x140164ba0
mov edi, dword [rax + 8]
mov rcx, rbx
call fcn.1400c1bd0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.1400c1bd0
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140164bc0
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, [0x1402901c8]
cmp rcx, rbx
je 0x140164bf0
mov eax, 1
lock xadd dword [rcx], eax
lea r8, [0x14028fa7c]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140185a50
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
cmp rcx, rbx
je 0x140164c3c
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x140164c3c
call fcn.1400bd658
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x1404be420]
test rcx, rcx
je 0x140171753
mov rax, qword [rcx]
jmp qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rdx
jmp 0x140164bc0
Function at 0x140165050
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
cmp qword [rcx + 8], 0
mov rdi, rdx
mov rbx, rcx
jle 0x140165099
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov rcx, qword [rbx + 8]
mov r8d, dword [rsp + 0x68]
mov rax, rcx
cqo
idiv r8
sub rcx, rdx
mov qword [rbx + 8], rcx
cmp qword [rbx + 0x10], rcx
jge 0x140165099
mov qword [rbx + 0x10], rcx
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.140040d80
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x8000080
mov rcx, qword [rax]
lea r8d, [rsi + 1]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14016514d
mov rdx, qword [rbx + 0x10]
lea r8d, [rsi + 2]
mov r9, rdx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], edx
mov rcx, rax
sar r9, 0x20
xor edx, edx
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x14016514d
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
mov rcx, rdx
sub r8, qword [rbx + 8]
mov r9d, edx
sar rcx, 0x20
lea edx, [rsi + 4]
mov qword [rsp + 0x20], r8
mov r8d, ecx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx], rax
test rax, rax
jne 0x140165144
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1401651e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
xor eax, eax
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x140165252
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14016524e
lea rcx, [rsp + 0x68]
call fcn.140165700
mov rcx, qword [rbx + 0x20]
mov qword [rsp + 0x30], rcx
mov rdx, qword [rax]
mov qword [rbx + 0x20], rdx
mov qword [rax], rcx
lea rax, [0x1402901c8]
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff0
cmp rcx, rax
je 0x14016524e
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x14016524e
call fcn.1400bd658
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret

Function at 0x140165360
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
xor eax, eax
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1401653d2
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401653ce
lea rcx, [rsp + 0x68]
call fcn.140165700
mov rcx, qword [rbx + 0x20]
mov qword [rsp + 0x30], rcx
mov rdx, qword [rax]
mov qword [rbx + 0x20], rdx
mov qword [rax], rcx
lea rax, [0x1402901c8]
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff0
cmp rcx, rax
je 0x1401653ce
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x1401653ce
call fcn.1400bd658
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x1401654c0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
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.140040d80
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140165515
lea rcx, [rsp + 0x50]
call fcn.140037850
mov rdx, rax
mov ecx, 1
jmp 0x140165527
lea rcx, [rsp + 0x58]
call fcn.140165700
mov rdx, rax
mov ecx, 2
mov rax, qword [rdx]
mov qword [rbx], rax
lea rax, [0x1402901d8]
mov qword [rdx], rax
or ecx, 4
mov dword [rsp + 0x20], ecx
or edi, 0xffffffff
lea rsi, [0x1402901c8]
test cl, 2
je 0x140165578
and ecx, 0xfffffffd
mov dword [rsp + 0x20], ecx
mov rdx, qword [rsp + 0x58]
add rdx, 0xfffffffffffffff0
cmp rdx, rsi
je 0x140165578
mov eax, edi
lock xadd dword [rdx], eax
test eax, eax
jne 0x140165574
mov rcx, rdx
call fcn.1400bd658
mov ecx, dword [rsp + 0x20]
test cl, 1
je 0x140165598
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140165598
lock xadd dword [rcx], edi
test edi, edi
jne 0x140165598
call fcn.1400bd658
mov rax, rbx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140165660
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov rax, qword [rcx]
cmp byte [rax], 0
je 0x1401656f0
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x1401656f0
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x1401656ce
cmp eax, 0xffffffff
je 0x1401656ce
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1401656e4
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140040d80
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
test eax, eax
setne cl
movzx eax, cl
jmp 0x1401656f2
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1401658a0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x460
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1404a90f8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
mov dword [rsp + 0x28], 0
xor r9d, r9d
mov r8d, edx
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140165935
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140046380
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1401810f0
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
lea rax, [0x1402901c8]
cmp rcx, rax
je 0x14016593f
or edx, 0xffffffff
lock xadd dword [rcx], edx
test edx, edx
jne 0x14016593f
call fcn.1400bd658
jmp 0x14016593f
lea rax, [0x1402901d8]
mov qword [rbx], rax
mov rax, rbx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400bd5f0
add rsp, 0x460
pop rbx
ret
Function at 0x140165970
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, [0x1402901c8]
cmp rcx, rdi
je 0x1401659a5
mov eax, 1
lock xadd dword [rcx], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140165a00
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140040d80
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 0x1401659ed
or edx, 0xffffffff
lock xadd dword [rcx], edx
test edx, edx
jne 0x1401659ed
call fcn.1400bd658
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret