joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ad170
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 [0x1400de020]
mov rdi, rax
test rax, rax
jne 0x1400ad1b2
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 0x1400ad1f9
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 0x1400ad252
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 0x1400ad210
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ad293
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c054a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c054b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ad260
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 0x1400ae408
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18013d090], eax
je 0x18000c1fb
mov eax, 0x10dd
jmp 0x18000c320
mov rax, qword [0x18013d0a8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000c2a5
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 0x18000c270
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18000c270
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.18000de80
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.180084510
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18000c207
mov qword [0x18013d0a8], 0
call fcn.18000d750
mov rax, qword [0x18013d0a0]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18000c309
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, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x48]
call fcn.180084510
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18000c2c1
mov qword [0x18013d0a0], 0
mov dword [0x18013d090], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18000c7f0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18013d094], 0
je 0x18000c80d
mov eax, dword [0x18013d094]
jmp 0x18000c8d3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x18000c820
xor eax, eax
jmp 0x18000c8d3
mov ecx, reloc.WS2_32.dll_recv
call fcn.1800843bc
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000c88e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18000c873
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x38]
call fcn.180084510
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18013d094], eax
mov qword [0x18013d098], 0
mov eax, dword [rsp + 0x20]
jmp 0x18000c8d3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x18000c8a8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18000c849
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18013d0a0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18013d0a0], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x18000cf70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18013d090], eax
je 0x18000cf9d
mov eax, 0x10dd
jmp 0x18000d1b6
cmp dword [0x18013d094], 0
je 0x18000cfb1
mov eax, dword [0x18013d094]
jmp 0x18000d1b6
cmp qword [rsp + 0x78], 0
jne 0x18000cfc3
mov eax, 0x57
jmp 0x18000d1b6
cmp qword [rsp + 0x70], 0
jne 0x18000cfd5
mov eax, 6
jmp 0x18000d1b6
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x18000d007
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x18013d094], eax
mov rax, qword [rsp + 0x70]
mov qword [0x18013d098], rax
mov eax, dword [rsp + 0x20]
jmp 0x18000d1b6
mov ecx, 0x30
call fcn.1800843bc
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18000d079
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x18013d094], eax
cmp qword [rsp + 0x30], 0
je 0x18000d064
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.180084510
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x18013d098], rax
mov eax, dword [rsp + 0x20]
jmp 0x18000d1b6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.18000d290
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.18000d290
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x18000d0d6
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x18000d0f3
mov dword [rsp + 0x20], 9
cmp dword [0x18013d088], 0
je 0x18000d0ee
jmp 0x18000d03a
jmp 0x18000d030
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x18000d120
mov dword [rsp + 0x20], 9
cmp dword [0x18013d088], 0
je 0x18000d11b
jmp 0x18000d03a
jmp 0x18000d030
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000d157
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18000d030
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x18013d0a8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x18013d0a8], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x18000d5f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
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 0x18000d637
xor al, al
jmp 0x18000d6d9
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 0x18000d661
xor al, al
jmp 0x18000d6d9
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 0x18000d6d1
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 0x18000d6d1
mov al, 1
jmp 0x18000d6d9
jmp 0x18000d6d7
xor al, al
add rsp, 0x78
ret

Function at 0x18000d6f0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18013d078]
mov qword [rsp + 0x28], rax
jmp 0x18000d710
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000d73f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000d73d
call sub.KERNEL32.dll_GetLastError
jmp 0x18000d741
jmp 0x18000d702
xor eax, eax
add rsp, 0x38
ret

