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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002d010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000e55d
xor eax, eax
jmp 0x14000e6b2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14000e588
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14000e588
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 0x14000e6b2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000e6a5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000e5cb
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 0x14000e5f6
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 0x14000e6aa
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 0x14000e665
sub eax, 1
je 0x14000e665
cmp eax, 2
jne 0x14000e6a5
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 0x14000e6aa
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000e693
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 0x14000e6a5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000e6aa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140017fd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000e920
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002d010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000e9f3
cmp byte [rcx + 0x71], 0
je 0x14000e9f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000e9ef
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 0x14000e9b4
sub eax, 1
je 0x14000e9b8
cmp eax, 2
jne 0x14000e9ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017fd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000e9e6
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 0x14000e9ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000e99c
xor al, al
jmp 0x14000e99c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017fd0
add rsp, 0x60
pop rbx
ret
Function at 0x140012c30
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14002d010]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor eax, eax
lea rdi, [rsp + 0x20]
mov rbx, rdx
mov ecx, 0x130
rep stosb byte [rdi], al
lea ecx, [rax + 2]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140012d48
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140012d3f
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140012ca8
mov rdx, qword [rbx]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rdi
test eax, eax
jne 0x140012d02
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
mov esi, dword [rsp + 0x28]
cmp rdx, 0x10
jb 0x140012cfe
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140012cf9
mov rdi, qword [rcx - 8]
add rdx, 0x27
sub rcx, rdi
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140012db8
mov rcx, rdi
call fcn.140018284
mov eax, esi
jmp 0x140012d80
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140012d3f
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140012d1e
mov rdx, qword [rbx]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rdi
test eax, eax
je 0x140012cba
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140012d11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140012d7e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140012d79
mov rdi, qword [rcx - 8]
add rdx, 0x27
sub rcx, rdi
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140012db8
mov rcx, rdi
call fcn.140018284
xor eax, eax
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140017fd0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140015380
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14001538b
xor eax, eax
ret
lea r11, [0x14001f060]
not ecx
cmp r8d, 8
jb 0x140015461
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
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]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
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 0x1400153b0
test r8d, r8d
je 0x14001548d
nop word [rax + rax]
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]
add r8d, 0xffffffff
jne 0x140015470
not ecx
mov eax, ecx
ret

