joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000eda0
Capabilities:
Resume thread

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 1
xor edx, edx
mov ecx, 0x11f0
call fcn.180005490
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x11f0
call fcn.180005490
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x20]
mov dword [rax], 1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x10]
mov dword [rax + 4], ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x260], eax
mov dword [rsp + 0x38], 0x12b
mov rax, qword [rsp + 0x20]
add rax, 8
lea r9, [rsp + 0x38]
mov r8, rax
xor edx, edx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
nop
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call fcn.18000b9b0
test eax, eax
je 0x18000ee59
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
jne 0x18000ee61
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x68]
and eax, 4
test eax, eax
jne 0x18000ee88
mov rax, qword [rsp + 0x60]
cmp qword [rax + 8], 0
je 0x18000ee88
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
mov rcx, qword [rsp + 0x20]
call fcn.180005460
mov rcx, qword [rsp + 0x30]
call fcn.180005460
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180024000
add rsp, 0x58
ret

Function at 0x1800111b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1800111d3
mov dword [rsp + 0x20], 1
jmp 0x1800111db
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x180016430
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180059210], eax
cmp dword [0x180059210], 0xffffffff
je 0x180016453
mov dword [rsp + 0x20], 1
jmp 0x18001645b
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x180016470
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
call fcn.1800164f0
test eax, eax
je 0x1800164a8
mov ecx, dword [0x180059210]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180016498
mov dword [rsp + 0x20], 1
jmp 0x1800164a0
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800164de
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov ecx, 4
div ecx
mov eax, eax
lea rcx, [0x18005ac80]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1800164d2
mov dword [rsp + 0x24], 1
jmp 0x1800164da
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x1800172d0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub rsp, 0x48
mov dword [0x180062ca0], 0
mov dword [0x180064cb0], 0
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x180017312
xor eax, eax
jmp 0x1800173d7
mov rcx, qword [rsp + 0x30]
call fcn.18000c990
mov word [0x180062c90], ax
movzx eax, word [0x180062c90]
test eax, eax
jne 0x180017340
mov rcx, qword [rsp + 0x30]
call qword [0x18005ac08]
xor eax, eax
jmp 0x1800173d7
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x180017364
mov rcx, qword [rsp + 0x30]
call qword [0x18005ac08]
xor eax, eax
jmp 0x1800173d7
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x1800187d0]
xor edx, edx
xor ecx, ecx
call fcn.18003292c
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1800183a0]
xor edx, edx
xor ecx, ecx
call fcn.18003292c
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180018b40]
xor edx, edx
xor ecx, ecx
call fcn.18003292c
mov eax, 1
add rsp, 0x48
ret
Function at 0x18001a930
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x2a0
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x258
rep stosb byte [rdi], al
mov r8d, 0x12b
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x30]
lea rcx, [0x180068cf0]
call fcn.180002e20
mov dx, 0x5c
lea rcx, [rsp + 0x30]
call fcn.18000efe0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18001a9cf
xor eax, eax
mov rcx, qword [rsp + 0x20]
mov word [rcx], ax
lea rdx, [rsp + 0x30]
lea rcx, [0x180068ce8]
call fcn.180002e20
mov rax, qword [rsp + 0x20]
add rax, 2
mov rdx, rax
lea rcx, [0x180068cf8]
call fcn.180002e20
nop
mov edx, 0x12b
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, [rsp + 0x30]
lea rcx, [0x180068d00]
call fcn.180002e20
mov edx, 0x12b
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rsp + 0x30]
lea rcx, [0x180068d08]
call fcn.180002e20
nop
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180024000
add rsp, 0x2a0
pop rdi
ret

