joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800196a8
Capabilities:
Get file size
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
and dword [rax - 0x28], 0
or dword [rax - 0x24], 0xffffffff
and dword [rax + 0x10], 0
xor edx, edx
mov rbx, rcx
mov dword [rax - 0x20], 0x55555555
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1800196fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor edi, edi
xor esi, esi
test ebp, ebp
je 0x180019736
lea r12, [rsp + rdi*4 + 0x30]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 4
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18001972f
cmp dword [rsp + 0x68], eax
je 0x180019773
add esi, 4
cmp esi, ebp
jb 0x180019708
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x1800196e6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1800196e6
inc edi
cmp edi, 3
jb 0x1800196fd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
jmp 0x1800196e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x1800196e6

Function at 0x180019784
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov edi, r8d
mov rsi, rdx
mov dword [rax - 0x18], r9d
mov dword [rax - 0x14], r8d
xor r9d, r9d
xor edx, edx
xor r8d, r8d
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1800197bc
xor al, al
jmp 0x180019818
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r8d, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800197b8
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800197b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x1800197b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180019ac8
Capabilities:
Get file size
Read file on windows

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 [r9], 0
and dword [rax - 0x18], 0
and dword [rax - 0x14], 0
mov rdi, rdx
mov rbp, r9
mov rbx, r8
mov rsi, rcx
mov rcx, rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x180019b11
xor al, al
jmp 0x180019bea
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0x30]
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180019b0a
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [rsp + 0x34], eax
ja 0x180019b0a
mov r8d, dword [rsp + 0x34]
mov rcx, qword [rsi + 8]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x180019b0a
mov r8d, dword [rsp + 0x34]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180019bbc
mov r8, qword [rbx]
test r8, r8
je 0x180019ba6
mov rcx, qword [rsi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x180019b0a
and qword [rbx], 0
jmp 0x180019b0a
mov ecx, 0x3f9
lea rdx, str._HeapFree__NULL_n
call fcn.180030818
jmp 0x180019b0a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x180019be1
mov r8, qword [rbx]
test r8, r8
jne 0x180019b89
mov ecx, 0x3ff
jmp 0x180019bab
mov eax, dword [rsp + 0x34]
mov dword [rbp], eax
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18001a050
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r13d, dword [rbp + 0x58]
mov rdi, rdx
mov ebx, r9d
mov r15, r8
mov rsi, rcx
xor r9d, r9d
xor edx, edx
xor r8d, r8d
mov rcx, rdi
mov dword [rbp - 0xc], r13d
xor r14b, r14b
mov dword [rbp - 0x10], ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18001a0a6
xor al, al
jmp 0x18001a26d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
test eax, eax
jne 0x18001a0d1
mov rdx, qword [rbp + 0x50]
mov r9d, ebx
mov r8d, r13d
mov rcx, rdi
call fcn.180019784
test al, al
jmp 0x18001a254
mov rcx, qword [rsi + 8]
mov r8, r12
mov edx, 8
mov r13, r12
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001a09f
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x48]
mov r8d, r12d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001a09f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18001a135
mov rcx, qword [rsi + 8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001a09f
add r13, rbx
mov r12, rbx
cmp rbx, r13
jae 0x18001a1dc
mov rax, qword [r12]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x58]
mov qword [rbp - 8], rax
mov r8d, 8
mov rcx, rdi
cmp eax, dword [rbp - 0x10]
jne 0x18001a196
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001a121
mov r8d, dword [rbp - 0xc]
mov rdx, qword [rbp + 0x50]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001a121
mov r14b, 1
jmp 0x18001a1cc
lea rdx, [rbp - 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001a121
mov r8d, dword [rbp - 4]
and qword [rsp + 0x20], 0
lea rdx, [r12 + 8]
lea r9, [rbp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001a121
mov eax, dword [rbp - 4]
lea r12, [r12 + rax + 8]
cmp r12, r13
jmp 0x18001a13e
mov rcx, qword [rsi + 8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14b, r14b
jne 0x18001a238
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x58]
lea rdx, [rbp - 0x10]
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001a09f
mov r8d, dword [rbp - 0xc]
mov rdx, qword [rbp + 0x50]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001a09f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x18001a09f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x18001a09f
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.180019508
test al, al
setne al
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x18001a4e4
Capabilities:
Get file size
Read file on windows

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 r13
push r14
sub rsp, 0x40
mov rbp, qword [rsp + 0x88]
and dword [rax - 0x28], 0
mov r12, rdx
and dword [rbp], 0
mov rsi, rcx
xor edx, edx
mov rcx, r12
mov r14d, r9d
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r11d, eax
test eax, eax
je 0x18001a54d
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
jmp 0x18001a548
mov r13d, dword [rax + 0x14]
mov edi, dword [rax + 0x18]
cmp dword [rax + 0x10], r14d
je 0x18001a56e
mov rax, qword [rax]
cmp rax, rcx
jne 0x18001a538
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
cmp edi, r11d
ja 0x18001a54d
mov rcx, qword [rsi + 8]
mov r8, rdi
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, qword [rsp + 0x80]
mov qword [rbx], rax
test rax, rax
je 0x18001a54d
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18001a5e0
mov r8, qword [rbx]
test r8, r8
je 0x18001a5ca
mov rcx, qword [rsi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x18001a54d
and qword [rbx], 0
jmp 0x18001a54d
mov ecx, 0x5e1
lea rdx, str._HeapFree__NULL_n
call fcn.180030818
jmp 0x18001a54d
mov rdx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, edi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001a60d
mov r8, qword [rbx]
test r8, r8
jne 0x18001a5b4
mov ecx, 0x5e8
jmp 0x18001a5cf
mov dword [rbp], edi
mov al, 1
jmp 0x18001a54f
Function at 0x18001a870
Capabilities:
Get file size
Read file on windows
Write file on windows

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 r13
push r14
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov rcx, rsi
mov r14d, r9d
mov rbp, r8
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
test eax, eax
je 0x18001a8d4
mov rdx, qword [rbp + 8]
mov rax, qword [rdx]
jmp 0x18001a8cf
mov ecx, dword [rax + 0x10]
mov r13d, dword [rax + 0x14]
mov ebx, dword [rax + 0x18]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], r13d
cmp ecx, r14d
je 0x18001a8f5
mov rax, qword [rax]
cmp rax, rdx
jne 0x18001a8b4
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
mov rdx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
shr rdx, 0x20
mov rcx, rsi
add edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or r14d, 0xffffffff
cmp eax, r14d
je 0x18001a8d4
mov rcx, qword [rdi + 8]
sub r12d, ebx
mov edx, 8
sub r12d, r13d
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001a8d4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, r12d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001a96a
mov rcx, qword [rdi + 8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001a8d4
lea edx, [r13 - 8]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r14d
je 0x18001a956
mov r8d, dword [rsp + 0x30]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 8]
xor edx, edx
mov r8, rbx
test eax, eax
je 0x18001a95f
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x18001a8d4
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.180019508
mov al, 1
jmp 0x18001a8d6
Function at 0x18001e508
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r14, qword [rbp + 0x68]
xor ebx, ebx
mov r13, r8
mov dword [r14], ebx
mov r11, rdx
mov r15, rcx
mov edi, ebx
mov r10b, bl
cmp qword [r8 + 0x10], rbx
je 0x18001e6ac
mov r8, qword [r8 + 8]
mov rax, qword [r8]
cmp rax, r8
je 0x18001e6ac
mov rcx, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
mov qword [rbp - 0x10], rcx
mov rcx, qword [rax + 0x20]
mov qword [rbp - 8], rcx
cmp edx, r9d
jne 0x18001e581
shr rdx, 0x20
mov r10b, 1
lea edi, [rdi + rdx - 0xc]
mov rax, qword [rax]
cmp rax, r8
jne 0x18001e55d
test r10b, r10b
je 0x18001e6ac
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
lea rax, [rbp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r11
mov qword [rsp + 0x28], rbx
mov dword [rbp - 0x20], ebx
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x18001e6ac
mov eax, dword [rbp + 0x50]
imul eax, dword [rbp - 0x20]
cmp edi, eax
ja 0x18001e6ac
mov rcx, qword [r15 + 8]
mov r8d, edi
mov edx, 8
add r8, 0xc
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, qword [rbp + 0x60]
mov qword [rsi], rax
mov r12, rax
test rax, rax
je 0x18001e6ac
mov rax, qword [r13 + 8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x18001e6dc
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x18]
mov qword [rbp - 8], rax
cmp ecx, dword [rbp + 0x58]
jne 0x18001e687
shr rcx, 0x20
lea rax, [rbp + 0x68]
lea r9, [rbp - 0x1c]
mov dword [rbp + 0x68], ecx
mov rcx, qword [rbp + 0x48]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18001e690
mov r8d, dword [rbp + 0x68]
lea rdx, [r12 + 0xc]
mov rcx, r12
sub r8, 0xc
call qword [sym.imp.msvcrt.dll_memcpy]
mov r11d, dword [rbp + 0x68]
lea r12, [r12 + r11 - 0xc]
mov rbx, qword [rbx]
cmp rbx, qword [r13 + 8]
jmp 0x18001e623
mov r8, qword [rsi]
test r8, r8
je 0x18001e6c9
mov rcx, qword [r15 + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x18001e6ac
and qword [rsi], 0
xor al, al
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str._HeapFree__NULL_n
mov ecx, 0x46d
call fcn.180030818
jmp 0x18001e6ac
mov dword [r14], edi
mov al, 1
jmp 0x18001e6ae
Function at 0x18001ecf4
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov dword [r11 + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r12b, r12b
cmp qword [r8 + 0x10], 0
mov rbp, r8
mov r14, rdx
mov r15, rcx
je 0x18001edea
mov rax, qword [r8 + 8]
mov rdi, qword [rax]
cmp rdi, rax
je 0x18001edea
mov rbx, qword [r11 + 0x18]
mov rsi, rbx
mov rax, qword [rdi + 0x20]
mov r13, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
cmp dword [rdi + 0x10], r9d
jne 0x18001eda9
test r12b, r12b
jne 0x18001ed5a
mov rbx, rdi
mov r12b, 1
mov rdx, r13
mov rcx, r14
mov rsi, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x18001edbc
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
jne 0x18001edbc
test r13, r13
je 0x18001ed90
mov rcx, qword [r15 + 8]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001eda1
lea rdx, str._HeapFree__NULL_n
mov ecx, 0x58c
call fcn.180030818
mov r9d, dword [rsp + 0x98]
mov rdi, qword [rdi]
cmp rdi, qword [rbp + 8]
jne 0x18001ed3c
test r12b, r12b
je 0x18001edea
mov rdi, qword [rsi]
jmp 0x18001ede5
xor al, al
jmp 0x18001edec
mov rcx, rbx
mov rbx, qword [rbx]
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
dec qword [rbp + 0x10]
cmp rbx, rdi
jne 0x18001edc0
mov al, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180024620
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14, rcx
mov rcx, qword [rcx]
mov r13, r8
mov rbp, rdx
mov r8d, 0x800
mov edx, 8
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [0x18003a0b0]
xor ebx, ebx
mov ecx, 0x5b1
mov qword [r13], rax
mov dword [r12], ebx
call fcn.180030818
lea rdx, str.UPLOAD_n
mov ecx, 0x5b2
call fcn.180030818
mov rcx, qword [r14]
mov rdx, rbp
call fcn.180031c3c
mov rdi, rax
test rax, rax
jne 0x1800246d1
mov rcx, qword [r13]
lea rax, str.Error_ExpandCSIDLandEnvironment___n
lea r9, str.___File_upload_FAILED_n
mov qword [rsp + 0x28], rax
lea r8, str._s_s_n_s_n
mov edx, 0x400
mov qword [rsp + 0x20], rbp
call qword [sym.imp.msvcrt.dll__snwprintf]
add eax, eax
or ebx, 0xffffffff
mov dword [r12], eax
jmp 0x180024809
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180024754
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [r13]
lea r9, str.___File_upload_FAILED_n
mov dword [rsp + 0x38], eax
mov ebx, eax
lea rax, str.Error_code_
mov qword [rsp + 0x30], rax
lea rax, str.Error_CreateFile___n
lea r8, str._s_s_n_s_s_d_n
mov qword [rsp + 0x28], rax
mov edx, 0x400
mov qword [rsp + 0x20], rdi
call qword [sym.imp.msvcrt.dll__snwprintf]
add eax, eax
mov dword [r12], eax
jmp 0x1800247fb
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcslen]
mov dword [rsp + 0x78], ebx
lea r9, [rsp + 0x78]
mov r8d, dword [rbp + rax*2 + 2]
lea rdx, [rbp + rax*2 + 6]
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800247ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [r13]
lea r9, str.___File_upload_FAILED_n
mov dword [rsp + 0x38], eax
mov ebx, eax
lea rax, str.Error_code_
mov qword [rsp + 0x30], rax
lea rax, str.Error_WriteFile___n
lea r8, str._s_s_n_s_s_d_n
mov qword [rsp + 0x28], rax
mov edx, 0x400
mov qword [rsp + 0x20], rdi
call qword [sym.imp.msvcrt.dll__snwprintf]
jmp 0x1800247ec
mov rcx, qword [r13]
lea r9, str.File_upload_OK_n
lea r8, str._s_s
mov edx, 0x400
mov qword [rsp + 0x20], rdi
call qword [sym.imp.msvcrt.dll__snwprintf]
add eax, eax
mov rcx, rsi
mov dword [r12], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, str.Return__d_n
mov r8d, ebx
mov ecx, 0x5e7
call fcn.180030818
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180024838
Capabilities:
Get file size
Read file on windows

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 r13
push r14
sub rsp, 0x40
mov r14, rcx
mov rcx, qword [rcx]
mov rbp, r8
mov rdi, rdx
mov r8d, 0x800
mov edx, 8
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [0x18003a0b0]
xor ebx, ebx
mov ecx, 0x5f9
mov qword [rbp], rax
mov dword [r12], ebx
call fcn.180030818
lea rdx, str.DOWNLOAD_n
mov ecx, 0x5fa
call fcn.180030818
mov rcx, qword [r14]
mov rdx, rdi
call fcn.180031c3c
mov rsi, rax
test rax, rax
jne 0x1800248f0
mov rcx, qword [rbp]
lea rax, str.Error_ExpandCSIDLandEnvironment___n
lea r9, str.___File_download_FAILED_n
mov qword [rsp + 0x28], rax
lea r8, str._s_s_n_s_n
mov edx, 0x400
mov qword [rsp + 0x20], rdi
call qword [sym.imp.msvcrt.dll__snwprintf]
add eax, eax
or ebx, 0xffffffff
mov dword [r12], eax
jmp 0x180024a3e
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180024973
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp]
lea r9, str.___File_download_FAILED_n
mov dword [rsp + 0x38], eax
mov ebx, eax
lea rax, str.Error_code_
mov qword [rsp + 0x30], rax
lea rax, str.Error_CreateFile___n
lea r8, str._s_s_n_s_s_d_n
mov qword [rsp + 0x28], rax
mov edx, 0x400
mov qword [rsp + 0x20], rsi
call qword [sym.imp.msvcrt.dll__snwprintf]
add eax, eax
mov dword [r12], eax
jmp 0x180024a30
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r8, qword [rbp]
mov rcx, qword [r14]
mov r9d, eax
mov edx, 8
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbp], rax
test rax, rax
jne 0x1800249c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov ebx, eax
lea rax, str.Error_code_
mov qword [rsp + 0x30], rax
lea rax, str.Error_HeapReAlloc___n
jmp 0x1800249fa
mov r9, r12
mov r8d, r13d
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180024a27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov ebx, eax
lea rax, str.Error_code_
mov qword [rsp + 0x30], rax
lea rax, str.Error_ReadFile___n
mov rcx, qword [rbp]
mov qword [rsp + 0x28], rax
lea r9, str.___File_download_FAILED_n
lea r8, str._s_s_n_s_s_d_n
mov edx, 0x400
mov qword [rsp + 0x20], rsi
call qword [sym.imp.msvcrt.dll__snwprintf]
add eax, eax
mov dword [r12], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, str.Return__d_n
mov r8d, ebx
mov ecx, 0x634
call fcn.180030818
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x180024a74
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
sub rsp, 0x40
mov rcx, qword [rcx]
mov rsi, rdx
mov r8d, 0x800
mov edx, 8
mov rbp, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, qword [rsp + 0x80]
lea rdx, [0x18003a0b0]
and dword [r12], 0
mov ecx, 0x650
mov qword [rbp], rax
call fcn.180030818
lea rdx, str.REPLACEMENT_n
mov ecx, 0x651
call fcn.180030818
mov r11d, dword [rsp + 0x70]
and qword [rsp + 0x28], 0
xor r9d, r9d
add r11d, 4
xor edx, edx
lea r8d, [r9 + 4]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
and qword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 2]
xor r8d, r8d
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rdx, [rsp + 0x70]
mov rcx, rax
mov r8d, 4
mov rbx, rax
call qword [sym.imp.msvcrt.dll_memcpy]
mov r8d, dword [rsp + 0x70]
lea rcx, [rbx + 4]
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_memcpy]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rdi
call fcn.18000bcc8
test al, al
je 0x180024bc0
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.18000b59c
test al, al
je 0x180024bc0
call fcn.18000bc78
test al, al
je 0x180024bc0
call fcn.18000c918
mov rcx, qword [rbp]
lea r9, str.Replacement_OK_n
lea r8, [0x18003dddc]
mov edx, 0x400
call qword [sym.imp.msvcrt.dll__snwprintf]
lea rdx, str.Return_0_n
mov ecx, 0x681
add eax, eax
mov dword [r12], eax
call fcn.180030818
xor eax, eax
jmp 0x180024bfe
mov rcx, qword [rbp]
lea r9, str.___Replacement_FAILED_n
lea r8, [0x18003dddc]
mov edx, 0x400
call qword [sym.imp.msvcrt.dll__snwprintf]
mov ebx, 0xffff
lea rdx, str.Return__d_n
add eax, eax
mov r8d, ebx
mov ecx, 0x66b
mov dword [r12], eax
call fcn.180030818
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret