joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010ae4
Capabilities:
Create process on windows
Query environment variable

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
push r13
push r14
sub rsp, 0x8f0
sub r9d, 0x9c61
mov rsi, rdx
mov rbx, rcx
je 0x140010d1e
sub r9d, 0xa
je 0x140010c86
cmp r9d, 4
jne 0x140010d29
xor edi, edi
lea rcx, [rax - 0x816]
mov r8d, 0x7fe
mov dword [rdx + 0x270], edi
xor edx, edx
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x64], 0x100
mov dword [rsp + 0x5c], edi
mov word [rax - 0x818], di
call sub.msvcrt.dll_memset
mov rcx, qword [rbx + 0x6d0]
lea rdx, [rsp + 0xf0]
mov r8d, 0x3ff
add rcx, 0xad4
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x50]
call fcn.14000a1e4
lea r8, [rsi + 0x44]
lea rdx, [0x140018c1c]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], edi
call fcn.14000a2ec
lea r8d, [rdi + 0x60]
lea rcx, [rsp + 0x88]
xor edx, edx
call sub.msvcrt.dll_memset
xor eax, eax
cmp qword [rsp + 0x50], rdi
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov rax, qword [rbx + 0x6d0]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x80], 0x68
lea ebp, [rdi + 1]
mov dword [rsp + 0xbc], ebp
movzx ecx, word [rax + 0x12d4]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov word [rsp + 0xc0], cx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea rdx, [0x140017850]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
cmovne rdx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
je 0x140010c6b
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140010c77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x270], eax
lea rcx, [rsp + 0x50]
call fcn.14000a1bc
jmp 0x140010d29
xor edi, edi
lea r9, [rsi + 0x270]
mov dword [rdx + 0x270], edi
mov rdx, qword [rcx + 0x6d0]
mov r8d, dword [rcx + 0x6f4]
lea rcx, [rsi + 0x44]
add rdx, 0x22c
call fcn.140003214
lea ebp, [rdi + 1]
mov r12d, edi
cmp eax, edi
mov eax, dword [rsi + 0x270]
cmovne r12d, ebp
cmp eax, edi
je 0x140010ccf
mov dword [rbx + 0x6f8], eax
mov dword [rsi + 0x270], edi
mov rdx, qword [rbx + 0x6d0]
lea r8, [rsi + 0x270]
lea rcx, [rsi + 0x44]
add rdx, 0x22c
call fcn.140002d68
cmp eax, edi
mov eax, dword [rsi + 0x270]
cmovne r12d, ebp
cmp eax, edi
je 0x140010d09
mov dword [rbx + 0x6f8], eax
cmp r12d, edi
je 0x140010d16
mov rcx, rsi
call fcn.1400039b8
add dword [rbx + 0x6f4], ebp
jmp 0x140010d29
mov ebp, 1
mov dword [rdx + 0x268], ebp
lea r11, [rsp + 0x8f0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x140010dc8
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push rbx
sub rsp, 0x450
mov rbx, rcx
lea rdx, [rsp + 0x240]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140010dfe
lea rcx, [rsp + 0x240]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
and word [rsp + 0x30], 0
lea r9, [rsp + 0x30]
lea rdx, [0x140018c24]
lea rcx, [rsp + 0x240]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rdx, qword [rbx + 0x6d8]
mov eax, 1
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x30]
lea r9d, [rax + 1]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140010a90
test eax, eax
je 0x140010e8a
mov rcx, qword [rbx + 0x210]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140010e67
lea rcx, [rsp + 0x30]
call fcn.140009120
jmp 0x140010e6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140010e7f
mov rcx, qword [rbx + 0x210]
mov edx, eax
call fcn.140008fc4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rsp, 0x450
pop rbx
ret
Function at 0x140011414
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x680
cmp dword [rcx + 0x2b0], 0
mov edi, edx
mov rbx, rcx
jne 0x140011654
and word [rsp + 0x40], 0
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov esi, 0x104
lea rdx, [rsp + 0x40]
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x40]
mov dx, 0x2e
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x14001147c
and word [rax], 0
lea rdx, str..cfg
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_wcscat
mov rcx, qword [rbx + 0x700]
lea rdx, str._cfg
or r8d, 0xffffffff
call fcn.14000a79c
test eax, eax
js 0x1400114c8
mov rcx, qword [rbx + 0x700]
lea edx, [rax + 1]
call fcn.14000a770
lea rdx, [rsp + 0x40]
mov r8d, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
and word [rsp + 0x260], 0
and word [rsp + 0x46a], 0
lea rax, [0x140019190]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x260]
mov qword [rsp + 0x250], rax
mov dword [rsp + 0x258], edi
call fcn.140015ac4
lea rdx, str.General
lea rcx, [rsp + 0x46a]
call fcn.140015ac4
test edi, edi
je 0x14001154c
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x6d0]
lea rdx, [rsp + 0x250]
call fcn.140002418
mov edi, dword [rsp + 0x258]
mov esi, 0x2c
test edi, edi
je 0x14001158d
mov rcx, qword [rbx + 0x210]
test rcx, rcx
je 0x14001159e
lea rdx, [rbx + 0x27c]
mov dword [rdx], esi
call qword [sym.imp.USER32.dll_GetWindowPlacement]
jmp 0x14001159e
lea rcx, [rbx + 0x27c]
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x250]
lea r8, [rbx + 0x27c]
lea rdx, str.WinPos
lea rcx, [rsp + 0x250]
mov r9d, esi
call qword [rax + 0x18]
test edi, edi
jne 0x1400115ce
mov rcx, rbx
call fcn.140001d58
mov edi, dword [rsp + 0x258]
mov rbx, qword [rbx + 0x6d8]
test edi, edi
je 0x1400115ec
mov rcx, qword [rbx + 0x330]
call fcn.14000bc18
mov r8, qword [rbx + 0x330]
mov rax, qword [rsp + 0x250]
lea rdx, str.Columns
mov r9d, dword [r8 + 8]
mov r8, qword [r8]
lea rcx, [rsp + 0x250]
shl r9d, 2
call qword [rax + 0x18]
mov r10, qword [rsp + 0x250]
mov r9d, dword [rbx + 0x3c]
lea r8, [rbx + 0x340]
lea rdx, str.Sort
lea rcx, [rsp + 0x250]
mov esi, eax
call qword [r10 + InitCommonControls]
test edi, edi
jne 0x140011654
test esi, esi
je 0x140011654
mov rcx, qword [rbx + 0x330]
call fcn.14000bb20
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140011cb8
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x830
mov rsi, rcx
mov rcx, qword [rcx + 0x210]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140011def
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
mov rdi, rax
je 0x140011dd1
mov ebx, dword [rax]
and word [rsp + 0x30], 0
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x7fe
add rbx, rax
call sub.msvcrt.dll_memset
cmp dword [rdi + 0x10], 0
jne 0x140011dc2
jmp 0x140011d7f
lea rax, [rsp + 0x30]
or r9d, 0xffffffff
mov r8, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x3ff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsi + 0x6d8]
lea rdx, [rsp + 0x30]
add rcx, 0x368
or r8d, 0xffffffff
call fcn.14000a0a8
mov rcx, rbx
call sub.msvcrt.dll_strlen
lea rbx, [rbx + rax + 1]
cmp byte [rbx], 0
jne 0x140011d33
jmp 0x140011dc8
lea rcx, [rsp + 0x30]
mov r8d, 0x3ff
mov rdx, rbx
call fcn.140009208
mov rcx, qword [rsi + 0x6d8]
lea rdx, [rsp + 0x30]
add rcx, 0x368
or r8d, 0xffffffff
call fcn.14000a0a8
mov rcx, rbx
call sub.msvcrt.dll_wcslen
lea rbx, [rbx + rax*2 + 2]
cmp word [rbx], 0
jne 0x140011d86
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, qword [rsi + 0x210]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x416
call qword [sym.imp.USER32.dll_PostMessageW]
lea r11, [rsp + 0x830]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140011e08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rax, qword [rcx + 0x6d8]
mov rsi, rcx
xor r12d, r12d
mov rcx, qword [rax + 0x2f8]
and qword [rsp + 0x40], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
sub ebx, 1
js 0x140011f6f
movsxd rbp, ebx
mov rcx, qword [rsi + 0x6d8]
mov r9d, 4
mov r8, rbp
mov rcx, qword [rcx + 0x2f8]
mov edx, 0x102c
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 4
jne 0x140011ecf
mov rcx, qword [rsi + 0x6d8]
lea rdx, [rsp + 0x40]
mov r8d, ebx
call fcn.14000c58c
test eax, eax
je 0x140011ecf
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 0x44]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140011eb2
mov dword [rdi + 0x26c], 1
jmp 0x140011eb9
and dword [rdi + 0x26c], 0
cmp dword [rdi + 0x26c], 0
je 0x140011ecf
and dword [rsi + 0x6f0], 0
mov r12d, 1
sub rbp, 1
sub ebx, 1
jns 0x140011e53
test r12d, r12d
je 0x140011f6f
mov rbp, qword [rsi + 0x6d8]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0x2f8]
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
sub ebx, 1
js 0x140011f5d
movsxd rdi, ebx
lea rdx, [rsp + 0x40]
mov r8d, ebx
mov rcx, rbp
call fcn.14000c58c
test eax, eax
je 0x140011f54
mov rax, qword [rbp]
mov rdx, qword [rsp + 0x40]
mov r8d, ebx
mov rcx, rbp
call qword [rax + 0xe0]
test eax, eax
jne 0x140011f54
mov rcx, qword [rbp + 0x2f8]
xor r9d, r9d
mov r8, rdi
mov edx, 0x1008
call qword [sym.imp.USER32.dll_SendMessageW]
sub rdi, 1
sub ebx, 1
jns 0x140011f0f
mov rcx, rsi
call fcn.14000ed24
xor edx, edx
mov rcx, rsi
call fcn.14000e9d4
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x140012298
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x2a0
mov edx, 1
mov rbx, rcx
call fcn.140011414
and word [rsp + 0x90], 0
lea rcx, [rsp + 0x92]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x90]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call sub.msvcrt.dll_memset
and qword [rsp + 0x40], 0
lea rax, str.RunAs
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x38], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14001233d
mov rcx, qword [rbx + 0x210]
call qword [sym.imp.USER32.dll_DestroyWindow]
add rsp, 0x2a0
pop rbx
ret
Function at 0x140013f64
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14001d57c], 0
jne 0x140014032
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
mov rbx, rax
je 0x140014032
lea rdx, str.CreateToolhelp32Snapshot
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001cb58], rax
je 0x140014032
lea rdx, str.Module32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001cb48], rax
je 0x140014032
lea rdx, str.Module32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001cb40], rax
je 0x140014032
lea rdx, str.Process32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001c918], rax
je 0x140014032
lea rdx, str.Process32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x14001d57c]
mov edx, 1
test rax, rax
mov qword [0x14001cb30], rax
cmovne ecx, edx
mov dword [0x14001d57c], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140014038
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14001d650], 0
jne 0x14001411b
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rbx, rax
je 0x14001411b
lea rdx, str.GetModuleBaseNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001cb70], rax
je 0x140014108
lea rdx, str.EnumProcessModules
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001cb60], rax
je 0x140014108
lea rdx, str.GetModuleFileNameExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001cb50], rax
je 0x140014108
lea rdx, str.EnumProcesses
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001cb78], rax
je 0x140014108
lea rdx, str.GetModuleInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x14001d650]
mov edx, 1
test rax, rax
mov qword [0x14001cb68], rax
cmovne ecx, edx
mov dword [0x14001d650], ecx
jmp 0x14001410e
mov ecx, dword [0x14001d650]
test ecx, ecx
jne 0x14001411b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x20
pop rbx
ret
Function at 0x1400149f4
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rsi
push rdi
mov eax, 0x20030
call fcn.140015e80
sub rsp, rax
test ecx, ecx
mov r10, r9
mov rdi, r8
mov rsi, rdx
je 0x140014a7e
cmp qword [rsp + 0x20060], 0
je 0x140014a60
mov rcx, qword [rsp + 0x20060]
mov dx, 0x22
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x140014a60
mov r9, qword [rsp + 0x20060]
and word [rsp + 0x30], 0
lea r8, str.__s_
lea rcx, [rsp + 0x30]
mov edx, 0xfffe
call sub.msvcrt.dll__snwprintf
lea r8, [rsp + 0x30]
jmp 0x140014a68
mov r8, qword [rsp + 0x20060]
mov r9, qword [rsp + 0x20070]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x140014aad
mov rax, qword [rsp + 0x20070]
mov r9, qword [rsp + 0x20060]
mov r8, r10
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x20068]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rsi, qword [rsp + 0x20040]
add rsp, 0x20030
pop rdi
ret