Function at 0x18001c030
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
sub rsp, 0x2a8
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rax, [rsp + 0x24]
lea rcx, [0x180046728]
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
mov eax, 0x41
mov word [rsp + 0x20], ax
jmp 0x18001c07e
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
cmp eax, 0x5a
jg 0x18001c0e7
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rsp + 0x20]
mov word [rsp + rax + 0x24], cx
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x258
rep stosb byte [rdi], al
mov r8d, 0x12b
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
movzx eax, word [rsp + 0x20]
sub eax, 0x41
cdqe
lea rcx, [0x180068e40]
lea rax, [rcx + rax*8]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.180002e20
nop
jmp 0x18001c071
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180024000
add rsp, 0x2a8
pop rdi
pop rsi
ret
Function at 0x18001c110
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x180059300]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18001c1bf
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18001c1b3
cmp dword [rsp + 0x44], 4
je 0x18001c1b3
mov dword [rsp + 0x30], 0x57
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180024000
add rsp, 0x58
ret

Function at 0x18001c480
Capabilities:
Get process heap flags

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call fcn.18001c660
movzx eax, al
test eax, eax
je 0x18001c4c7
mov rax, qword gs:[0x60]
add rax, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rax, 0x70
mov qword [rsp + 0x28], rax
jmp 0x18001c4ea
mov rax, qword gs:[0x60]
add rax, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rax, 0x14
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x18001c680
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call fcn.18001c660
movzx eax, al
test eax, eax
je 0x18001c6c7
mov rax, qword gs:[0x60]
add rax, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rax, 0x74
mov qword [rsp + 0x28], rax
jmp 0x18001c6ea
mov rax, qword gs:[0x60]
add rax, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rax, 0x18
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x18001ce30
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x180068f30], eax
je 0x18001ce4c
mov eax, 0x10dd
jmp 0x18001cf77
mov rax, qword [0x180068f48]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18001cef9
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 qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x18001cec3
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18001cec3
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.18001e840
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, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180023a94
nop
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18001ce58
mov qword [0x180068f48], 0
call fcn.18001e160
nop
mov rax, qword [0x180068f40]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18001cf60
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.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, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x48]
call fcn.180023a94
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18001cf16
mov qword [0x180068f40], 0
mov dword [0x180068f30], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18001d460
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x180068f34], 0
je 0x18001d47d
mov eax, dword [0x180068f34]
jmp 0x18001d547
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp qword [rsp + 0x50], rax
jne 0x18001d491
xor eax, eax
jmp 0x18001d547
mov ecx, reloc.WS2_32.dll_recv
call fcn.180023a58
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18001d500
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18001d4e5
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x38]
call fcn.180023a94
nop
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x180068f34], eax
mov qword [0x180068f38], 0
mov eax, dword [rsp + 0x20]
jmp 0x18001d547
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x18001d51c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
jmp 0x18001d4ba
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180068f40]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180068f40], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x18001e290
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.18001e230
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18001e394
mov rax, qword [0x1800592c0]
cmp qword [rsp + 0x20], rax
jb 0x18001e2eb
mov rax, qword [0x1800592c8]
cmp qword [rsp + 0x20], rax
ja 0x18001e2eb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18001e2ad
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180041810
nop
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18001e31b
jmp 0x18001e394
cmp dword [rsp + 0x50], 0x10000
jne 0x18001e372
cmp qword [rsp + 0x48], 0x10000
jb 0x18001e372
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18001e360
mov rax, qword [rsp + 0x28]
jmp 0x18001e396
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18001e38f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18001e230
mov qword [rsp + 0x20], rax
jmp 0x18001e2ad
xor eax, eax
add rsp, 0x68
ret

