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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400032ad
xor eax, eax
jmp 0x1400033f3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400032e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400032e7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400033f3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400033e6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000332a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003339
movsx ecx, dil
jmp 0x14000338d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x1400033e6
cmp eax, 1
jle 0x1400033a7
cmp eax, 3
jne 0x1400033e6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000dad8
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400033eb
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400033d4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14000e680
cmp rsi, rax
jne 0x1400033e6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1400033eb
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004860
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x140004780
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140007b70
mov eax, 1
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], eax
xor r9d, r9d
mov word [rsp + 0xb0], ax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140004825
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140004827
xor al, al
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140004860
add rsp, 0xf0
pop rbx
ret

Function at 0x14000dab4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d8e0
Function at 0x1400017dc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x860
mov rax, qword [0x140013058]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov r12, r8
lea rcx, [rsp + 0x50]
mov r15, rdx
mov r8d, 0x800
xor edx, edx
mov r13, r9
xor edi, edi
call sub.msvcrt.dll_memset
xor esi, esi
xor r14d, r14d
test r15, r15
jne 0x140001836
mov eax, 0x80070057
jmp 0x1400019ee
test r12, r12
je 0x1400019e9
test r13, r13
je 0x1400019e9
mov rdx, r15
lea rcx, str.Opening_file__s_for_reading
call fcn.140005c80
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r15
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400018bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
mov rdx, r15
or edi, 0x80070000
lea rcx, str.Could_not_open__s
test eax, eax
cmovle edi, eax
xor ebp, ebp
call fcn.140005c18
mov ecx, edi
call fcn.140005cc8
test edi, edi
jne 0x1400019b3
and dword [rsp + 0x40], 0
lea rcx, str.Reading_from_file__s
mov rdx, r15
call fcn.140005c80
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x800
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
xor ecx, ecx
mov ebx, eax
call fcn.140005cc8
test ebx, ebx
jne 0x140001930
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, dword [rsp + 0x40]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14000193b
mov edx, dword [rsp + 0x40]
test edx, edx
jne 0x14000193f
lea edi, [rdx + 1]
test edi, edi
jne 0x1400019b3
lea rcx, str.Expanding_buffer_by__d_bytes
call fcn.140005c80
mov eax, dword [rsp + 0x40]
add eax, r14d
mov ecx, eax
mov dword [rsp + 0x44], eax
call fcn.140009acc
mov rbx, rax
mov eax, 0x8007000e
test rbx, rbx
cmove edi, eax
mov ecx, edi
call fcn.140005cc8
test edi, edi
jne 0x1400019b3
test rsi, rsi
je 0x140001991
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov rcx, rsi
call fcn.140009b0c
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov ecx, r14d
add rcx, rbx
call sub.msvcrt.dll_memcpy
mov r14d, dword [rsp + 0x44]
mov rsi, rbx
jmp 0x1400018ca
cmp edi, 1
jne 0x1400019c4
mov qword [r12], rsi
xor edi, edi
xor esi, esi
mov dword [r13], r14d
test rsi, rsi
je 0x1400019d1
mov rcx, rsi
call fcn.140009b0c
test rbp, rbp
je 0x1400019e5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, edi
jmp 0x1400019ee
mov eax, 0x80004003
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140009e50
mov rbx, qword [rsp + 0x8a0]
add rsp, 0x860
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000670c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, 0x64
mov qword [rcx], rdx
mov word [rcx + 0x10], ax
mov rdi, rcx
mov qword [rcx + 8], r8
lea rcx, str.Creating_critical_section
call fcn.140005c80
mov ecx, 0x28
call fcn.140009acc
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14000674f
mov ebx, 0x8007000e
jmp 0x140006790
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
nop dword [rax + rax]
test eax, eax
jne 0x14000678e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x18]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
call fcn.140009b0c
and qword [rdi + 0x18], 0
jmp 0x140006790
xor ebx, ebx
mov ecx, ebx
call fcn.140005cc8
test ebx, ebx
jne 0x14000684b
lea rcx, str.Creating_semaphore
call fcn.140005c80
movzx r8d, word [rdi + 0x10]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
nop dword [rax + rax]
mov qword [rdi + 0x30], rax
test rax, rax
jne 0x1400067e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140005cc8
test ebx, ebx
jne 0x14000684b
lea rcx, str.Creating_processing_thread
call fcn.140005c80
and qword [rsp + 0x28], 0
lea r8, [0x1400066d0]
and dword [rsp + 0x20], ebx
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rdi + 0x38], rax
test rax, rax
jne 0x140006844
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140005cc8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140006f38
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140013058]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdi, [rcx + 8]
mov rcx, rdi
call fcn.140009808
mov ebx, eax
test eax, eax
jne 0x140006f7f
lea rax, [0x140009700]
mov qword [rdi + 0x28], rax
lea rax, [0x140009760]
mov qword [rdi + 0x30], rax
test ebx, ebx
jne 0x140006fbe
lea rcx, str.Starting_WinSock
call fcn.140005c80
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop dword [rax + rax]
test eax, eax
je 0x140006fb7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140005cc8
mov eax, ebx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140009e50
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rdi
ret
Function at 0x140006fe8
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140013058]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor r13d, r13d
mov r14, rcx
mov qword [rsp + 0x38], r13
mov word [rsp + 0x30], r13w
test rdx, rdx
jne 0x14000703b
mov eax, 0x80070057
jmp 0x1400071e4
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
call fcn.140007508
mov ebx, eax
test eax, eax
jne 0x140007075
mov rdx, qword [rsp + 0x38]
call fcn.14000780c
mov ebx, eax
test eax, eax
jne 0x140007075
mov rdx, qword [rsp + 0x38]
lea rcx, [r14 + 8]
call fcn.1400095fc
mov ebx, eax
jmp 0x1400071d1
mov edi, 1
cmp ebx, edi
jne 0x1400071d1
mov rdx, qword [rsp + 0x38]
lea rcx, str.Looking_up__s
mov qword [rsp + 0x50], r13
mov r12d, edi
mov ebx, r13d
call fcn.140005c80
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.3702
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
nop dword [rax + rax]
mov r15, qword [rsp + 0x50]
test eax, eax
je 0x1400070d5
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140005cc8
test ebx, ebx
jne 0x1400071bb
test r15, r15
je 0x1400071ae
mov dword [rsp + 0x40], 0xff
mov rdi, r13
mov qword [rsp + 0x48], r13
test ebx, ebx
jne 0x140007195
mov rcx, qword [r15 + 0x20]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x80
call qword [sym.imp.WS2_32.dll_WSAAddressToStringW]
nop dword [rax + rax]
test eax, eax
je 0x140007142
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x140007195
lea r9, [rsp + 0x30]
mov rcx, r14
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.140007508
mov rdi, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x140007195
mov rdx, rdi
lea rcx, str.Adding_IP__s
call fcn.140005c80
lea rcx, [r14 + 8]
mov rdx, rdi
call fcn.1400095fc
mov ecx, eax
mov ebx, eax
call fcn.140005cc8
cmp ebx, 1
jne 0x140007192
mov ebx, r13d
jmp 0x140007195
mov r12d, r13d
mov r15, qword [r15 + 0x28]
test rdi, rdi
je 0x1400071a6
mov rcx, rdi
call fcn.140009b0c
test ebx, ebx
je 0x1400070e4
test ebx, ebx
jne 0x1400071bb
test r12d, r12d
lea eax, [rbx + 1]
cmovne ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400071d1
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
nop dword [rax + rax]
cmp qword [rsp + 0x38], r13
je 0x1400071e2
mov rcx, qword [rsp + 0x38]
call fcn.140009b0c
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140009e50
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140007218
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140013058]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor r13d, r13d
mov r14, rcx
mov qword [rsp + 0x38], r13
mov word [rsp + 0x30], r13w
test rdx, rdx
jne 0x14000726b
mov eax, 0x80070057
jmp 0x140007414
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
call fcn.140007508
mov ebx, eax
test eax, eax
jne 0x1400072a5
mov rdx, qword [rsp + 0x38]
call fcn.14000780c
mov ebx, eax
test eax, eax
jne 0x1400072a5
mov rdx, qword [rsp + 0x38]
lea rcx, [r14 + 8]
call fcn.140006db0
mov ebx, eax
jmp 0x140007401
mov edi, 1
cmp ebx, edi
jne 0x140007401
mov rdx, qword [rsp + 0x38]
lea rcx, str.Looking_up__s
mov qword [rsp + 0x50], r13
mov r12d, edi
mov ebx, r13d
call fcn.140005c80
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.3702
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
nop dword [rax + rax]
mov r15, qword [rsp + 0x50]
test eax, eax
je 0x140007305
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140005cc8
test ebx, ebx
jne 0x1400073eb
test r15, r15
je 0x1400073de
mov dword [rsp + 0x40], 0xff
mov rdi, r13
mov qword [rsp + 0x48], r13
test ebx, ebx
jne 0x1400073c5
mov rcx, qword [r15 + 0x20]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x80
call qword [sym.imp.WS2_32.dll_WSAAddressToStringW]
nop dword [rax + rax]
test eax, eax
je 0x140007372
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x1400073c5
lea r9, [rsp + 0x30]
mov rcx, r14
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.140007508
mov rdi, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400073c5
mov rdx, rdi
lea rcx, str.Removing_IP__s
call fcn.140005c80
lea rcx, [r14 + 8]
mov rdx, rdi
call fcn.140006db0
mov ecx, eax
mov ebx, eax
call fcn.140005cc8
cmp ebx, 1
jne 0x1400073c2
mov ebx, r13d
jmp 0x1400073c5
mov r12d, r13d
mov r15, qword [r15 + 0x28]
test rdi, rdi
je 0x1400073d6
mov rcx, rdi
call fcn.140009b0c
test ebx, ebx
je 0x140007314
test ebx, ebx
jne 0x1400073eb
test r12d, r12d
lea eax, [rbx + 1]
cmovne ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140007401
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
nop dword [rax + rax]
cmp qword [rsp + 0x38], r13
je 0x140007412
mov rcx, qword [rsp + 0x38]
call fcn.140009b0c
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140009e50
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140009108
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140013058]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r8
mov r14, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
xor ebp, ebp
mov dword [rsp + 0x20], ebp
test r14, r14
je 0x1400092cc
test rsi, rsi
je 0x1400092cc
mov rcx, qword [rbx]
mov qword [0x140013698], rcx
test rcx, rcx
je 0x140009179
lea r8d, [rbp + 7]
xor r9d, r9d
lea edx, [rbp + 3]
call fcn.1400063b8
mov ecx, 1
call fcn.14000a478
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fflush]
nop dword [rax + rax]
xor ecx, ecx
call fcn.14000a478
mov edi, 0x100
lea rcx, [rsp + 0x30]
mov edx, edi
mov r8, rax
call qword [sym.imp.msvcrt.dll_fgetws]
nop dword [rax + rax]
mov edx, edi
mov dword [0x140013070], 1
lea rax, [rsp + 0x30]
mov qword [0x140013698], rbp
cmp word [rax], bp
je 0x1400091db
add rax, 2
sub rdx, 1
jne 0x1400091cc
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x1400091f5
sub rdi, rdx
jmp 0x1400091f8
mov rdi, rbp
mov rax, rdx
neg rax
sbb rcx, rcx
and rcx, rdi
test rdx, rdx
je 0x1400092c8
test rcx, rcx
je 0x140009243
lea rax, [rcx + rcx]
sub rax, 2
dec rcx
cmp word [rsp + rax + 0x30], 0xa
je 0x14000922d
cmp word [rsp + rax + 0x30], 0xd
jne 0x140009243
cmp rax, 0x200
jae 0x1400092f0
mov word [rsp + rax + 0x30], bp
test rcx, rcx
jne 0x140009216
movzx ecx, word [rsp + 0x30]
lea rdi, [rsp + 0x30]
jmp 0x140009256
add rdi, 2
movzx ecx, word [rdi]
call qword [sym.imp.msvcrt.dll_iswspace]
nop dword [rax + rax]
test eax, eax
jne 0x14000924f
cmp bp, word [rdi]
jne 0x140009270
lea ebx, [rax + 1]
jmp 0x1400092c8
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400092be
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
lea rdx, [rsp + 0x30]
or ebx, 0x80070000
lea rcx, str.Could_not_parse_command__s:__0x_08x_
test eax, eax
cmovle ebx, eax
mov r8d, ebx
call fcn.140005c18
test ebx, ebx
jne 0x1400092c8
mov ecx, dword [rsp + 0x20]
mov dword [r14], ecx
mov qword [rsi], rdi
mov eax, ebx
jmp 0x1400092d1
mov eax, 0x80004003
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140009e50
add rsp, 0x240
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14000a378
int3
Function at 0x140009c50
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140013ee0], rbx
je 0x140009c9c
cmp rax, rbx
jne 0x140009c8f
mov ebx, 1
mov esi, ebx
jmp 0x140009ca1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009c74
mov ebx, 1
mov eax, dword [0x140013ee8]
cmp eax, ebx
jne 0x140009cb7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140009d1c
mov eax, dword [0x140013ee8]
test eax, eax
jne 0x140009d16
mov dword [0x140013ee8], ebx
lea r15, [0x14000b650]
lea rdi, [0x14000b638]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140009d08
test eax, eax
jne 0x140009d0c
cmp qword [rdi], 0
je 0x140009cfd
mov rax, qword [rdi]
mov rcx, qword [0x14000b618]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140009cde
test eax, eax
je 0x140009d1c
mov eax, 0xff
jmp 0x140009df8
mov dword [0x140013084], ebx
mov eax, dword [0x140013ee8]
cmp eax, ebx
jne 0x140009d43
lea rdx, [0x14000b630]
lea rcx, [0x14000b620]
call sub.msvcrt.dll__initterm
mov dword [0x140013ee8], 2
test esi, esi
jne 0x140009d50
xor eax, eax
xchg qword [0x140013ee0], rax
cmp qword [0x140013ef0], 0
je 0x140009d84
lea rcx, [0x140013ef0]
call fcn.14000a020
test eax, eax
je 0x140009d84
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140013ef0]
mov r9, qword [0x14000b618]
call r9
mov r8, qword [0x140013098]
mov rdx, qword [0x140013090]
mov ecx, dword [0x140013088]
call fcn.1400044dc
mov dword [0x140013080], eax
cmp dword [0x1400130a0], 0
jne 0x140009db4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140013084], 0
jne 0x140009dc9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140013080]
jmp 0x140009df8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400a3000
add rsp, 0x28
jmp 0x140009c50

Function at 0x140009f0c
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400186d0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400186e0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14001b008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140018630]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140013fa0
mov rcx, qword [0x140018760]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400186c0]
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.140013db0
mov ebx, dword [0x14001b028]
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 [0x14001b020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rsi, [rax + rax + 2]
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 [0x14001b020], rbp
call fcn.140013bb0
mov rax, qword [0x140018650]
mov r8, qword [0x14001b018]
mov ecx, dword [0x14001b028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14001b020]
call fcn.14000f500
mov ecx, dword [0x14001b00c]
mov dword [0x14001b010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14001b008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400186e0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.140014d30
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140018700]
mov rcx, qword [0x1400186f0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14001b010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140018720]
mov rcx, qword [0x140018710]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b6
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x140018670]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x140007c10
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
mov ecx, 2
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop

Function at 0x140007c50
Capabilities:
Check if file exists
Delete file
Move file
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Error__couldnt_runtime_expand_spec__ls._n
mov rcx, rax
call fcn.140014bc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax + rax]

Function at 0x140007c80
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movups xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14001d048]
test rcx, rcx
je 0x140007cbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007ce0
mov rcx, qword [0x14001d048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400260a8], 0
jne 0x140007cf8
movups xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14001d048]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007cae
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x140017344]
mov qword [rsp + 0x20], 0
lea rdi, [0x1400260c0]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movups xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007dc4
test al, 0x10
je 0x140007cc4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
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
movups xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007cc4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007d70
jmp 0x140007cc4