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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14023c080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400c56c5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400c5726
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14009ff30
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400d8d20
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400c57e1
sub ecx, 1
je 0x1400c5854
sub ecx, 1
je 0x1400c5790
cmp ecx, 1
je 0x1400c5773
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400edc0c]
call fcn.14009ff30
jmp 0x1400c5854
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400c5360
test eax, eax
je 0x1400c5854
jmp 0x1400c56fa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400c5854
sub rax, rsi
cmp rax, rbp
jae 0x1400c5854
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400a00b0
jmp 0x1400c5854
cmp r8d, 4
jle 0x1400c5854
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400c5854
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14009fe50
mov esi, eax
test eax, eax
je 0x1400c5833
mov edx, 5
mov rcx, rbx
call fcn.1400c6320
mov eax, esi
jmp 0x1400c56fa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400ae750
mov rcx, r14
call fcn.1400aea30
test eax, eax
je 0x1400c56f8
mov edx, 5
mov rcx, rbx
call fcn.1400c6320
mov eax, Ordinal_45
jmp 0x1400c56fa
Function at 0x1400d85f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400d8632
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400d8679
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400d86d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400d8690
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400d8713
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400ed4d2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400ed4d3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400d86e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400d8730
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400d87b4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400d87b4
dec r8
sub rdx, 1
jne 0x1400d879a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400d9c8c
Capabilities:
Parse pe header

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

Disassembly:
cmp rcx, qword [0x140083160]
jne 0x140006d8a
rol rcx, 0x10
test cx, 0xffff
jne 0x140006d86
repz ret
ror rcx, 0x10
jmp 0x140012a00
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140084c90]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140084d88]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140012a85
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140084c90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140012aa7
mov rax, qword [rsp + 0x88]
mov qword [0x140084d88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140084d28], rax
mov rax, qword [0x140084d88]
mov qword [0x140084c00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140084d10], rax
mov dword [0x140084bf0], 0xc0000409
mov dword [0x140084bf4], 1
mov rax, qword [0x140083160]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140083168]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140084c88], eax
mov ecx, 1
call fcn.140014850
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140070ef0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140084c88], 0
jne 0x140012b2e
mov ecx, 1
call fcn.140014850
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001030
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov ecx, ecx
lea rdx, [rsp + 0x50]
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000105c
xor eax, eax
jmp 0x1400010e3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
test rax, rax
je 0x1400010cf
mov rax, qword [rax + 0x18]
test rax, rax
je 0x1400010cf
cmp byte [rax + 4], bl
je 0x1400010cf
mov rdx, rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsi + 0x18]
add rax, 0x10
mov rdi, qword [rax]
jmp 0x1400010c4
lea rcx, [rdi + 0x58]
mov r8b, 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x1400010cb
mov rax, qword [rsi + 0x18]
mov rdi, qword [rdi]
add rax, 0x10
cmp rdi, rax
jne 0x1400010a3
jmp 0x1400010cf
mov rbx, qword [rdi + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x11d6010
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x11d601d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x11d602d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x11d6015
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x11d6045
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x11d6032
sub eax, 3
jb 0x11d605f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x11d6096
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x11d6086
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x11d6084
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x11d6073
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.011d5fd2
jmp 0x11d601d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x4f4e00
mov dl, 0x4f
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x11d60e2
cmp rsi, rcx
jae 0x11d60ea
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x11d60c9
cmp al, 0x8f
ja 0x11d60c9
cmp byte [rsi - 2], 0xf
je 0x11d60cf
sub al, 0xe8
cmp al, 1
ja 0x11d60b3
cmp rsi, rcx
jae 0x11d60ea
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x11d60b9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x11d60ea
lodsb al, byte [rsi]
jmp 0x11d60c9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xdb4000]
mov eax, dword [rdi]
or eax, eax
je 0x11d6147
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xde43a4]
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 0x11d60f7
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 0x11d6141
mov qword [rbx], rax
add rbx, 8
jmp 0x11d6117
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 0x11d6181
cmp al, 0xef
ja 0x11d6173
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x11d6153
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x11d6162
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 + 0x22f]
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 0x11d61d5
sub rsp, 0xffffffffffffff80
jmp 0x8e3b80
Function at 0x180062ab0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r8d, ecx
mov r9d, ecx
xor ecx, ecx
and r8d, 0xe0000000
cmp r8d, 0xe0000000
mov eax, 0x40
cmovne eax, ecx
mov edx, eax
bts edx, 7
cmp r8d, 0xa0000000
cmovne edx, eax
mov eax, edx
or eax, 0x20
cmp r8d, 0x60000000
cmovne eax, edx
mov ecx, eax
or ecx, 0x10
cmp r8d, 0x20000000
cmovne ecx, eax
mov eax, ecx
or eax, 4
cmp r8d, 0xc0000000
cmovne eax, ecx
mov ecx, eax
or ecx, 8
cmp r8d, 0x80000000
cmovne ecx, eax
mov eax, ecx
or eax, 2
cmp r8d, 0x40000000
cmovne eax, ecx
mov ecx, eax
or ecx, 1
test r8d, r8d
cmovne ecx, eax
mov eax, ecx
bts eax, 9
bt r9d, 0x1a
cmovae eax, ecx
ret

