joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d320
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov edx, 8
call sub.advapi32.dll_SystemFunction036
mov rax, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x14000f8a0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14000f940
jmp 0x14000f92f
jae 0x14000f9ff
cmp r8, 0x201
jae 0x14000f940
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000f997
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000f96f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1400278e0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14000f9c0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000fa6b
mov r8d, r13d
cmp r12, r8
jne 0x14000f920
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000fa9f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000f92f
jmp 0x14000f940
cmp r14, r8
jb 0x14000fab9
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140011a00
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14000fa54
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140003400
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000fa3f
jmp 0x14000fa54
lea rcx, str.internal_error:_entered_unreachable_code_rustc_051478957371ee0084a7c0913941d2a8c4757bb9library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140028860
jmp 0x14000face
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140028c10
ud2
Function at 0x140016250
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1400c00c0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140016288
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400162e6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140016313
test eax, eax
js 0x1400162f2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140016309
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1400117b0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14000df60
mov ecx, 7
int 0x29
ud2
Function at 0x140024480
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14002450a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140024500
cmp r11, r10
ja 0x140024586
cmp r10, rdx
ja 0x140024598
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140024502
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400244e0
jmp 0x140024567
ja 0x14002450a
mov r11, r10
cmp rax, r8
jne 0x1400244a7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002456b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140024540
mov r8, r10
sub ecx, r9d
jns 0x14002455e
jmp 0x14002456d
cmp r10, rdx
je 0x14002457a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002456d
xor al, 1
cmp r8, rdx
jne 0x140024520
jmp 0x14002456d
xor eax, eax
jmp 0x14002456d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140028720
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140028c80
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140028c10
int3

Function at 0x140026654
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14002669e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002669e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002669e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002669e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002669e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400266a0
xor al, al
add rsp, 0x28
ret
Function at 0x14013185d
Capabilities:
Access peb ldr_data
Get number of processors
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
or ebx, dword [rcx + rcx*2]
add ecx, ecx
add byte [rbp - 0x75], al
sar byte [rdx - 0x6901749a], 1
add byte [rcx - 0x3f], al
fidivr word [rsp + rax*2]
lea edi, [rbx - 0xef87]
jmp 0x14012fcfb
add al, 0x91
rcl r15d, 0x32
pushfq
lea r8d, [rbp + 0xeba8]
test r14d, 0x99f129bd
neg r15
sub r8d, 0x96bcc459
jmp 0x1401316b8
lea ebx, [rcx - 0x199d]
lea r11d, [rdi - 0xad68]
dec rbp
jno 0x1401302f7
jmp 0x140131595
popf
rcl r12d, 0xeb
mov r15d, 0x895b296f
nop
sub r13d, 0x4fe5a195
jmp 0x1401313cc
lea r9d, [rbp + 0x59b3]
lea ebp, [rdi - 0x6f43]
inc rdi
call rax
ret
call rcx
lea r13d, [rdx + 0x73c1]
cmp rdi, rdx
jmp 0x1401314d8
jmp 0x140131810
je 0x14013186e
test dword [rdi - 0x7ffffffe], ebx
jnp 0x14013186c
invalid
add byte [rbx + 0x31edc679], bh
ret
jns 0x140131836
in eax, dx
xor ebx, eax
nop
call rcx
ja 0x140130f11
jns 0x1401306d9
cmp edx, 0xac907dbb
je 0x14013189d
jne 0x14013189d
test rsi, rdx
lea ecx, [rbx + 0x569e]
jno 0x140131a8e
jmp 0x1401318b3
jbe 0x1401303d4
pop r13
lea r9d, [rdx - 0x7658]
jmp rcx
Function at 0x14002c1d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14004c2c8], rbx
je 0x14002c21c
cmp rax, rbx
jne 0x14002c20f
mov ebx, 1
mov esi, ebx
jmp 0x14002c221
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002c1f4
mov ebx, 1
mov eax, dword [0x14004c2d0]
cmp eax, ebx
jne 0x14002c237
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14002c29c
mov eax, dword [0x14004c2d0]
test eax, eax
jne 0x14002c296
mov dword [0x14004c2d0], ebx
lea r15, [0x14002f640]
lea rdi, [0x14002f628]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x14002c288
test eax, eax
jne 0x14002c28c
cmp qword [rdi], 0
je 0x14002c27d
mov rax, qword [rdi]
mov rcx, qword [0x14002f5e0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14002c25e
test eax, eax
je 0x14002c29c
mov eax, 0xff
jmp 0x14002c378
mov dword [0x14004b368], ebx
mov eax, dword [0x14004c2d0]
cmp eax, ebx
jne 0x14002c2c3
lea rdx, [0x14002f620]
lea rcx, [0x14002f5e8]
call sub.msvcrt.dll__initterm
mov dword [0x14004c2d0], 2
test esi, esi
jne 0x14002c2d0
xor eax, eax
xchg qword [0x14004c2c8], rax
cmp qword [0x14004c2e8], 0
je 0x14002c304
lea rcx, [0x14004c2e8]
call fcn.14002cdb0
test eax, eax
je 0x14002c304
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14004c2e8]
mov r9, qword [0x14002f5e0]
call r9
mov r8, qword [0x14004b380]
mov rdx, qword [0x14004b378]
mov ecx, dword [0x14004b370]
call fcn.140009c48
mov dword [0x14004b364], eax
cmp dword [0x14004b388], 0
jne 0x14002c334
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14004b368], 0
jne 0x14002c349
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14004b364]
jmp 0x14002c378
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call 0x140181000
add rsp, 0x28
jmp 0x14002c1d0

Function at 0x14002c7b8
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002c7c4
push rbx
sub rsp, 0x540
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14002c841
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14002c861
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x540
pop rbx
ret
Function at 0x14000c6b7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x140002c7a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002c76
repz ret
ror rcx, 0x10
jmp 0x14000c610
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400793f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400794e8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000c695
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400793f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000c6b7
mov rax, qword [rsp + 0x88]
mov qword [0x1400794e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140079488], rax
mov rax, qword [0x1400794e8]
mov qword [0x140079360], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140079470], rax
mov dword [0x140079350], 0xc0000409
mov dword [0x140079354], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140077008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400793e8], eax
mov ecx, 1
call fcn.14000fd40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140067410]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400793e8], 0
jne 0x14000c73e
mov ecx, 1
call fcn.14000fd40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140040da0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14004dd08], rbx
je 0x140040e07
cmp rax, rbx
jne 0x140040dfa
mov ebx, 1
mov esi, ebx
jmp 0x140040e0c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140040ddf
mov ebx, 1
mov eax, dword [0x14004dd10]
cmp eax, ebx
jne 0x140040e24
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140040e90
mov eax, dword [0x14004dd10]
test eax, eax
jne 0x140040e85
mov dword [0x14004dd10], ebx
lea r15, [0x140044330]
lea rdi, [0x140044318]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140040e77
test eax, eax
jne 0x140040e7b
cmp qword [rdi], r14
je 0x140040e6c
mov rax, qword [rdi]
mov rcx, qword [0x1400442d8]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140040e4e
test eax, eax
je 0x140040e8b
mov eax, 0xff
jmp 0x140040fe6
mov dword [0x14004d384], ebx
mov edi, 0x1f
mov eax, dword [0x14004dd10]
cmp eax, ebx
jne 0x140040eb7
lea rdx, [0x140044310]
lea rcx, [0x1400442e0]
call sub.msvcrt.dll__initterm
mov dword [0x14004dd10], 2
test esi, esi
jne 0x140040ec5
mov rax, r14
xchg qword [0x14004dd08], rax
cmp qword [0x14004dd28], r14
je 0x140040ef8
lea rcx, [0x14004dd28]
call fcn.140041400
test eax, eax
je 0x140040ef8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14004dd28]
mov r9, qword [0x1400442d8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140040f11
mov eax, 0xff
jmp 0x140040fe6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140040f97
test ax, ax
je 0x140040f2c
test edx, edx
jne 0x140040f97
sub ax, bx
cmp ax, di
ja 0x140040f42
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140040f2c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400024cc
mov dword [0x14004d380], eax
cmp dword [0x14004d3a0], r14d
jne 0x140040f80
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14004d384], r14d
jne 0x140040f95
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14004d380]
jmp 0x140040fe6
cmp ax, 0x22
jne 0x140040fab
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140040f1a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401c0000
add rsp, 0x28
jmp 0x140040da0
Function at 0x1409a80b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409a8237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409a80e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a80c7
add dl, dl
jne 0x1409a80ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a814e
xor eax, eax
add dl, dl
jne 0x1409a80fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409a8205
add dl, dl
jne 0x1409a810e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a811b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a8128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a8135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409a8142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409a80d6
mov eax, 1
add dl, dl
jne 0x1409a815e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409a816b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a8153
sub eax, ebx
mov ebx, 1
jne 0x1409a81a4
mov ecx, 1
add dl, dl
jne 0x1409a8186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409a8193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a817b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a80d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409a81c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409a81cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409a81b5
cmp eax, 0x7d00
jae 0x1409a81f3
cmp eax, 0x500
jb 0x1409a81ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a80d6
cmp eax, 0x7f
ja 0x1409a81f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409a80d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409a822a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409a80d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000464c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
xor ebx, ebx
test eax, eax
je 0x1400046f7
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1400046f1
mov edi, dword [rsi + 8]
lea rcx, [rsp + 0x40]
mov rbp, qword [rsi]
inc edi
add rdi, rdi
mov qword [rsp + 0x40], rbx
mov r8, rdi
mov edx, 0x2002
call fcn.1400067e0
test al, al
je 0x1400046e7
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400046e7
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call fcn.1400490e0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x40]
lea ecx, [rbx + 0xd]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400046e7
mov qword [rsp + 0x40], rbx
mov bl, 1
lea rcx, [rsp + 0x40]
call fcn.140006808
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400048b0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
call fcn.1400056a4
cmp eax, 0xffffffff
je 0x1400048e9
test al, 0x10
je 0x1400048e9
mov eax, 1
jmp 0x140004a75
mov rcx, rbx
call fcn.140006520
xor r15d, r15d
test al, al
je 0x1400048ff
xor al, al
jmp 0x140004a75
mov rcx, rbx
call fcn.1400061f8
mov r14d, eax
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.1400027a4
nop
lea rcx, [rbp - 0x60]
call fcn.1400034a4
mov esi, 1
test eax, eax
js 0x14000494a
mov edx, dword [rbp - 0x58]
lea ecx, [rdx - 1]
cmp eax, ecx
jne 0x14000494a
cmp edx, esi
je 0x140004a69
mov dword [rbp - 0x58], ecx
add rcx, rcx
mov rax, qword [rbp - 0x60]
mov word [rcx + rax], r15w
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.1400026bc
nop
mov edi, dword [rbp - 0x58]
mov rbx, qword [rbp - 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140004a55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400049c8
lea rcx, [rbp - 0x40]
call fcn.140004dcc
lea rcx, [rbp - 0x18]
call fcn.1400027fc
nop
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140005020
test al, al
jne 0x1400049b0
mov rcx, qword [rbp - 0x18]
call fcn.1400372fc
jmp 0x1400049c8
mov ebx, dword [rbp - 0x20]
shr ebx, 4
mov rcx, qword [rbp - 0x18]
call fcn.1400372fc
test sil, bl
jne 0x140004a55
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140004a5c
lea rcx, [rbp - 0x60]
call fcn.1400034a4
mov edi, eax
cmp eax, esi
jl 0x140004a5c
mov rbx, qword [rbp - 0x60]
jne 0x1400049fa
cmp word [rbx], 0x5c
je 0x140004a5c
cmp word [rbx], 0x2f
je 0x140004a5c
lea eax, [rdi + 1]
cmp r14d, eax
jae 0x140004a5c
cmp edi, dword [rbp - 0x58]
jae 0x14000495f
mov dword [rbp - 0x58], edi
mov word [rbx + rdi*2], r15w
jmp 0x14000495b
lea ecx, [rdi + 1]
mov rax, qword [rbp - 0x50]
lea rcx, [rax + rcx*2]
call fcn.140005f2c
test eax, eax
jns 0x140004a31
mov edi, dword [rbp - 0x48]
jmp 0x140004a35
inc edi
add edi, eax
mov r8d, edi
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400034d0
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140004a5c
cmp edi, dword [rbp - 0x48]
jl 0x140004a18
jmp 0x140004a5f
mov sil, r15b
mov rcx, qword [rbp - 0x50]
call fcn.1400372fc
nop
mov rcx, qword [rbp - 0x60]
call fcn.1400372fc
mov al, sil
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140004a94
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140004aac
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400056a4
cmp eax, 0xffffffff
je 0x140004ad9
test al, 0x10
jne 0x140004ad9
test al, 1
je 0x140004ad9
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140004ae7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret

Function at 0x140004af0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rsi, rcx
xor r14d, r14d
mov dword [rcx + 8], r14d
mov rax, qword [rcx]
mov word [rax], r14w
mov word [rsp + 0x30], r14w
lea rdx, [rsp + 0x30]
mov edi, 0x114
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x140004be4
cmp ebx, edi
jae 0x140004b65
mov word [rbp + 0x158], r14w
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14000296c
mov eax, 1
jmp 0x140004be4
lea rcx, [rsp + 0x20]
call fcn.1400027fc
nop
cmp ebx, dword [rsp + 0x2c]
jbe 0x140004b82
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140003200
mov rdx, qword [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test eax, eax
je 0x140004bd4
mov r8, qword [rsp + 0x20]
mov word [r8 + rbx*2], r14w
mov ecx, r14d
mov edi, 1
cmp word [r8], r14w
je 0x140004bb6
add ecx, edi
cmp word [r8 + rcx*2], r14w
jne 0x140004bad
mov dword [rsp + 0x28], ecx
cmp ecx, edx
jne 0x140004bd4
lea eax, [rbx - 1]
cmp eax, edx
jne 0x140004bd4
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140002834
jmp 0x140004bd7
mov dil, r14b
mov rcx, qword [rsp + 0x20]
call fcn.1400372fc
mov al, dil
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140004cd4
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140004ce8
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140004d88
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140004d9c
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
mov r8d, edx
and edx, 0x3fff
test r8d, 0xf0000000
cmove edx, r8d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x28
ret