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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1402f3010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x9f8]
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 0x140210fb5
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 0x140211016
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1401eefc0
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.140087600
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 0x1402110d1
sub ecx, 1
je 0x140211144
sub ecx, 1
je 0x140211080
cmp ecx, 1
je 0x140211063
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140257c60]
call fcn.1401eefc0
jmp 0x140211144
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140210c50
test eax, eax
je 0x140211144
jmp 0x140210fea
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 0x140211144
sub rax, rsi
cmp rax, rbp
jae 0x140211144
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1401ef140
jmp 0x140211144
cmp r8d, 4
jle 0x140211144
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 0x140211144
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1401eeee0
mov esi, eax
test eax, eax
je 0x140211123
mov edx, 5
mov rcx, rbx
call fcn.140211c10
mov eax, esi
jmp 0x140210fea
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1401f9320
mov rcx, r14
call fcn.1401f9600
test eax, eax
je 0x140210fe8
mov edx, 5
mov rcx, rbx
call fcn.140211c10
mov eax, Ordinal_46
jmp 0x140210fea
Function at 0x140222a00
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1402f3010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
mov dword [rbp - 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140222b37
movzx edx, byte [rdi + 1]
movzx ecx, byte [rdi]
movzx eax, dl
movzx r8d, byte [rdi + 5]
shr al, 1
mov byte [rbp - 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
movzx ecx, byte [rdi + 2]
mov byte [rbp - 0x1b], al
movzx eax, cl
shr al, 2
or al, dl
shl cl, 5
movzx edx, byte [rdi + 3]
mov byte [rbp - 0x1a], al
movzx eax, dl
shr al, 3
or al, cl
shl dl, 4
movzx ecx, byte [rdi + 4]
mov byte [rbp - 0x19], al
movzx eax, cl
shr al, 4
or al, dl
shl cl, 3
mov byte [rbp - 0x18], al
movzx eax, r8b
shr al, 5
or al, cl
shl r8b, 2
movzx ecx, byte [rdi + 6]
mov byte [rbp - 0x17], al
movzx eax, cl
add cl, cl
shr al, 6
or al, r8b
mov byte [rbp - 0x15], cl
mov qword [rsp + 0xa0], r14
lea rcx, [rbp - 0x1c]
xor r14d, r14d
mov byte [rbp - 0x16], al
mov dword [rbp - 0x28], 0x208
mov dword [rbp - 0x24], 0x6601
mov dword [rbp - 0x20], 8
lea edx, [r14 + 8]
call fcn.140224a80
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea r8d, [r14 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea rdx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0xa0]
test eax, eax
jne 0x140222b3b
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x140222b80
mov rax, qword [rsi]
xor r9d, r9d
mov rcx, qword [rbp - 0x30]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140087600
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140224af0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402f3010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov dword [rsp + 0x20], 0xf0000000
mov rsi, r8
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rbp
mov rbx, rcx
xor r8d, r8d
lea r9d, [rbp + 1]
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140224b60
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, rsi
call fcn.1401f1880
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], ebp
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x140224bbe
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140224bce
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140224be0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140087600
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140224c70
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 [str.eN__]
mov rdi, rax
test rax, rax
jne 0x140224cb2
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 0x140224cf9
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 0x140224d52
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 0x140224d10
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140224d93
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1402cd42a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1402cd42b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140224d60
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 0x180001e20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x18002e048]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x70]
call fcn.180001da0
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0
jne 0x180001e7c
xor eax, eax
jmp 0x180001f41
lea r8, [0x18002a9cc]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180011e24
mov dword [rsp + 0x38], eax
cmp qword [rsp + 0x50], 0
jne 0x180001ea5
xor eax, eax
jmp 0x180001f41
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call fcn.18000ae78
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x50]
call fcn.180011ca4
mov r9, qword [rsp + 0x50]
mov rax, qword [rsp + 0x78]
mov r8, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x20]
call fcn.1800120dc
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x50]
call fcn.1800102d8
cmp qword [rsp + 0x28], 0
jne 0x180001f3c
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.18000ae34
cmp qword [rsp + 0x30], 0
jne 0x180001f25
mov qword [rsp + 0x48], 0
jmp 0x180001f38
mov qword [rsp + 0x20], 0x8123
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
xor eax, eax
jmp 0x180001f41
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000ae10
add rsp, 0x68
ret
Function at 0x180002230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 4], 0
mov dword [rsp + 0xc], 0
mov dword [rsp + 0x10], 0
mov dword [rsp + 8], 0
mov dword [rsp + 8], 0
jmp 0x180002277
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 8], eax
jae 0x180002367
mov eax, dword [rsp + 4]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0xc], eax
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov byte [rsp], al
movsxd rax, dword [rsp + 0xc]
movsxd rcx, dword [rsp + 4]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x30]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp]
mov byte [rcx + rax], dl
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x30]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 8]
movsxd rcx, dword [rsp + 0x10]
mov rdx, qword [rsp + 0x30]
movzx ecx, byte [rdx + rcx]
mov rdx, qword [rsp + 0x38]
movzx eax, byte [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 8]
mov rdx, qword [rsp + 0x38]
mov byte [rdx + rcx], al
jmp 0x18000226d
add rsp, 0x28
ret

Function at 0x1800023f0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x88
mov rax, qword [0x18002e048]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, 0xfff8d001
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x38], rax
jae 0x180002435
xor al, al
jmp 0x180002437
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18000ae10
add rsp, 0x88
ret
Function at 0x180006950
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.180006ba0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180006a6a
mov rax, qword [0x18002e020]
cmp qword [rsp + 0x20], rax
jb 0x1800069b4
mov rax, qword [0x18002e028]
cmp qword [rsp + 0x20], rax
ja 0x1800069b4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180006976
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000c8f0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800069e5
jmp 0x180006a6a
cmp dword [rsp + 0x50], 0x10000
jne 0x180006a4d
cmp qword [rsp + 0x48], 0x10000
jb 0x180006a4d
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 0x180006a2b
mov rax, qword [rsp + 0x28]
jmp 0x180006a6c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180006a3b
xor eax, eax
jmp 0x180006a6c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180006a65
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180006ba0
mov qword [rsp + 0x20], rax
jmp 0x180006976
xor eax, eax
add rsp, 0x68
ret

Function at 0x180006a80
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.180006be0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180006b96
mov rax, qword [0x18002e020]
cmp qword [rsp + 0x20], rax
jb 0x180006adb
mov rax, qword [0x18002e028]
cmp qword [rsp + 0x20], rax
ja 0x180006adb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180006a9d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18000c8f0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180006b0c
jmp 0x180006b96
cmp dword [rsp + 0x50], 0x10000
jne 0x180006b74
cmp qword [rsp + 0x48], 0x10000
jb 0x180006b74
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 0x180006b52
mov rax, qword [rsp + 0x28]
jmp 0x180006b98
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180006b62
xor eax, eax
jmp 0x180006b98
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180006b91
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180006be0
mov qword [rsp + 0x20], rax
jmp 0x180006a9d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180006c30
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.1800071c0
mov qword [rsp + 0x28], 0
cmp qword [0x18002eda8], 0
jne 0x180006c78
cmp qword [0x18002eda0], 0
je 0x180006c78
mov rax, qword [0x18002eda0]
mov qword [0x18002eda8], rax
cmp qword [0x18002eda8], 0
je 0x180006d1e
mov rax, qword [0x18002eda8]
cmp qword [rax + 0x10], 0
je 0x180006d1e
mov rax, qword [0x18002eda8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180006d1e
mov rax, qword [0x18002eda8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180006d1e
mov rax, qword [0x18002eda8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180006ce4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180006ceb
xor eax, eax
jmp 0x180006e99
mov rax, qword [0x18002eda8]
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.18000c8f0
mov rax, qword [rsp + 0x28]
jmp 0x180006e99
mov rax, qword [0x18002eda0]
mov qword [0x18002eda8], rax
jmp 0x180006d40
mov rax, qword [0x18002eda8]
mov rax, qword [rax + 8]
mov qword [0x18002eda8], rax
cmp qword [0x18002eda8], 0
je 0x180006d8d
cmp qword [0x18002eda8], 0
je 0x180006d8b
mov rax, qword [0x18002eda8]
cmp qword [rax + 0x10], 0
je 0x180006d8b
mov rax, qword [0x18002eda8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180006d8b
mov rax, qword [0x18002eda8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180006d8b
jmp 0x180006cbc
jmp 0x180006d2e
mov rcx, qword [rsp + 0x60]
call fcn.180009110
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.180006ea0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180006e97
mov rax, qword [rsp + 0x48]
mov qword [0x18002eda8], rax
mov rax, qword [0x18002eda8]
mov dword [rax], 0x52727464
mov rax, qword [0x18002eda8]
mov qword [rax + 0x10], 0
mov rax, qword [0x18002eda8]
mov rcx, qword [0x18002eda0]
mov qword [rax + 8], rcx
mov rax, qword [0x18002eda8]
mov qword [0x18002eda0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18002eda8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180006e48
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180006e82
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 0x180006e3e
mov rax, qword [0x18002eda8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180006cbc
xor eax, eax
add rsp, 0x58
ret
Function at 0x180007bb0
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 0x180007bf7
xor al, al
jmp 0x180007c99
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 0x180007c21
xor al, al
jmp 0x180007c99
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 0x180007c91
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 0x180007c91
mov al, 1
jmp 0x180007c99
jmp 0x180007c97
xor al, al
add rsp, 0x78
ret

Function at 0x180007fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18002eda0]
mov qword [rsp + 0x28], rax
jmp 0x180007fc0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180007fef
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180007fed
call sub.KERNEL32.dll_GetLastError
jmp 0x180007ff1
jmp 0x180007fb2
xor eax, eax
add rsp, 0x38
ret
Function at 0x180008680
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 [0x18002edb8], eax
je 0x1800086ad
mov eax, 0x10dd
jmp 0x1800088c6
cmp dword [0x18002edbc], 0
je 0x1800086c1
mov eax, dword [0x18002edbc]
jmp 0x1800088c6
cmp qword [rsp + 0x78], 0
jne 0x1800086d3
mov eax, 0x57
jmp 0x1800088c6
cmp qword [rsp + 0x70], 0
jne 0x1800086e5
mov eax, 6
jmp 0x1800088c6
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180008717
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x18002edbc], eax
mov rax, qword [rsp + 0x70]
mov qword [0x18002edc0], rax
mov eax, dword [rsp + 0x20]
jmp 0x1800088c6
mov ecx, 0x30
call fcn.18000ae3c
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180008789
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x18002edbc], eax
cmp qword [rsp + 0x30], 0
je 0x180008774
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.18000ae34
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x18002edc0], rax
mov eax, dword [rsp + 0x20]
jmp 0x1800088c6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.180008650
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.180008650
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 0x1800087e6
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x180008803
mov dword [rsp + 0x20], 9
cmp dword [0x18002edb0], 0
je 0x1800087fe
jmp 0x18000874a
jmp 0x180008740
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x180008830
mov dword [rsp + 0x20], 9
cmp dword [0x18002edb0], 0
je 0x18000882b
jmp 0x18000874a
jmp 0x180008740
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 0x180008867
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180008740
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 [0x18002edd0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x18002edd0], rax
xor eax, eax
add rsp, 0x68
ret