joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056c00
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov rax, r8
mov rdi, rcx
mov dword [rbp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 7
mov qword [rbp - 0x2c], 0
mov word [rbp - 0x24], 0
mov byte [rbp - 0x28], 1
lea r8, [rbp - 0x48]
mov rcx, rdx
mov rdx, rax
call fcn.140043e90
mov rsi, rdx
test rax, rax
je 0x140056cb6
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140056caa
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rax, qword [r14]
test rax, rax
je 0x140056c82
mov rcx, rbx
call rax
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x140056c97
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140003a50
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call fcn.140003a50
mov qword [rdi], 0
jmp 0x140056e15
lea rcx, [rbp - 0x48]
mov rdx, rsi
call fcn.140044120
cmp dword [rbp - 0x48], 2
jne 0x140056d37
mov rax, qword [rbp - 0x40]
mov ecx, eax
and ecx, 3
cmp ecx, 1
jne 0x140056d17
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rax, qword [r15]
test rax, rax
je 0x140056cef
mov rcx, r14
call rax
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x140056d04
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.140003a50
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.140003a50
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rbp - 0x10]
test rsi, rsi
je 0x140056d85
mov qword [rbp - 0x48], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x48]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x140056e01
mov rbx, qword [rbp - 0x48]
jmp 0x140056d87
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x140056df0
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x140056df0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x140056e0d
mov qword [rdi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x140056e0d
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x14005bd80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x1400a0060]
test esi, esi
je 0x14005be49
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005be3e
je 0x14005bddb
xor ebx, ebx
test rdi, rdi
je 0x14005bddf
test byte [rdi], 1
mov qword [rdi], 0
mov eax, dword [rdi + 0x10]
cmove eax, ebx
mov r14d, 0
cmovne r14, qword [rdi + 8]
mov ebx, eax
jmp 0x14005bde2
xor eax, eax
jmp 0x14005be3e
xor r14d, r14d
mov rax, qword [0x1400c5628]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140003a40
test rax, rax
je 0x14005be6a
mov qword [rax], r14
mov byte [rax + 8], bl
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14005be3b
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.140003a50
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x1400a0048]
call fcn.140055ba0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005bdb3
jmp 0x14005be3e
mov ecx, 8
mov edx, 0x18
call fcn.1400794ff
int3

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

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x1400a0080]
test esi, esi
je 0x14005beb6
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005bed1
add rax, 4
jmp 0x14005bf4a
lea rcx, [0x1400a0068]
call fcn.140055ba0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005bead
je 0x14005bf48
xor r14d, r14d
test rdi, rdi
je 0x14005bee9
cmp byte [rdi], 0
mov byte [rdi], 0
movzx eax, byte [rdi + 1]
cmovne r14d, eax
mov rax, qword [0x1400c5628]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 4
call fcn.140003a40
test rax, rax
je 0x14005bf57
mov rbx, rax
mov dword [rax], esi
add rax, 4
mov r15, rax
mov byte [rbx + 4], r14b
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14005bf43
mov edx, 8
mov r8d, 4
mov rcx, rdi
call fcn.140003a50
mov rax, r15
jmp 0x14005bf4a
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov ecx, 4
mov edx, 8
call fcn.1400794ff
int3
Function at 0x14005bf70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x1400a00c0]
test esi, esi
je 0x14005c042
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005c039
je 0x14005bfbd
test rdi, rdi
je 0x14005bfc1
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14005bfc3
mov rbx, qword [rdi + 8]
jmp 0x14005bfc3
xor eax, eax
jmp 0x14005c039
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x1400c5628]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140003a40
test rax, rax
je 0x14005c063
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14005c036
mov rax, qword [rdi]
test rax, rax
je 0x14005c023
lock dec qword [rax]
jne 0x14005c023
mov rcx, rdi
call fcn.140017010
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140003a50
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400a00a8]
call fcn.140055ba0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005bfa1
jmp 0x14005c039
mov ecx, 8
mov edx, 0x10
call fcn.1400794ff
ud2
Function at 0x14009e4b0
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.14009f270
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.14009f270
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 0x14009e520
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d8234]
mov rbx, rcx
test esi, esi
jle 0x14009e650
mov rax, qword [0x1400d8238]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14009e56b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14009e5f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14009e550
mov rcx, rbx
call fcn.14009ef90
mov rdi, rax
test rax, rax
je 0x14009e672
mov rax, qword [0x1400d8238]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14009f0d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d8238]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009e657
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14009e5ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14009e600
add dword [0x1400d8234], 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 [0x1400d8238]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009e5ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14009e4b0
nop dword [rax]
xor esi, esi
jmp 0x14009e578
mov rax, qword [0x1400d8238]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14009e4b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14009e4b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14009ec00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d82a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d8280]
test rbx, rbx
je 0x14009ec5c
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 rsi, rsi
je 0x14009ec53
test eax, eax
jne 0x14009ec53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009ec38
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 0x14009ef90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c5540]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009efb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009efb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009efb0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009f00d
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 0x14009f004
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14009efb0
add rax, 0x28
cmp rax, r9
jne 0x14009eff0
xor eax, eax
ret

Function at 0x14009f010
Capabilities:
Parse pe header

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

Function at 0x14009f0d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c5540]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009f0ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14009f0f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180954058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1809541df
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 0x180954089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18095406f
add dl, dl
jne 0x180954096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809540f6
xor eax, eax
add dl, dl
jne 0x1809540a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809541ad
add dl, dl
jne 0x1809540b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809540c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809540d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809540dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1809540ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18095407e
mov eax, 1
add dl, dl
jne 0x180954106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180954113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809540fb
sub eax, ebx
mov ebx, 1
jne 0x18095414c
mov ecx, 1
add dl, dl
jne 0x18095412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18095413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180954123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18095407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180954168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180954175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18095415d
cmp eax, 0x7d00
jae 0x18095419b
cmp eax, 0x500
jb 0x180954196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18095407e
cmp eax, 0x7f
ja 0x18095419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18095407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1809541d2
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 0x18095407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001fb60]
mov dword [rax], 1
mov rax, qword [0x14001fb70]
mov dword [rax], 1
mov rax, qword [0x14001fb80]
mov dword [rax], 1
mov rax, qword [0x14001faa0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000b520
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400400c0]
test rcx, rcx
je 0x14000b559
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000b578
mov rcx, qword [0x1400400c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400430e0], 0
jne 0x14000b590
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, qword [0x1400400c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000b54c
mov edx, 0x414
lea rbp, [rsp + 0x20]
lea rbx, [0x14001e482]
mov qword [rsp + 0x20], 0
lea rsi, [0x140043100]
movq xmm0, rbx
mov rcx, rbp
mov dword [rsp + 0x28], 3
movq xmm6, rsi
mov word [rsp + 0x40], dx
mov rdi, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov r13d, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rbx
movaps xmmword [rsp + 0x30], xmm6
call rdi
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rsi
call r12
cmp eax, 0xffffffff
je 0x14000b562
test al, 0x10
je 0x14000b562
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x414
mov qword [rsp + 0x50], rbx
mov rcx, rbp
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rdi
sub r13d, 1
jne 0x14000b600
jmp 0x14000b562

Function at 0x14000f8d0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140016430
sub rsp, rax
mov eax, dword [0x140047100]
mov rsi, rcx
test eax, eax
je 0x14000f990
xor ebx, ebx
lea rdi, [0x140045100]
test eax, eax
jg 0x14000f90c
jmp 0x14000f930
add rbx, 1
cmp dword [0x140047100], ebx
jle 0x14000f930
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000f900
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000f945
cmp word [rsi + 2], 0x3a
je 0x14000f91c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000f9e0
movsxd rbx, dword [0x140047100]
cmp ebx, 0x3ff
jg 0x14000f91c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140047100], 1
mov rdx, rax
lea rax, [0x140045100]
mov qword [rax + rbx*8], rdx
jmp 0x14000f91c
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.14000aca0
test al, al
je 0x14000f9f8
movsxd rbx, dword [0x140047100]
mov rcx, rdi
lea rdi, [0x140045100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140047100]
add eax, 1
mov dword [0x140047100], eax
jmp 0x14000f8f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f958
xor eax, eax
jmp 0x14000f921
mov rcx, rbx
call fcn.14000b460
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, 0x30
mov rax, qword gs:[eax]
mov rsi, qword [rax + 8]
mov rbx, qword [0x1400044e0]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001318
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
xor edi, edi
mov rsi, qword [0x1400044f0]
mov eax, dword [rsi]
cmp eax, 1
je 0x1400013a7
mov eax, dword [rsi]
test eax, eax
je 0x140001350
mov dword [0x140007004], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x140001374
test edi, edi
je 0x140001340
mov rax, qword [0x140004470]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.1400019c0
mov rcx, qword [0x140004570]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400044d0]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400017d0
mov ebx, dword [0x140007020]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140007018]
mov rbp, rax
test ebx, ebx
jle 0x140001398
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007018], rbp
call fcn.1400015f0
call fcn.140002690
mov r8, qword [0x140007010]
mov ecx, dword [0x140007020]
mov qword [rax], r8
mov rdx, qword [0x140007018]
call fcn.1400028b0
mov ecx, dword [0x140007008]
mov dword [0x14000700c], eax
test ecx, ecx
je 0x1400013a0
mov edx, dword [0x140007004]
test edx, edx
je 0x140001328
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov edi, 1
jmp 0x1400011cb
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000700c]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
mov rdx, qword [0x140004530]
mov rcx, qword [0x140004520]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140004510]
mov rcx, qword [0x140004500]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
jmp 0x1400011fc
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov ecx, 0x1f
call fcn.1400026a0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001450
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
xor r8d, r8d
mov r9d, 2
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea rax, [rsp + 0x38]
mov rbx, rcx
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400014d8
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsp + 0x38]
add eax, 1
mov r9d, 1
lea rdx, str.MyProgram
mov dword [rsp + 0x28], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400014f0
lea rcx, str.Failed_to_set_registry_value.
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x40
pop rbx
ret
lea rcx, str.Failed_to_open_registry_key.
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
nop
add rsp, 0x40
pop rbx
ret
lea rcx, str.Successfully_added_to_registry_for_autorun.
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
jmp 0x1400014c2

Function at 0x1400017e0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140002620
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]