Function at 0x140015d60
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x14002d010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r10d, edx
mov rdi, r9
imul r10d, r8d
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x140015db8
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140015db2
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x30]
jmp 0x140015dee
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call sub.VCRUNTIME140.dll_memcpy
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017fd0
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140015e10
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x48
mov rax, qword [0x14002d010]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x70], rbp
mov rbx, rcx
mov qword [rsp + 0x40], rdi
mov edi, 1
je 0x140015e6f
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x34]
mov r8d, edi
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140015e69
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x34]
jmp 0x140015ea6
mov qword [rsp + 0x78], rsi
mov esi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x140015e85
mov edi, ecx
sub edi, esi
mov rdx, rsi
mov r8d, edi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x30]
mov ebp, edi
call sub.VCRUNTIME140.dll_memcpy
lea eax, [rsi + rdi]
mov rsi, qword [rsp + 0x78]
mov dword [rbx + 0x2c], eax
mov rdi, qword [rsp + 0x40]
cmp ebp, 1
mov rbp, qword [rsp + 0x70]
jne 0x140015ed4
movzx eax, byte [rsp + 0x30]
mov dword [r14], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140017fd0
add rsp, 0x48
pop r14
pop rbx
ret
cmp byte [rbx], 0
je 0x140015ebd
cmp byte [rbx + 0x10], 0
je 0x140015ebd
mov eax, 0xffffffff
jmp 0x140015ebf
Function at 0x140016bb0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140016db7
cmp dword [rcx + 0x1c], 0
je 0x140016db7
cmp qword [rcx + 0x80], 0
je 0x140016bdf
call fcn.140017150
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.140016900
test eax, eax
je 0x140016c06
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x140016c2d
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x140016c75
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x64], ebp
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x90], ecx
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x140016cc4
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.140015720
test eax, eax
jne 0x140016cc4
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
movzx ecx, byte [rdi + 0x34]
mov dword [rbx + 0x7c], eax
and cl, 1
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x34]
shr eax, 3
mov byte [rbx + 0x98], cl
test al, 1
je 0x140016cf0
movzx eax, byte [rdi + 0x3d]
jmp 0x140016cf4
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
neg cl
mov dword [rbx + 0x9c], 0x12345678
sbb eax, eax
mov dword [rbx + 0xa0], 0x23456789
and eax, 0xc
mov dword [rbx + 0xa4], 0x34567890
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x140016d8b
lea r8, [0x14001f060]
movzx eax, byte [rsi]
test al, al
je 0x140016d8b
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], edx
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r8 + rax*4]
mov dword [rbx + 0xa4], ecx
add rsi, 1
jne 0x140016d31
mov eax, dword [rsp + 0x58]
mov ecx, dword [rdi + 0x7c]
add eax, 0x1e
add ecx, eax
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140017910
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x250
mov rax, qword [0x14002d010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140017950
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140017950
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rsi]
test al, al
je 0x140017a44
mov qword [rsp + 0x270], rdi
mov rcx, rsi
mov rdi, rsi
nop dword [rax]
cmp al, 0x2f
je 0x140017978
cmp al, 0x5c
jne 0x14001797b
mov rdi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140017970
cmp rdi, rsi
je 0x1400179c6
sub rdi, rsi
lea rcx, [rsp + 0x130]
mov r8, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
cmp rdi, 0x104
jae 0x140017a65
lea rdx, [rsp + 0x130]
mov byte [rsp + rdi + 0x130], 0
mov rcx, rbx
call fcn.140017910
mov byte [rsp + 0x20], 0
test rbx, rbx
je 0x1400179ee
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400179e0
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400179f6
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140017a10
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140017a3c
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rdi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140017fd0
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rsi
ret
call fcn.140018738
int3
Function at 0x140017df0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov ecx, 0x258
call fcn.140017ff0
mov rsi, rax
mov qword [rsp + 0x78], rax
xor edx, edx
mov r8d, 0x258
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r15d, r15d
mov qword [rsi], r15
mov rdi, 0xffffffffffffffff
mov dword [rsi + 8], edi
mov dword [rsi + 0x138], edi
mov qword [rsi + 0x140], r15
mov qword [rsi + 0x148], r15
lea rbx, [rsi + 0x150]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdi, [rdi + 1]
cmp byte [rbx + rdi], 0
jne 0x140017e66
movzx eax, byte [rdi + rsi + 0x14f]
cmp al, 0x5c
je 0x140017e96
cmp al, 0x2f
je 0x140017e96
dec rbx
lea rbx, [rbx + 1]
cmp byte [rbx], 0
jne 0x140017e83
movzx eax, word [0x140021ae8]
mov word [rbx], ax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140017f56
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp eax, 0xffffffff
setne bl
mov ecx, 0x30
call fcn.140017ff0
mov r14, rax
mov byte [rax], 1
mov byte [rax + 0x18], 1
mov byte [rax + 1], bl
mov qword [rax + 8], rbp
mov byte [rax + 0x10], 0
mov dword [rax + 0x14], r15d
cmp edi, 0xffffffff
je 0x140017f29
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [r14 + 0x14], eax
mov rcx, r14
call fcn.140016170
mov qword [rsi], rax
test rax, rax
je 0x140017f56
mov dword [0x14002f92c], r15d
mov ecx, 0x10
call fcn.140017ff0
mov dword [rax], 1
mov qword [rax + 8], rsi
jmp 0x140017f9f
mov dword [0x14002f92c], 0x200
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x140017f71
call fcn.140018284
mov qword [rsi + 0x140], r15
mov rcx, qword [rsi + 0x148]
test rcx, rcx
je 0x140017f89
call fcn.140018284
mov qword [rsi + 0x148], r15
mov edx, 0x258
mov rcx, rsi
call fcn.140018284
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140007cc0
Capabilities:
Check if file exists
Delete file
Move file
Terminate process

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
mov ecx, 2
call fcn.140014a40
nop
nop word cs:[rax + rax]
nop

