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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180167010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18003efad
xor eax, eax
jmp 0x18003f102
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x18003efd8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x18003efd8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x18003f102
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18003f0f5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x18003f01b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18003f046
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18003f0fa
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18003f0b5
sub eax, 1
je 0x18003f0b5
cmp eax, 2
jne 0x18003f0f5
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18003f0fa
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18003f0e3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18003f0f5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x18003f0fa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18012be40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x18003ffa0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18003ffd4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18003ffc0
ret
Function at 0x180040ef0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180167010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180040fc3
cmp byte [rcx + 0x71], 0
je 0x180040fc3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180040fbf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180040f84
sub eax, 1
je 0x180040f88
cmp eax, 2
jne 0x180040fbf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18012be40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180040fb6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x180040fbf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180040f6c
xor al, al
jmp 0x180040f6c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18012be40
add rsp, 0x60
pop rbx
ret

Function at 0x180043010
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180167010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov ecx, 0x10
call fcn.18012c104
mov r9, rax
mov rax, qword [rbx]
mov qword [r9], rax
mov rax, qword [rdi]
mov qword [r9 + 8], rax
mov qword [rsp + 0x30], r9
lea rbx, [rsi + 8]
mov qword [rsp + 0x28], rbx
xor edi, edi
mov dword [rsp + 0x20], edi
lea r8, [0x180048080]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x18004309e
mov rax, rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18012be40
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1800430b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [0x180167010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov ecx, 0x20
call fcn.18012c104
mov r9, rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
mov qword [r9], rcx
mov rax, qword [rbx]
mov qword [r9 + 8], rax
mov rax, qword [rdi]
mov qword [r9 + 0x10], rax
mov rax, qword [rsi]
mov qword [r9 + 0x18], rax
mov qword [rsp + 0x30], r9
lea rbx, [r14 + 8]
mov qword [rsp + 0x28], rbx
xor edi, edi
mov dword [rsp + 0x20], edi
lea r8, [0x1800480b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r14], rax
test rax, rax
je 0x180043160
mov rax, r14
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18012be40
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov dword [rbx], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x18004ef70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea r11, [0x18013f250]
mov r9, rdx
not ecx
cmp r8, 4
jb 0x18004efe9
mov r10, r8
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r8, rax
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
add r9, 4
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x18004ef90
test r8, r8
je 0x18004f00d
nop
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x18004eff0
not ecx
mov eax, ecx
ret
Function at 0x18005e2b0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov ebx, ecx
call fcn.18011add0
test eax, eax
jne 0x18005e4b5
cmp byte [0x180167234], al
mov qword [rsp + 0x30], rbp
jne 0x18005e2dd
xor ebp, ebp
jmp 0x18005e2f9
mov ecx, 5
call qword [0x1801672a0]
mov rbp, rax
test rax, rax
je 0x18005e2f9
mov rcx, rax
call qword [0x1801672b0]
test ebx, ebx
jle 0x18005e498
test rsi, rsi
je 0x18005e498
cmp dword [0x18016bd40], 0
mov qword [rsp + 0x38], rdi
jne 0x18005e41f
call fcn.18011add0
test eax, eax
je 0x18005e335
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x18016bd40], xmm0
jmp 0x18005e399
cmp byte [0x180167234], 0
jne 0x18005e347
mov rdi, qword [0x18016ba80]
jmp 0x18005e386
mov ecx, 2
mov qword [rsp + 0x40], r14
call qword [0x1801672a0]
mov r14, rax
test rax, rax
je 0x18005e37a
mov rcx, rax
call qword [0x1801672b0]
mov rdi, qword [0x18016ba80]
mov rcx, r14
call qword [0x1801672c0]
jmp 0x18005e381
mov rdi, qword [0x18016ba80]
mov r14, qword [rsp + 0x40]
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x18016bd40], xmm0
test rdi, rdi
jne 0x18005e3bb
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x18016bd50], xmm0
mov qword [0x18016bd70], rax
movups xmmword [0x18016bd60], xmm0
mov dword [0x18016bd78], eax
jmp 0x18005e3ff
mov eax, dword [0x1801673e0]
test eax, eax
je 0x18005e3ed
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [0x18016bd50], xmm0
mov dword [0x18016bd50], eax
movups xmmword [0x18016bd60], xmm0
mov qword [0x18016bd70], rcx
mov dword [0x18016bd78], ecx
jmp 0x18005e3ff
lea r8, [0x18016bd50]
mov edx, 0x2c
mov rcx, rdi
call qword [rdi + 0x68]
mov eax, dword [0x18016bd70]
xor cl, cl
mov byte [0x18016bdc0], cl
mov dword [0x18016bd7c], eax
mov dword [0x18016bd70], 0
jmp 0x18005e426
movzx ecx, byte [0x18016bdc0]
movzx eax, cl
lea rdi, [0x18016bd80]
cmp ebx, eax
jle 0x18005e475
test cl, cl
je 0x18005e453
movzx r8d, cl
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, byte [0x18016bdc0]
sub ebx, ecx
add rsi, rcx
inc dword [0x18016bd70]
lea rdx, [0x18016bd40]
mov rcx, rdi
call fcn.18005dfb0
mov cl, 0x40
mov byte [0x18016bdc0], cl
cmp ebx, 0x40
jg 0x18005e434
movzx eax, cl
mov rcx, rsi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
sub byte [0x18016bdc0], bl
mov rdi, qword [rsp + 0x38]
jmp 0x18005e4a2
mov dword [0x18016bd40], 0
test rbp, rbp
je 0x18005e4b0
mov rcx, rbp
call qword [0x1801672c0]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x1800766c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [rcx + 0x11], 0
mov r9, rcx
jne 0x180076717
movzx eax, byte [rcx + 0x10]
test al, al
je 0x180076717
cmp al, 1
jne 0x1800766d9
test edx, edx
jne 0x180076717
mov r10, qword [rcx + 8]
test r8, r8
je 0x1800766f2
mov rax, qword [r10 + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x28]
bswap eax
mov dword [r8], eax
test edx, edx
je 0x180076714
mov rax, qword [r9]
mov rcx, qword [r10]
mov edx, dword [rax + 0x2f0]
cmp edx, dword [rcx + 0x80]
jle 0x180076714
cmp byte [rcx + 0xa], 0
jne fcn.18006e710
xor eax, eax
ret
jmp fcn.180076310
Function at 0x180098150
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rsi, r8
mov rbp, rdx
call fcn.18005aba0
mov rbx, rax
test rax, rax
jne 0x18009818e
lea eax, [rbx + 7]
jmp 0x180098211
cmp byte [0x180167234], 0
je 0x1800981e3
mov rax, qword [0x1801673c0]
test rax, rax
je 0x1800981ae
mov ecx, 0xc8
call rax
test eax, eax
jne 0x1800981e3
lea rax, [rbx + 8]
mov qword [rbx + 0x10], rbp
mov qword [rsp + 0x28], rax
lea r8, [0x18005e4c0]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
mov qword [rbx + 0x18], rsi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
jne 0x1800981f3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x10], 0
jne 0x18009820c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rsi
mov dword [rbx + 8], eax
call rbp
mov qword [rbx + 0x20], rax
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800cd6f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0xa8]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x1800cd8e8
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
nop dword [rax + rax]
movsxd rbp, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r14d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [r12 + 0x20]
test al, al
jne 0x1800cd752
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
jmp 0x1800cd762
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0xe8]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r14 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x1800cd78f
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x37
mov rcx, rdi
call fcn.1800859d0
jmp 0x1800cd7bd
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x71
mov r9, qword [r9 + 0x68]
call fcn.1800cc950
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1800cd7fc
mov rcx, rdi
call fcn.180085890
test eax, eax
jne 0x1800cd8d4
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r13d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r13d
lea ecx, [r14 + 1]
mov byte [rdx + 1], r13b
add eax, 2
mov dword [rdx + 8], eax
lea eax, [r14 - 1]
mov qword [rdx + 0x10], r13
mov word [rdx + 2], r13w
mov qword [rdx + 0x18], 0x7f
mov qword [rdx + 0x20], r13
mov qword [rdx + 0x28], r13
mov qword [rdx + 0x30], 0x61
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r13
mov qword [rdx + 0x48], 0x80
mov qword [rdx + 0x50], r13
mov qword [rdx + 0x58], r13
mov qword [rdx + 0x60], 0x7a
mov qword [rdx + 0x68], r13
mov qword [rdx + 0x70], r13
add dword [rdi + 0x90], 5
mov dword [rdx + 0x34], eax
mov eax, 8
mov word [rdx + 0x4a], ax
mov dword [rdx + 4], ecx
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x3c], r15d
mov dword [rdx + 0x50], r15d
mov dword [rdx + 0x54], ecx
test r15d, r15d
je 0x1800cd8c8
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1800cd8c8
mov dword [rbx + rax*4 + 0xe8], r15d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800cd730
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18012a4a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x18], 0xb
mov rbp, rcx
jne 0x18012a4db
mov eax, dword [rcx + 0x1c]
lea rdx, [rcx + 0x38]
mov r9, qword [rcx + 0x28]
dec eax
mov ecx, 0x1e
lea r8, [rax + rax*2]
mov r9, qword [r9 + r8*8 + 0x10]
lea r8, str.__lld_
add rsp, 0x30
pop rbp
jmp fcn.1801218f0
mov edx, dword [rcx + 0xc]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
add rcx, 0xc0
xor esi, esi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x40], esi
call fcn.1801242b0
add eax, dword [rbp + 0xc]
mov r9d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov edx, eax
add rdx, qword [rbp + 0xc0]
test r9d, r9d
je 0x18012a54f
movzx eax, byte [rdx]
lea r8, [0x180140ca0]
test byte [rax + r8], 2
je 0x18012a54f
test r9d, r9d
je 0x18012a542
movzx ecx, byte [rsi + rdx]
test byte [rcx + r8], 6
je 0x18012a54f
inc esi
cmp esi, r9d
jb 0x18012a530
lea ecx, [r9 + 2]
lea r8, str.._.s
jmp 0x18012a55a
lea ecx, [r9 + 4]
lea r8, str..__.s_
add rbp, 0x38
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call fcn.1801218f0
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret
Function at 0x140885058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408851df
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 0x140885089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14088506f
add dl, dl
jne 0x140885096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408850f6
xor eax, eax
add dl, dl
jne 0x1408850a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408851ad
add dl, dl
jne 0x1408850b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408850c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408850d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408850dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408850ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14088507e
mov eax, 1
add dl, dl
jne 0x140885106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140885113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408850fb
sub eax, ebx
mov ebx, 1
jne 0x14088514c
mov ecx, 1
add dl, dl
jne 0x14088512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14088513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140885123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140885168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140885175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14088515d
cmp eax, 0x7d00
jae 0x14088519b
cmp eax, 0x500
jb 0x140885196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088507e
cmp eax, 0x7f
ja 0x14088519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408851d2
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 0x14088507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140012444
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001258c
Function at 0x14001ae44
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001aecb
mov rsi, rbx
cmp word [rax], bp
je 0x14001ae8a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001ae74
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001ae70
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140017f4c
mov rdi, rax
test rax, rax
je 0x14001aeb8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140008f60
mov rbp, rdi
xor ecx, ecx
call fcn.140017468
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e8c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e8d6
mov al, 1
jmp 0x14001e936
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e8e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e934
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001b33c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e934
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e934
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e934
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e936
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140006360
Capabilities:
Parse pe header

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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [rsp + 0x28]
mov r12d, ecx
mov rsi, rdx
mov edx, 0x2002
mov rcx, r13
mov rbx, r8
and qword [rsp + 0x28], 0
call fcn.14000a370
mov ebp, eax
test al, al
jne 0x140006639
xor ebp, ebp
jmp 0x140006675
mov r14, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140006635
xchg rdi, rax
mov rcx, rbx
rep movsb byte [rdi], byte [rsi]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x28]
mov ecx, r12d
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140006635
and qword [rsp + 0x28], 0
mov rcx, r13
call fcn.14000a398
mov eax, ebp
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1400066e6
Capabilities:
Open clipboard

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rdx
lea rsi, [rsp + 0x2f]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne byte [rsp + 0x2f]
jne 0x14000670e
xor edi, edi
jmp 0x1400067e7
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x140006707
mov eax, dword [rbx + 8]
mov rdx, qword [rbx]
push 0xd
pop rcx
lea r8d, [rax + 1]
add r8, r8
lea rbp, [rsp + 0x30]
call fcn.140006600
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
mov edi, eax
call fcn.14000539b
mov eax, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
push 1
pop rcx
lea r8d, [rax + 1]
call fcn.140006600
lea r12, [rsp + 0x40]
push 1
mov rdx, rbx
pop r8
mov rcx, r12
or edi, eax
call fcn.14000539b
mov rdx, r12
mov rcx, rbp
call fcn.14000390e
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140006787
call fcn.14004ecd0
mov eax, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
push 7
pop rcx
lea r8d, [rax + 1]
call fcn.140006600
mov rcx, qword [rsp + 0x30]
or edi, eax
test rcx, rcx
je 0x1400067e7
call fcn.14004ecd0
jmp 0x1400067e7
mov rcx, rsi
call fcn.1400066ac
mov eax, edi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140007441
Capabilities:
Set file attributes

Disassembly:
cmp edx, 0xfffffff
jbe 0x14000744f
and edx, 0x3fff
jmp fcn.1400073dd

Function at 0x140007451
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140056c50]
cmp byte [rax], 0
jne 0x14000748b
lea rax, [rsp + 0x20]
mov rdx, rcx
xchg rcx, rax
call fcn.140004e1c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rcx, qword [rsp + 0x20]
xchg ebx, eax
call fcn.1400071fc
test ebx, ebx
jmp 0x140007493
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x30
pop rbx
ret
Function at 0x1400074b1
Capabilities:
Move file

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rax, qword [0x140056c50]
cmp byte [rax], 0
mov rbx, rcx
jne 0x140007509
lea rcx, [rsp + 0x30]
call fcn.140004e1c
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov rsi, qword [rsp + 0x30]
call fcn.140004e1c
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rcx, qword [rsp + 0x20]
xchg ebx, eax
call fcn.1400071fc
mov rcx, qword [rsp + 0x30]
call fcn.1400071fc
test ebx, ebx
jmp 0x140007511
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
add rsp, 0x48
pop rbx
pop rsi
ret

Function at 0x14000759d
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140056c50]
cmp byte [rax], 0
jne 0x1400075d9
lea rax, [rsp + 0x20]
mov rdx, rcx
xchg rcx, rax
call fcn.140004e1c
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x20]
xchg ebx, eax
call fcn.1400071fc
test ebx, ebx
jmp 0x1400075e3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
add rsp, 0x30
pop rbx
ret