joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f160
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
cmp dword [rsp + 0x50], 0
je 0x18000f20d
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
add rax, 0x20
cmp qword [rsp + 0x30], rax
je 0x18000f20d
mov rax, qword [rsp + 0x30]
sub rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x58]
xor edx, edx
mov ecx, 2
div rcx
xor r8d, r8d
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x60]
call fcn.18000f220
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x50], eax
jne 0x18000f1fe
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
jmp 0x18000f20f
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
jmp 0x18000f19c
xor eax, eax
add rsp, 0x48
ret

Function at 0x18000f220
Capabilities:
Hash data with crc32

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0xffffffff
mov qword [rsp + 0x28], 0
jmp 0x18000f253
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x28], rax
jae 0x18000f2d2
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x20], ax
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x18000f29c
movzx eax, word [rsp + 0x20]
cmp eax, 0x41
jl 0x18000f29c
movzx eax, word [rsp + 0x20]
cmp eax, 0x5a
jg 0x18000f29c
movzx eax, word [rsp + 0x20]
add eax, 0x20
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
mov edx, eax
lea rcx, [0x1800bfb10]
call fcn.18000eba0
mov ecx, dword [rsp + 0x24]
shr ecx, 8
mov eax, dword [rax]
xor eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x18000f246
mov eax, dword [rsp + 0x24]
not eax
add rsp, 0x38
ret

Function at 0x180015d90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 1
je 0x180015db3
jmp 0x180015def
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x60]
lea r8, [0x180015d10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
mov qword [0x180208760], rax
mov eax, 1
add rsp, 0x48
ret
Function at 0x180016b60
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x1800d02c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ecx, 0x500000
call fcn.180023564
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x110], rcx
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x90]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x5c], 2
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x64], 6
lea rax, [rsp + 0x230]
mov rdi, rax
xor eax, eax
mov ecx, 0xa
rep stosb byte [rdi], al
mov r8d, 0xa
lea rdx, [rsp + 0x230]
mov rax, qword [rsp + 0x260]
mov ecx, dword [rax + 0x100]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
mov rax, qword [rsp + 0x260]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x230]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
jmp 0x180016c6a
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180016d23
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x260]
mov qword [rcx + 0x108], rax
mov rax, qword [rsp + 0x260]
cmp qword [rax + 0x108], 0xffffffffffffffff
jne 0x180016cbd
xor al, al
jmp 0x180016da3
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0x10]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x20]
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 0x108]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
jne 0x180016d1c
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 0x108]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x260]
mov qword [rax + 0x108], 0xffffffffffffffff
jmp 0x180016c5c
jmp 0x180016d23
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, qword [rsp + 0x260]
cmp qword [rax + 0x108], 0xffffffffffffffff
jne 0x180016d44
xor al, al
jmp 0x180016da3
lea rax, [rsp + 0x230]
mov rdi, rax
xor eax, eax
mov ecx, 0xa
rep stosb byte [rdi], al
mov byte [rsp + 0x50], 1
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x50]
mov r8d, 1
mov edx, 6
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 0x108]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x180016d9d
xor al, al
jmp 0x180016da3
mov al, 1
jmp 0x180016da3
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180023500
add rsp, 0x250
pop rdi
ret
Function at 0x180016eb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x1800d02c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x70], 0
mov dword [rsp + 0x24], 0x32000
movsxd rax, dword [rsp + 0x24]
mov rcx, rax
call fcn.180023564
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x24]
mov qword [rsp + 0x50], rax
mov rdi, qword [rsp + 0x28]
xor eax, eax
mov rcx, qword [rsp + 0x50]
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x30], 0
jle 0x180017031
xor r9d, r9d
mov r8d, 1
lea rdx, [rsp + 0x70]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x108]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x30], eax
movsx eax, byte [rsp + 0x70]
cmp eax, 0xa
jne 0x180016f64
jmp 0x180017031
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jl 0x180017010
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, rax
call fcn.180023564
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
mov rcx, qword [rsp + 0x60]
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x28]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.180023520
cmp qword [rsp + 0x40], 0
jne 0x180016ff3
mov qword [rsp + 0x68], 0
jmp 0x180017006
mov qword [rsp + 0x28], 0x8123
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx edx, byte [rsp + 0x70]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x180016f23
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180023500
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x1800171b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x1800171d8
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rcx + 0x110]
mov rsi, qword [rsp + 0x70]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x110]
mov byte [rcx + rax], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x20]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x110]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x108]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov r8d, 1
lea rdx, [0x1800b5244]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x108]
call qword [sym.imp.WS2_32.dll_send]
mov rax, qword [rsp + 0x60]
mov rdi, qword [rax + 0x110]
xor eax, eax
mov ecx, 0x500000
rep stosb byte [rdi], al
cmp dword [rsp + 0x28], 0xffffffff
je 0x180017298
mov dword [rsp + 0x24], 1
jmp 0x1800172a0
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1800172b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
cmp byte [rax + rcx], 0
jne 0x1800172d8
mov rax, qword [rsp + 0x28]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rcx + 0x110]
mov rsi, qword [rsp + 0x70]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x110]
mov byte [rcx + rax], 0
mov dword [rsp + 0x20], 0
jmp 0x18001733a
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jge 0x18001737a
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x110]
movsx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x60]
xor eax, dword [rcx + 0x118]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 0x110]
mov byte [rdx + rcx], al
jmp 0x180017330
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x110]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x108]
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, 1
lea rdx, [0x1800b521c]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x108]
call qword [sym.imp.WS2_32.dll_send]
mov rax, qword [rsp + 0x60]
mov rdi, qword [rax + 0x110]
xor eax, eax
mov ecx, 0x500000
rep stosb byte [rdi], al
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1800173e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [0x1800d02c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x108]
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x108]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180023500
add rsp, 0x38
ret
Function at 0x18001e5f4
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18001e658
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18001e646
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001e63f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18001e613
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180c089a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18001e668
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x180c08cf0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x18001e69e
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18001e6d4
mov eax, 0xa
jmp 0x18001e760
test esi, esi
je 0x18001e6f6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18001e717
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18001e717
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18001e711
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18001e717
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x18001ecf0
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18001ed07
cmp r8b, 0x90
je 0x18001ed07
cmp r8b, 0xcc
jne 0x18001ed29
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18001ed25
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18001ed29
add edx, r10d
cmp edx, r9d
jb 0x18001ed15
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x18001f090
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18001f0da
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x180c08ce0]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x18001f118
cmp rbx, r14
jb 0x18001f113
cmp rbx, r12
jae 0x18001f113
cmp qword [rbx + 8], rsi
jne 0x18001f26f
mov rbx, qword [rbx]
jmp 0x18001f0fa
mov r15, rdi
cmp rdi, r14
jb 0x18001f19c
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x18001f193
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001f193
cmp dword [rbp - 0x10], 0x10000
je 0x18001f163
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x18001f193
jmp 0x18001f12f
test r15, r15
je 0x18001f193
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18001f234
cmp r15, r14
jae 0x18001f120
test rbx, rbx
jne 0x18001f234
cmp rdi, r12
ja 0x18001f26f
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x18001f26f
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001f26f
cmp dword [rbp - 0x10], 0x10000
je 0x18001f20a
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x18001f1c3
test rdi, rdi
je 0x18001f26f
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x18001f196
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x18001f240
mov rax, qword [0x180c08ce0]
mov qword [rbx], rax
mov qword [0x180c08ce0], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x18001fd40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1800d02c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rcx
mov rdi, r8
mov ecx, 0x38
mov rbp, rdx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov dword [rsp + 0x20], 1
lea edx, [rsi - 2]
mov dword [rsp + 0x28], edx
mov rbx, rax
mov dword [rsp + 0x24], 1
test rax, rax
je 0x18001fdf7
mov ecx, recv
call fcn.180020ff0
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x20], rcx
lea rdx, [rsp + 0x20]
mov dword [rbx + 0x28], ecx
mov rcx, rax
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rdi
call fcn.180021070
imul rdi, rbp
mov edx, 1
imul rdi, rsi
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rbx + 0x30], rax
test rax, rax
je 0x18001fe21
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180023500
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
lea rdx, str.line__d:_No_more_memory_for_allocating_data_n
mov r8d, 0x1e
call fcn.18001f9f0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
lea rdx, str.line__d:_No_more_memory_for_allocating_data_n
mov r8d, 0x2f
call fcn.18001f9f0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3

