joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003790
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd r12, dword [rsp + 0x80]
mov rdi, rdx
movsxd r14, r9d
mov rbp, r12
imul rbp, rdx
mov r13, rcx
lea r15d, [r14 - 1]
add rbp, rcx
mov qword [rsp + 0x60], rbp
cmp r14d, r12d
jge 0x1400039bb
movsxd rsi, r15d
mov rbx, r14
imul rsi, rdi
imul rbx, rdi
add rsi, rcx
add rbx, rcx
nop word [rax + rax]
movsxd rcx, r14d
mov rdx, rbp
imul rcx, rdi
add rcx, r13
call r8
test eax, eax
jg 0x14000399a
inc r15d
add rsi, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400039af
test rsi, rsi
je 0x140003913
test rdi, rdi
je 0x1400038a1
cmp rax, rsi
jae 0x140003873
test rdi, rdi
je 0x1400038a1
mov r8, rsi
mov rcx, rax
sub r8, rax
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140003860
jmp 0x1400038a1
jbe 0x1400038a1
lea rcx, [rdi - 1]
mov r8, rsi
add rcx, rbp
mov rdx, rdi
sub r8, rbp
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x140003890
test rbx, rbx
je 0x140003981
test rdi, rdi
je 0x140003981
cmp rsi, rbx
jae 0x1400038e3
test rdi, rdi
je 0x14000391d
mov r8, rbx
mov rcx, rsi
sub r8, rsi
mov rdx, rdi
nop dword [rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400038d0
jmp 0x14000391d
jbe 0x14000391d
lea rcx, [rdi - 1]
mov r8, rbx
add rcx, rsi
mov rdx, rdi
sub r8, rsi
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x140003900
jmp 0x14000391d
test rbx, rbx
je 0x140003981
test rdi, rdi
je 0x140003981
cmp rbx, rbp
jae 0x140003953
test rdi, rdi
je 0x140003981
mov r8, rbp
mov rcx, rbx
sub r8, rbx
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140003940
jmp 0x140003981
jbe 0x140003981
test rdi, rdi
je 0x140003981
lea rcx, [rdi - 1]
mov r8, rbp
add rcx, rbx
mov rdx, rdi
sub r8, rbx
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x140003970
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x60]
inc r14d
add rbx, rdi
cmp r14d, r12d
jge 0x1400039bb
mov r8, qword [rsp + 0x70]
jmp 0x1400037f0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [r15 + 1]
mov r8, rdi
movsxd rbx, eax
mov rdx, rbp
mov rcx, rbx
imul rcx, rdi
add rcx, r13
call fcn.1400035e0
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003b80
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0xb0
lea rdx, [0x1400050f0]
lea rcx, str._i__.rdata_var_:_0x_x__n
call fcn.1400033f0
lea rdx, [section..text]
lea rcx, str._i__.text_var_:_0x_x__n
call fcn.1400033f0
lea rax, [rsp + 0xc0]
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r8, [0x140003b20]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140003b60]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0xc8], 0
jne 0x140003d42
xor r9d, r9d
lea r8, str.test2
lea rdx, str.test
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, [0x140035e41]
call fcn.140003010
mov r8d, eax
lea r9, str.Test
lea rdx, [0x140035e41]
lea rcx, [rsp + 0x40]
call fcn.140003d50
lea rcx, [rsp + 0x40]
call fcn.140003ec0
test al, al
je 0x140003d42
call fcn.140001500
test eax, eax
je 0x140003d42
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xd8]
lea rdx, [0x140035e41]
lea rcx, [rsp + 0x40]
call fcn.140003ed0
test eax, eax
jne 0x140003d42
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xd8]
call fcn.140001640
test rax, rax
je 0x140003d42
lea rdx, [0x140035e41]
mov rcx, rax
call fcn.140001d80
test rax, rax
je 0x140003d34
call rax
mov rcx, rax
mov rbx, rax
call fcn.140002de0
mov r9, rax
lea rdx, [0x140035e41]
lea rax, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140003fe0
test eax, eax
jne 0x140003d34
add rsp, 0xb0
pop rbx
ret
mov eax, 2
add rsp, 0xb0
pop rbx
ret
mov eax, 1
add rsp, 0xb0
pop rbx
ret
Function at 0x140001000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x140001080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
jmp 0x14000112a
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp qword [rsp + 0x50], rax
jae 0x14000119a
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
lea rdx, [0x140019568]
mov rcx, qword [rsp + 0x60]
call fcn.140002de0
test eax, eax
jne 0x140001198
mov rax, qword [rsp + 0x58]
jmp 0x14000119a
jmp 0x14000111d
add rsp, 0x78
ret
Function at 0x140001a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x140020170]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rdx, [0x140019630]
lea rcx, [rsp + 0x30]
call fcn.140001d50
nop
lea rdx, str.C:UsersPublicDesktopQQ.lnk
lea rcx, [rsp + 0x58]
call fcn.140001d50
nop
lea rdx, str.C:UsersPublicDesktop_
lea rcx, [rsp + 0x80]
call fcn.140001d50
nop
mov dword [rsp + 0xb0], 0
jmp 0x140001abb
mov eax, dword [rsp + 0xb0]
inc eax
mov dword [rsp + 0xb0], eax
movsxd rax, dword [rsp + 0xb0]
cmp rax, 3
jae 0x140001b20
movsxd rax, dword [rsp + 0xb0]
imul rax, rax, 0x28
lea rax, [rsp + rax + 0x30]
mov rcx, rax
call fcn.140001e00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001b1e
mov byte [rsp + 0xb4], 1
lea r9, [fcn.140001dc0]
mov r8d, 3
mov edx, 0x28
lea rcx, [rsp + 0x30]
call fcn.140003388
movzx eax, byte [rsp + 0xb4]
jmp 0x140001b4c
jmp 0x140001aab
mov byte [rsp + 0xb5], 0
lea r9, [fcn.140001dc0]
mov r8d, 3
mov edx, 0x28
lea rcx, [rsp + 0x30]
call fcn.140003388
movzx eax, byte [rsp + 0xb5]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140003270
add rsp, 0xd8
ret