Function at 0x140014ac0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x4040
call fcn.140015e80
sub rsp, rax
mov rsi, rdx
xor edx, edx
mov rdi, r8
test ecx, ecx
mov rbx, r9
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x32]
je 0x140014b34
call sub.msvcrt.dll_memset
mov r11, qword [rsp + 0x4070]
and word [rsp + 0x30], 0
mov edx, dword [r11]
test edx, edx
je 0x140014b17
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140009ac8
mov r9, qword [rsp + 0x4078]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
jmp 0x140014b9a
and word [rsp + 0x30], 0
call sub.msvcrt.dll_memset
mov r11, qword [rsp + 0x4078]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x30]
lea r8, [0x140017850]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
lea rcx, [rsp + 0x30]
test eax, eax
setne dil
call sub.msvcrt.dll_wcslen
test eax, eax
je 0x140014b9a
mov rdx, qword [rsp + 0x4070]
lea rcx, [rsp + 0x30]
mov r9d, eax
mov r8, rbx
call fcn.140009b80
lea r11, [rsp + 0x4040]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140014bb4
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x220
test ecx, ecx
mov eax, r9d
mov rdi, r8
mov rsi, rdx
je 0x140014c20
mov rax, qword [rsp + 0x250]
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
mov ebx, dword [rax]
xor edx, edx
mov r8d, 0x1fc
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, 0xa
mov ecx, ebx
call sub.msvcrt.dll__itow
mov r9, qword [rsp + 0x258]
mov rdx, rdi
mov r8, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x140014c41
mov r9, qword [rsp + 0x258]
mov r8d, eax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rcx, qword [rsp + 0x250]
mov dword [rcx], eax
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400157e8
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rdi, rcx
lea rbp, [rcx + 0x18]
xor ecx, ecx
mov word [rbp], cx
mov word [rdi + 0xa18], cx
mov word [rdi + 0xc18], cx
mov word [rdi + 0xe18], cx
lea r12, [rdi + 0x218]
lea r13, [rdi + 0x418]
mov word [r12], cx
mov word [r13], cx
lea r14, [rdi + 0x618]
mov word [r14], cx
lea r15, [rdi + 0x818]
mov rbx, rdx
mov word [r15], cx
mov ecx, r8d
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r8d, dword [rsp + 0x2b0]
xor edx, edx
mov r9, rax
mov rcx, rbx
mov rsi, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x2b0]
lea r8, [rsp + 0x2a0]
lea rdx, [0x1400184ac]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400158c5
mov rcx, qword [rsp + 0x2a0]
mov eax, dword [rcx + 0x30]
mov dword [rdi + 4], eax
mov eax, dword [rcx + 8]
mov dword [rdi], eax
mov eax, dword [rcx + 0x14]
mov dword [rdi + 0xc], eax
mov eax, dword [rcx + 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rcx + 0x24]
mov dword [rdi + 0x10], eax
mov eax, dword [rcx + 0x28]
mov dword [rdi + 0x14], eax
lea r9, [rsp + 0x2b0]
lea r8, [rsp + 0x2b8]
lea rdx, str.VarFileInfoTranslation
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140015937
mov rax, qword [rsp + 0x2b8]
lea r8, str._4.4X_4.4X
mov edx, 0x14
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__snwprintf
lea r11, [rsp + 0x60]
lea r9, [0x140017850]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r11
call fcn.140015728
test eax, eax
jne 0x140015948
lea rdx, str.040904E4
lea rcx, [rsp + 0x30]
call fcn.140015ac4
lea r9, str.ProductName
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call fcn.140015728
lea r9, str.FileDescription
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r12
call fcn.140015728
lea r9, str.FileVersion
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r13
call fcn.140015728
lea r9, str.ProductVersion
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r14
call fcn.140015728
lea r9, str.CompanyName
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.140015728
lea r11, [rdi + 0xa18]
lea r9, str.InternalName
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r11
call fcn.140015728
lea r11, [rdi + 0xc18]
lea r9, str.LegalCopyright
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r11
call fcn.140015728
lea r11, [rdi + 0xe18]
lea r9, str.OriginalFileName
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r11
call fcn.140015728
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x2a8]
mov eax, 1
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015b80
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x140000000], 0x5a4d
je 0x140015bbc
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x140000000]
jmp 0x140015c4a
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x140015be0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140015c4a
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x140015c27
cmp ecx, 0x20b
je 0x140015bff
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140015c4a
cmp dword [rax + 0x84], 0xe
ja 0x140015c13
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140015c4a
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x140015c4a
cmp dword [rax + 0x74], 0xe
ja 0x140015c38
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140015c4a
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x14001db60], 0xffffffffffffffff
mov qword [0x14001db68], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x14001c39c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x14001c398]
mov dword [rcx], eax
call fcn.140015e50
cmp dword [section..data], 0
jne 0x140015ca4
lea rcx, [fcn.140015e50]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x1400177c0]
lea rcx, [0x1400177b8]
call fcn.1400b0000
mov r11d, dword [0x14001c394]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x14001c390]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___wgetmainargs]
lea rdx, [0x1400177b0]
lea rcx, [0x140017778]
call sub.msvcrt.dll__initterm
mov r8, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [r8], 0
jne 0x140015d19
mov eax, 0xff
jmp 0x140015de9
mov r8, qword [r8]
mov qword [rsp + 0x30], r8
cmp word [r8], 0x22
jne 0x140015d60
nop
nop
add r8, 2
mov qword [rsp + 0x30], r8
movzx eax, word [r8]
test ax, ax
je 0x140015d4a
cmp ax, 0x22
je 0x140015d4a
jmp 0x140015d30
cmp word [r8], 0x22
jne 0x140015d72
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x140015d72
cmp word [r8], 0x20
jbe 0x140015d72
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x140015d60
movzx eax, word [r8]
test ax, ax
je 0x140015d8c
cmp ax, 0x20
ja 0x140015d8c
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x140015d72
test byte [rsp + 0x8c], 1
je 0x140015da1
movzx r9d, word [rsp + 0x90]
jmp 0x140015da7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.14001375c
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x140015dc3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x140015de7
mov eax, edi
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x401b23
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x0040fa68]
test rax, rax
je 0x401b36
call rax
mov ecx, 2
call qword [fcn.004061d0]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x40484f
Capabilities:
Allocate or change rwx memory
Create thread
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rdx, [0x0040c5c0]
lea rcx, str.user.dat
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0x79656b
call sub.msvcrt.dll_fopen
xor edx, edx
mov r8d, 2
mov rdi, rax
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rcx, rdi
call sub.msvcrt.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, rdi
movsxd rbx, eax
call sub.msvcrt.dll_fseek
mov rdx, rbx
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9, rdi
mov rdx, rbx
mov r8d, 1
mov rsi, rax
mov rcx, rax
call sub.msvcrt.dll_fread
lea r8, [rsp + 0x3c]
mov rdx, rbx
mov rcx, rsi
mov r9d, 4
call fcn.00404820
lea r9, [rsp + 0x38]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r9d, r9d
mov r8, rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret