joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408830
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x2068
push r14
push r13
push r12
push rsi
push rbx
call fcn.0040dda0
sub rsp, rax
mov r13, rcx
lea r15, [rsp + 0x40]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r15
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x408930
xor r12d, r12d
lea r14, [rsp + 0x60]
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x4088a9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, r14
lea r8, str.D:_A__FA____s_
test r12, r12
cmovne r9, r12
call qword [sym.imp.msvcrt.dll__snwprintf]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rcx, r14
mov dword [rsp + 0x40], 0x18
mov edx, 1
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x4089c0
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x2068
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r14, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, 1
call r14
test eax, eax
jne 0x408967
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x408888
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov rsi, rdx
call sub.msvcrt.dll_calloc
mov rcx, qword [rsp + 0x40]
mov r12, rax
test rax, rax
je 0x408888
mov qword [rsp + 0x20], rbx
mov r9d, esi
mov r8, rax
mov edx, 1
call r14
lea r14, [rsp + 0x60]
test eax, eax
je 0x408890
mov rcx, qword [r12]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x408890
mov eax, 0xffffffff
jmp 0x408919

Function at 0x409000
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
mov r11d, 0x80000000
test ecx, ecx
je 0x40907c
mov ebx, 3
lea rsi, [0x0041a8e0]
jmp 0x409027
add ebx, 1
sar ecx, 1
je 0x40907c
test cl, 1
je 0x409020
mov eax, ebx
mov edx, 0x80000000
and eax, 0x1f
mov r10d, dword [rsi + rax*4]
mov eax, r11d
xor r11d, r11d
jmp 0x409064
mov r9d, eax
shr eax, 1
mov r8d, eax
and r9d, 1
shr edx, 1
xor r8d, 0xedb88320
test r9d, r9d
cmovne eax, r8d
test r10d, edx
je 0x409048
lea r8d, [rdx - 1]
xor r11d, eax
test r8d, r10d
jne 0x409048
add ebx, 1
sar ecx, 1
jne 0x409027
mov eax, r11d
pop rbx
pop rsi
ret
Function at 0x40cff0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov r12, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00416010
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00416010
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x40d060
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0042f4a4]
test ebx, ebx
mov r12, rcx
jle 0x40d190
mov rax, qword [0x0042f4a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x40d0ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x40d135
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x40d090
mov rcx, r12
call fcn.0040dae0
test rax, rax
mov rsi, rax
je 0x40d1b2
mov rax, qword [0x0042f4a8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.0040dc10
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x0042f4a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40d197
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40d12e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x40d140
add dword [0x0042f4a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x0042f4a8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40d12e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040cff0
nop dword [rax]
xor ebx, ebx
jmp 0x40d0b8
mov rax, qword [0x0042f4a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rsi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.0040cff0
lea rcx, str.Address__p_has_no_image_section
mov rdx, r12
call fcn.0040cff0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x40d730
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x0042f500]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0042f4e0]
test rbx, rbx
je 0x40d78c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40d783
test r12, r12
je 0x40d783
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40d768
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40dae0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0041e8d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x40db00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x40db08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x40db00
sub rcx, rdx
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40db55
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40db4c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40db00
add rax, 0x28
cmp rax, r9
jne 0x40db38
xor eax, eax
ret

Function at 0x40db60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0041e8d0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x40db80
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x40db88
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x40db80
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x40dc10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0041e8d0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x40dc30
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x40dc38
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140001cb0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x920
mov eax, dword [rcx]
mov rdi, rcx
cmp eax, dword [0x14002cac0]
je 0x140001dca
cmp eax, 0xeedfade
je 0x140001dca
cmp eax, 0x40010006
je 0x140001dca
cmp eax, 0x4001000a
je 0x140001dca
mov rax, qword [0x14002cab8]
xor ebx, ebx
test rax, rax
je 0x140001d23
cmp word [0x14002caba], bx
je 0x140001d14
call rax
mov qword [0x14002cab8], rax
mov ecx, eax
call fcn.140004a0c
mov rcx, rax
jmp 0x140001db4
mov ecx, 0x27
call fcn.140004a0c
mov r9, qword [rdi + 0x10]
mov r8d, dword [rdi]
lea rcx, [rsp + 0x120]
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
cmp dword [rdi + 0x18], ebx
jbe 0x140001d81
lea rsi, [rdi + 0x20]
mov r8, qword [rsi]
lea rdx, str._t0x_p_n
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
inc ebx
add rsi, 8
cmp ebx, dword [rdi + 0x18]
jb 0x140001d4e
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x140001dac
mov ecx, 3
call fcn.140004a0c
lea rdx, [rsp + 0x120]
xor r9d, r9d
mov r8, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140001db9
lea rcx, [rsp + 0x120]
call fcn.14000c2c4
call fcn.1400073e0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea r11, [rsp + 0x920]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001ed0
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rsi, rcx
lea rcx, [rbp - 0x39]
mov rbx, r8
mov edi, edx
call fcn.140019458
lea rcx, [rbp - 0x29]
call fcn.140019458
xor edx, edx
lea rcx, [rbp - 0x19]
lea r8d, [rdx + 0x70]
call sub.msvcrt.dll_memset
mov qword [rbp + 0xf], rbx
mov ebx, 1
mov edx, 0x740
mov dword [rbp - 0x19], 0x70
mov dword [rbp + 0x17], 0xa
mov dword [rbp - 0x15], edx
test bl, dil
je 0x140001f44
and dword [rbp + 0x17], 0
mov edx, 0x8740
mov dword [rbp - 0x15], edx
test dil, 2
lea rax, str.runas
cmove rax, qword [rbp - 9]
and edi, 0x10000
mov qword [rbp - 9], rax
jne 0x140001f67
bts edx, 8
mov dword [rbp - 0x15], edx
mov rcx, qword [0x14002cae0]
mov edx, 5
mov qword [rbp - 0x11], rcx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.USER32.dll_BringWindowToTop]
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.1400037f4
lea rcx, [rbp - 0x29]
mov rdx, rax
call fcn.140019528
cmp dword [rbp - 0x31], 0
je 0x140001fe2
mov rax, qword [rbp - 0x39]
lea rcx, [rbp - 0x19]
mov qword [rbp - 1], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp + 7], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140001fe0
test edi, edi
jne 0x140001fd4
mov rcx, qword [rbp + 0x4f]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x4f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001fe2
xor ebx, ebx
mov rcx, qword [rbp - 0x29]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rbp - 0x39]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140002c90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
add rcx, 0x18
call fcn.140019528
mov eax, dword [rdi + 0x20]
cmp dword [rdi + 0x24], eax
jne 0x140002cbc
lea rcx, [rdi + 0x18]
call fcn.1400191ac
mov edx, dword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
xor esi, esi
mov r8d, 0x5c
lea rax, [rsp + 0x50]
mov r9, rdi
mov word [rcx + rdx*2], r8w
inc edx
mov qword [rsp + 0x28], rax
mov word [rcx + rdx*2], si
mov dword [rdi + 0x20], edx
lea r8, [0x140002b34]
xor edx, edx
xor ecx, ecx
mov qword [0x14002cad0], rdi
mov dword [0x14002cad8], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14002cac8], rax
test rax, rax
je 0x140002d3c
cmp dword [0x14002cb5c], 2
je 0x140002d29
call fcn.14000b50c
mov rax, qword [0x14002cac8]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [0x14002cac8]
mov r8d, dword [0x14002cad8]
mov qword [0x14002cd20], rsi
test r8d, r8d
je 0x140002d9e
cmp r8d, 1
je 0x140002d90
cmp r8d, 2
je 0x140002d89
cmp r8d, 3
je 0x140002d82
cmp r8d, 0x67
jle 0x140002d71
cmp r8d, 0x6b
jle 0x140002e0f
mov edx, 0x14
xor ecx, ecx
call fcn.14000c420
jmp 0x140002e0f
mov edx, 0x12
jmp 0x140002d95
mov edx, 0x13
jmp 0x140002d95
mov edx, reloc.COMCTL32.dll_InitCommonControls
xor ecx, ecx
call fcn.14000c420
jmp 0x140002e0f
cmp dword [0x14002cd1c], esi
mov ecx, esi
mov dword [rsp + 0x40], ecx
jne 0x140002e0f
test rax, rax
je 0x140002dcf
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [rsp + 0x40]
test eax, eax
je 0x140002dcf
test ecx, ecx
jne 0x140002dcf
xor eax, eax
jmp 0x140002e14
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x140002de6
mov r8d, ecx
mov edx, 0x21
jmp 0x140002d76
movzx ecx, cx
cmp ecx, 0xe
jne 0x140002df7
cmp dword [0x14002cb60], 0xffffffff
je 0x140002e0f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rsp + 0x40]
mov edx, 0x22
lea ecx, [rdx - 0x21]
call fcn.14000c420
mov eax, 0x80004005
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140003764
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x10], 0
lea rax, [0x140026248]
mov rbx, rcx
mov qword [rcx], rax
je 0x140003787
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [rbx + 8]
add rsp, 0x20
pop rbx
jmp sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_