Function at 0x14000449b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140020170]
jne 0x14000328a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003286
repz ret
ror rcx, 0x10
jmp 0x1400043f4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140021220]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140021318]
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 0x140004479
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, [0x140021220]
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 0x14000449b
mov rax, qword [rsp + 0x88]
mov qword [0x140021318], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400212b8], rax
mov rax, qword [0x140021318]
mov qword [0x140021190], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400212a0], rax
mov dword [0x140021180], 0xc0000409
mov dword [0x140021184], 1
mov rax, qword [0x140020170]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140020178]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140021218], eax
mov ecx, 1
call fcn.140008448
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140019af8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140021218], 0
jne 0x140004522
mov ecx, 1
call fcn.140008448
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 0x140007524
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140007394
Function at 0x140011358
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140020170]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400048fc
xor ebx, ebx
cmp qword [0x140022200], rbx
mov rdi, rax
jne 0x14001146b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140011542
lea rdx, [0x14001b8f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011542
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140022200], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140022208], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140022210], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140022220], rax
test rax, rax
je 0x140011462
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140022218], rax
jmp 0x140011472
mov rax, qword [0x140022218]
jmp 0x140011479
mov rax, qword [0x140022218]
mov r11, qword [0x140022220]
cmp rax, rdi
je 0x1400114e0
cmp r11, rdi
je 0x1400114e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140022220]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400114e0
test rax, rax
je 0x1400114e0
call rsi
test rax, rax
je 0x1400114da
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400114da
test byte [rsp + 0x40], 1
jne 0x1400114e0
bts ebp, 0x15
jmp 0x140011520
mov rcx, qword [0x140022208]
cmp rcx, rdi
je 0x140011520
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140011520
call rax
mov rbx, rax
test rax, rax
je 0x140011520
mov rcx, qword [0x140022210]
cmp rcx, rdi
je 0x140011520
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140011520
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140022200]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140011542
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140011544
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003270
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180002690
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800026c1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x18000273b
mov rdi, r14
mov rcx, rbx
call fcn.180003800
test rax, rax
jle 0x180002713
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18000e730
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 0x18000272b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180002733
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800026d5
sub r14, rdi
jmp 0x18000281f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180002752
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180002754
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180002786
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18000e730
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 0x18000281c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800027c1
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 0x1800027fd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180017040
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18000281c
cmp rbp, rax
ja 0x1800027d0
test rbp, rbp
je 0x18000281c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180017040
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180007c50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180007ea0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180007d6a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180007cb4
mov rax, qword [0x180044008]
cmp qword [rsp + 0x20], rax
ja 0x180007cb4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180007c76
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000ede0
mov r8d, gethostbyname
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180007ce5
jmp 0x180007d6a
cmp dword [rsp + 0x50], 0x10000
jne 0x180007d4d
cmp qword [rsp + 0x48], 0x10000
jb 0x180007d4d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180007d2b
mov rax, qword [rsp + 0x28]
jmp 0x180007d6c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180007d3b
xor eax, eax
jmp 0x180007d6c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180007d65
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180007ea0
mov qword [rsp + 0x20], rax
jmp 0x180007c76
xor eax, eax
add rsp, 0x68
ret