Function at 0x140585058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405851df
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 0x140585089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14058506f
add dl, dl
jne 0x140585096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405850f6
xor eax, eax
add dl, dl
jne 0x1405850a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405851ad
add dl, dl
jne 0x1405850b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405850c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405850d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405850dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405850ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14058507e
mov eax, 1
add dl, dl
jne 0x140585106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140585113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405850fb
sub eax, ebx
mov ebx, 1
jne 0x14058514c
mov ecx, 1
add dl, dl
jne 0x14058512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14058513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140585123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140585168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140585175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14058515d
cmp eax, 0x7d00
jae 0x14058519b
cmp eax, 0x500
jb 0x140585196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058507e
cmp eax, 0x7f
ja 0x14058519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405851d2
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 0x14058507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180002be0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002c08
xor eax, eax
lea r8, [0x180002b20]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180003710
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0xc50
mov rax, qword [0x1800273c0]
xor rax, rsp
mov qword [rsp + 0xc40], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x440]
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [rbp + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x18000384e
mov qword [rsp + 0xc68], rbx
lea rdx, [rsp + 0x440]
mov r8d, 0x3ff
mov qword [rsp + 0xc70], rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
cmp qword [0x1800451d8], 0x10
lea rcx, [0x1800451c0]
cmovae rcx, qword [0x1800451c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
xorps xmm0, xmm0
lea rsi, [0x1800416a0]
mov rbx, rax
lea r8, [0x1800208a4]
xor eax, eax
lea edx, [rbp + 0x45]
mov rcx, rsi
mov dword [0x1800416e0], eax
mov byte [0x1800416e4], al
movups xmmword [0x1800416a0], xmm0
movups xmmword [0x1800416b0], xmm0
movups xmmword [0x1800416c0], xmm0
movups xmmword [0x1800416d0], xmm0
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [rsp + 0x40]
mov rcx, rsi
lea edx, [rbp + 0x45]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov r8, rbx
lea edx, [rbp + 0x45]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rbx, qword [rsp + 0xc68]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov r8, 0xffffffffffffffff
mov qword [rdi + 0x18], rbp
nop dword [rax]
inc r8
cmp byte [rsi + r8], bpl
jne 0x180003830
mov rdx, rsi
mov rcx, rdi
call fcn.1800044d0
mov rsi, qword [rsp + 0xc70]
jmp 0x180003863
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bpl
mov rax, rdi
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.180015010
mov rbp, qword [rsp + 0xc78]
add rsp, 0xc50
pop rdi
ret
Function at 0x1800047f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x10a0
call fcn.1800162f0
sub rsp, rax
mov rax, qword [0x1800273c0]
xor rax, rsp
mov qword [rsp + 0x1090], rax
mov rbx, rcx
mov qword [0x180041f90], rcx
lea rdi, [0x1800430b0]
xor edx, edx
mov rcx, rdi
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x18000497e
mov rbx, 0xffffffffffffffff
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x180004860
xor eax, eax
test rcx, rcx
je 0x180004889
movzx edx, byte [rax + rdi]
cmp dl, 0x2f
je 0x18000487e
cmp dl, 0x5c
jne 0x180004881
mov rbx, rax
inc rax
cmp rax, rcx
jb 0x180004870
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov eax, dword [rsp + 0x40]
lea rdx, str.__02d:_02d:_02d____s_n
mov r9d, dword [rsp + 0x44]
lea rcx, [rsp + 0x68]
mov r8d, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
call fcn.180009b20
lea r8, str.INIT:_Mod_Hub_Base
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.180009b80
cmp rbx, 0xffffffffffffffff
je 0x18000497e
inc rbx
cmp rbx, 0x104
jae 0x1800049c0
mov r8, rdi
mov byte [rbx + rdi], 0
mov edx, 0x104
lea rcx, [0x180042fa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.Mod_Hub_Base.log
mov edx, 0x104
lea rcx, [0x180042fa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x18002072c]
lea rdx, [0x180042fa0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
jne 0x18000496f
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x90]
lea rdx, [0x18002075c]
call fcn.180009be0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, str.INIT:_Mod_Hub_Base
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x180004985
mov byte [0x180040a08], 0
lea rcx, str._n______________________________________________n_____________________________________n____________________________________n_____________________________________n_________________________________n__________________________________n
call fcn.180009860
call fcn.180005e50
call fcn.1800049d0
test eax, eax
je 0x1800049c6
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.180015010
mov rbx, qword [rsp + 0x10b8]
add rsp, 0x10a0
pop rdi
ret
call fcn.180015790
int3
call fcn.180007820
int3
Function at 0x180007820
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa0
lea rdx, [0x180021454]
lea rcx, [rsp + 0x80]
call fcn.1800045e0
mov rbx, rax
lea rcx, [rsp + 0x60]
call fcn.180003710
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180008050
nop
lea r8, [0x180040a50]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180008070
nop
lea rcx, [rsp + 0x40]
call fcn.1800046f0
nop
lea rcx, [rsp + 0x60]
call fcn.1800046f0
nop
lea rcx, [rsp + 0x80]
call fcn.1800046f0
lea rcx, [rsp + 0x20]
call fcn.1800046e0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1800078c7
lea rcx, [rsp + 0x20]
call fcn.1800046e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.180009170
lea rcx, str.Cleaning_up_hooks
call fcn.180009860
call fcn.1800079c0
mov rsi, rax
call fcn.1800079d0
mov rbx, rax
cmp rax, rsi
je 0x18000792f
nop dword [rax]
mov rdi, qword [rbx]
mov rcx, rdi
call fcn.180011e90
test eax, eax
jne 0x18000790d
lea rcx, str.Successfully_disabled_hooks
call fcn.180009860
jmp 0x180007926
mov ecx, eax
call fcn.180012070
mov r8, rax
mov rdx, rdi
lea rcx, str.Failed_to_disable_hookS__p___s_
call fcn.180009860
add rbx, 8
cmp rbx, rsi
jne 0x1800078f0
call fcn.1800079c0
mov rsi, rax
call fcn.1800079d0
mov rbx, rax
cmp rax, rsi
je 0x18000798f
mov rdi, qword [rbx]
mov rcx, rdi
call fcn.180011d80
test eax, eax
jne 0x18000796d
lea rcx, str.Successfully_Cleaning_up_hooks
call fcn.180009860
lea rcx, str.Mod_Hub_Base_Successfully_____unloaded.
call fcn.180009860
jmp 0x180007986
mov ecx, eax
call fcn.180012070
mov r8, rax
mov rdx, rdi
lea rcx, str.Failed_to_unhook__p___s_
call fcn.180009860
add rbx, 8
cmp rbx, rsi
jne 0x180007944
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
xor edx, edx
mov rcx, qword [0x180041f90]
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]