joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aa970
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14009f414
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400aaa11
cmp ebx, dword [rsp + 0x30]
je 0x1400aaa0a
test esi, esi
je 0x1400aaa0a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400aa9e5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400aa9f2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400aa9cf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400aa9f6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400aaa13
mov eax, 1
jmp 0x1400aaa13
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400aad24
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400aad44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008a854
or eax, 0xffffffff
jmp 0x1400aad46
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400acf14
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400de780]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400acf5e
call fcn.14008a8c0
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14008a8e0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14008ca54
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007da20
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400acf69
lea eax, [rbx + 1]
jmp 0x1400acf4b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400acf49
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400acf4b
Function at 0x1400ad648
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14008da98
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ad6d2
cmp byte [rbp - 0x21], r15b
je 0x1400ad6cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ad708
call fcn.1400a1654
test eax, eax
jne 0x1400ad6f4
cmp byte [rbp - 0x21], r15b
je 0x1400ad6ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ad708
cmp byte [rbp - 0x21], r15b
je 0x1400ad705
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140094d08
test eax, eax
jne 0x1400ad7a8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14008da98
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ad747
cmp byte [rbp - 0x21], r15b
je 0x1400ad77c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ad77c
call fcn.1400a1654
test eax, eax
jne 0x1400ad768
cmp byte [rbp - 0x21], r15b
je 0x1400ad761
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ad77c
cmp byte [rbp - 0x21], r15b
je 0x1400ad779
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140094d08
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ad7a8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ad7ab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ad7b9
mov rcx, rdi
call fcn.14009fb80
cmp byte [rbp + 0x3f], r15b
je 0x1400ad7c8
mov rcx, qword [rbp + 0x27]
call fcn.14009fb80
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400aeed0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400aeef8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400aeef8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call fcn.10184000
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10007c10
add rsp, 0x28
jmp 0x10007510
Function at 0x140001d64
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 0x140001e68
cmp eax, 0xeedfade
je 0x140001e68
mov rax, qword [0x14002cab8]
xor ebx, ebx
test rax, rax
je 0x140001dc1
cmp word [0x14002caba], bx
je 0x140001db2
call rax
mov qword [0x14002cab8], rax
mov ecx, eax
call fcn.140004a1c
mov rcx, rax
jmp 0x140001e52
mov ecx, 0x27
call fcn.140004a1c
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 0x140001e1f
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 0x140001dec
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x140001e4a
mov ecx, 3
call fcn.140004a1c
lea rdx, [rsp + 0x120]
xor r9d, r9d
mov r8, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140001e57
lea rcx, [rsp + 0x120]
call fcn.14000c3d0
call fcn.1400073c0
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 0x140001f70
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.1400194f8
lea rcx, [rbp - 0x29]
call fcn.1400194f8
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 0x140001fe4
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 0x140002007
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.140003804
lea rcx, [rbp - 0x29]
mov rdx, rax
call fcn.1400195c8
cmp dword [rbp - 0x31], 0
je 0x140002082
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 0x140002080
test edi, edi
jne 0x140002074
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 0x140002082
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 0x140002ca0
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.1400195c8
mov eax, dword [rdi + 0x20]
cmp dword [rdi + 0x24], eax
jne 0x140002ccc
lea rcx, [rdi + 0x18]
call fcn.14001924c
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, [0x140002b44]
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 0x140002d4c
cmp dword [0x14002cb5c], 2
je 0x140002d39
call fcn.14000b618
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 0x140002dae
cmp r8d, 1
je 0x140002da0
cmp r8d, 2
je 0x140002d99
cmp r8d, 3
je 0x140002d92
cmp r8d, 0x67
jle 0x140002d81
cmp r8d, 0x6b
jle 0x140002e1f
mov edx, 0x14
xor ecx, ecx
call fcn.14000c52c
jmp 0x140002e1f
mov edx, 0x12
jmp 0x140002da5
mov edx, 0x13
jmp 0x140002da5
mov edx, reloc.COMCTL32.dll_InitCommonControls
xor ecx, ecx
call fcn.14000c52c
jmp 0x140002e1f
cmp dword [0x14002cd1c], esi
mov ecx, esi
mov dword [rsp + 0x40], ecx
jne 0x140002e1f
test rax, rax
je 0x140002ddf
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
mov ecx, dword [rsp + 0x40]
test eax, eax
je 0x140002ddf
test ecx, ecx
jne 0x140002ddf
xor eax, eax
jmp 0x140002e24
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x140002df6
mov r8d, ecx
mov edx, 0x21
jmp 0x140002d86
movzx ecx, cx
cmp ecx, 0xe
jne 0x140002e07
cmp dword [0x14002cb60], 0xffffffff
je 0x140002e1f
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov r8d, dword [rsp + 0x40]
mov edx, 0x22
lea ecx, [rdx - 0x21]
call fcn.14000c52c
mov eax, 0x80004005
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140003774
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x10], 0
lea rax, [0x140026258]
mov rbx, rcx
mov qword [rcx], rax
je 0x140003797
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 0x1400038e0
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 0x140003927
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x14000390e
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
jmp 0x14000392c
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003927
test al, 0x10
jne 0x140003927
mov ecx, 0xb7
jmp 0x140003904
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140003b6c
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 0x140003c20
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.140019530
lea rdx, [0x14002626c]
lea rcx, [rsp + 0x20]
call fcn.1400196dc
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 0x140003d51
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.1400195c8
mov r11d, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], r11d
jne 0x140003ca6
lea rcx, [rsp + 0x20]
call fcn.14001924c
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.1400196dc
test byte [rsp + 0x30], 0x10
je 0x140003d12
lea rdx, [0x140026268]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x140003d32
lea rdx, [0x140026260]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x140003d32
mov rcx, qword [rsp + 0x20]
call fcn.140003c20
jmp 0x140003d2e
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x140003d8b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x140003d8b
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x140003c7e
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 0x140003d8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x140003d8b
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, 1
jmp 0x140003d97
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 0x140003db0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x270
cmp dword [0x14002cd3c], 0
mov rbx, rcx
je 0x140003dcc
mov eax, 1
jmp 0x140003e10
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140003dc5
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_FindClose]
test byte [rsp + 0x20], 0x10
mov rcx, rbx
jne 0x140003e0b
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x140003e07
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x140003e10
xor eax, eax
jmp 0x140003e10
call fcn.140003c20
add rsp, 0x270
pop rbx
ret