Function at 0x1400038d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140003917
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400038fe
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000391c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003917
test al, 0x10
jne 0x140003917
mov ecx, 0xb7
jmp 0x1400038f4
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140003b5c
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov byte [rsp + 0x40], cl
mov ecx, 0xfffffff5
mov word [rsp + 0x41], 0xa0d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret

Function at 0x140003c10
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140019490
lea rdx, [0x14002625c]
lea rcx, [rsp + 0x20]
call fcn.14001963c
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor esi, esi
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140003d41
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140019528
mov r11d, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], r11d
jne 0x140003c96
lea rcx, [rsp + 0x20]
call fcn.1400191ac
mov r11d, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov eax, r11d
inc r11d
mov edx, 0x5c
mov word [rcx + rax*2], dx
mov word [rcx + r11*2], si
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x5c]
mov dword [rsp + 0x28], r11d
call fcn.14001963c
test byte [rsp + 0x30], 0x10
je 0x140003d02
lea rdx, [0x140026258]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003d22
lea rdx, [0x140026250]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003d22
mov rcx, qword [rsp + 0x20]
call fcn.140003c10
jmp 0x140003d1e
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003d7b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140003d7b
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003c6e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14002cb88]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003d7b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140003d7b
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, 1
jmp 0x140003d87
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140003da0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x270
cmp dword [0x14002cd3c], 0
mov rbx, rcx
je 0x140003dbc
mov eax, 1
jmp 0x140003e00
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140003db5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rsp + 0x20], 0x10
mov rcx, rbx
jne 0x140003dfb
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140003df7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140003e00
xor eax, eax
jmp 0x140003e00
call fcn.140003c10
add rsp, 0x270
pop rbx
ret

