joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049830
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14006b100]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x14006b930], 0
movsx edi, dx
movsx ebx, cx
ja 0x140049863
mov eax, 0xffffdcd8
jmp 0x14004996c
inc dword [0x14006b948]
mov dword [0x14006b94c], 0xaede7345
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movups xmm1, xmmword [0x14006c180]
mov rcx, qword [0x14006b930]
lea rdx, [0x14006b940]
mov dword [0x14006c174], ebx
xor r9d, r9d
mov dword [0x14006c178], edi
movups xmm0, xmmword [0x14006c170]
mov dword [0x14006b944], eax
lea rax, [0x14006c160]
movaps xmmword [0x14006b960], xmm1
lea r8d, [r9 + 0x48]
movsd xmm1, qword [0x14006c1a0]
movaps xmmword [0x14006b950], xmm0
movups xmm0, xmmword [0x14006c190]
mov dword [rsp + 0x28], socket
movsd qword [0x14006b980], xmm1
movaps xmmword [0x14006b970], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x14006b930]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x14006bd50]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], socket
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov qword [0x14006c174], rbx
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140049941
mov eax, 0xffffdcdb
jmp 0x14004996c
mov eax, dword [0x14006b94c]
cmp dword [0x14006bd5c], eax
je 0x140049956
mov ebx, 0xffffdcdc
jmp 0x14004996a
mov ecx, dword [0x14006b948]
mov eax, 0xffffdcdd
cmp dword [0x14006bd58], ecx
cmovne ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140049ba0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14006b100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140049bc8
mov rax, qword [rcx]
call qword [rax + 0x18]
mov qword [rsp + 0x30], 0
lea rcx, [rbx + 0x18]
mov dword [rsp + 0x28], 0x40000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140049c56
lea rax, [rsp + 0x40]
mov byte [rbx + 0xb4], 1
mov qword [rsp + 0x28], rax
lea r8, [0x14004f670]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov rax, qword [rbx + 0xa0]
test rax, rax
jne 0x140049c6b
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0xffffffffffffffff
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret
Function at 0x140049c80
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140049d19
mov byte [rcx + 0xb4], 0
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140049cdc
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xd8]
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ResetEvent]
add rsp, 0x20
pop rbx
ret

Function at 0x14004a5e0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, vtable._thread_com.0
mov rbx, rcx
mov qword [rcx], rax
mov rax, qword [rcx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x14004a67d
mov byte [rcx + 0xb4], 0
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14004a646
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xd8]
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x14004a690
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14004a560
Function at 0x14004b990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14006b100]
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 0x14004b9cf
mov rcx, qword [rbx]
cmp rsi, 3
jne 0x14004ba1b
mov r8, rsi
lea rdx, [0x14005e010]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004ba1b
lea ecx, [rsi - 2]
call fcn.1400496b0
movd xmm0, dword [rdi + 0x28]
movss xmm1, dword [0x140059820]
cvtdq2ps xmm0, xmm0
call fcn.14004bbf0
cvttss2si ecx, xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.1400496b0
jmp 0x14004bb00
cmp qword [rbx + 0x18], 0xf
jbe 0x14004ba25
mov rbx, qword [rbx]
cmp rsi, 4
jne 0x14004bb00
mov r8, rsi
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004bb00
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.140049f50
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004ba80
mov rax, qword [rdi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x14004bb00
mov rcx, qword [rdi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x14004bac8
cmp dword [rsp + 0x30], 0
jbe 0x14004bac8
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 0x14004bb00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140052fe0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14004bbf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13e8
call fcn.1400536b0
sub rsp, rax
movaps xmmword [rsp + 0x13d0], xmm6
movaps xmmword [rsp + 0x13c0], xmm7
mov rax, qword [0x14006b100]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
comiss xmm0, xmm1
movaps xmm6, xmm1
movaps xmm7, xmm0
jbe 0x14004bc30
movaps xmm6, xmm0
movaps xmm7, xmm1
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rsp + 0x24], eax
mov edx, 1
mov r9d, 0x270
mov dword [rsp + 0x13a4], 0xffffffff
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, r9
jb 0x14004bc50
mov dword [rsp + 0x20], r9d
lea r8, [rsp + 0x28]
xorps xmm1, xmm1
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14004bc80
mov eax, dword [rsp + 0x20]
subss xmm6, xmm7
xorps xmm0, xmm0
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2ss xmm0, rax
subss xmm0, xmm1
addss xmm0, xmm1
mulss xmm0, dword [0x14005e504]
addss xmm0, xmm1
mulss xmm0, xmm6
addss xmm0, xmm7
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.140052fe0
movaps xmm6, xmmword [rsp + 0x13d0]
movaps xmm7, xmmword [rsp + 0x13c0]
add rsp, 0x13e8
ret
Function at 0x14004f1e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x14006b100]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, qword [rcx + 0x40]
mov rdi, rcx
lea rcx, [0x14006b850]
mov rdx, qword [rbx]
call fcn.1400079b0
test al, al
je 0x14004f3d4
cmp byte [rbx + 8], 0
jne 0x14004f3d4
cmp byte [rbx + 0xa], 0
jne 0x14004f3d4
mov qword [rsp + 0x470], rsi
mov rsi, qword [rdi + 0x40]
cmp byte [rsi + 0x49], 0
jne 0x14004f3cc
cmp byte [rsi + 0x48], 0
jne 0x14004f3cc
cmp dword [rsi + 0x4c], 1
jne 0x14004f3cc
lea rbx, [rdi + 0x80]
mov qword [rsp + 0x468], rbp
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
mov rbp, qword [rbx + 0x10]
jbe 0x14004f27b
mov rcx, qword [rbx]
cmp rbp, 3
jne 0x14004f2e7
mov r8, rbp
lea rdx, [0x14005e010]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004f2e7
cmp byte [rsi + 9], al
je 0x14004f2a8
lea ecx, [rbp - 2]
call fcn.140049580
xor ecx, ecx
call fcn.1400496b0
mov ecx, socket
call fcn.1400490c0
movd xmm0, dword [rdi + 0x28]
movss xmm1, dword [0x140059820]
cvtdq2ps xmm0, xmm0
call fcn.14004bbf0
cvttss2si ecx, xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, socket
call fcn.140049340
xor ecx, ecx
call fcn.140049580
jmp 0x14004f3c4
cmp qword [rbx + 0x18], 0xf
jbe 0x14004f2f1
mov rbx, qword [rbx]
cmp rbp, 4
jne 0x14004f3c4
mov r8, rbp
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004f3c4
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.140049f50
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004f344
mov rax, qword [rdi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x14004f3c4
mov rcx, qword [rdi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x14004f38c
cmp dword [rsp + 0x30], 0
jbe 0x14004f38c
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 0x14004f3c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x468]
mov rsi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140052fe0
mov rbx, qword [rsp + 0x478]
add rsp, 0x450
pop rdi
ret
Function at 0x14005264c
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 0x140052686
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14005268b
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 0x1400526d4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14005e940]
cmp byte [rcx + rax], 0
je 0x1400526d4
dec r8
sub rdx, 1
jne 0x1400526ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140052d44
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.14005276c
mov ebx, eax
test eax, eax
jne 0x140052d74
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140052dd7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140052dce
test al, 0x10
je 0x140052dce
bt eax, 0xa
jae 0x140052dc7
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140052de8
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140052dc3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140052dc3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140052dce
and dword [rsp + 0x3c], 0
jmp 0x140052dd3
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 0x140053ca4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140053cee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140053cee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140053cee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140053cee
cmp dword [rcx + 0x84], 0xe
jbe 0x140053cee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140053cf0
xor al, al
add rsp, 0x28
ret
Function at 0x1400158cf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140037310
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14005f497]
call fcn.140016207
mov rcx, qword [rbp + 0x100]
call fcn.1400155e6
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x140037363
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
jne 0x140037363
mov dword [rbp + 0xd4], 1
jmp 0x14003736d
mov dword [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400159c4
Capabilities:
Terminate process

Disassembly:
jmp 0x14003b8b0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret

Function at 0x140015c3a
Capabilities:
Parse pe header

Disassembly:
jmp 0x14003c590
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003c5b0
xor al, al
jmp 0x14003c631
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14003c5c3
xor al, al
jmp 0x14003c631
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14003c5ed
xor al, al
jmp 0x14003c631
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14003c601
xor al, al
jmp 0x14003c631
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14003c613
xor al, al
jmp 0x14003c631
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14003c62f
xor al, al
jmp 0x14003c631
mov al, 1
add rsp, 0x38
ret

Function at 0x140015cd5
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x140031830
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14005f232]
call fcn.140016207
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140015537]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140053e60], rax
cmp qword [0x140053e60], 0
jne 0x1400318a0
lea rax, str.Failed_to_install_hook_
mov qword [rbp + 8], rax
lea rax, str.Error
mov qword [rbp + 0x28], rax
mov r9d, 0x10
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400161b7
Capabilities:
Write file on windows

