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

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, qword [fcn.14001d7c0]
mov r12, qword [rcx]
mov ecx, 1
call rbx
mov rcx, rax
mov rdx, r12
call fcn.140012af0
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x14002efb2]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
add rsp, 0x28
pop rbx
pop r12
jmp sub.msvcrt.dll_fflush

Function at 0x140016670
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001d7c0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001d7c0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400172a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004d3a8]
test eax, eax
je 0x14001733a
lea rax, [0x14004d380]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004d3b0]
mov qword [rbp - 8], rax
jmp 0x14001731e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140017312
cmp qword [rbp - 0x10], 0
je 0x140017312
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400172d8
lea rax, [0x14004d380]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001733b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140017440
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140017468
mov eax, 0
jmp 0x1400174b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140017491
mov eax, 0
jmp 0x1400174b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400174b1
mov eax, 0
jmp 0x1400174b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400174bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001753a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140017531
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140017531
mov rax, qword [rbp - 8]
jmp 0x14001754f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140017504
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400022d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000231a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000231a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000231a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000231a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000231a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000231c
xor al, al
add rsp, 0x28
ret
Function at 0x6a5c7ae0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
test rdx, rdx
mov rbx, rcx
mov rcx, rdx
je 0x6a5c7b0d
cmp byte [rcx], 0
lea rdx, [rdx + 1]
je 0x6a5c7b0d
nop dword [rax]
lea rax, [rdx + r8]
add r8, 1
cmp byte [rax], 0
jne 0x6a5c7b00
mov r9, rbx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sub.msvcrt.dll_fflush

Function at 0x6a5c85b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x6a68b9d0]
call qword [rax]
xor edx, edx
cmp byte [rax + 2], 0
jne 0x6a5c85d0
mov eax, edx
add rsp, 0x20
pop rbx
ret
mov rbx, qword [fcn.6a5dd780]
mov ecx, 1
call rbx
lea rdx, [0x6a689b00]
mov rcx, rax
call fcn.6a5d9790
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x6a689833]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
mov edx, 1
mov eax, edx
add rsp, 0x20
pop rbx
ret
Function at 0x6a5dc080
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6a68ed24]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6a5dc208
mov rax, qword [0x6a68ed28]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6a5dc0cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6a5dc155
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6a5dc0b0
mov rcx, rbx
call fcn.6a5dcd20
test rax, rax
mov r12, rax
je 0x6a5dc23d
mov rax, qword [0x6a68ed28]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.6a5dce50
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6a68ed28]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6a5dc220
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6a5dc14e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6a5dc1b0
add dword [0x6a68ed24], 1
cmp edi, 8
jae 0x6a5dc183
test dil, 4
jne 0x6a5dc1f4
test edi, edi
je 0x6a5dc178
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6a5dc20f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6a5dc178
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6a5dc19c
jmp 0x6a5dc178
add rsi, qword [0x6a68ed28]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6a5dc14e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6a5dd8d0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6a5dc178
xor esi, esi
jmp 0x6a5dc0d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6a5dc178
mov rax, qword [0x6a68ed28]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.6a5dd8d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.6a5dd8d0
nop
nop dword [rax]

Function at 0x6a5dc990
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6a68f000]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6a68efe0]
test rbx, rbx
je 0x6a5dc9e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6a5dc9db
test rsi, rsi
je 0x6a5dc9db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6a5dc9c0
lea rcx, [0x6a68f000]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6a5dcd20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6a68bb20]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6a5dcd8d
mov rcx, r8
call fcn.6a5dcc00
test eax, eax
je 0x6a5dcd8d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6a5dcd8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6a5dcd84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6a5dcd8f
add rax, 0x28
cmp rax, r9
jne 0x6a5dcd70
xor eax, eax
add rsp, 0x28
ret

