joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400061ec
Capabilities:
Delete file
Delete registry value
Persist via run registry key
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x14000d608]
jmp 0x14000626e
cmp dword [0x14000cd04], 0
mov rdi, rbx
jne 0x14000624c
cmp dword [0x14000de60], 0
jne 0x14000624c
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rbx, rbx
jne 0x140006214
mov eax, dword [0x14000cd00]
mov ebx, 1
test eax, eax
je 0x140006317
cmp dword [0x14000cd04], 0
jne 0x140006317
cmp dword [0x14000de60], 0
jne 0x140006317
lea r8, [0x14000d610]
mov edx, 0x104
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400062d3
mov al, byte [r8 + rcx]
test al, al
je 0x1400062d3
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x1400062b5
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
test byte [0x14000de64], 0x20
mov byte [rax], 0
je 0x1400062f4
lea rcx, [rsp + 0x40]
call fcn.140007c40
lea rcx, [0x1400097d0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.14000204c
mov eax, dword [0x14000cd00]
cmp word [0x14000de78], bx
je 0x140006387
test eax, eax
je 0x140006387
cmp byte [0x14000c7d0], 0
je 0x140006387
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140006387
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000c7d0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and dword [0x14000cd00], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x1400063b8
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ebx
mov rbp, rcx
mov r9d, esi
lea r8, str.IXP_03d.TMP
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14000114c
mov r8, rbp
mov edx, 0x104
mov rcx, rdi
inc esi
call fcn.140001008
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rdi
call fcn.140007ba8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400064b6
cmp esi, 0x190
jl 0x1400063e3
mov r9, rdi
lea rdx, [0x14000997c]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop dword [rax + rax]
test eax, eax
je 0x140006490
mov rcx, rdi
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x14000644b
mov dword [0x14000cd00], 1
mov ebx, 1
jmp 0x140006490
Function at 0x1400064e4
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x1400065df
lea rdx, [rsp + 0x50]
call fcn.1400063b8
test eax, eax
je 0x140006688
lea rbx, [0x14000d610]
mov edi, 0x104
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140006560
mov al, byte [r8 + rcx]
test al, al
je 0x140006560
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140006541
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000de64], 0x20
je 0x1400065cc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x1400065bb
sub ecx, 1
je 0x1400065b2
sub ecx, 1
je 0x1400065a9
cmp ecx, 1
jne 0x1400065cc
lea r8, [0x140009998]
jmp 0x1400065c2
lea r8, str.alpha
jmp 0x1400065c2
lea r8, str.mips
jmp 0x1400065c2
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.140007ba8
lea r8, [0x140009700]
mov edx, edi
mov rcx, rbx
call fcn.140007ba8
jmp 0x14000661e
lea rbx, [0x14000d610]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140006610
mov al, byte [r9 + rcx]
test al, al
je 0x140006610
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x1400065f1
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.140006b70
test eax, eax
jne 0x140006649
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x14000667d
mov dword [0x14000cd00], 1
test esi, esi
je 0x14000668c
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140006ca4
test eax, eax
jne 0x14000668c
cmp dword [0x14000cd00], eax
je 0x140006688
and dword [0x14000cd00], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
jmp 0x140006688
call fcn.140007700
mov dword [0x14000d544], eax
xor eax, eax
jmp 0x140006698
and dword [0x14000d544], 0
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140008470
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140006b8b
add ebx, 0x14
mov ecx, 0x40
mov edx, ebx
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140006bf5
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4b5
xor ecx, ecx
call fcn.140004dcc
call fcn.140007700
mov dword [0x14000d544], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.140001008
lea r8, str.TMP4351_.TMP
mov edx, ebx
mov rcx, rsi
call fcn.140007ba8
and qword [rsp + 0x30], 0
mov ebp, 1
mov dword [rsp + 0x28], 0x4000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x140006bd2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140006bd2
test al, 0x10
je 0x140006bd2
and dword [0x14000d544], 0
mov eax, ebp
jmp 0x140006bdf
Function at 0x14000772c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x1400077c9
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140007813
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007792
mov edx, dword [rbx + 4]
lea r9, [rax + 1]
mov ecx, dword [rbx]
add r9, r8
mov rax, rbp
call qword [vtable.H_MA8HI.0]
mov rcx, rbx
test eax, eax
je 0x140007803
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.14000114c
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
jne 0x14000775e
jmp 0x14000781f
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
jmp 0x14000781f
mov dword [0x14000d544], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400079f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000d610]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140007a44
mov al, byte [r9 + rcx]
test al, al
je 0x140007a44
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x140007a25
test r8, r8
lea rax, [rcx - 1]
lea r8, str.advpack.dll
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.140007ba8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140007a96
test al, 0x10
jne 0x140007a96
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
nop dword [rax + rax]
jmp 0x140007aa9
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008470
add rsp, 0x148
ret
Function at 0x140007ac8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [0x14000de70]
mov rbp, r8
mov rcx, rbx
mov r8d, 5
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
je 0x140007b63
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140007b63
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x140007b3a
and qword [rsp + 0x20], rax
jmp 0x140007b3f
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
nop dword [rax + rax]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
jne 0x140007b87
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4fb
xor ecx, ecx
call fcn.140004dcc
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007f04
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x14000c20c]
mov dword [rsp + 0x30], InitCommonControls
cmp esi, 0xfffffffe
jne 0x14000809c
xor edi, edi
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
mov dword [0x14000c20c], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
nop dword [rax + rax]
test eax, eax
je 0x140008096
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x140008096
cmp dword [rsp + 0x54], 4
jne 0x140008096
cmp dword [rsp + 0x58], 0xa
jae 0x140008096
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
je 0x140008096
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140008096
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, [0x140009700]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140008096
lea rcx, [rbp - 0x10]
mov al, byte [rcx]
sub al, 0x30
cmp al, 9
ja 0x14000803f
movsx eax, byte [rcx]
add edi, 0xfffffffd
shl edi, 4
add edi, eax
jmp 0x140008065
mov al, byte [rcx]
sub al, 0x20
cmp byte [rcx], 0x61
movzx edx, al
movzx eax, byte [rcx]
cmovl edx, eax
movsx r8d, dl
lea eax, [r8 - 0x41]
cmp eax, 5
ja 0x140008076
shl edi, 4
add edi, 0xffffffc9
add edi, r8d
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rcx, rax
jmp 0x14000802a
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x140008096
and edi, 0x3ff
cmp edi, esi
je 0x14000808e
cmp edi, 0xd
jne 0x140008096
mov dword [0x14000c20c], esi
jmp 0x14000809c
mov esi, dword [0x14000c20c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140008470
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140008218
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140008964
add rsp, 0x28
jmp 0x140008218
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14000cb78], rbx
je 0x140008262
cmp rax, rbx
jne 0x140008277
mov edi, 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140008284
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x1400082f1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000824b
mov eax, dword [0x14000cb80]
test eax, eax
jne 0x1400082e7
mov dword [0x14000cb80], 1
lea r14, [0x140009688]
lea rbx, [0x140009670]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x1400082d9
test eax, eax
jne 0x1400082dd
cmp qword [rbx], 0
je 0x1400082ce
mov rax, qword [rbx]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400082af
test eax, eax
je 0x1400082f1
mov eax, 0xff
jmp 0x140008444
mov dword [0x14000c224], 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140008319
lea rdx, [0x140009668]
lea rcx, [0x140009658]
call sub.msvcrt.dll__initterm
mov dword [0x14000cb80], 2
test edi, edi
jne 0x140008326
xor eax, eax
xchg qword [0x14000cb78], rax
cmp qword [0x14000cb88], 0
je 0x14000835a
lea rcx, [0x14000cb88]
call fcn.1400088d0
test eax, eax
je 0x14000835a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000cb88]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x1400083e6
test cl, cl
je 0x14000837d
test edi, edi
jne 0x1400083e6
dec cl
cmp cl, 0x1f
ja 0x140008390
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14000837d
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140002c54
mov dword [0x14000c220], eax
cmp dword [0x14000c240], 0
jne 0x1400083cf
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c224], 0
jne 0x1400083e4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c220]
jmp 0x140008444
cmp cl, 0x22
jne 0x1400083f8
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14000840a
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14000836d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x920
mov eax, dword [0x14002bd68]
mov rdi, rcx
cmp dword [rcx], eax
je 0x1400010cc
mov rax, qword [0x14002bd60]
xor ebx, ebx
cmp rax, rbx
je 0x14000104f
cmp word [0x14002bd62], bx
je 0x140001043
call rax
mov qword [0x14002bd60], rax
mov ecx, eax
call fcn.140002bb4
mov rcx, rax
jmp 0x1400010b6
mov ecx, 0x27
call fcn.140002bb4
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 0x1400010ae
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]
add ebx, 1
add rsi, 8
cmp ebx, dword [rdi + 0x18]
jb 0x14000107a
lea rcx, [rsp + 0x120]
call fcn.14000d1cc
call fcn.1400062f0
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 0x140001b04
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
test rdx, rdx
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
je 0x140001b2a
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + VariantCopy]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140001b39
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
lea rcx, [rdi + 0x20]
mov rdx, rsi
mov qword [rdi + 0x18], rbx
call fcn.1400014a0
lea rcx, [rdi + 0x20]
mov dx, 0x5c
call fcn.1400018e8
and dword [0x14002bd80], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8, [0x140001380]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [0x14002bd70], rdi
call qword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x14002be00], 2
mov qword [0x14002bd78], rax
je 0x140001ba3
call fcn.14000c544
mov rax, qword [0x14002bd78]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov r8d, dword [0x14002bd80]
and qword [0x14002bec8], 0
test r8d, r8d
je 0x140001c12
cmp r8d, 1
je 0x140001c04
cmp r8d, 2
je 0x140001bfd
cmp r8d, 3
je 0x140001bf6
cmp r8d, 0x67
jle 0x140001be5
cmp r8d, 0x6b
jle 0x140001c7d
mov edx, 0x14
xor ecx, ecx
call fcn.14000d328
jmp 0x140001c7d
mov edx, 0x12
jmp 0x140001c09
mov edx, 0x13
jmp 0x140001c09
mov edx, reloc.COMCTL32.dll_InitCommonControls
xor ecx, ecx
call fcn.14000d328
jmp 0x140001c7d
cmp dword [0x14002bec4], 0
jne 0x140001c7d
mov rcx, qword [0x14002bd78]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
mov ecx, dword [rsp + 0x40]
test eax, eax
je 0x140001c3d
test ecx, ecx
jne 0x140001c3d
xor eax, eax
jmp 0x140001c82
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x140001c54
mov r8d, ecx
mov edx, 0x21
jmp 0x140001bea
movzx ecx, cx
cmp ecx, 0xe
jne 0x140001c65
cmp dword [0x14002be04], 0xffffffff
je 0x140001c7d
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov r8d, dword [rsp + 0x40]
mov edx, 0x22
lea ecx, [rdx - 0x21]
call fcn.14000d328
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140002348
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 0x14000238f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x140002376
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
jmp 0x140002394
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000238f
test al, 0x10
jne 0x14000238f
mov ecx, 0xb7
jmp 0x14000236c
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14000239c
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov byte [rsp + 0x40], cl
mov ecx, 0xfffffff5
mov byte [rsp + 0x41], InitCommonControls
mov byte [rsp + 0x42], 0xa
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 0x140002640
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 [0x14002bd98]
mov r8, rbp
mov rdx, r12
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_FindResourceExA]
test rax, rax
mov rbx, rax
jne 0x1400026a8
mov r9w, 0x409
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindResourceExA]
test rax, rax
mov rbx, rax
je 0x1400026de
test rsi, rsi
je 0x1400026bf
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 0x1400026de
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x14000277a
cmp dword [0x14002bd9c], 0
jne 0x140002778
lea rcx, str.kernel32
mov dword [0x14002bd9c], 1
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea rdx, str.SetProcessPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
movzx r8d, word [0x14002bd98]
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 0x14000276a
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea rdx, str.SetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
mov rbx, rax
je 0x140002778
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 0x140002b44
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
movzx edx, word [0x14002bd98]
test dx, dx
jne 0x140002ba9
call qword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
movzx ecx, ax
mov word [0x14002bd98], ax
and cx, 0x3ff
cmp cx, 9
je 0x140002b74
movzx eax, ax
jmp 0x140002bac
call qword [sym.imp.KERNEL32.DLL_GetSystemDefaultUILanguage]
cmp ax, 0x409
jne 0x140002ba2
call qword [sym.imp.KERNEL32.DLL_GetSystemDefaultLCID]
mov ecx, dword [0x140025a2c]
mov dx, word [0x14002bd98]
cmp eax, ecx
cmove dx, cx
mov word [0x14002bd98], dx
jmp 0x140002ba9
mov dx, word [0x14002bd98]
movzx eax, dx
add rsp, 0x28
ret