Function at 0x18000d870
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.18000d810
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18000d986
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000d8cb
mov rax, qword [0x18013c008]
cmp qword [rsp + 0x20], rax
ja 0x18000d8cb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000d88d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180087e50
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18000d8fc
jmp 0x18000d986
cmp dword [rsp + 0x50], 0x10000
jne 0x18000d964
cmp qword [rsp + 0x48], 0x10000
jb 0x18000d964
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 0x18000d942
mov rax, qword [rsp + 0x28]
jmp 0x18000d988
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18000d952
xor eax, eax
jmp 0x18000d988
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000d981
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18000d810
mov qword [rsp + 0x20], rax
jmp 0x18000d88d
xor eax, eax
add rsp, 0x68
ret
Function at 0x18000d9a0
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.18000d7c0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18000daba
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000da04
mov rax, qword [0x18013c008]
cmp qword [rsp + 0x20], rax
ja 0x18000da04
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000d9c6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180087e50
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18000da35
jmp 0x18000daba
cmp dword [rsp + 0x50], 0x10000
jne 0x18000da9d
cmp qword [rsp + 0x48], 0x10000
jb 0x18000da9d
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 0x18000da7b
mov rax, qword [rsp + 0x28]
jmp 0x18000dabc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18000da8b
xor eax, eax
jmp 0x18000dabc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000dab5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18000d7c0
mov qword [rsp + 0x20], rax
jmp 0x18000d9c6
xor eax, eax
add rsp, 0x68
ret
Function at 0x18000dc00
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.18000e440
mov qword [rsp + 0x28], 0
cmp qword [0x18013d080], 0
jne 0x18000dc48
cmp qword [0x18013d078], 0
je 0x18000dc48
mov rax, qword [0x18013d078]
mov qword [0x18013d080], rax
cmp qword [0x18013d080], 0
je 0x18000dcee
mov rax, qword [0x18013d080]
cmp qword [rax + 0x10], 0
je 0x18000dcee
mov rax, qword [0x18013d080]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000dcee
mov rax, qword [0x18013d080]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000dcee
mov rax, qword [0x18013d080]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18000dcb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000dcbb
xor eax, eax
jmp 0x18000de69
mov rax, qword [0x18013d080]
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.180087e50
mov rax, qword [rsp + 0x28]
jmp 0x18000de69
mov rax, qword [0x18013d078]
mov qword [0x18013d080], rax
jmp 0x18000dd10
mov rax, qword [0x18013d080]
mov rax, qword [rax + 8]
mov qword [0x18013d080], rax
cmp qword [0x18013d080], 0
je 0x18000dd5d
cmp qword [0x18013d080], 0
je 0x18000dd5b
mov rax, qword [0x18013d080]
cmp qword [rax + 0x10], 0
je 0x18000dd5b
mov rax, qword [0x18013d080]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000dd5b
mov rax, qword [0x18013d080]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000dd5b
jmp 0x18000dc8c
jmp 0x18000dcfe
mov rcx, qword [rsp + 0x60]
call fcn.18000ef20
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.18000dad0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18000de67
mov rax, qword [rsp + 0x48]
mov qword [0x18013d080], rax
mov rax, qword [0x18013d080]
mov dword [rax], 0x52727464
mov rax, qword [0x18013d080]
mov qword [rax + 0x10], 0
mov rax, qword [0x18013d080]
mov rcx, qword [0x18013d078]
mov qword [rax + 8], rcx
mov rax, qword [0x18013d080]
mov qword [0x18013d078], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18013d080]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18000de18
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18000de52
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 0x18000de0e
mov rax, qword [0x18013d080]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000dc8c
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800109e0
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.180087e50
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x180010a2a
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180010af2
cmp dword [rsp + 0x60], 0x1000
jne 0x180010a4f
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x180010a4f
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x180010a60
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180010af2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180010a87
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180010af2
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 0x180010abb
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180010af2
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180010ad6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180010af2
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x180010af2
add rsp, 0x78
ret

Function at 0x180010b00
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.180087e50
jmp 0x180010b48
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 sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x180010b67
jmp 0x180010c0b
cmp dword [rsp + 0x68], 0x1000
jne 0x180010b8c
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x180010b8c
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x180010b8e
jmp 0x180010b33
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180010bc4
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180010bc4
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180010bc9
jmp 0x180010b33
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 0x180010b33
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x180010c0d
xor eax, eax
add rsp, 0x88
ret
Function at 0x180010e10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x50], 0
jne 0x180010e37
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180010e54
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180010ec2
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 0x180010e88
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180010ec2
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180010ea3
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180010ec2
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x50]
jmp 0x180010ec2
add rsp, 0x48
ret
Function at 0x180011a80
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x18013d100], 0
je 0x180011a94
xor eax, eax
jmp 0x180011cf3
cmp qword [0x18013d0f8], 0
je 0x180011aaa
mov rax, qword [0x18013d0f8]
jmp 0x180011cf3
mov r8d, 0x48
xor edx, edx
lea rcx, [0x18013d0b0]
call fcn.180087e50
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [0x18013d0b0], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call sub.KERNEL32.dll_LoadLibraryExW
mov qword [0x18013d0b8], rax
cmp qword [0x18013d0b8], 0
jne 0x180011b60
mov dword [0x18013d100], 1
cmp qword [0x18013d0b8], 0
je 0x180011b0c
mov rcx, qword [0x18013d0b8]
call sub.KERNEL32.dll_FreeLibrary
mov qword [0x18013d0c0], 0
mov qword [0x18013d0c8], 0
mov qword [0x18013d0d0], 0
mov qword [0x18013d0d8], 0
mov qword [0x18013d0e0], 0
mov qword [0x18013d0e8], 0
mov qword [0x18013d0f0], 0
xor eax, eax
jmp 0x180011cf3
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x18013d0b8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18013d0c0], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x18013d0b8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18013d0c8], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x18013d0b8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18013d0d0], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x18013d0b8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18013d0d8], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x18013d0b8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18013d0e0], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x18013d0b8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18013d0e8], rax
lea rdx, str.SymFromName
mov rcx, qword [0x18013d0b8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18013d0f0], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.180087e50
mov eax, recv
mov word [rsp + 0x28], ax
cmp qword [0x18013d0c0], 0
je 0x180011c64
cmp qword [0x18013d0c8], 0
je 0x180011c64
cmp qword [0x18013d0e0], 0
je 0x180011c64
cmp qword [0x18013d0e8], 0
je 0x180011c64
cmp qword [0x18013d0f0], 0
jne 0x180011c69
jmp 0x180011aec
lea rcx, [rsp + 0x28]
call qword [0x18013d0c0]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x180011c83
jmp 0x180011aec
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x18013d0b0]
call qword [0x18013d0c8]
test eax, eax
jne 0x180011c9e
jmp 0x180011aec
cmp qword [0x18013d0d8], 0
je 0x180011cde
cmp qword [0x18013d0d0], 0
je 0x180011cde
call qword [0x18013d0d8]
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 [0x18013d0d0]
lea rax, [0x18013d0b0]
mov qword [0x18013d0f8], rax
mov rax, qword [0x18013d0f8]
add rsp, 0x38
ret