Function at 0x6a5dd8d0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x6a5413a0]
jmp 0x6a541380
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.6a5dd780
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.6a5dd780
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x6a541390
Function at 0x180005f20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
cmp byte [0x1800c54c8], 0
lea rbx, [0x1800c5980]
mov r10d, edx
mov r11, rcx
jne 0x180005fdc
xor r8d, r8d
mov r9, rbx
mov eax, r8d
shr eax, 1
test r8b, 1
je 0x180005f55
xor eax, 0xedb88320
test al, 1
je 0x180005f62
shr eax, 1
xor eax, 0xedb88320
jmp 0x180005f64
shr eax, 1
test al, 1
je 0x180005f71
shr eax, 1
xor eax, 0xedb88320
jmp 0x180005f73
shr eax, 1
test al, 1
je 0x180005f80
shr eax, 1
xor eax, 0xedb88320
jmp 0x180005f82
shr eax, 1
test al, 1
je 0x180005f8f
shr eax, 1
xor eax, 0xedb88320
jmp 0x180005f91
shr eax, 1
test al, 1
je 0x180005f9e
shr eax, 1
xor eax, 0xedb88320
jmp 0x180005fa0
shr eax, 1
test al, 1
je 0x180005fad
shr eax, 1
xor eax, 0xedb88320
jmp 0x180005faf
shr eax, 1
test al, 1
je 0x180005fbc
shr eax, 1
xor eax, 0xedb88320
jmp 0x180005fbe
shr eax, 1
mov dword [r9], eax
inc r8d
add r9, 4
cmp r8d, 0x100
jl 0x180005f45
mov byte [0x1800c54c8], 1
or edx, 0xffffffff
test r10d, r10d
je 0x180006010
nop dword [rax]
nop dword [rax + rax]
movsx ecx, byte [r11]
lea r11, [r11 + 1]
mov eax, edx
xor rcx, rax
movzx eax, cl
mov ecx, edx
shr ecx, 8
mov edx, dword [rbx + rax*4]
xor edx, ecx
sub r10d, 1
jne 0x180005ff0
mov rbx, qword [rsp + 8]
not edx
mov eax, edx
ret

Function at 0x180006020
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 8]
mov rbx, rcx
mov rcx, qword [rcx]
call fcn.180005f20
mov r9d, dword [rbx + 8]
mov r8d, dword [rbx]
mov edx, r8d
mov r10, qword [rbx]
xor r8d, r9d
xor r8d, 0x41433030
xor edx, r9d
xor edx, eax
xor eax, eax
mov word [rsp + 0x31], ax
movzx eax, r8w
shr ax, 8
mov byte [rsp + 0x30], al
mov byte [rsp + 0x31], r8b
shr r8d, 0x10
movzx eax, r8w
mov dword [rbx + 0xc], edx
shr ax, 8
mov byte [rsp + 0x32], al
xor eax, eax
mov byte [rsp + 0x33], r8b
test r9d, r9d
je 0x1800060b9
nop word [rax + rax]
mov r8d, eax
lea ecx, [rax + 2]
movzx ecx, cl
lea r9, [rax + r10]
imul edx, ecx, 0xbb
and r8d, 3
inc eax
movzx ecx, byte [rsp + r8 + 0x30]
xor cl, dl
xor byte [r9], cl
cmp eax, dword [rbx + 8]
jb 0x180006090
add rsp, 0x20
pop rbx
ret

Function at 0x1800062d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rcx, [0x18009f2d8]
jmp 0x180e5d4a5

Function at 0x180028d70
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rcx, [0x18009f2d8]
jmp 0x180e66023
Function at 0x1800512b0
Capabilities:
Contain obfuscated stackstrings
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rax, qword [0x1800c2008]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, [0x1800a2798]
jmp 0x180e74e5c

Function at 0x1800514b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
mov rax, qword [0x1800c2008]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rcx, [0x1800a27c8]
jmp 0x180e75155

