joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400444a0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rbx, [rcx + 0x80]
mov rdi, rcx
cmp qword [rbx + 0x18], 0xf
mov r15d, r8d
mov rsi, qword [rbx + 0x10]
mov r14d, edx
mov rcx, rbx
jbe 0x1400444e2
mov rcx, qword [rbx]
cmp rsi, 3
jne 0x1400445f1
mov r8, rsi
lea rdx, [0x140055eb0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400445f1
cmp qword [0x140061ef8], 0
jbe 0x1400446d2
inc dword [0x140061f08]
mov dword [0x140061f0c], 0xaede7345
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movups xmm1, xmmword [0x140061ed0]
mov rcx, qword [0x140061ef8]
lea r8d, [rsi + 0x45]
mov dword [0x140061f04], eax
lea rdx, [0x140061f00]
movsx eax, r14w
xor r9d, r9d
mov dword [0x140061ec4], eax
movsx eax, r15w
mov dword [0x140061ec8], eax
lea rax, [0x140062740]
movups xmm0, xmmword [0x140061ec0]
mov dword [rsp + 0x28], sendto
movaps xmmword [0x140061f20], xmm1
movsd xmm1, qword [0x140061ef0]
movaps xmmword [0x140061f10], xmm0
movups xmm0, xmmword [0x140061ee0]
mov qword [rsp + 0x20], rax
movsd qword [0x140061f40], xmm1
movaps xmmword [0x140061f30], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140061ef8]
lea rdx, [0x140062320]
xor eax, eax
mov dword [rsp + 0x30], sendto
mov qword [0x140061ec4], rax
xor r9d, r9d
lea rax, [rsp + 0x30]
mov r8d, 0x400
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x1400446d2
cmp qword [rbx + 0x18], 0xf
jbe 0x1400445fb
mov rbx, qword [rbx]
cmp rsi, 4
jne 0x1400446d2
mov r8, rsi
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400446d2
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
mov r9d, r15d
lea rdx, str.km.move__d___d__10__r_n
mov r8d, r14d
lea rcx, [rsp + 0x50]
call fcn.140049220
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140044654
mov rax, qword [rdi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x1400446d2
mov rcx, qword [rdi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x14004469c
cmp dword [rsp + 0x30], 0
jbe 0x14004469c
mov rcx, qword [rdi + 0xf8]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov rcx, qword [rdi + 0xf8]
lea r9, [rsp + 0x34]
xor eax, eax
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x34], eax
mov r8d, ebx
lea rax, [rdi + 0x168]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400446d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14004b1a0
add rsp, 0x460
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140044700
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rbx, [rcx + 0x80]
mov rdi, rcx
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
mov rsi, qword [rbx + 0x10]
jbe 0x14004473f
mov rcx, qword [rbx]
cmp rsi, 3
jne 0x14004478b
mov r8, rsi
lea rdx, [0x140055eb0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004478b
lea ecx, [rsi - 2]
call fcn.1400417c0
movd xmm0, dword [rdi + 0x28]
movss xmm1, dword [0x140056750]
cvtdq2ps xmm0, xmm0
call fcn.140043cc0
cvttss2si ecx, xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.1400417c0
jmp 0x140044870
cmp qword [rbx + 0x18], 0xf
jbe 0x140044795
mov rbx, qword [rbx]
cmp rsi, 4
jne 0x140044870
mov r8, rsi
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140044870
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
lea rdx, str.km.click_0__r_n
lea rcx, [rsp + 0x40]
call fcn.140049220
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400447f0
mov rax, qword [rdi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x140044870
mov rcx, qword [rdi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x140044838
cmp dword [rsp + 0x30], 0
jbe 0x140044838
mov rcx, qword [rdi + 0xf8]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov rcx, qword [rdi + 0xf8]
lea rax, [rdi + 0x168]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r8d, ebx
mov dword [rsp + 0x34], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140044870
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14004b1a0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400448a0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
sub rsp, 0x450
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, qword [0x1400627c8]
movabs rcx, 0x7ffffffdfffd
mov rbx, qword [rsi + 0x40]
mov rax, qword [rbx]
add rax, 0xfffffffffffeffff
cmp rax, rcx
ja 0x140044a93
cmp byte [rbx + 8], 0
jne 0x140044a93
cmp byte [rbx + 0xa], 0
jne 0x140044a93
cmp byte [rbx + 0x49], 0
jne 0x140044a93
cmp byte [rbx + 0x48], 0
jne 0x140044a93
cmp dword [rbx + 0x4c], 1
jne 0x140044a93
mov qword [r11 + 8], rbp
mov qword [r11 + 0x10], rdi
lea rdi, [rsi + 0x80]
cmp qword [rdi + 0x18], 0xf
mov rcx, rdi
mov rbp, qword [rdi + 0x10]
jbe 0x14004493a
mov rcx, qword [rdi]
cmp rbp, 3
jne 0x1400449a6
mov r8, rbp
lea rdx, [0x140055eb0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400449a6
cmp byte [rbx + 9], al
je 0x140044967
lea ecx, [rbp - 2]
call fcn.140041e10
xor ecx, ecx
call fcn.1400417c0
mov ecx, socket
call fcn.140041940
movd xmm0, dword [rsi + 0x28]
movss xmm1, dword [0x140056750]
cvtdq2ps xmm0, xmm0
call fcn.140043cc0
cvttss2si ecx, xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, socket
call fcn.140041bc0
xor ecx, ecx
call fcn.140041e10
jmp 0x140044a83
cmp qword [rdi + 0x18], 0xf
jbe 0x1400449b0
mov rdi, qword [rdi]
cmp rbp, 4
jne 0x140044a83
mov r8, rbp
lea rdx, str.BPro
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140044a83
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
lea rdx, str.km.press_r__r_n
lea rcx, [rsp + 0x40]
call fcn.140049220
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140044a03
mov rax, qword [rsi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x140044a83
mov rcx, qword [rsi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x140044a4b
cmp dword [rsp + 0x30], 0
jbe 0x140044a4b
mov rcx, qword [rsi + 0xf8]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov rcx, qword [rsi + 0xf8]
lea rax, [rsi + 0x168]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r8d, ebx
mov dword [rsp + 0x34], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140044a83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x460]
mov rdi, qword [rsp + 0x468]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14004b1a0
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rsi
ret
Function at 0x14004a8e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14004a922
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14004a927
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14004a970
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004eba0]
cmp byte [rcx + rax], 0
je 0x14004a970
dec r8
sub rdx, 1
jne 0x14004a956
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14004af60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14004a988
mov ebx, eax
test eax, eax
jne 0x14004af90
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14004aff3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004afea
test al, 0x10
je 0x14004afea
bt eax, 0xa
jae 0x14004afe3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14004b004
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14004afdf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14004afdf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14004afea
and dword [rsp + 0x3c], 0
jmp 0x14004afef
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004bdf8
Capabilities:
Parse pe header

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

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

Disassembly:
sub rsp, 0x28
cmp edx, 1
jne 0x180002479
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x18003bbf8], rax
test rax, rax
je 0x18000244c
call fcn.180001f10
mov eax, 1
add rsp, 0x28
ret
mov r9d, 0x10
lea r8, [0x18002d4d3]
lea rdx, str.Falied_to_retrieve_the_main_module__game_will_exit.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
add rsp, 0x28
ret
Function at 0x1800045c0
Capabilities:
Parse pe header

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x18003b038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
jne 0x1800045f3
lea ecx, [rdx + 0x57]
jmp 0x18000469b
xorps xmm0, xmm0
lea r8, [rsp + 0x30]
mov r9d, 0x30
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x1800046a1
mov r9d, 0x40
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800046a1
mov eax, 0x5a4d
cmp word [rsp + 0x60], ax
jne 0x180004696
movsxd rdx, dword [rsp + 0x9c]
mov eax, edx
cmp rax, qword [rsp + 0x48]
ja 0x180004696
cmp edx, 0x40
jb 0x180004696
add rdx, rbx
mov qword [rsp + 0x20], 0
mov r9d, 0xf8
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800046a1
cmp dword [rdi], 0x4550
jne 0x180004696
mov eax, 1
jmp 0x1800046a3
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180012ad0
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret

Function at 0x180005b60
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x18003bc48], 0
jne 0x180005c07
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18003bc48], ecx
jne 0x180005c07
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x18003bc30]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x18003bc60], rdi
mov qword [0x18003bc58], rdi
mov qword [0x18003bc50], rdi
test rbx, rbx
je 0x180005bf0
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180005be8
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180005bc0
jmp 0x180005bf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18003bc4c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180006390
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18003bc4c]
mov rdi, rcx
test eax, eax
jne 0x180006433
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x1800063ba
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.1800125f8
mov rbx, rax
test rax, rax
jne 0x1800063d6
lea edi, [rax + 8]
jmp 0x1800063f9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180006417
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180012634
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18003bc4c], edi
mov qword [0x18003bc50], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x18003bc58]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x18003bc58], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180006d70
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x180006d9e
xor al, al
jmp 0x180006de0
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x180006daf
xor al, al
jmp 0x180006de0
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180006dd6
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180006dd6
mov al, 1
jmp 0x180006de0
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret

Function at 0x180006f00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180006f22
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180006fdd
nop dword [rax + rax]
cmp rbx, qword [0x18003b008]
jb 0x180006f4e
cmp rbx, qword [0x18003b010]
ja 0x180006f4e
add rbx, 0x8000000
jmp 0x180006fd4
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180006fdd
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180006fb9
cmp rcx, 0x10000
jb 0x180006fb9
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180006fdf
add rbx, 0x10000
jmp 0x180006fd4
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180006fd4
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180006f30
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180006ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x1800070cb
nop dword [rax]
cmp rbx, qword [0x18003b008]
jb 0x18000703e
cmp rbx, qword [0x18003b010]
ja 0x18000703e
sub rbx, 0x8000000
jmp 0x1800070c2
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800070cb
cmp dword [rsp + 0x40], 0x10000
jne 0x1800070a6
cmp qword [rsp + 0x38], 0x10000
jb 0x1800070a6
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1800070cd
sub rbx, 0x10000
jmp 0x1800070c2
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180007020
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800071c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x1800071de
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x1800071fa
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180007211
cmp byte [rcx + 1], 0x25
jne 0x180007255
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x18000721d
cmp al, 0xe9
jne 0x180007255
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, r9
cmp rcx, r9
jae 0x180007240
cmp rcx, 0xffffffff80000000
jae 0x180007237
lea rdi, [rcx + 0x7ff80000]
jmp 0x180007255
mov rdi, 0xfffffffffff80000
jmp 0x180007255
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180007255
mov ebx, 0x80000
mov rax, qword [0x18003bc38]
mov rcx, qword [0x18003bc30]
test rax, rax
jne 0x180007277
test rcx, rcx
je 0x18000728e
mov rax, rcx
mov qword [0x18003bc38], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x18000728e
cmp rdx, rbx
jb 0x18000728e
cmp rdx, rdi
jbe 0x180007348
mov qword [0x18003bc38], rcx
mov rax, rcx
test rcx, rcx
je 0x1800072d2
mov rdx, rcx
test rcx, rcx
je 0x1800072bc
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x1800072bc
cmp rcx, rbx
jb 0x1800072bc
cmp rcx, rdi
jbe 0x180007348
mov rax, qword [rax + 8]
mov qword [0x18003bc38], rax
mov rdx, rax
mov rcx, rax
test rax, rax
jne 0x1800072a0
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.1800070e0
test rax, rax
je 0x18000738b
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x18003bc38], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x18003bc30]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x18003bc30], rax
nop word [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x180007330
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x18000738b
cmp rdx, rdi
ja 0x18000738b
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x18002d800]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x180009630
Capabilities:
Decompress data using quicklz

Disassembly:
lea eax, [r8 + 0x100000]
cmp eax, 0x1fffff
ja 0x180009691
mov eax, r8d
mov ecx, r8d
shl ecx, 4
shr eax, 1
xor eax, edx
and eax, 0x7ff
xor eax, edx
mov edx, r8d
xor ecx, eax
shl edx, 6
and ecx, 0x3f0000
xor ecx, eax
xor edx, ecx
and edx, 0x4000000
xor edx, ecx
mov ecx, r8d
shr ecx, 5
xor ecx, edx
shr r8d, 8
and ecx, 0x2000
xor ecx, edx
xor r8d, ecx
and r8d, 0x800
xor r8d, ecx
mov eax, r8d
ret
xor eax, eax
ret
Function at 0x180010700
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov edi, dword [rcx + 0x20]
mov rsi, rcx
mov eax, dword [rcx + 0xa4]
mov rbp, rdx
mov edx, dword [rcx + 0xa0]
dec eax
lea r8d, [rdi + rax]
not eax
and r8d, eax
mov dword [rcx + 0x20], r8d
lea ecx, [rdx - 1]
add ecx, dword [rsi + 0x24]
neg edx
and ecx, edx
mov dword [rsi + 0x24], ecx
cmp rbp, 0xffffffffffffffff
je 0x180010811
cmp r8d, edi
jbe 0x180010811
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18001076c
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x58], rbx
mov edx, 0x1000
mov ebx, dword [rsi + 0x20]
mov rcx, rsi
sub ebx, edi
call fcn.180010830
test eax, eax
jne 0x180010798
mov rbx, qword [rsp + 0x58]
xor edi, edi
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsi + 0x418]
xor edx, edx
mov r8d, 0x1000
mov qword [rsp + 0x60], r14
call fcn.1800140e0
test ebx, ebx
je 0x1800107f8
xor edi, edi
mov r14d, 8
nop dword [rax]
mov rdx, qword [rsi + 0x418]
lea r9, [rsp + 0x50]
mov r8d, ebx
mov dword [rsp + 0x50], edi
cmp ebx, r14d
mov qword [rsp + 0x20], rdi
mov rcx, rbp
cmova r8d, r14d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800107fd
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1800107f8
sub ebx, eax
jne 0x1800107c0
mov edi, 1
mov r14, qword [rsp + 0x60]
mov eax, edi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x180011530
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180011570
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180011602
cmp dword [rsp + 0x40], 0x1000
jne 0x1800115e6
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x1800115e6
bt eax, 8
jb 0x1800115e6
mov rbx, qword [rsp + 0x28]
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x1800115a6
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180011602
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
je 0x1800115c2
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180011602
cmp word [rax + rbx + 0x14], 0
jne 0x1800115d9
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180011602
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x180011602
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180011602
add rsp, 0x50
pop rbx
ret
Function at 0x180011610
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rbx, [rcx + 0x10000]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov edi, 0x5a4d
nop dword [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180011664
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
cmp dword [rsp + 0x40], 0x1000
jne 0x1800116a7
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x1800116a7
bt eax, 8
jb 0x1800116a7
cmp word [rbx], di
jne 0x1800116a0
mov eax, dword [rbx + 0x3c]
cmp rax, qword [rsp + 0x38]
ja 0x1800116a0
cmp eax, 0x40
jb 0x1800116a0
cdqe
cmp dword [rax + rbx], 0x4550
jne 0x1800116a7
mov rax, rbx
jmp 0x180011659
jmp 0x1800116a7
mov rbx, qword [rsp + 0x38]
add rbx, qword [rsp + 0x20]
jmp 0x180011640

Function at 0x1800117f0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rcx
test rcx, rcx
jne 0x180011805
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x18001181e
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18001186c
movsxd rbx, dword [rax + 0x3c]
add rbx, rax
cmp dword [rbx], 0x4550
je 0x18001183c
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18001186c
cmp word [rbx + 0x14], 0
jne 0x180011852
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18001186c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rbx + 0x50]
jmp 0x18001186c
add rsp, 0x20
pop rbx
ret