Function at 0x180007d80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180007ee0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180007e96
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180007ddb
mov rax, qword [0x180044008]
cmp qword [rsp + 0x20], rax
ja 0x180007ddb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180007d9d
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000ede0
mov r8d, gethostbyname
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180007e0c
jmp 0x180007e96
cmp dword [rsp + 0x50], 0x10000
jne 0x180007e74
cmp qword [rsp + 0x48], 0x10000
jb 0x180007e74
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180007e52
mov rax, qword [rsp + 0x28]
jmp 0x180007e98
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180007e62
xor eax, eax
jmp 0x180007e98
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180007e91
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180007ee0
mov qword [rsp + 0x20], rax
jmp 0x180007d9d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180007f30
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800084c0
mov qword [rsp + 0x28], 0
cmp qword [0x180045448], 0
jne 0x180007f78
cmp qword [0x180045440], 0
je 0x180007f78
mov rax, qword [0x180045440]
mov qword [0x180045448], rax
cmp qword [0x180045448], 0
je 0x18000801e
mov rax, qword [0x180045448]
cmp qword [rax + 0x10], 0
je 0x18000801e
mov rax, qword [0x180045448]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000801e
mov rax, qword [0x180045448]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000801e
mov rax, qword [0x180045448]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180007fe4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180007feb
xor eax, eax
jmp 0x180008199
mov rax, qword [0x180045448]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.18000ede0
mov rax, qword [rsp + 0x28]
jmp 0x180008199
mov rax, qword [0x180045440]
mov qword [0x180045448], rax
jmp 0x180008040
mov rax, qword [0x180045448]
mov rax, qword [rax + 8]
mov qword [0x180045448], rax
cmp qword [0x180045448], 0
je 0x18000808d
cmp qword [0x180045448], 0
je 0x18000808b
mov rax, qword [0x180045448]
cmp qword [rax + 0x10], 0
je 0x18000808b
mov rax, qword [0x180045448]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000808b
mov rax, qword [0x180045448]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000808b
jmp 0x180007fbc
jmp 0x18000802e
mov rcx, qword [rsp + 0x60]
call fcn.18000a110
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800081a0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180008197
mov rax, qword [rsp + 0x48]
mov qword [0x180045448], rax
mov rax, qword [0x180045448]
mov dword [rax], 0x52727464
mov rax, qword [0x180045448]
mov qword [rax + 0x10], 0
mov rax, qword [0x180045448]
mov rcx, qword [0x180045440]
mov qword [rax + 8], rcx
mov rax, qword [0x180045448]
mov qword [0x180045440], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180045448]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180008148
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180008182
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18000813e
mov rax, qword [0x180045448]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180007fbc
xor eax, eax
add rsp, 0x58
ret
Function at 0x180008eb0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, gethostbyname
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180008ef7
xor al, al
jmp 0x180008f99
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180008f21
xor al, al
jmp 0x180008f99
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180008f91
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180008f91
mov al, 1
jmp 0x180008f99
jmp 0x180008f97
xor al, al
add rsp, 0x78
ret

Function at 0x1800092a0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180045440]
mov qword [rsp + 0x28], rax
jmp 0x1800092c0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800092ef
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800092ed
call sub.KERNEL32.dll_GetLastError
jmp 0x1800092f1
jmp 0x1800092b2
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800099b0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180045458], eax
je 0x1800099cb
mov eax, 0x10dd
jmp 0x180009af0
mov rax, qword [0x180045470]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180009a75
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180009a40
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180009a40
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180008600
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, gethostbyname
mov rcx, qword [rsp + 0x38]
call fcn.18000b550
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1800099d7
mov qword [0x180045470], 0
call fcn.180009060
mov rax, qword [0x180045468]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180009ad9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18000b550
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180009a91
mov qword [0x180045468], 0
mov dword [0x180045458], 0
xor eax, eax
add rsp, 0x68
ret