Function at 0x180020ff0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, 0x20
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbx, rax
test rax, rax
je 0x18002103c
mov rcx, rdi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], 0
mov qword [rax + 8], 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbx], rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
lea rdx, str.line__d:_No_more_memory_for_allocating_data_n
mov r8d, 0x18
call fcn.18001f9f0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x18003d260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2d8]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.180029360
mov dword [rsp + 0x28], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x18003d2b6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x38]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x3c]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x24], r13d
test ebp, ebp
jg 0x18003d30d
mov ebp, 0x4b0000
jmp 0x18003d31b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.18002b550
mov ebp, eax
shl r13d, 0x10
mov ecx, ebp
mov dword [rsp + 0x20], r13d
call fcn.18002afa0
mov ecx, edi
mov ebx, eax
call fcn.18002afa0
add ebx, eax
cmp ebx, 0x2e
jl 0x18003d340
mov eax, r13d
jmp 0x18003d349
mov edx, edi
mov ecx, ebp
call fcn.18002b550
mov r8d, dword [rsp + 0x88]
mov ecx, r8d
shl ecx, 0x10
cmp eax, ecx
jge 0x18003d365
shl esi, 0x10
mov ecx, esi
jmp 0x18003d44d
mov edx, dword [rsp + 0x70]
mov r13d, edx
shl r13d, 0x10
cmp eax, r13d
jge 0x18003d3bb
mov ebx, edx
mov edx, edi
sub ebx, r8d
call fcn.180029360
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x18003d3ac
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.18002b340
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.180029360
add ebx, eax
jmp 0x18003d456
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov edx, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x18003d3c8
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x18003d407
mov eax, esi
mov ecx, r13d
sub eax, edx
mov edx, edi
mov dword [rsp + 0x70], eax
call fcn.180029360
mov r8d, dword [rsp + 0x70]
mov ecx, ebp
sub ecx, eax
test r8d, r8d
je 0x18003d40d
sub r12d, r15d
mov edx, r12d
call fcn.18002b340
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.180029360
add ebx, eax
jmp 0x18003d456
cmp eax, dword [rsp + 0x20]
jge 0x18003d446
mov r15d, dword [rsp + 0x24]
mov edx, edi
mov ecx, ebx
call fcn.180029360
sub ebp, eax
sub r15d, esi
je 0x18003d446
sub r14d, r12d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.18002b340
shl r12d, 0x10
mov edx, edi
mov ecx, r12d
mov ebx, eax
call fcn.180029360
add ebx, eax
jmp 0x18003d456
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.180029360
mov ebx, eax
mov edx, dword [rsp + 0x28]
mov ecx, ebx
call fcn.180029360
mov r15, qword [rsp + 0x30]
add eax, 0x8000
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
shr eax, 0x10
cwde
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
Function at 0x180073ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x28]
xor r14d, r14d
sub rax, 0x34
mov qword [rcx + 0x88], r14
mov qword [rcx + 0x30], rax
mov ebp, edx
mov rax, qword [rcx + 0x38]
mov rbx, rcx
mov word [rcx + 0x7a], r14w
mov esi, r14d
mov dword [rcx + 0x44], r14d
mov qword [rcx + 0x80], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x78], r14w
cmp r14w, word [rcx + 0xc8]
jge 0x180073c3a
movzx r11d, r14w
mov edi, r14d
nop word [rax + rax]
mov rax, qword [rbx + 0xe0]
mov r9d, ebp
mov dword [rbx + 0x98], r14d
movzx edx, r11w
mov qword [rbx + 0x90], r14
mov rcx, rbx
movzx r8d, word [rdi + rax]
call fcn.180073f20
test al, al
jne 0x180073c6c
mov rax, qword [rbx + 0xe0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x6c]
movzx r11d, word [rdi + rax]
lea eax, [r8 - 1]
test edx, eax
jne 0x180073bcb
cmp edx, dword [rbx + 0x70]
jl 0x180073bcb
cmp edx, dword [rbx + 0x74]
jg 0x180073bcb
mov r9, qword [rbx + 0x90]
test r9, r9
je 0x180073bcb
mov rax, qword [rbx + 0x80]
movzx ecx, byte [rax + 0x18]
xor cl, byte [r9 + 0x18]
test cl, 8
jne 0x180073bcb
add qword [rbx + 0x38], 0xfffffffffffffffc
mov r10, qword [rbx + 0x80]
mov rax, qword [r10 + 0x10]
cmp qword [rbx + 0x38], rax
je 0x180073bf1
test byte [r10 + 0x18], 8
je 0x180073bf1
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x180073c02
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.180074920
test al, al
jne 0x180073c6c
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x180073c21
mov qword [r10 + 0x28], rax
movsx eax, word [rbx + 0xc8]
inc esi
add rdi, 2
inc r11w
cmp esi, eax
jl 0x180073b50
mov rcx, rbx
call fcn.1800749d0
test al, al
jne 0x180073c6c
mov rax, qword [rbx + 0x30]
cmp qword [rbx + 0x38], rax
setae al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov al, 1
jmp 0x180073c51