Function at 0x1400044d8
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 0x140004541
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 0x140004577
test rsi, rsi
je 0x140004558
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 0x140004577
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x1400045fd
cmp dword [0x14002caec], 0
jne 0x1400045fb
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 0x1400045ed
mov rcx, qword [0x14002cb38]
lea rdx, str.SetThreadPreferredUILanguages
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400045fb
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 0x1400049a8
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
movzx edx, word [0x14002cae8]
test dx, dx
jne 0x140004a14
call qword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
mov edx, 0x3ff
movzx ecx, ax
mov word [0x14002cae8], ax
and cx, dx
cmp cx, 9
je 0x1400049db
movzx eax, ax
jmp 0x140004a17
call qword [sym.imp.KERNEL32.DLL_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x140004a0d
call qword [sym.imp.KERNEL32.DLL_GetSystemDefaultLCID]
mov ecx, dword [0x140027178]
movzx edx, word [0x14002cae8]
cmp eax, ecx
cmove dx, cx
mov word [0x14002cae8], dx
jmp 0x140004a14
movzx edx, word [0x14002cae8]
movzx eax, dx
add rsp, 0x28
ret
Function at 0x140004a1c
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 0x140004a68
mov rax, r12
cmp dword [rax], ecx
je 0x140004a68
inc r8
inc edx
mov rax, r8
shl rax, 5
add rax, r12
cmp dword [rax], 0
jne 0x140004a50
mov ebx, edx
shl rbx, 5
cmp dword [rbx + r12], 0
jne 0x140004a81
lea rax, [0x1400260b0]
jmp 0x140004bfe
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 0x140004b27
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 0x140004b1f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x140004b1f
mov rcx, qword [rbx + r12 + 0x18]
test rcx, rcx
je 0x140004b18
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x140004b1f
mov rcx, qword [rbx + r12 + 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbx + r12 + 0x18], rdi
jmp 0x140004b27
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 0x140004bfe
mov rdi, qword [rbx + r12 + 8]
cmp qword [rbx + r12 + 0x10], rax
je 0x140004b5b
call fcn.1400049a8
cmp eax, dword [0x140027178]
jne 0x140004b5b
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 0x140004bd9
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 0x140004bd3
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wtol]
mov ecx, eax
mov dword [0x14002c114], eax
jmp 0x140004bd9
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 0x140004ca8
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 0x140004d1f
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 0x140005104
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, [0x140026258]
mov rsi, rcx
mov qword [rcx], rax
add rcx, 8
call fcn.1400194f8
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x140005156
lea rcx, [rsi + 8]
mov edx, eax
call fcn.140005090
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 0x14000516f
mov rcx, rdx
add rcx, 2
inc eax
cmp word [rcx], bp
jne 0x140005164
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