Function at 0x180051610
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1800c2008]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rcx, [0x1800a27f0]
jmp 0x180e75381
Function at 0x1800d86e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1800d870d
xor al, al
jmp 0x1800d886f
mov rax, qword [0x1800f96c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1800f96c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1800f96d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1800f96d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1800f96e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1800f96e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1800f96f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1800f96f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1800f9700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1800d8861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1800d87b9
mov r11d, 2
jmp 0x1800d87dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1800d87d3
mov r11d, 1
jmp 0x1800d87dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1800d8885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1800d8822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1800d883a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1800d884a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1800d8858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1800d87a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1800d886a

Function at 0x18011d4c1
Capabilities:
Execute syscall

Disassembly:
call fcn.1800601a6
mov r10, rcx
mov ah, 0x11
movzx ax, dh
mov eax, dword [0x1800c2c14]
jmp 0x180ad746d
syscall
ret

Function at 0x1803b334d
Capabilities:
Execute syscall

Disassembly:
call fcn.1800601a6
mov r10, rcx
movzx eax, r9w
not ax
lahf
mov eax, dword [0x1800c2c9c]
jmp 0x1806a7940
syscall
ret
Function at 0x4072ec
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x4072fa
and edx, 0x3fff
jmp fcn.00407244

Function at 0x407300
Capabilities:
Delete directory

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040b47c
mov ebx, eax
cmp eax, 1
je 0x407330
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x407330
mov al, 1
jmp 0x407381
test ebx, ebx
je 0x40737f
lea rcx, [rsp + 0x28]
call fcn.0040365c
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040bb48
test al, al
je 0x407375
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call fcn.00402344
mov al, bl
jmp 0x407381
mov rcx, qword [rsp + 0x28]
call fcn.00402344
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x4073a8
Capabilities:
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, rdx
mov r12, rcx
call fcn.0040b47c
mov esi, eax
mov rcx, rbp
call fcn.0040b47c
mov edi, eax
mov ebx, 1
cmp esi, ebx
je 0x4073f7
cmp eax, ebx
je 0x4073f7
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4073f7
mov al, bl
jmp 0x407485
test esi, esi
jne 0x407403
test edi, edi
je 0x407483
lea rcx, [rsp + 0x48]
call fcn.0040365c
nop
lea rcx, [rsp + 0x38]
call fcn.0040365c
nop
cmp esi, ebx
je 0x407421
cmp edi, ebx
jne 0x407423
xor bl, bl
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
mov rdx, rbp
mov rcx, r12
call fcn.0040bb90
test al, al
je 0x40746e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x38]
call fcn.00402344
nop
mov rcx, qword [rsp + 0x48]
call fcn.00402344
mov al, bl
jmp 0x407485
mov rcx, qword [rsp + 0x38]
call fcn.00402344
nop
mov rcx, qword [rsp + 0x48]
call fcn.00402344
xor al, al
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4075f8
Capabilities:
Create directory

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040b47c
mov ebx, eax
cmp eax, 1
je 0x407637
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40762a
mov al, 1
jmp 0x40768a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407688
test ebx, ebx
je 0x407688
lea rcx, [rsp + 0x28]
call fcn.0040365c
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040bb48
test al, al
je 0x40767e
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call fcn.00402344
mov al, bl
jmp 0x40768a
mov rcx, qword [rsp + 0x28]
call fcn.00402344
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x4076bc
Capabilities:
Delete file

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
call fcn.004089cc
cmp eax, 0xffffffff
je 0x4076f2
test al, 0x10
jne 0x4076f2
test al, 1
je 0x4076f2
and eax, 0xfffffffe
mov edx, eax
mov rcx, rbx
call fcn.00407244
test al, al
je 0x407763
mov rcx, rbx
call fcn.0040b47c
mov edi, eax
cmp eax, 1
je 0x407712
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407712
mov al, 1
jmp 0x407763
test edi, edi
je 0x407761
lea rcx, [rsp + 0x28]
call fcn.0040365c
nop
cmp edi, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.0040bb48
test al, al
je 0x407757
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x28]
call fcn.00402344
mov al, bl
jmp 0x407763
mov rcx, qword [rsp + 0x28]
call fcn.00402344
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x40778c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ecx, ecx
cmp eax, ecx
setne al
add rsp, 0x28
ret

Function at 0x4077a4
Capabilities:
Get common file path

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
mov dword [rcx + 8], 0
mov rax, qword [rcx]
mov word [rax], 0
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x114
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x4078a6
cmp ebx, 0x114
jae 0x407810
mov word [rsp + 0x268], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.00403840
mov al, 1
jmp 0x4078a6
lea rcx, [rsp + 0x20]
call fcn.0040365c
nop
cmp ebx, dword [rsp + 0x2c]
jbe 0x40782d
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.00403330
mov rdx, qword [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r11d, eax
test eax, eax
jne 0x40784f
mov rcx, qword [rsp + 0x20]
call fcn.00402344
xor al, al
jmp 0x4078a6
mov rcx, qword [rsp + 0x20]
mov word [rcx + rbx*2], 0
xor eax, eax
cmp word [rcx], ax
je 0x40786d
inc eax
add rcx, 2
cmp word [rcx], 0
jne 0x407861
mov dword [rsp + 0x28], eax
cmp eax, r11d
jne 0x40789a
lea eax, [rbx - 1]
cmp eax, r11d
jne 0x40789a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.004038a8
nop
mov rcx, qword [rsp + 0x20]
call fcn.00402344
mov al, 1
jmp 0x4078a6
mov rcx, qword [rsp + 0x20]
call fcn.00402344
xor al, al
add rsp, 0x278
pop rdi
pop rbx
ret

Function at 0x407998
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rbx, rcx
lea rdx, [rsp + 0x20]
xor edi, edi
mov ecx, 0x114
mov word [rsp + 0x20], di
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov esi, eax
call fcn.00403840
mov rcx, rbx
call fcn.0040ae04
cmp esi, edi
je 0x4079e5
cmp esi, 0x114
jae 0x4079e5
mov edi, 1
mov al, dil
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x4079f4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbp, r9
mov rsi, r8
mov r12b, dl
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
shl ebx, 2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, ebx
shl edi, 0xc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r13d, eax
xor r13d, edi
xor edi, edi
mov ebx, edi
lea r15d, [rdi + 1]
mov dword [rsi + 8], edi
mov rcx, qword [rsi]
mov byte [rcx], dil
cmp r12b, dil
je 0x407abc
mov r10d, r13d
mov r9, rdi
mov r11d, 8
mov r8d, r10d
and r8d, 0xf
shr r10d, 4
lea edx, [r8 + 0x30]
lea eax, [r8 + 0x37]
movzx ecx, al
movzx eax, dl
cmp r8d, 0xa
cmovb ecx, eax
mov byte [rsp + r9 + 0x38], cl
add r9, r15
sub r11, r15
jne 0x407a60
mov byte [rsp + r9 + 0x38], dil
cmp rbp, rdi
je 0x407a9f
mov rcx, rsi
call fcn.00403ecc
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.00403098
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
cmove eax, r15d
add r13d, eax
mov r12b, r15b
cmp rbp, rdi
je 0x407ad3
lea rdx, str..tmp
mov rcx, rsi
call fcn.00403098
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.004036c8
nop
mov rdx, qword [rsi]
lea rcx, [rsp + 0x28]
call fcn.00403ae8
mov rcx, qword [rsp + 0x28]
call fcn.004095a4
cmp al, dil
je 0x407b15
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x28]
call fcn.00402344
jmp 0x407b5c
cmp rbp, rdi
je 0x407b31
mov r8d, r15d
mov rdx, qword [rsp + 0x28]
mov rcx, rbp
call fcn.0040a2d8
cmp al, dil
jne 0x407b6a
jmp 0x407b40
mov rcx, qword [rsp + 0x28]
call fcn.004075f8
cmp al, dil
jne 0x407b79
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x407b52
cmp eax, 0xb7
jne 0x407b88
mov rcx, qword [rsp + 0x28]
call fcn.00402344
add ebx, r15d
cmp ebx, 0x64
jb 0x407a46
jmp 0x407b92
mov rcx, qword [rsp + 0x28]
call fcn.00402344
mov al, r15b
jmp 0x407b9d
mov rcx, qword [rsp + 0x28]
call fcn.00402344
mov al, r15b
jmp 0x407b9d
mov rcx, qword [rsp + 0x28]
call fcn.00402344
mov dword [rsi + 8], edi
mov rax, qword [rsi]
mov byte [rax], dil
xor al, al
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret