joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180022490
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x180022545
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x180022511
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180022530
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180022530
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x180022530
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x180131ed8], 0
jne 0x180022590
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180022580
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180131ed0], rax
mov byte [0x180131ed8], 1
jmp 0x180022597
mov rax, qword [0x180131ed0]
mov byte [0x180131ed8], 1
jmp 0x180022597
mov rax, qword [0x180131ed0]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x18002251a
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x180023a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [0x1800d4958]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180023aee
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [0x1800d4958]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180023aee
call fcn.1800213a0
mov ebx, eax
jmp 0x180023c10
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180023b0f
call fcn.1800213a0
jmp 0x180023bff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180023b32
call fcn.1800213a0
jmp 0x180023bff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x180023b54
mov ebx, 0x8007000e
jmp 0x180023c01
mov ecx, eax
test eax, eax
je 0x180023b89
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180023c48
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180023b89
lea rcx, [rsp + 0x70]
call fcn.180021370
jmp 0x180023b93
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180023ba6
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x180023bb7
mov ebx, 0x8007000e
jmp 0x180023c01
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180023bdc
call fcn.1800213a0
jmp 0x180023bff
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180023570
mov ebx, eax
test rdi, rdi
je 0x180023c10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180023c27
lea rcx, [rsp + 0x70]
call fcn.180021350
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18008f850
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1800220a0
int3
Function at 0x1800247a0
Capabilities:
Get file size
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push r14
push r15
sub rsp, 0x88
xor ebp, ebp
mov esi, r8d
mov r15, r9
mov r14, rcx
cmp rcx, 0xffffffffffffffff
je 0x1800249bc
test rdx, rdx
je 0x1800249bc
test r9, r9
je 0x1800249bc
mov dword [r9], ebp
test r8d, r8d
jne 0x1800247f2
lea eax, [rbp + 1]
add rsp, 0x88
pop r15
pop r14
pop rsi
pop rbp
ret
xor edx, edx
lea r8, [rsp + 0xd0]
xor eax, eax
mov qword [rsp + 0xd0], rax
lea r9d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800249bc
xor eax, eax
lea rdx, [rsp + 0xb0]
mov rcx, r14
mov qword [rsp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800249bc
mov rax, qword [rsp + 0xd0]
cmp qword [rsp + 0xb0], rax
jl 0x1800249bc
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x78], r12
call fcn.180024710
neg eax
lea rcx, [rsp + 0x38]
sbb r12d, r12d
and r12d, 0x18000000
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x60]
xor edx, edx
lea ebx, [rcx + rsi]
mov eax, ebx
div ecx
mov rax, qword [rsp + 0xd0]
sub ebx, edx
cqo
idiv rcx
add ebx, ecx
mov rdi, rax
mov rax, qword [rsp + 0xb0]
imul rdi, rcx
mov rdx, rax
mov ecx, ebx
sub rdx, rdi
mov qword [rsp + 0x30], rdi
cmp rcx, rdx
jle 0x1800248c5
mov ebx, eax
sub ebx, edi
mov r9d, dword [rsp + 0xb4]
or r12d, 2
mov r8d, r12d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r12, rax
test rax, rax
je 0x180024997
mov r8d, dword [rsp + 0x34]
mov r9d, edi
mov eax, ebx
mov edx, 4
mov qword [rsp + 0x28], rbp
mov rcx, r12
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov r13, rax
test rax, rax
je 0x180024989
mov rax, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xd0]
mov rdx, rax
sub rdx, r8
cmp rdx, rsi
jge 0x180024943
mov esi, eax
sub esi, r8d
mov rcx, qword [rsp + 0xb8]
sub r8, rdi
add r8, r13
mov r9d, esi
mov edx, esi
call fcn.1800213f0
mov r9d, 1
mov edx, esi
lea r8, [rsp + 0xd0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180024980
mov dword [r15], esi
mov ebp, 1
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov eax, ebp
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x88
pop r15
pop r14
pop rsi
pop rbp
ret
xor eax, eax
add rsp, 0x88
pop r15
pop r14
pop rsi
pop rbp
ret
Function at 0x180024a80
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rdx, qword [0x180132068]
test rdx, rdx
jne 0x180024bd6
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.1800abaa0
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
dec rcx
cmp rcx, 0xf5
ja 0x180024bc6
lea rcx, [rsp + 0x30]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180024af2
mov eax, dword [0x1800f88e0]
mov dword [rcx], eax
lea rcx, [rsp + 0x30]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180024b10
movups xmm0, xmmword [str.Netapi32.dll]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x1800f8818]
movsd qword [rcx + 0x10], xmm1
movzx eax, word [0x1800f8820]
mov word [rcx + 0x18], ax
mov eax, dword [0x180132740]
test al, 1
jne 0x180024b7a
or eax, 1
mov dword [0x180132740], eax
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.AddDllDirectory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
setne al
mov byte [0x180132744], al
jmp 0x180024b81
movzx eax, byte [0x180132744]
neg al
sbb r8d, r8d
and r8d, 0x800
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [0x1800d4958]
test rax, rax
je 0x180024bc6
lea rdx, str.Netbios
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [0x180132068]
test rax, rax
cmovne rdx, rax
mov qword [0x180132068], rdx
jmp 0x180024bcd
mov rdx, qword [0x180132068]
test rdx, rdx
jne 0x180024bd6
mov al, 0x40
jmp 0x180024bdb
mov rcx, rbx
call rdx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18008f850
add rsp, 0x250
pop rbx
ret