Disassembly:
jmp 0x140024560
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140053040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14005f0ec]
call fcn.140016207
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x1400245c6
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400245cd
mov al, 1
jmp 0x14002471d
call fcn.1400154ce
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.1400154ce
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140015e01
movzx eax, al
test eax, eax
je 0x14002461e
xor al, al
jmp 0x14002471d
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140024683
cmp dword [rbp + 0x154], 1
je 0x14002468e
cmp dword [rbp + 0x154], 3
je 0x14002470c
jmp 0x14002471b
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1400246de
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1400246de
xor al, al
jmp 0x14002471d
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400246f9
mov dword [rbp + 0x154], 1
jmp 0x140024703
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14002471d
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14002471d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140046170]
call fcn.140015ec9
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001585c
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140033840
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140053040]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x14005f361]
call fcn.140016207
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140033f00
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.140033ae0
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.1400333d0
nop
lea rcx, [rbp + 0x108]
call fcn.140033be0
lea rax, [0x140033730]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.140034080
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x140033940
lea rcx, [rbp + 8]
call fcn.140034180
jmp 0x140033959
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400153ed
nop
lea rcx, [rbp + 8]
call fcn.140033be0
lea rcx, [rbp - 0x30]
lea rdx, [0x140049b00]
call fcn.140015ec9
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.14001585c
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x140011249
Capabilities:
Terminate process

Disassembly:
jmp 0x140013820
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret

Function at 0x1400112df
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014b70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014b90
xor al, al
jmp 0x140014c11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014ba3
xor al, al
jmp 0x140014c11
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014bcd
xor al, al
jmp 0x140014c11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014be1
xor al, al
jmp 0x140014c11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014bf3
xor al, al
jmp 0x140014c11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014c0f
xor al, al
jmp 0x140014c11
mov al, 1
add rsp, 0x38
ret
Function at 0x14001d1d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14001d1f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14001d26c
mov rdi, r14
mov rcx, rbx
call fcn.140022830
test rax, rax
jle 0x14001d244
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140048a80
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001d25c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14001d264
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14001d206
sub r14, rdi
jmp 0x14001d34f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14001d283
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001d285
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001d2b7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140048a80
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001d34c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001d2f2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14001d32d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14005e8c8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14001d34c
cmp rbp, rax
ja 0x14001d300
test rbp, rbp
je 0x14001d34c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14005e8c8
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret