joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180184050
Capabilities:
Set socket configuration

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, qword [r9]
lea rax, [rsp + 0x70]
mov rbp, r9
mov qword [rsp + 0x60], rbx
mov rdi, r14
mov dword [rsp + 0x70], 4
lea r9, [rsp + 0x68]
shr rdi, 0x20
mov edx, 0xffff
mov qword [rsp + 0x20], rax
mov r8d, 0x1002
mov rsi, rcx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1801840bc
cmp dword [rsp + 0x70], 4
jne 0x1801840bc
mov eax, dword [rsp + 0x68]
mov ebx, 0x10000
cmp eax, ebx
cmovl eax, ebx
jmp 0x1801840c3
mov ebx, 0x10000
mov eax, ebx
mov rbp, qword [rbp + 8]
lea r9, [rsp + 0x68]
test dil, dil
mov dword [rsp + 0x70], 4
mov r15, rbp
mov edx, 0xffff
cmove r14d, eax
mov r8d, 0x1001
lea rax, [rsp + 0x70]
shr r15, 0x20
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x180184116
cmp dword [rsp + 0x70], 4
jne 0x180184116
mov edi, dword [rsp + 0x68]
cmp edi, ebx
cmovl edi, ebx
jmp 0x180184118
mov edi, ebx
mov rbx, qword [rsp + 0x60]
cmp rsi, 0xffffffffffffffff
je 0x1801841bb
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], r14d
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1801841bb
test r15b, r15b
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x70]
mov edx, 0xffff
cmove ebp, edi
mov r8d, 0x1001
mov rcx, rsi
mov dword [rsp + 0x70], ebp
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1801841bb
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov r8d, 1
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1801841bb
mov al, 1
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor al, al
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180189350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, rcx
mov rax, qword [rcx]
cmp byte [rax], 0
je 0x18018944a
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x18018944a
mov ebp, 4
xor r14d, r14d
mov rdi, qword [rbx + 8]
cmp rdi, qword [rbx]
je 0x180189419
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.1800203e0
test eax, eax
je 0x180189419
cmp byte [rdi], 0
je 0x180189426
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x60]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x180189426
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.180017f90
mov rdi, qword [rax]
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x70]
call fcn.180017f90
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9d, 6
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
je 0x180189436
mov rcx, rbx
call fcn.180161160
mov al, 1
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, [rbx + 8]
mov rcx, rbx
call fcn.18018dc00
test al, al
jne 0x180189419
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebp, 1
jns 0x180189392
xor al, al
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180189460
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 4
nop word [rax + rax]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x1801894aa
cmp eax, 0xffffffff
je 0x1801894aa
mov rcx, rbx
call fcn.18018dce0
jmp 0x1801894b2
mov rcx, rbx
call fcn.180161160
test al, al
jne 0x1801894c6
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 1
jns 0x180189480
mov rcx, qword [rbx + 8]
sub rcx, 0x10
lea rsi, [0x180660020]
mov edi, 0xffffffff
cmp rcx, rsi
je 0x1801894f0
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x1801894f0
call fcn.18011d9c0
mov rcx, qword [rbx]
sub rcx, 0x10
cmp rcx, rsi
je 0x18018950d
lock xadd dword [rcx], edi
dec edi
cmp edi, 0xffffffff
jne 0x18018950d
call fcn.18011d9c0
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18018a5b0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor eax, eax
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18018a622
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 0x18018a61e
lea rcx, [rsp + 0x58]
call fcn.1801615b0
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rax]
mov qword [rbx + 0x20], rdx
mov qword [rax], rcx
lea rax, [0x180660020]
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
cmp rcx, rax
je 0x18018a61e
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018a61e
call fcn.18011d9c0
mov eax, dword [rsp + 0x40]
add qword [rbx + 0x18], rax
add rsp, 0x30
pop rbx
ret
Function at 0x18018b900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx]
cmp byte [rax], 0
je 0x18018baff
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x18018baff
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.180190bc0
mov r14, rax
mov edx, 0x2e
mov rcx, rdi
call fcn.18017c8f0
mov ebx, eax
mov edx, 0x5c
mov rcx, rdi
call fcn.18017c8f0
lea rbp, [0x180660020]
lea r15, [0x180660030]
cmp ebx, eax
jle 0x18018b9e2
mov rdx, qword [rdi]
test ebx, ebx
jg 0x18018b99d
mov qword [rsp + 0x88], rdx
add rdx, 0xfffffffffffffff0
cmp rdx, rbp
je 0x18018b9ea
lock inc dword [rdx]
jmp 0x18018b9ea
lea r8d, [rbx - 1]
test r8d, r8d
js 0x18018b9d3
movzx ecx, byte [rdx]
test cl, cl
je 0x18018b9e2
inc rdx
test cl, cl
jns 0x18018b9cd
mov al, 0x40
test al, cl
je 0x18018b9cd
nop word [rax + rax]
cmp al, 8
jbe 0x18018b9cd
inc rdx
shr al, 1
test cl, al
jne 0x18018b9c0
sub r8d, 1
jns 0x18018b9a6
lea rcx, [rsp + 0x88]
call fcn.18001d410
jmp 0x18018b9ea
mov qword [rsp + 0x88], r15
mov edx, 0x5c
mov rcx, rdi
call fcn.18017c8f0
lea ebx, [rax + 1]
mov edx, 0x2e
mov rcx, rdi
call fcn.18017c8f0
cmp eax, ebx
jle 0x18018ba20
mov r9d, eax
mov r8d, ebx
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.18017b000
jmp 0x18018ba78
mov rdx, qword [rdi]
test ebx, ebx
jg 0x18018ba3a
mov qword [rsp + 0x70], rdx
add rdx, 0xfffffffffffffff0
cmp rdx, rbp
je 0x18018ba78
lock inc dword [rdx]
jmp 0x18018ba78
lea r8d, [rbx - 1]
nop
movzx ecx, byte [rdx]
test cl, cl
je 0x18018ba73
inc rdx
test cl, cl
jns 0x18018ba61
mov al, 0x40
test al, cl
je 0x18018ba61
cmp al, 8
jbe 0x18018ba61
inc rdx
shr al, 1
test cl, al
jne 0x18018ba54
sub r8d, 1
jns 0x18018ba40
lea rcx, [rsp + 0x70]
call fcn.18001d410
jmp 0x18018ba78
mov qword [rsp + 0x70], r15
mov byte [rsp + 0x20], 1
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x70]
mov rdx, rsi
mov rcx, r14
call fcn.18018bb40
nop
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff0
mov ebx, 0xffffffff
cmp rcx, rbp
je 0x18018babb
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x18018babb
call fcn.18011d9c0
nop
mov rcx, qword [rsp + 0x88]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x18018badf
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018badf
call fcn.18011d9c0
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x18018bb18
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x18018bb18
call fcn.18011d9c0
jmp 0x18018bb18
mov rax, qword [rdi]
mov qword [rsi], rax
add rax, 0xfffffffffffffff0
lea rbp, [0x180660020]
cmp rax, rbp
je 0x18018bb18
lock inc dword [rax]
mov rax, rsi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18018c5e0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rcx]
cmp byte [rax], 0
je 0x18018c704
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
jne 0x18018c704
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.18018a650
nop
mov ebx, 0xffffffff
mov rax, qword [rsp + 0x48]
cmp byte [rax], 0
jne 0x18018c663
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.180180380
mov rcx, qword [rax]
mov qword [rdi], rcx
lea rcx, [0x180660030]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x60]
jmp 0x18018c67a
lea rax, [rsp + 0x70]
lea rcx, [0x180660030]
mov qword [rdi], rcx
mov qword [rax], rcx
mov rcx, qword [rsp + 0x70]
lea rsi, [0x180660020]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x18018c69c
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x18018c69c
call fcn.18011d9c0
nop
lea rax, vtable.juce::FileInputStream.0
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x18018c6d3
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018c6d3
call fcn.18011d9c0
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x18018c70e
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x18018c70e
call fcn.18011d9c0
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
lea rcx, [0x180660030]
mov qword [rdi], rcx
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x18018c7c0
Capabilities:
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r15, rdx
mov rbx, rcx
mov dword [rbp - 0x20], 0
mov rdx, rcx
lea rcx, [rbp + 0x48]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x18018c80e
cmp eax, 0xffffffff
je 0x18018c80e
lea r14, [0x180660030]
mov qword [r15], r14
jmp 0x18018c9c9
lea rdx, [rbp + 0x40]
mov rcx, rbx
call fcn.180190bc0
nop
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x40]
cmp rcx, rdx
je 0x18018c965
call fcn.18001c500
test eax, eax
je 0x18018c965
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.18018c7c0
nop
lea r14, [0x180660030]
lea rsi, [0x180660020]
mov edi, 0xffffffff
mov rax, qword [rbp + 0x30]
cmp byte [rax], 0
jne 0x18018c958
lea r8, [0x1803acd8c]
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.18017a290
nop
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.180017f90
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18018c8a7
mov qword [rbp + 0x48], r14
lea rax, [rbp + 0x48]
mov ecx, 2
mov rbx, r14
jmp 0x18018c8b8
lea rcx, [rbp - 0x18]
call fcn.1801615b0
mov ecx, 4
mov rbx, qword [rax]
mov qword [rax], r14
or ecx, 8
mov dword [rbp - 0x20], ecx
test cl, 4
je 0x18018c8f1
and ecx, 0xfffffffb
mov dword [rbp - 0x20], ecx
mov rdx, qword [rbp - 0x18]
add rdx, 0xfffffffffffffff0
cmp rdx, rsi
je 0x18018c8f1
mov eax, edi
lock xadd dword [rdx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018c8ee
mov rcx, rdx
call fcn.18011d9c0
mov ecx, dword [rbp - 0x20]
test cl, 2
je 0x18018c915
mov rcx, qword [rbp + 0x48]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x18018c915
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018c915
call fcn.18011d9c0
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x30], rbx
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x18018c939
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018c939
call fcn.18011d9c0
nop
mov rcx, qword [rbp - 0x10]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x18018c958
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018c958
call fcn.18011d9c0
mov rax, qword [rbp + 0x30]
mov qword [r15], rax
mov qword [rbp + 0x30], r14
jmp 0x18018c9ac
lea rdx, str.Cannot_create_parent_directory
lea rcx, [rbp + 0x48]
call fcn.18001d070
lea rdx, [rbp + 0x48]
mov rcx, r15
call fcn.180185ba0
mov rcx, qword [rbp + 0x48]
add rcx, 0xfffffffffffffff0
lea rsi, [0x180660020]
mov edi, 0xffffffff
cmp rcx, rsi
je 0x18018c9ac
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x18018c9ac
call fcn.18011d9c0
nop
mov rcx, qword [rbp + 0x40]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x18018c9c9
lock xadd dword [rcx], edi
dec edi
cmp edi, 0xffffffff
jne 0x18018c9c9
call fcn.18011d9c0
mov rax, r15
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18018c9f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx]
cmp byte [rax], 0
je 0x18018ca3b
mov rdx, rcx
lea rcx, [rsp + 0xb8]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x18018ca3b
lea rax, [0x180660030]
mov qword [rdi], rax
jmp 0x18018cb81
lea rdx, [rsp + 0xb0]
mov rcx, rsi
call fcn.180190bc0
nop
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0xb0]
cmp rcx, rdx
je 0x18018cb0d
call fcn.18001c500
test eax, eax
je 0x18018cb0d
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xb0]
call fcn.18018c7c0
nop
lea rbp, [0x180660020]
mov ebx, 0xffffffff
mov rax, qword [rsp + 0xa0]
cmp byte [rax], 0
jne 0x18018caf9
mov r8d, 8
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.18018a3a0
mov rax, qword [rsp + 0x50]
lea rcx, [rax - 0x10]
cmp rcx, rbp
je 0x18018cac5
lock inc dword [rcx]
mov rax, qword [rsp + 0x50]
xchg qword [rsp + 0xa0], rax
lea rcx, [rax - 0x10]
cmp rcx, rbp
je 0x18018cae7
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x18018cae7
call fcn.18011d9c0
lea rcx, [rsp + 0x30]
call fcn.18018a2d0
mov rax, qword [rsp + 0xa0]
mov qword [rdi], rax
lea rax, [0x180660030]
mov qword [rsp + 0xa0], rax
jmp 0x18018cb60
lea rdx, [0x1803abc00]
lea rcx, [rsp + 0xb8]
call fcn.18001d070
lea rdx, [rsp + 0xb8]
mov rcx, rdi
call fcn.180185ba0
mov rcx, qword [rsp + 0xb8]
add rcx, 0xfffffffffffffff0
lea rbp, [0x180660020]
mov ebx, 0xffffffff
cmp rcx, rbp
je 0x18018cb60
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x18018cb60
call fcn.18011d9c0
nop
mov rcx, qword [rsp + 0xb0]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x18018cb81
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x18018cb81
call fcn.18011d9c0
mov rax, rdi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x18018db50
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov rdx, qword [rdx]
cmp qword [rcx], rdx
je 0x18018dbe1
mov rcx, qword [rcx]
call fcn.18001c500
test eax, eax
je 0x18018dbe1
mov rax, qword [rdi]
cmp byte [rax], 0
je 0x18018dbd4
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x18018dbd4
mov rcx, rbx
call fcn.180161160
test al, al
je 0x18018dbd4
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.180017f90
mov rbx, qword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.180017f90
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x18018dbe1
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18018dc00
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rcx]
cmp qword [rdx], rsi
je 0x18018dcc5
mov rdx, rsi
mov rcx, qword [rbx]
call fcn.1800203e0
test eax, eax
je 0x18018dcc5
cmp byte [rsi], 0
je 0x18018dcb3
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x18018dcb3
mov rdx, qword [rbx]
cmp qword [rdi], rdx
je 0x18018dc75
mov rcx, qword [rdi]
call fcn.18001c500
test eax, eax
je 0x18018dc75
mov rcx, rbx
call fcn.180161160
test al, al
je 0x18018dcb3
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.180017f90
mov rbx, qword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.180017f90
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18018dce0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov byte [rsp + 0x10], dl
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
xor ebx, ebx
mov dword [rsp + 0x68], ebx
mov dil, 1
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x18018de08
cmp eax, 0xffffffff
je 0x18018de08
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x18018dd4a
bt eax, 0xa
jb 0x18018de08
lea rdx, [0x1803abbd0]
lea rcx, [rsp + 0x60]
call fcn.18001d070
nop
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x68], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 3
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.18018c1f0
nop
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff0
lea rax, [0x180660020]
cmp rcx, rax
je 0x18018ddb9
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18018ddb9
call fcn.18011d9c0
movsxd rax, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x30]
lea rsi, [rbx + rax*8]
cmp rbx, rsi
je 0x18018ddf4
nop dword [rax]
xor edx, edx
mov rcx, rbx
call fcn.18018dce0
test al, al
je 0x18018dde8
test dil, dil
je 0x18018dde8
mov dil, 1
jmp 0x18018ddeb
xor dil, dil
add rbx, 8
cmp rbx, rsi
jne 0x18018ddd0
lea rcx, [rsp + 0x30]
call fcn.180009780
mov rcx, qword [rsp + 0x30]
call fcn.180124068
mov rcx, rbp
call fcn.180161160
test al, al
je 0x18018de28
test dil, dil
je 0x18018de28
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801a63c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x11c]
mov rbx, rcx
inc eax
mov dword [rcx + 0x11c], eax
cmp eax, dword [rcx + 0x108]
jb 0x1801a654f
cmp byte [rcx + 0x16c], 0
je 0x1801a6537
test byte [rcx + 0x54], 2
mov dword [rcx + 0x11c], 0
je 0x1801a6419
inc byte [rcx + 0x16d]
lea rdx, [rbx + 0x100]
movzx ecx, byte [rcx + 0x16d]
jmp 0x1801a64ce
mov qword [rsp + 0x30], rsi
lea rsi, [0x180000000]
mov qword [rsp + 0x38], rdi
nop word [rax + rax]
movzx ecx, byte [rbx + 0x16d]
lea rdx, [rbx + 0x100]
inc cl
mov byte [rbx + 0x16d], cl
cmp cl, 7
jae 0x1801a64c4
movzx r11d, cl
movzx r8d, byte [r11 + rsi + 0x5ab838]
movzx eax, byte [r11 + rsi + 0x5ab954]
mov edx, r8d
movzx r9d, byte [r11 + rsi + 0x5ac0ec]
sub edx, eax
mov eax, dword [rbx + 0x100]
dec eax
add eax, edx
xor edx, edx
div r8d
movzx edx, byte [r11 + rsi + 0x5ac458]
mov r8d, dword [rbx + 0x104]
mov r10d, eax
sub r8d, edx
mov dword [rbx + 0x10c], eax
xor edx, edx
lea eax, [r9 - 1]
add eax, r8d
div r9d
mov dword [rbx + 0x108], eax
test r10d, r10d
je 0x1801a6430
lea rdx, [rbx + 0x100]
test eax, eax
je 0x1801a6430
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
cmp cl, 7
jae 0x1801a6537
mov r10, qword [rbx + 0x128]
test r10, r10
je 0x1801a654f
movzx eax, byte [rbx + 0x171]
movzx ecx, byte [rbx + 0x174]
mov r8d, eax
mov r9d, dword [rdx]
imul eax, ecx
imul r8, rcx
cmp eax, 8
jb 0x1801a6519
shr r8, 3
xor edx, edx
imul r8, r9
mov rcx, r10
inc r8
add rsp, 0x20
pop rbx
jmp fcn.18037f450
imul r8, r9
xor edx, edx
mov rcx, r10
add r8, 7
shr r8, 3
inc r8
add rsp, 0x20
pop rbx
jmp fcn.18037f450
mov r9d, 4
xor r8d, r8d
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1801a9040
add rsp, 0x20
pop rbx
ret
Function at 0x1801c43d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0x30
mov r13d, dword [rcx + 0x64]
mov r8d, 0x2fe
mov rbx, qword [rcx + 0x250]
cmp r13d, 1
mov edx, 1
mov qword [rsp + 0x68], rbx
sete al
mov rdi, rcx
mov byte [rbx + 0x38], al
mov rax, qword [rcx + 8]
mov r9d, dword [rcx + 0x7c]
mov r10, qword [rax + 0x10]
mov eax, 0x100
cmovne r8d, eax
call r10
mov ebp, dword [rbx + 0x28]
xor r15d, r15d
mov qword [rbx + 0x30], rax
cmp dword [rdi + 0x7c], r15d
jle 0x1801c4551
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], r12
lea r12, [rbx + 0x3c]
mov qword [rsp + 0x20], r14
xor r14d, r14d
nop word [rax + rax]
mov esi, dword [r12]
mov eax, ebp
cdq
idiv esi
mov ebp, eax
cmp r13d, 1
jne 0x1801c446d
mov rax, qword [rbx + 0x30]
add qword [rax + r14], 0xff
mov rax, qword [rbx + 0x30]
lea r11d, [rsi*2 - 2]
xor r8d, r8d
xor r10d, r10d
mov rdi, qword [r14 + rax]
lea eax, [rsi + 0xfe]
cdq
idiv r11d
xor ebx, ebx
mov r9d, eax
cmp r10d, r9d
jle 0x1801c44c7
imul ecx, r8d, 0x1fe
add ecx, 0xfe
add ecx, esi
nop word [rax + rax]
add ecx, 0x1fe
inc r8d
mov eax, ecx
cdq
idiv r11d
mov r9d, eax
cmp r10d, eax
jg 0x1801c44b0
movzx eax, r8b
inc r10d
movzx ecx, bpl
imul ecx, eax
mov byte [rdi + rbx], cl
inc rbx
cmp rbx, 0xff
jle 0x1801c4492
cmp r13d, 1
jne 0x1801c4523
mov ecx, 1
lea rdx, [rdi - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rdx], al
lea rdx, [rdx - 1]
movzx eax, byte [rdi + 0xff]
mov byte [rdi + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x1801c4500
mov rax, qword [rsp + 0x60]
inc r15d
mov rbx, qword [rsp + 0x68]
add r12, 4
add r14, 8
cmp r15d, dword [rax + 0x7c]
jl 0x1801c4450
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
Function at 0x1801c49f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov qword [rcx + 8], rsi
mov ecx, 0x98
mov dword [rsp + 0x38], esi
call fcn.180124500
mov rbx, rax
test rax, rax
jne 0x1801c4a36
mov rdx, qword [rdi]
mov dword [rdx + 0x28], 0x36
mov rcx, qword [rdi]
mov dword [rcx + 0x2c], esi
mov rcx, rdi
mov rdx, qword [rdi]
call qword [rdx]
mov dword [rbx + 0x5c], 0x3b9aca00
lea rax, [fcn.1801c5b00]
mov qword [rbx], rax
lea rcx, str.JPEGMEM
lea rax, [fcn.1801c5a10]
mov qword [rbx + 8], rax
lea rax, [fcn.1801c5920]
mov qword [rbx + 0x10], rax
lea rax, [fcn.1801c5830]
mov qword [rbx + 0x18], rax
lea rax, [0x1801c5780]
mov qword [rbx + 0x20], rax
lea rax, [0x1801c56d0]
mov qword [rbx + 0x28], rax
lea rax, [0x1801c5540]
mov qword [rbx + 0x30], rax
lea rax, [0x1801c5100]
mov qword [rbx + 0x38], rax
lea rax, [0x1801c4e60]
mov qword [rbx + 0x40], rax
lea rax, [0x1801c4d20]
mov qword [rbx + 0x48], rax
lea rax, [0x1801c4b60]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x58], eax
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x70], rsi
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x88], rsi
mov dword [rbx + 0x90], 0x98
mov qword [rdi + 8], rbx
call fcn.180134d94
test rax, rax
je 0x1801c4b3d
lea r9, [rsp + 0x30]
mov byte [rsp + 0x30], 0x78
lea r8, [rsp + 0x38]
mov rcx, rax
lea rdx, str._ld_c
call fcn.180022790
test eax, eax
jle 0x1801c4b3d
movzx eax, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x1801c4b30
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x1801c4b34
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
mov dword [rbx + 0x58], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret