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

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140197310
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140292234]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1401974c0
mov rax, qword [0x140292238]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14019735c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1401973e7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140197340
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14019751d
mov rax, qword [0x140292238]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140292238]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140197502
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401973e0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140197470
add dword [0x140292234], 1
cmp ebx, 8
jae 0x140197418
test bl, 4
jne 0x1401974d0
test ebx, ebx
je 0x140197409
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1401974f0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140197409
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14019744a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140292238]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401973e0
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor edi, edi
jmp 0x140197367
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140197409
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140197409
mov rax, qword [0x140292238]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call sym.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop dword [rax]
Function at 0x140197a30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1402922a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140292280]
test rbx, rbx
je 0x140197a84
mov rdi, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rsi, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140197a7b
test r12, r12
je 0x140197a7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140197a60
lea rcx, [0x1402922a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140197cb0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140197cc0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140197cd0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140197d15
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x140197d0c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140197d17
add rax, 0x28
cmp rax, r9
jne 0x140197cf8
xor eax, eax
ret

Function at 0x140197dc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14026ca10]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140197e39
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140197e39
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140197e36
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x140197e2d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140197e39
add r8, 0x28
cmp r8, r9
jne 0x140197e18
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140197f20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14026ca10]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140197f8f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140197f8f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140197f8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140197f84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140197f98
add rax, 0x28
cmp rax, r9
jne 0x140197f70
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140197fb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14026ca10]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140198028
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140198028
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140198028
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140198028
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14019801c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140198030
add rdx, 0x28
cmp rdx, r10
jne 0x140198008
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140198040
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14019804e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140198025
test r8d, r8d
jg 0x140198038
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400023e4
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0xb0
xor r14d, r14d
mov r12, r9
mov r13, r8
mov rbp, rdx
lea r9, [rax - 0x78]
lea r8, [rax - 0x70]
lea rdx, [rax - 0x60]
mov qword [rax - 0x60], r14
mov qword [rax - 0x70], r14
mov dword [rax - 0x78], r14d
call fcn.140001b14
cmp eax, r14d
mov ebx, eax
jl 0x14000244f
cmp dword [rsp + 0x50], r14d
jne 0x14000244f
mov ecx, 0x2711
call fcn.140002fc8
or ecx, 0xffffffff
call qword [sym.imp.msvcrt.dll_exit]
int3
mov rsi, qword [rsp + 0x58]
cmp byte [rsp + 0xf8], r14b
jne 0x140002607
cmp eax, r14d
jl 0x140002607
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
call qword [entry0]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400024fd
mov ebx, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140002647
mov rdx, rbp
mov ecx, 0x2712
call fcn.1400019a8
cmp al, r14b
je 0x1400025f8
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [entry0]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002607
mov r9d, dword [rsp + 0xf0]
mov r8, r12
mov rdx, r13
mov rcx, rdi
call fcn.140002074
cmp eax, r14d
mov ebx, eax
jl 0x1400025f8
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140001f14
cmp eax, r14d
mov ebx, eax
jl 0x1400025f8
mov ebx, dword [rsp + 0x50]
mov ecx, r14d
cmp ebx, 0x186a0
seta cl
add ecx, 0x272a
call fcn.140002fc8
xor eax, eax
mov byte [rsp + 0x40], r14b
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x84], eax
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x98], rax
mov byte [rsp + 0x38], 1
lea rax, [rsp + 0x58]
mov dword [rsp + 0x30], 3
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x80]
lea rcx, [rsp + 0x90]
mov r8d, 5
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x80], r14d
mov dword [rsp + 0x70], r14d
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x90], r14
mov dword [rsp + 0xac], ebx
mov qword [rsp + 0xa0], rsi
call fcn.1400035f0
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x140002607
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
cmp rcx, r14
je 0x140002616
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
cmp rsi, r14
je 0x140002623
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
mov ecx, 0x2713
call fcn.140002fc8
or ecx, 0xffffffff
call qword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x140002e74
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rbp, rcx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov rbx, rax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp rcx, 0x186a0
jbe 0x140002ebf
mov eax, 8
jmp 0x140002fae
test rcx, rcx
je 0x140002fac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileType]
btr eax, 0xf
cmp eax, 2
jne 0x140002f22
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x140002f22
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x140002fac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x140002fac
jmp 0x140002fae
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov r9d, edi
lea ecx, [rdx + 1]
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r12, eax
mov rcx, r12
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002fac
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
xor edx, edx
lea ecx, [rdx + 1]
mov r9d, edi
mov r8, rbp
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140002fa3
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, eax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1400041ac
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rbx + 0x238]
and qword [rbx + 0x28], 0
call qword [sym.imp.msvcrt.dll_free]
mov ebp, dword [rbx + 0x1c]
and qword [rbx + 0x238], 0
mov dword [rsp + 0x70], ebp
cmp ebp, 0x1745d17
ja 0x140004206
mov ecx, ebp
imul ecx, ecx, 0x58
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
jmp 0x140004208
xor edi, edi
mov r13d, dword [rbx + 4]
cmp r13d, 0x1fffffff
ja 0x140004226
mov ecx, r13d
shl ecx, 2
call qword [sym.imp.msvcrt.dll_malloc]
mov r12, rax
jmp 0x140004229
xor r12d, r12d
test rdi, rdi
je 0x140004344
test r12, r12
je 0x140004344
mov r14, rdi
test r13d, r13d
jle 0x1400042bd
mov rbp, qword [rbx + 0x10]
lea eax, [r13 - 1]
movsxd rcx, eax
mov eax, dword [rbx + 4]
sub rbp, r12
mov qword [rsp + 0x78], rax
lea r15, [r12 + rcx*4]
movsxd rsi, dword [r15 + rbp]
mov rcx, r14
movabs rax, 0x2e8ba2e8ba2e8ba3
sub rcx, rdi
imul rsi, rsi, 0x58
add rsi, qword [rbx + 0x20]
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [r15], edx
mov rcx, r14
mov rdx, rsi
mov r8d, 0x58
call sub.msvcrt.dll_memcpy
mov eax, dword [rsi + 4]
add r14, 0x58
add rsi, 0x58
and al, 2
je 0x14000428d
sub r15, 4
sub qword [rsp + 0x78], 1
jne 0x14000425d
mov ebp, dword [rsp + 0x70]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.msvcrt.dll_free]
and qword [rbx + 0x20], 0
mov r14, qword [rbx + 0x10]
test ebp, ebp
je 0x14000431b
lea rsi, [rdi + 0x10]
dec ebp
test byte [rsi - 0xc], 0x10
je 0x140004313
lea rax, [0x140004bb4]
mov r8, r13
mov r9d, 4
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_bsearch]
test rax, rax
je 0x140004338
sub rax, r14
sar rax, 2
mov eax, dword [r12 + rax*4]
mov dword [rsi], eax
add rsi, 0x58
test ebp, ebp
jne 0x1400042d8
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll_free]
and qword [rbx + 0x10], 0
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
mov rax, rdi
jmp 0x140004346
mov ecx, 1
call qword [sym.imp.msvcrt.dll_exit]
int3
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007224
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, r9d
je 0x14000746c
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov ebp, r9d
mov rdi, r8
mov rax, rdx
lea rdx, [rsp + 0x30]
mov r9d, ebp
mov r8, rdi
mov qword [rsp + 0x20], rdx
mov rdx, rax
call fcn.140006d50
mov rsi, rax
test rax, rax
je 0x140007464
mov r9d, dword [rsp + 0x30]
xor r8d, r8d
xor ecx, ecx
lea r10d, [r9 - 1]
mov rbx, rax
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x38], ecx
test r10d, r10d
je 0x14000733a
lea edx, [r8 + 1]
mov edi, 1
mov dword [rsp + 0x34], edx
cmp edx, r9d
jae 0x140007302
lea rbp, [rbx + 0x28]
mov eax, dword [rbx + 8]
sub eax, dword [rbp - 4]
jne 0x1400072e0
mov eax, dword [rbx + 0xc]
sub eax, dword [rbp]
jne 0x1400072e0
mov eax, dword [rbx + 0x10]
sub eax, dword [rbp + 4]
jne 0x1400072e0
lea rdx, [rbp + 8]
lea rcx, [rbx + 0x14]
lea r8d, [rax + 8]
call sub.msvcrt.dll_memcmp
mov edx, dword [rsp + 0x34]
mov r9d, dword [rsp + 0x30]
test eax, eax
jne 0x1400072f5
inc edx
inc edi
add rbp, 0x1c
mov dword [rsp + 0x34], edx
cmp edx, r9d
jb 0x1400072ae
mov ecx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x3c]
lea r10d, [r9 - 1]
cmp edi, ecx
jbe 0x140007311
mov ecx, edi
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ecx
add r8d, edi
mov eax, edi
mov dword [rsp + 0x3c], r8d
imul rax, rax, 0x1c
add rbx, rax
cmp r8d, r10d
jb 0x140007298
mov rdi, qword [rsp + 0x90]
mov ebp, dword [rsp + 0x98]
xor ebx, ebx
cmp ecx, dword [rsp + 0xa0]
cmovae ebx, ecx
test ebx, ebx
je 0x140007456
mov rcx, qword [rsp + 0x40]
movabs rax, 0x4924924924924925
xor r11d, r11d
sub rcx, rsi
xor r8d, r8d
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test ebx, ebx
je 0x1400073bc
movsxd rax, edx
mov r11d, ebx
mov r10d, ebx
imul rax, rax, 0x1c
lea r9, [rax + rsi + 4]
mov eax, dword [r9]
mov rdx, r8
cmp dword [rdi + r8*4], eax
je 0x1400073a1
inc rdx
cmp dword [rdi + rdx*4], eax
jne 0x140007399
mov eax, dword [rdi + r8*4]
mov ecx, dword [rdi + rdx*4]
add r9, 0x1c
mov dword [rdi + rdx*4], eax
mov dword [rdi + r8*4], ecx
inc r8
sub r10, 1
jne 0x14000738d
lea r9, [0x140004bb4]
mov edx, r11d
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_qsort]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
mov r9d, ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
call fcn.140006fdc
mov eax, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
mov r9d, ebx
mov r8, rdi
mov dword [rsp + 0x20], eax
call fcn.140007224
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
lea rdi, [rdi + rbx*4]
xor esi, esi
sub ebp, ebx
mov qword [rsp + 0x90], rdi
mov dword [rsp + 0x98], ebp
jne 0x140007251
test rsi, rsi
je 0x140007464
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007e60
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140009110]
jne 0x140007e7b
rol rcx, 0x10
test cx, 0xffff
jne 0x140007e77
ret 0
ror rcx, 0x10
jmp 0x14000818c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140009470]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140009568]
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 0x140008211
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, [0x140009470]
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 0x140008233
mov rax, qword [rsp + 0x88]
mov qword [0x140009568], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140009508], rax
mov rax, qword [0x140009568]
mov qword [0x1400093e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400094f0], rax
mov dword [0x1400093d0], 0xc0000409
mov dword [0x1400093d4], 1
mov rax, qword [0x140009110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140009118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400012a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x140008028
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x140008075
cmp rcx, 0xffffffffffffffff
je 0x140008075
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000806d
cmp dword [rcx + 0x3c], edx
jl 0x14000806d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000806d
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 0x140008075
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14075b920
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14075b92a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14075b953
pop rbp
sub rbp, 0x33
sub rbp, 0x75b920
sub rsp, 0x20
jmp 0x14075b972
mov rax, 0x75b920
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0x3dd26593
xor byte [rax], dl
inc rax
dec rcx
jne 0x14075b991
jmp 0x14075b9a8
fistp dword [rdx]
jp 0x14075b9c4
sbb ch, byte [rdi - 0x246c6c6d]
adc dl, byte [rdx - 0x65]
xchg edx, eax
xchg ebx, eax
xchg ebx, eax
fist dword [rdx + 0x5354db7a]
xchg esp, eax
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
fist dword [rcx + rdx*2 - 0x45]
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
invalid
push rcx
mov ebx, 0xdb939393
jno 0x14075b9a8
xchg edx, eax
push rdx
sbb byte [rdx], dl
lahf
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
fist dword [rdx - 0x243c3c85]
sub edx, edi
fiadd word [rbp - 0x6c6c6c6d]
xchg ebx, eax
fld xword [rdx]
clc
int3
Function at 0x1400024ce
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.140012730
mov r15, qword [rsp + 0x28]
cmp r15, 1
jne 0x14000250a
push qword [0x1400204ac]
pop rcx
call fcn.140007164
and rax, rax
je 0x14000250a
push qword [0x1400204ac]
pop rcx
call fcn.140007200
call fcn.140004cda
push qword [0x140020544]
pop rcx
call fcn.14000dcec
push qword [0x140020584]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
push qword [0x140020554]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
mov rax, qword [rsp + 0x40]
mov qword [0x1400204a4], rax
jmp 0x140001250
Function at 0x1400037e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012730
push qword [rsp + 0x48]
push qword [rsp + 0x48]
pop rcx
pop rdx
call sub.KERNEL32.dll_LoadResource
mov qword [rsp + 0x28], rax
push qword [rsp + 0x48]
push qword [rsp + 0x48]
pop rcx
pop rdx
call sub.KERNEL32.dll_SizeofResource
mov qword [0x1400204bc], rax
push qword [0x1400204bc]
pop rcx
call fcn.14000cd10
mov qword [rsp + 0x30], rax
push qword [0x1400204bc]
push qword [rsp + 0x38]
push qword [rsp + 0x38]
pop rcx
pop rdx
pop r8
call fcn.14000ce40
push qword [rsp + 0x28]
pop rcx
call sub.KERNEL32.dll_FreeResource
mov rax, qword [rsp + 0x30]
jmp 0x140003862
add rsp, 0x38
ret

Function at 0x140004c13
Capabilities:
Get common file path

Disassembly:
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012730
mov rcx, qword [rsp + 0x60]
call fcn.14000612c
push rcx
sub rsp, 0x28
call fcn.140012510
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012510
add rsp, 0x28
pop rcx
push rax
push 0x800
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140008160
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.140012560
push 0x800
push qword [rsp + 0x30]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
push qword [rsp + 0x28]
pop rcx
call sub.SHLWAPI.DLL_PathAddBackslashW
mov rcx, qword [rsp + 0x28]
push rcx
sub rsp, 0x28
call fcn.140012510
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400127a0
add rsp, 0x28
pop rax
push rax
call fcn.1400128f0
pop rdx
add rax, rdx
jmp 0x140004cc1
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400126b0
add rsp, 0x28
pop rax
add rsp, 0x38
ret

Function at 0x140004cda
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012730
mov r15, qword [0x1400204d4]
cmp r15, 1
jne 0x140004da9
push qword [0x1400205c4]
pop rcx
call fcn.14000d8dc
mov r15, rax
and r15, r15
jle 0x140004d3f
mov rcx, qword [0x1400205c4]
call fcn.14000d8e4
mov rcx, qword [0x1400205c4]
call fcn.14000d8f8
or rax, rax
je 0x140004d3f
mov rbp, qword [0x1400205cc]
push qword [rbp + 0x10]
pop rcx
call fcn.14000dcec
jmp 0x140004d1c
push qword [0x1400205b4]
pop rcx
call fcn.14000d8dc
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004da9
push 5
push 0
push 1
push qword [0x1400205b4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140008c40
mov rcx, qword [0x1400205b4]
call fcn.14000d8e4
mov rcx, qword [0x1400205b4]
call fcn.14000d8f8
or rax, rax
je 0x140004da9
mov rbp, qword [0x1400205bc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004d86
mov rax, 1
jmp 0x140004db5
add rsp, 0x38
pop r15
pop rbp
ret