Function at 0x1400044c8
Capabilities:
Extract resource via kernel32 functions

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, 0x70
mov r12, rcx
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx r9d, word [0x14002cae8]
mov r8, rbp
mov rdx, r12
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
mov rbx, rax
test rax, rax
jne 0x140004531
mov r9d, 0x409
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
mov rbx, rax
test rax, rax
je 0x140004567
test rsi, rsi
je 0x140004548
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
mov qword [rsi], r11
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140004567
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x1400045ed
cmp dword [0x14002caec], 0
jne 0x1400045eb
mov rcx, qword [0x14002cb38]
lea rdx, str.SetProcessPreferredUILanguages
mov dword [0x14002caec], 1
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx r8d, word [0x14002cae8]
and qword [rsp + 0x28], 0
lea rdx, str._04X_c_04X_c
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov rbx, rax
mov dword [rsp + 0x20], 0x409
call qword [sym.imp.USER32.dll_wsprintfW]
test rbx, rbx
jne 0x1400045dd
mov rcx, qword [0x14002cb38]
lea rdx, str.SetThreadPreferredUILanguages
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400045eb
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 4]
call rbx
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x140004998
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
movzx edx, word [0x14002cae8]
test dx, dx
jne 0x140004a04
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edx, 0x3ff
movzx ecx, ax
mov word [0x14002cae8], ax
and cx, dx
cmp cx, 9
je 0x1400049cb
movzx eax, ax
jmp 0x140004a07
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x1400049fd
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [0x140027168]
movzx edx, word [0x14002cae8]
cmp eax, ecx
cmove dx, cx
mov word [0x14002cae8], dx
jmp 0x140004a04
movzx edx, word [0x14002cae8]
movzx eax, dx
add rsp, 0x28
ret
Function at 0x140004a0c
Capabilities:
Get geographical location
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0xd0
xor edx, edx
xor r8d, r8d
mov edi, ecx
cmp dword [0x14002c190], edx
lea r12, [0x14002c190]
je 0x140004a58
mov rax, r12
cmp dword [rax], ecx
je 0x140004a58
inc r8
inc edx
mov rax, r8
shl rax, 5
add rax, r12
cmp dword [rax], 0
jne 0x140004a40
mov ebx, edx
shl rbx, 5
cmp dword [rbx + r12], 0
jne 0x140004a71
lea rax, [0x1400260a0]
jmp 0x140004bee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SfxString_d
lea rcx, [rsp + 0x30]
mov r8d, edi
mov ebp, eax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
or r15, 0xffffffffffffffff
test eax, eax
jne 0x140004b17
lea edx, [rsi + 2]
lea eax, [r15 + 3]
mul rdx
cmovo rax, r15
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x30]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
ja 0x140004b0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004b0f
mov rcx, qword [rbx + r12 + 0x18]
test rcx, rcx
je 0x140004b08
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004b0f
mov rcx, qword [rbx + r12 + 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbx + r12 + 0x18], rdi
jmp 0x140004b17
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx + r12 + 0x18]
test rax, rax
jne 0x140004bee
mov rdi, qword [rbx + r12 + 8]
cmp qword [rbx + r12 + 0x10], rax
je 0x140004b4b
call fcn.140004998
cmp eax, dword [0x140027168]
jne 0x140004b4b
mov rdi, qword [rbx + r12 + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea ecx, [rax + 3]
mov eax, 2
movsxd rdx, ecx
mul rdx
cmovo rax, r15
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov ecx, dword [0x14002c114]
mov qword [rbx + r12 + 0x18], rax
cmp ecx, 0xffffffff
jne 0x140004bc9
movzx ecx, word [0x14002cae8]
and dword [0x14002c114], 0
lea r8, [rsp + 0x90]
mov r9d, 0x1f
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x140004bc3
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wtol]
mov ecx, eax
mov dword [0x14002c114], eax
jmp 0x140004bc9
mov ecx, dword [0x14002c114]
lea eax, [rsi + 2]
lea r9d, [rsi + 1]
mov r8, rdi
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + r12 + 0x18]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rax, qword [rbx + r12 + 0x18]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x140004c98
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rbp + 0x10], ebx
mov qword [rbp + 0x20], rbx
mov dword [rbp + 0x18], ebx
mov dword [rsp + 0x20], ebx
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140004d0f
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rbp
ret

Function at 0x1400050f4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rax, [0x140026248]
mov rsi, rcx
mov qword [rcx], rax
add rcx, 8
call fcn.140019458
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x140005146
lea rcx, [rsi + 8]
mov edx, eax
call fcn.140005080
mov ecx, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, qword [rsi + 8]
mov eax, ebp
cmp word [rdx], bp
je 0x14000515f
mov rcx, rdx
add rcx, 2
inc eax
cmp word [rcx], bp
jne 0x140005154
mov rbx, qword [rsp + 0x30]
mov dword [rsi + 0x10], eax
mov word [rdx + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret