joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d8018
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140109700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400d8062
call fcn.1400bd208
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400bd228
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400ba390
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b1c40
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400d806d
lea eax, [rbx + 1]
jmp 0x1400d804f
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 0x1400d804d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400d804f
Function at 0x1400d94b4
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.1400bd248
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400d953e
cmp byte [rbp - 0x21], r15b
je 0x1400d9539
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400d9574
call fcn.1400cc710
test eax, eax
jne 0x1400d9560
cmp byte [rbp - 0x21], r15b
je 0x1400d9558
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400d9574
cmp byte [rbp - 0x21], r15b
je 0x1400d9571
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.1400c5a98
test eax, eax
jne 0x1400d9614
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400bd248
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400d95b3
cmp byte [rbp - 0x21], r15b
je 0x1400d95e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400d95e8
call fcn.1400cc710
test eax, eax
jne 0x1400d95d4
cmp byte [rbp - 0x21], r15b
je 0x1400d95cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400d95e8
cmp byte [rbp - 0x21], r15b
je 0x1400d95e5
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.1400c5a98
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400d9614
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400d9617
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400d9625
mov rcx, rdi
call fcn.1400cc468
cmp byte [rbp + 0x3f], r15b
je 0x1400d9634
mov rcx, qword [rbp + 0x27]
call fcn.1400cc468
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 0x142adb058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x142adb1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x142adb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142adb06f
add dl, dl
jne 0x142adb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142adb0f6
xor eax, eax
add dl, dl
jne 0x142adb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142adb1ad
add dl, dl
jne 0x142adb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142adb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142adb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142adb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x142adb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x142adb07e
mov eax, 1
add dl, dl
jne 0x142adb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142adb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142adb0fb
sub eax, ebx
mov ebx, 1
jne 0x142adb14c
mov ecx, 1
add dl, dl
jne 0x142adb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142adb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142adb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142adb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142adb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142adb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142adb15d
cmp eax, 0x7d00
jae 0x142adb19b
cmp eax, 0x500
jb 0x142adb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142adb07e
cmp eax, 0x7f
ja 0x142adb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142adb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x142adb1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x142adb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
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