Function at 0x180025c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180025ca5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180025ca5
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180025c95
nop
cmp rbx, rcx
jae 0x180025ca5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180025c80
cmp rbx, rcx
jae 0x180025ca5
cmp word [rbx], 0
je 0x180025ca5
mov rax, rbx
jmp 0x180025ca7
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180029420
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
test r8, r8
je 0x18002956b
xor eax, eax
lea r9, [rsp + 0x28]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
xor ebp, ebp
mov qword [rsp + 0x28], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jne 0x18002956b
cmp dword [rsp + 0x28], 0xffffffff
je 0x18002956b
mov rax, qword [rbx]
lea r9, [rsp + 0x20]
lea r8d, [rbp + 0x40]
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
js 0x18002956b
cmp dword [rsp + 0x20], 0x40
jne 0x18002956b
mov eax, 0x5a4d
cmp word [rsp + 0x30], ax
jne 0x18002956b
mov edx, dword [rsp + 0x6c]
mov rcx, rbx
call fcn.18002a6d0
cmp eax, 0xffffffff
je 0x18002956b
mov rax, qword [rbx]
lea r9, [rsp + 0x20]
mov r8d, 0xf8
mov dword [rsp + 0x20], ebp
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
js 0x18002956b
cmp dword [rsp + 0x20], 0xf8
jne 0x18002956b
cmp dword [rdi], 0x4550
jne 0x18002956b
movzx eax, word [rdi + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x180029567
mov ecx, 0x20b
cmp ax, cx
jne 0x18002956b
mov edx, dword [rsp + 0x6c]
mov rcx, rbx
call fcn.18002a6d0
cmp eax, 0xffffffff
je 0x18002956b
mov rax, qword [rbx]
lea r9, [rsp + 0x20]
mov r8d, 0x108
mov dword [rsp + 0x20], ebp
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
js 0x18002956b
cmp dword [rsp + 0x20], 0x108
jne 0x18002956b
cmp dword [rsi], 0x4550
jne 0x18002956b
lea eax, [rbp + 1]
jmp 0x180029570
xor eax, eax
jmp 0x180029570
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18008f850
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002b1f0
Capabilities:
Get file size
Write file on windows

Disassembly:
push rsi
push rdi
mov eax, 0x1098
call fcn.180090180
sub rsp, rax
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rsp + 0x1080], rax
cmp qword [rcx + 0x270], 0xffffffffffffffff
mov rsi, rdx
mov rdi, rcx
jne 0x18002b22c
mov eax, 0x80070057
jmp 0x18002b432
xor eax, eax
mov qword [rsp + 0x10c8], rbp
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x1090], r14
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x1000
call fcn.1800abaa0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rdi + 0x2a6]
xor r14d, r14d
mov ebp, eax
mov dword [rsp + 0x60], r14d
cmp word [rsp + 0x6e], cx
jne 0x18002b2a2
movzx ecx, word [rdi + 0x2a2]
cmp word [rsp + 0x6a], cx
jne 0x18002b2a2
movzx ecx, word [rdi + 0x2a0]
cmp word [rsp + 0x68], cx
je 0x18002b2d3
mov rcx, rdi
call fcn.18002b150
lea r9, [rdi + 0x24a]
mov rdx, rdi
cmp word [r9], r14w
lea r8, [rdi + 0x208]
mov rcx, rdi
cmove r9, r14
call fcn.18002ad90
test eax, eax
js 0x18002b3e0
cmp dword [rdi + 0x2b4], r14d
je 0x18002b2fa
mov rcx, qword [rdi + 0x270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
shr eax, 0xa
cmp eax, dword [rdi + 0x2b4]
jae 0x18002b3e0
movzx ecx, word [rsp + 0x74]
mov edx, 0x1000
movzx r8d, word [rsp + 0x72]
mov eax, dword [rdi + 0x2b0]
movzx r10d, word [rsp + 0x70]
movzx r11d, word [rsp + 0x6e]
movzx r9d, word [rsp + 0x68]
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x38], r8d
lea r8, str._4.4d__2.2d__2.2d__2.2d:_2.2d:_2.2d_t_d:_d_t_s_r_n
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x10c0], rbx
movzx ebx, word [rsp + 0x6a]
mov dword [rsp + 0x20], ebx
call fcn.18002d560
mov rbx, qword [rsp + 0x10c0]
test eax, eax
js 0x18002b3e0
mov edx, 0x800
lea rax, [rsp + 0x80]
mov ecx, edx
cmp word [rax], r14w
je 0x18002b392
add rax, 2
sub rcx, 1
jne 0x18002b382
test rcx, rcx
je 0x18002b39c
sub rdx, rcx
jmp 0x18002b39f
mov rdx, r14
test rcx, rcx
je 0x18002b3e0
mov rcx, qword [rdi + 0x270]
lea r8d, [rdx + rdx]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18002b3d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002b3e0
mov rcx, qword [rdi + 0x270]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [rdi + 0x2b8], 0
mov r14, qword [rsp + 0x1090]
mov rbp, qword [rsp + 0x10c8]
jbe 0x18002b430
movzx eax, word [rdi + 0x2c2]
cmp word [rsp + 0x6e], ax
jne 0x18002b423
movzx eax, word [rdi + 0x2be]
cmp word [rsp + 0x6a], ax
jne 0x18002b423
movzx eax, word [rdi + 0x2bc]
cmp word [rsp + 0x68], ax
je 0x18002b430
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.18002b450
xor eax, eax
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.18008f850
add rsp, 0x1098
pop rdi
pop rsi
ret
Function at 0x18002dda0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r10, r9
mov r9, rdx
mov rax, r8
test r8, r8
jne 0x18002ddaf
ret
mov r8, r10
mov rdx, rax
mov rcx, r9
jmp fcn.18002d9f0

Function at 0x18002e550
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor edi, edi
mov r14, r9
mov rbx, r8
mov rsi, rdx
mov r15, rcx
test r9, r9
je 0x18002e579
mov qword [r9], rdi
mov ecx, 8
call fcn.180033710
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rsi
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], r8d
test rax, rax
je 0x18002e5ad
call rax
jmp 0x18002e5b3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18002e6cf
mov ecx, 0x28
mov qword [rsp + 0x40], rdi
call fcn.180033710
lea rdx, [rsp + 0x40]
mov rcx, rsi
test rax, rax
je 0x18002e5e0
call rax
jmp 0x18002e5e6
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov qword [rsp + 0x70], rbp
test eax, eax
je 0x18002e6a1
cmp dword [rsp + 0x44], edi
jne 0x18002e6a1
mov rax, qword [rsp + 0x40]
cmp eax, 0x1400000
ja 0x18002e6a1
mov ecx, eax
lea rdx, [0x18012f134]
inc rcx
call fcn.18008f8a8
mov rbp, rax
test rax, rax
je 0x18002e694
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x88]
mov rdx, rax
mov dword [rsp + 0x88], edi
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002e67f
mov rax, qword [rsp + 0x40]
cmp dword [rsp + 0x88], eax
jne 0x18002e67f
mov r9, rbx
mov qword [rsp + 0x20], r14
mov r8d, eax
mov rdx, rbp
mov rcx, r15
call fcn.18002ebd0
mov rcx, rbp
mov edi, eax
call fcn.18008f874
jmp 0x18002e6ac
test rbx, rbx
je 0x18002e68a
mov dword [rbx], 8
mov rcx, rbp
call fcn.18008f874
jmp 0x18002e6ac
test rbx, rbx
je 0x18002e6ac
mov dword [rbx], 7
jmp 0x18002e6ac
test rbx, rbx
je 0x18002e6ac
mov dword [rbx], 5
mov ecx, 0x16
call fcn.180033710
mov rbp, qword [rsp + 0x70]
mov rcx, rsi
test rax, rax
je 0x18002e6c7
call rax
jmp 0x18002e6da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18002e6da
test rbx, rbx
je 0x18002e6da
mov dword [rbx], 5
mov rbx, qword [rsp + 0x78]
mov eax, edi
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x180045d70
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
push rdi
push r13
push r14
sub rsp, 0x4c8
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
xor r13d, r13d
lea r14, [rcx + 0x38]
cmp qword [r14], 0xffffffffffffffff
mov rdi, rcx
mov ebp, r13d
je 0x180045dac
lea eax, [r13 + 1]
jmp 0x180045ee6
mov qword [rsp + 0x500], rsi
xor ecx, ecx
mov qword [rsp + 0x4c0], r15
call fcn.1800aefe0
lea rcx, [rdi + 0x444]
mov rsi, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180045de0
mov dword [rdi + 0x30], r13d
jmp 0x180045ed6
mov qword [rsp + 0x4f8], rbx
mov qword [rsp + 0x508], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r12d, eax
mov ebx, 0x104
lea rax, str..log2
inc ebp
mov qword [rsp + 0x38], rax
lea rcx, str.New360_tmp_
mov dword [rsp + 0x30], r12d
lea r9, [rdi + 0x444]
mov dword [rsp + 0x28], esi
lea r8, str._s_s_d__d_s
mov qword [rsp + 0x20], rcx
mov rdx, rbx
lea rcx, [rsp + 0x2a0]
call fcn.18002d2f0
lea rcx, [rsp + 0x2a0]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], r13w
jne 0x180045e50
test rax, rax
je 0x180045f04
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180045f04
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180045e90
test al, 0x10
jmp 0x180045eb7
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x180045f04
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rsp + 0x50], 0x10
jne 0x180045f04
inc esi
cmp ebp, 0x64
jl 0x180045dfe
xor eax, eax
mov r12, qword [rsp + 0x508]
mov rbx, qword [rsp + 0x4f8]
mov rsi, qword [rsp + 0x500]
mov r15, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.18008f850
add rsp, 0x4c8
pop r14
pop r13
pop rdi
pop rbp
ret
lea r8, [rdi + 0x854]
lea rcx, [rsp + 0x2a0]
mov rdx, r8
sub rcx, r8
nop dword [rax]
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x180045f42
movzx eax, word [rcx + rdx]
test ax, ax
je 0x180045f42
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x180045f20
test rbx, rbx
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r13w
test r14, r14
je 0x180045ec4
mov rdx, r14
mov rcx, r8
call fcn.180046e90
test eax, eax
je 0x180045ec4
xor ecx, ecx
mov dword [rdi + 0xc64], r13d
call fcn.1800aefe0
mov rcx, qword [r14]
lea rdx, [rdi + 0xcd4]
lea r9, [rsp + 0x40]
mov dword [rdi + 0xc68], eax
mov r8d, 0xc8
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180045ec4
cmp dword [rsp + 0x40], 0xc8
jne 0x180045ec4
add dword [rdi + 0xc64], 0xc8
mov eax, 1
jmp 0x180045ec6
Function at 0x180046d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x2c0
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rsi, rcx
xor edi, edi
lea rcx, [rsp + 0x50]
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov word [rbx], di
lea r14, str..log2
lea r15, str.New360_formal_
nop dword [rax]
inc edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [rsi + 0xc70]
lea r9, [rsi + 0x444]
mov qword [rsp + 0x40], r14
lea r8, str._s_s_I64d__d__d_s
mov dword [rsp + 0x38], ecx
mov edx, 0x104
mov dword [rsp + 0x30], eax
mov rcx, rbx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
call fcn.18002d2f0
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x180046e00
test rax, rax
je 0x180046e64
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180046e64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180046e2e
test al, 0x10
jmp 0x180046e50
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x180046e64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rsp + 0x60], 0x10
jne 0x180046e64
inc qword [rsp + 0x50]
cmp edi, 0x64
jl 0x180046db0
xor eax, eax
jmp 0x180046e69
mov eax, 1
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.18008f850
mov rbx, qword [rsp + 0x300]
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180046fd0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push rsi
push rdi
push r15
sub rsp, 0x58
xor ebx, ebx
mov rdi, r8
mov qword [rax + 0x20], rbx
mov r15, rcx
mov dword [rax + 0x10], ebx
mov esi, ebx
test r8, r8
je 0x18004713d
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], bx
jne 0x180047001
test rax, rax
je 0x18004713d
mov qword [rsp + 0x50], rbp
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r14
nop word [rax + rax]
cmp word [r8 + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x180047030
lea ebp, [rax + rax*2]
add ebp, ebp
mov ecx, ebp
mov r12d, ebp
call fcn.18008fb6c
mov r14, rax
test rax, rax
je 0x180047093
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.1800abaa0
mov qword [rsp + 0x38], rbx
mov r9d, 0xffffffff
mov qword [rsp + 0x30], rbx
mov r8, rdi
mov dword [rsp + 0x28], ebp
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test eax, eax
je 0x180047114
test ebp, ebp
je 0x180047114
lea r8d, [rbp - 1]
cmp ebp, 1
lea rax, [rsp + 0x88]
mov rdx, r14
cmovbe r8d, ebp
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x98]
mov rcx, r15
call fcn.1800473b0
mov rsi, qword [rsp + 0x98]
test eax, eax
je 0x180047114
mov edi, dword [rsp + 0x88]
lea r9, [rsp + 0x90]
mov rcx, qword [r15 + 0x38]
mov r8d, edi
mov rdx, rsi
mov dword [rsp + 0x90], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180047114
mov eax, dword [rsp + 0x90]
cmp eax, edi
jne 0x180047114
add dword [r15 + 0xc64], eax
mov ebx, 1
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
test r14, r14
je 0x18004712b
mov rcx, r14
call fcn.18008f874
mov r14, qword [rsp + 0x40]
test rsi, rsi
je 0x18004713d
mov rcx, rsi
call fcn.18008f874
mov eax, ebx
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret