joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400fa6c0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400fa6d0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x1400fd008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400fa630]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.1400e4720
mov rcx, qword [0x1400fa750]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400fa6b0]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400e4530
mov ebx, dword [0x1400fd028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x1400fd020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x1400fd020], rbp
call fcn.1400e4330
mov rax, qword [0x1400fa640]
mov r8, qword [0x1400fd018]
mov ecx, dword [0x1400fd028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x1400fd020]
call fcn.1400f8980
mov ecx, dword [0x1400fd00c]
mov dword [0x1400fd010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x1400fd008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400fa6d0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.1400e54d0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400fa6f0]
mov rcx, qword [0x1400fa6e0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400fd010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400fa710]
mov rcx, qword [0x1400fa700]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x1400e3351
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp - 0x3c], 0x521e46d7
mov word [rbp - 2], 0x6c3
movzx eax, word [rbp - 2]
cmp eax, 0x2a9
je 0x1400e339d
cmp eax, 0x6c3
jne 0x1400e3415
mov eax, dword [rbp - 0x3c]
sub eax, 0x1c4e7789
mov dword [rbp - 0x3c], eax
movabs rax, 0x21aabeb79dae66d0
mov qword [rbp - 0x10], rax
mov word [rbp - 4], 0x5585
jmp 0x1400e3415
movabs rax, 0x2ff9f86a6175e598
cmp qword [rbp - 0x10], rax
jg 0x1400e33b5
add word [rbp - 2], 0x313
jmp 0x1400e33ef
mov eax, dword [rbp - 0x3c]
cmp eax, 0xe3fc12f9
je 0x1400e33ef
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_SHChangeNotification_Unlock]
call rax
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 0x10]
mov r8d, 0xa3
mov edx, 0xbf
mov rcx, rax
call fcn.1400e34fb
and word [rbp - 4], 0x378c
mov eax, dword [rbp - 0x3c]
or eax, 0x390bd666
mov dword [rbp - 0x3c], eax
call fcn.1400e3351
lea rax, [rbp - 0x30]
mov edx, 0x68
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_SHGetSettings]
call rax
nop
movzx eax, word [rbp - 4]
mov word [rbp - 0x16], ax
lea rax, [rbp - 0x3c]
mov qword [rbp - 0x38], rax
movsx eax, word [rbp - 4]
mov edx, 0x58a
mov ecx, edx
shl eax, cl
mov edx, eax
movsx eax, word [rbp - 0x16]
cmp edx, eax
jl 0x1400e3492
cmp word [rbp - 2], 0x348
jbe 0x1400e3492
mov eax, dword [rbp - 0x3c]
mov eax, eax
imul rax, rax, 0x38d7e3a9
shr rax, 0x20
mov edx, eax
shr edx, 0x1c
mov rax, qword [rbp - 0x38]
mov eax, dword [rax]
cmp eax, edx
jae 0x1400e3489
mov rax, qword [rbp - 0x38]
mov r8d, dword [rax]
mov edx, dword [rbp - 0x3c]
mov rax, qword [rbp - 0x38]
mov ecx, edx
shr r8d, cl
mov edx, r8d
mov dword [rax], edx
movabs rax, 0x44844373406053ae
xor qword [rbp - 0x10], rax
mov eax, dword [section..data]
mov dword [rbp - 0x1c], eax
movabs rax, 0xc28cb9a048ea74f
cmp qword [rbp - 0x10], rax
jg 0x1400e34d1
mov rax, qword [rbp - 0x38]
mov ecx, dword [rax]
mov edx, dword [rbp - 0x3c]
mov rax, qword [rbp - 0x38]
add edx, ecx
mov dword [rax], edx
and word [rbp - 2], 0x356
lea rdx, [rbp - 0x3c]
lea rax, [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call rax
mov qword [rbp - 0x28], rax
mov edx, dword [rbp - 0x3c]
mov rax, qword [rbp - 0x38]
mov eax, dword [rax]
mov r9d, edx
mov r8d, 0x79
mov edx, 0xffffff8f
mov ecx, eax
call fcn.1400e3877
mov eax, dword [section..data]
add rsp, 0x60
pop rbp
ret
Function at 0x1400e3972
Capabilities:
Empty the recycle bin

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov eax, ecx
mov word [rbp + 0x10], ax
mov byte [rbp - 2], 0x4c
mov byte [rbp - 1], 0xc
movsx eax, byte [rbp - 1]
cmp eax, 0x3e
jne 0x1400e39b9
mov word [rbp + 0x10], 0x473
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r8d, 0x47
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
call rax
mov dword [rbp - 0x1c], eax
jmp 0x1400e3a4e
movsx eax, byte [rbp - 1]
cmp eax, 0xc
je 0x1400e39cc
cmp eax, 0x22
je 0x1400e3a45
jmp 0x1400e3a4d
cmp byte [rbp - 1], 0x1f
je 0x1400e3a4c
sub byte [rbp - 2], 0x60
cmp byte [rbp - 2], 0xf8
ja 0x1400e3a4c
movzx eax, byte [rbp - 2]
mov byte [rbp - 0x1d], al
movabs rax, 0x548192c96d3334fc
mov qword [rbp - 0x28], rax
movabs rax, 0x5a885d2bac76d582
cmp qword [rbp - 0x28], rax
jne 0x1400e3a42
mov word [rbp + 0x10], 0x528
movzx eax, word [rbp + 0x10]
mov ecx, eax
call fcn.1400e3a71
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x30]
lea rdx, [rbp - 0x48]
mov r9d, 0x64
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_SHPathPrepareForWriteA]
call rax
mov dword [rbp - 0x34], eax
movzx eax, byte [rbp - 1]
sub eax, 0x7e
mov byte [rbp - 1], al
jmp 0x1400e3a43
nop
jmp 0x1400e3a4c
call fcn.1400e3351
jmp 0x1400e3a4d
nop
nop
movzx eax, byte [rbp - 1]
mov byte [rbp - 0x35], al
mov eax, dword [section..data]
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], 0x15f1791f
mov eax, dword [section..data]
add rsp, 0x70
pop rbp
ret
Function at 0x1400e4540
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400e5340
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400e45b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ff634]
mov rbx, rcx
test esi, esi
jle 0x1400e46e0
mov rax, qword [0x1400ff638]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400e45fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400e4685
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400e45e0
mov rcx, rbx
call fcn.1400e5020
mov rdi, rax
test rax, rax
je 0x1400e4702
mov rax, qword [0x1400ff638]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400e5160
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ff638]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400e46e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400e467e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400e4690
add dword [0x1400ff634], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400ff638]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400e467e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400e4540
nop dword [rax]
xor esi, esi
jmp 0x1400e4608
mov rax, qword [0x1400ff638]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400e4540
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400e4540
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400e4c90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ff6a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ff680]
test rbx, rbx
je 0x1400e4cec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400e4ce3
test eax, eax
jne 0x1400e4ce3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400e4cc8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400e5020
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400fa600]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400e5040
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400e5048
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400e5040
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400e509d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400e5094
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400e5040
add rax, 0x28
cmp rax, r9
jne 0x1400e5080
xor eax, eax
ret

Function at 0x1400e50a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400fa600]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400e50bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400e50c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400e50bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400e5160
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400fa600]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400e517f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400e5188
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400e5f80
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov byte [rsp + 0x28], 0x9b
mov byte [rsp + 0x29], 0x1d
mov byte [rsp + 0x2a], 0x19
mov byte [rsp + 0x2b], 0x1b
mov byte [rsp + 0x2c], 0x1b
mov byte [rsp + 0x2d], 0x8b
mov byte [rsp + 0x2e], 0x19
mov byte [rsp + 0x2f], 0x1b
mov byte [rsp + 0x30], 0x1b
mov byte [rsp + 0x31], 0
mov dword [rsp + 0x40], 0x748d29e2
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0xa
jae 0x1400e6024
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x68], rcx
movzx ecx, byte [rsp + 0x40]
mov rdx, qword [rsp + 0x68]
movzx eax, byte [rdx + rax]
rol al, cl
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
mov byte [rdx + rcx], al
imul eax, dword [rsp + 0x40], 0xe295
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x1400e5fd5
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400e6043
xor eax, eax
jmp 0x1400e6198
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400e6063
xor eax, eax
jmp 0x1400e6198
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0x4550
je 0x1400e6090
xor eax, eax
jmp 0x1400e6198
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400e60c4
xor eax, eax
jmp 0x1400e6198
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x18]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x20], 0
je 0x1400e618d
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x18], 0
je 0x1400e618d
mov rax, qword [rsp + 0x80]
cmp qword [rax + 8], 0
je 0x1400e618d
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
je 0x1400e618d
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x10], 0
jne 0x1400e6193
xor eax, eax
jmp 0x1400e6198
mov eax, 1
add rsp, 0x78
ret
Function at 0x140dd8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140dd81df
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 0x140dd8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140dd806f
add dl, dl
jne 0x140dd8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140dd80f6
xor eax, eax
add dl, dl
jne 0x140dd80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140dd81ad
add dl, dl
jne 0x140dd80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dd80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dd80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dd80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140dd80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140dd807e
mov eax, 1
add dl, dl
jne 0x140dd8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140dd8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140dd80fb
sub eax, ebx
mov ebx, 1
jne 0x140dd814c
mov ecx, 1
add dl, dl
jne 0x140dd812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140dd813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140dd8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140dd807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140dd8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140dd8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140dd815d
cmp eax, 0x7d00
jae 0x140dd819b
cmp eax, 0x500
jb 0x140dd8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140dd807e
cmp eax, 0x7f
ja 0x140dd819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140dd807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140dd81d2
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 0x140dd807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004df0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x140032030]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x1f4
call fcn.14000d090
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1f4
call fcn.14000d090
cmp dword [0x140032a40], 1
jne 0x140004e4b
lea rbx, [0x14002d9c0]
lea rdx, [0x14002d9a0]
jmp 0x140004e59
lea rbx, [0x14002dab8]
lea rdx, [0x14002daa8]
lea rcx, [rsp + 0x30]
call fcn.140007de0
mov rdx, rbx
lea rcx, [rsp + 0x230]
call fcn.140007de0
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x230]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x140004ee3
mov dword [rsp + 0x28], eax
lea r8, [0x14002d7a8]
xor ebx, ebx
lea rdx, [0x14002d778]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x140004ee3
mov dword [rsp + 0x28], 1
lea r9, [0x14002d7a8]
lea r8, [0x14002d788]
mov qword [rsp + 0x20], rbx
lea rdx, [0x14002d778]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14000aa50
add rsp, 0x440
pop rbx
ret
Function at 0x140006520
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140032030]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
mov qword [rbp - 0x50], rcx
xor r14d, r14d
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r14w
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 7
lea r8d, [r14 + 0x13]
lea rdx, [0x14002e088]
lea rcx, [rbp - 0x28]
call fcn.140001b10
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.140007750
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140006728
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], 7
lea r8d, [r14 + 0xd]
lea rdx, [0x14002e0b0]
lea rcx, [rbp - 0x28]
call fcn.140001b10
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.140007750
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140006728
lea rcx, [rbp - 0x28]
call fcn.140005b80
mov rbx, rax
lea rax, [rbp - 0x48]
cmp rax, rbx
je 0x140006684
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140006654
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000664f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000675e
call fcn.14000acfc
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r14w
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400066c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400066bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000675e
call fcn.14000acfc
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, rdx
sub rax, rcx
cmp rax, 0x11
jb 0x14000670a
lea rdi, [rcx + 0x11]
mov qword [rbp - 0x38], rdi
lea rbx, [rbp - 0x48]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x48]
lea rcx, [rbx + rcx*2]
mov r8d, 0x22
lea rdx, [0x14002e0d0]
call fcn.14000c9e0
mov word [rbx + rdi*2], r14w
jmp 0x140006728
mov qword [rsp + 0x20], 0x11
lea r9, [0x14002e0d0]
mov edx, 0x11
lea rcx, [rbp - 0x48]
call fcn.1400082d0
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000aa50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140010f38
nop
int3
Function at 0x140007310
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x140032030]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.14000d090
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14000d090
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x38]
lea edx, [rsi + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400073d8
lea rdx, [rsp + 0x260]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400073d8
mov r8d, 0x104
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400073e4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140001b10
lea rdx, [0x14002e278]
mov rcx, rbx
call fcn.140007aa0
lea rdx, [0x14002e290]
mov rcx, rbx
call fcn.140007aa0
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400074ec
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140007434
mov rdx, qword [rbx]
dec eax
movsxd rcx, eax
lea rdi, [rcx + rcx]
lea rcx, [rdi + rdx]
mov r8d, 1
lea rdx, [0x14002d1a8]
call fcn.140015f7c
test eax, eax
je 0x1400074d4
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140007464
mov rax, qword [rbx]
lea rcx, [rdi + rax]
mov r8d, 1
lea rdx, [0x14002e270]
call fcn.140015f7c
test eax, eax
je 0x1400074d4
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov rax, r8
sub rax, rcx
cmp rax, 1
jb 0x1400074b7
lea rdx, [rcx + 1]
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp r8, 8
jb 0x1400074a6
mov rax, qword [rbx]
mov r8d, 0x5c
mov word [rax + rcx*2], r8w
mov word [rax + rdx*2], si
jmp 0x1400074d4
mov qword [rsp + 0x20], 1
lea r9, [0x14002d1a8]
mov edx, 1
mov rcx, rbx
call fcn.1400082d0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400074e1
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rax, rbx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14000aa50
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007520
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140032030]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x20]
call fcn.140007310
nop
lea rdx, [0x14002e2a8]
lea rcx, [rsp + 0x20]
call fcn.140007aa0
lea rdx, [0x14002e2c0]
lea rcx, [rsp + 0x20]
call fcn.140007aa0
lea rdx, [0x14002e2d8]
lea rcx, [rsp + 0x20]
call fcn.140007aa0
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400075cd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400075c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400075e3
call fcn.14000acfc
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000aa50
add rsp, 0x50
pop rbx
ret
call fcn.140010f38
int3