Function at 0x18001e3b0
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.18001e1e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18001e4b8
mov rax, qword [0x1800592c0]
cmp qword [rsp + 0x20], rax
jb 0x18001e414
mov rax, qword [0x1800592c8]
cmp qword [rsp + 0x20], rax
ja 0x18001e414
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18001e3d6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180041810
nop
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18001e444
jmp 0x18001e4b8
cmp dword [rsp + 0x50], 0x10000
jne 0x18001e49b
cmp qword [rsp + 0x48], 0x10000
jb 0x18001e49b
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18001e489
mov rax, qword [rsp + 0x28]
jmp 0x18001e4ba
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18001e4b3
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18001e1e0
mov qword [rsp + 0x20], rax
jmp 0x18001e3d6
xor eax, eax
add rsp, 0x68
ret
Function at 0x18001fd60
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180041810
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18001fdac
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18001fe7a
cmp dword [rsp + 0x60], 0x1000
jne 0x18001fdd1
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x18001fdd1
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x18001fde3
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18001fe7a
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18001fe0b
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18001fe7a
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 0x18001fe40
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18001fe7a
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x18001fe5c
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18001fe7a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x28]
jmp 0x18001fe7a
add rsp, 0x78
ret

Function at 0x18001fe90
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180041810
nop
jmp 0x18001fed9
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18001fef9
jmp 0x18001ff96
cmp dword [rsp + 0x68], 0x1000
jne 0x18001ff1e
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18001ff1e
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18001ff20
jmp 0x18001fec4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18001ff56
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x18001ff56
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18001ff5b
jmp 0x18001fec4
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x18001fec4
mov rax, qword [rsp + 0x20]
jmp 0x18001ff98
xor eax, eax
add rsp, 0x88
ret
Function at 0x180020f80
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x180068fa0], 0
je 0x180020f94
xor eax, eax
jmp 0x180021200
cmp qword [0x180068f98], 0
je 0x180020faa
mov rax, qword [0x180068f98]
jmp 0x180021200
mov r8d, 0x48
xor edx, edx
lea rcx, [0x180068f50]
call fcn.180041810
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x180068f50], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x180068f58], rax
cmp qword [0x180068f58], 0
jne 0x180021064
mov dword [0x180068fa0], 1
cmp qword [0x180068f58], 0
je 0x180021010
mov rcx, qword [0x180068f58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov qword [0x180068f60], 0
mov qword [0x180068f68], 0
mov qword [0x180068f70], 0
mov qword [0x180068f78], 0
mov qword [0x180068f80], 0
mov qword [0x180068f88], 0
mov qword [0x180068f90], 0
xor eax, eax
jmp 0x180021200
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x180068f58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180068f60], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x180068f58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180068f68], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x180068f58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180068f70], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x180068f58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180068f78], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x180068f58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180068f80], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x180068f58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180068f88], rax
lea rdx, str.SymFromName
mov rcx, qword [0x180068f58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180068f90], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.180041810
mov eax, listen
mov word [rsp + 0x28], ax
cmp qword [0x180068f60], 0
je 0x18002116f
cmp qword [0x180068f68], 0
je 0x18002116f
cmp qword [0x180068f80], 0
je 0x18002116f
cmp qword [0x180068f88], 0
je 0x18002116f
cmp qword [0x180068f90], 0
jne 0x180021174
jmp 0x180020fee
lea rcx, [rsp + 0x28]
call qword [0x180068f60]
nop
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x18002118f
jmp 0x180020fee
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180068f50]
call qword [0x180068f68]
test eax, eax
jne 0x1800211aa
jmp 0x180020fee
cmp qword [0x180068f78], 0
je 0x1800211eb
cmp qword [0x180068f70], 0
je 0x1800211eb
call qword [0x180068f78]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x180068f70]
nop
lea rax, [0x180068f50]
mov qword [0x180068f98], rax
mov rax, qword [0x180068f98]
add rsp, 0x38
ret
Function at 0x18003292c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x180032963
call fcn.18002a1f0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.18002a084
xor eax, eax
jmp 0x1800329f1
mov rdx, r9
mov rcx, r8
call fcn.1800328c8
mov rbx, rax
test rax, rax
je 0x1800329ee
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1800327f4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1800329db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18002a164
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800329c2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800329d1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.180034c68
jmp 0x1800329ee
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800329eb
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1800332f4
Capabilities:
Parse pe header

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