Function at 0x140007ce0
Capabilities:
Check if file exists
Delete file
Move file
Terminate process

Disassembly:
sub rsp, 0x28
lea rcx, str.Error__couldnt_decode_attached_data.
call fcn.140007cc0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140007d00
Capabilities:
Check if file exists
Delete file
Move file
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error__couldnt_runtime_expand_spec__ls._n
mov r8, rbx
mov rcx, rax
call fcn.140014ec0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax + rax]

Function at 0x140007d30
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14001d048]
test rcx, rcx
je 0x140007d6b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007d90
mov rcx, qword [0x14001d048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400260a8], 0
jne 0x140007da8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14001d048]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007d5e
lea r12, [rsp + 0x20]
mov edx, 0x414
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov qword [rsp + 0x20], 0
lea rsi, [0x140017344]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
lea rdi, [0x1400260c0]
movq xmm0, rsi
mov word [rsp + 0x40], dx
movq xmm6, rdi
mov dword [rsp + 0x44], 0
punpcklqdq xmm6, xmm0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x48], 0
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007e74
test al, 0x10
je 0x140007d74
mov ecx, 0x64
call r14
mov eax, 0x414
movaps xmmword [rsp + 0x30], xmm6
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
call rbp
sub ebx, 1
je 0x140007d74
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007e20
jmp 0x140007d74
Function at 0x14000f5d0
Capabilities:
Create directory
Extract resource via kernel32 functions

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140014e60
sub rsp, rax
mov eax, dword [0x14002a0c0]
test eax, eax
mov rsi, rcx
je 0x14000f670
lea rdi, [0x1400280c0]
xor ebx, ebx
test eax, eax
jg 0x14000f60c
jmp 0x14000f620
add rbx, 1
cmp dword [0x14002a0c0], ebx
jle 0x14000f620
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
jne 0x14000f600
jmp 0x14000f657
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
cmp rax, 2
jne 0x14000f635
cmp word [rsi + 2], 0x3a
je 0x14000f657
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000f6c0
movsxd rbx, dword [0x14002a0c0]
cmp ebx, 0x3ff
jle 0x14000f6d8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
lea rbx, str._HOME_
mov rcx, rdi
mov rdx, rbx
call fcn.140007640
test al, al
je 0x14000f6fa
movsxd rbx, dword [0x14002a0c0]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
lea rdi, [0x1400280c0]
mov qword [rdi + rbx*8], rax
mov eax, dword [0x14002a0c0]
add eax, 1
mov dword [0x14002a0c0], eax
jmp 0x14000f5f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f644
xor eax, eax
jmp 0x14000f65c
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
add dword [0x14002a0c0], 1
mov rdx, rax
lea rax, [0x1400280c0]
mov qword [rax + rbx*8], rdx
jmp 0x14000f657
mov rcx, rbx
call fcn.140007d00
nop
nop word cs:[rax + rax]
nop
Function at 0x4156e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415886
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00431800
xorps xmm15, xmm15
mov r14, qword [0x0065bf50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x41574b
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415760
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
nop
test rbx, rbx
jbe 0x415785
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415799
cmp rbx, 0x1000
jae 0x415755
nop dword [rax]
jmp 0x415809
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x4157ad
xor edx, edx
jmp 0x415800
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00431800
xorps xmm15, xmm15
mov r14, qword [0x0065bf50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop dword [rax]
test dl, dl
jne 0x41578f
jmp 0x415774
call fcn.00461600
xorps xmm15, xmm15
mov r14, qword [0x0065bf50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00435d40
lea rax, [0x0050b9e1]
mov ebx, 0x18
call fcn.00436640
mov rax, qword [rsp + 0x38]
call fcn.00436340
lea rax, [0x0050bad1]
mov ebx, 0x19
call fcn.00436640
mov rax, qword [rsp + 0x30]
nop
call fcn.00436340
call fcn.00435fa0
call fcn.00435dc0
lea rax, [0x0050eb7a]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.00434400
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045da60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.004156e0