joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013930
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.14002eed0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov rbx, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r14, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r14
lea r15, [0x140019fa0]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xfb0]
mov rcx, rbx
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x140013b21
mov r12, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov r13, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x1400139f7
cmp dword [rbp + 0xff0], 0
jne 0x140013b36
mov eax, dword [rbp + 0xff4]
test rax, rax
je 0x140013b36
cmp eax, 0x1000
ja 0x140013b81
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rax
ja 0x140013b66
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov rdi, rax
mov r8d, eax
sub r8d, ebx
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call r13
test eax, eax
je 0x140013b29
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x140013aa0
cmp dword [rbp + 0xff0], 0
jne 0x140013b2f
mov eax, dword [rbp + 0xff4]
add rbx, rax
mov rax, rdi
cmp rbx, rdi
jne 0x140013a40
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rbx, qword [rbp + 0xfe0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1400139f7
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x140013b36
call qword [sym.imp.kernel32.dll_GetLastError]
mov rbx, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbx
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov qword [rbp + 0xfd0], rax
mov rdx, rax
call fcn.140030cc0
jmp 0x140013b9c
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfd0], rax
mov rcx, rax
call fcn.140030c50
ud2
Function at 0x1400175b0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140020420
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140017665
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140019000
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140017665
mov rcx, rdi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x140017639
test rsi, rsi
je 0x140017635
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140002690
xor esi, esi
jmp 0x140017665
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140017662
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140002690
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140017670
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.140020420
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
test rax, rax
je 0x1400177aa
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.140019000
mov rax, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rax, rax
je 0x1400177aa
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], rsi
lea rcx, [rbp - 0x18]
mov rdx, rbx
mov r8, rdi
call fcn.140020420
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
test rax, rax
je 0x140017789
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.140019000
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rdi, rdi
je 0x140017789
mov r15, qword [rbp - 0x20]
mov rcx, r15
mov rdx, rdi
mov r8d, 1
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
mov r14, qword [rbp - 0x28]
je 0x1400177ba
test rsi, rsi
je 0x14001776c
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140002690
test r14, r14
je 0x140017785
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.140002690
xor esi, esi
jmp 0x1400177aa
mov r14, qword [rbp - 0x28]
mov r15, qword [rbp - 0x20]
test r14, r14
je 0x1400177aa
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.140002690
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400177e3
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140002690
mov rsi, rbx
test r14, r14
jne 0x140017796
jmp 0x1400177aa
Function at 0x140017b30
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x20]
call fcn.140020420
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
test rax, rax
je 0x140017c42
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.140019000
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
test rax, rax
je 0x140017c42
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], rdx
mov r8, qword [rbp + 0x50]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call fcn.140020420
mov rax, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x18]
test rax, rax
je 0x140017c4f
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.140019000
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
test rbx, rbx
je 0x140017c4f
mov qword [rbp - 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140017cf0]
lea r9, [rbp - 0x20]
mov r14, qword [rbp - 0x28]
mov rcx, r14
mov rdx, rbx
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x140017c60
mov rax, qword [rbp - 0x20]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rdi, rdi
jne 0x140017c7e
jmp 0x140017c92
mov qword [rsi + 8], rdx
mov qword [rsi], 1
jmp 0x140017cac
mov r14, qword [rbp - 0x28]
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140017c92
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdi, rdi
je 0x140017c92
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call fcn.140002690
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x140017cac
add rdx, rdx
mov r8d, 2
mov rcx, r14
call fcn.140002690
mov rax, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140017d10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1403d5058]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140017d54
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140017dba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140017df1
test eax, eax
js 0x140017dcb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140017de4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.hP_
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140005fc0
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.14000fba0
mov rcx, rax
call fcn.1400072a0
mov ecx, 7
int 0x29
ud2
Function at 0x14001e870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
sub esp, 0x88

Function at 0x14001f4c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14001f503
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14000df70]
mov qword [rbp - 0x28], rax
lea rax, [0x1403d5510]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400307c0
ud2

Function at 0x14001fb40
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1403e1121]
mov ecx, 0x10
mov edx, 8
or byte [rax], al
add byte [rax], al
call fcn.140002680
test rax, rax
je 0x14001fc1f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14001fcb0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
adc eax, 0x116ff
mov rdx, rax
test rax, rax
jne 0x14001fc11
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
or byte [rax - 0x7b], cl
invalid
je 0x14001fbe8
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140002690
mov edx, 0x10
mov r8d, 8
add byte [rax], al
mov rcx, qword [rbp - 0x18]
call fcn.140002690
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rsi
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x18], edi
mov ecx, 8
mov edx, 0x10
call fcn.140030750
ud2
Function at 0x14002d670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002d6ea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14002d6e0
cmp r11, r10
ja 0x14002d783
cmp r10, rdx
ja 0x14002d797
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14002d6e2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002d6c0
jmp 0x14002d757
ja 0x14002d6ea
mov r11, r10
cmp rax, r8
jne 0x14002d692
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002d75b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14002d730
mov r8, r10
sub ecx, r9d
jns 0x14002d74e
jmp 0x14002d75d
cmp r10, rdx
je 0x14002d769
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002d75d
xor al, 1
cmp r8, rdx
jne 0x14002d710
jmp 0x14002d75d
xor eax, eax
jmp 0x14002d75d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140030860
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140030cc0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140030c50
ud2
Function at 0x180003300
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x18021c400]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x1802350a6]
call fcn.18013ebd0
mov rax, qword [rbp + 0x178]
sub rax, 0x10000
mov rcx, rax
call fcn.1800035e0
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x170]
cmp qword [rbp + 8], rax
jbe 0x180003438
mov rax, qword [section..data]
cmp qword [rbp + 8], rax
jb 0x1800033a2
mov rax, qword [0x1801ae008]
cmp qword [rbp + 8], rax
ja 0x1800033a2
mov rax, qword [rbp + 8]
sub rax, 0x8000000
mov qword [rbp + 8], rax
jmp 0x180003367
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140D.dll_memset
mov r8d, 0x30
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800033ce
jmp 0x180003438
cmp dword [rbp + 0x48], 0x10000
jne 0x18000341d
cmp qword [rbp + 0x40], 0x10000
jb 0x18000341d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
je 0x18000340d
mov rax, qword [rbp + 0x78]
jmp 0x18000343a
mov rax, qword [rbp + 8]
sub rax, 0x10000
mov qword [rbp + 8], rax
jmp 0x180003433
mov rax, qword [rbp + 0x30]
sub rax, 0x10000
mov rcx, rax
call fcn.1800035e0
mov qword [rbp + 8], rax
jmp 0x180003367
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014a440]
call fcn.18013e9a0
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.18013ee20
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x180003470
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x18021c400]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x1802350a6]
call fcn.18013ebd0
mov rcx, qword [rbp + 0x170]
call fcn.180003640
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x178]
cmp qword [rbp + 8], rax
jae 0x1800035a3
mov rax, qword [section..data]
cmp qword [rbp + 8], rax
jb 0x180003509
mov rax, qword [0x1801ae008]
cmp qword [rbp + 8], rax
ja 0x180003509
mov rax, qword [rbp + 8]
add rax, 0x8000000
mov qword [rbp + 8], rax
jmp 0x1800034ce
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140D.dll_memset
mov r8d, 0x30
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003535
jmp 0x1800035a3
cmp dword [rbp + 0x48], 0x10000
jne 0x180003584
cmp qword [rbp + 0x40], 0x10000
jb 0x180003584
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
je 0x180003574
mov rax, qword [rbp + 0x78]
jmp 0x1800035a5
mov rax, qword [rbp + 8]
add rax, 0x10000
mov qword [rbp + 8], rax
jmp 0x18000359e
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180003640
mov qword [rbp + 8], rax
jmp 0x1800034ce
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014a3e0]
call fcn.18013e9a0
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.18013ee20
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x1800048c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x18021c400]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x1802350a6]
call fcn.18013ebd0
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180004943
xor al, al
jmp 0x1800049da
mov rax, qword [rbp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
cmp dword [rax], 0x4550
je 0x180004969
xor al, al
jmp 0x1800049da
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rbp + 0x78]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x58]
add rcx, rax
mov rax, rcx
cmp qword [rbp + 0x1b8], rax
jb 0x1800049d2
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rbp + 0x78]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x58]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rbp + 0x78]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rbp + 0x1b8], rax
jae 0x1800049d2
mov al, 1
jmp 0x1800049da
jmp 0x1800049d8
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014a2c0]
call fcn.18013e9a0
mov rax, rdi
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.18013ee20
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret

Function at 0x180004a10
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x1802350a6]
call fcn.18013ebd0
mov rax, qword [rbp + 0x160]
cmp dword [rax], 0x52727464
je 0x180004a45
xor eax, eax
jmp 0x180004ad4
mov rax, qword [rbp + 0x160]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
add rax, 0x10000
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x160]
add rax, 0x60
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
jmp 0x180004a7e
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0x2a9
jae 0x180004acf
movsxd rax, dword [rbp + 0x64]
imul rax, rax, 0x60
mov rcx, qword [rbp + 0x48]
cmp qword [rcx + rax + 0x48], 0
je 0x180004acd
movsxd rax, dword [rbp + 0x64]
imul rax, rax, 0x60
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 8]
cmp qword [rcx + rax + 0x48], rdx
jb 0x180004ac9
movsxd rax, dword [rbp + 0x64]
imul rax, rax, 0x60
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x28]
cmp qword [rcx + rax + 0x48], rdx
jb 0x180004acd
xor eax, eax
jmp 0x180004ad4
jmp 0x180004a76
mov eax, 1
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x180004db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, send
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x18021c400]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x1802350a6]
call fcn.18013ebd0
mov rax, qword [0x18021c790]
mov qword [rbp + 8], rax
jmp 0x180004e06
mov rax, qword [rbp + 8]
mov rax, qword [rax + 8]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180004e34
lea r9, [rbp + 0x24]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180004e32
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180004e36
jmp 0x180004dfa
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014a320]
call fcn.18013e9a0
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.18013ee20
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x180005ab0
Capabilities:
Resume thread

Disassembly:
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x18021c400]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1802350a6]
call fcn.18013ebd0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18021c7a8], eax
je 0x180005b05
mov eax, 0x10dd
jmp 0x180005c77
mov rax, qword [0x18021c7c0]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180005bcf
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rbp + 0x24]
mov rcx, qword [rbp + 8]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 0
jne 0x180005b71
mov rax, qword [rbp + 8]
cmp qword [rax + 0x20], 0
je 0x180005b71
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x20]
call fcn.180003e90
mov rax, qword [rbp + 8]
mov qword [rax + 0x20], 0
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x168], rax
mov edx, 0x30
mov rcx, qword [rbp + 0x168]
call fcn.18013e940
cmp qword [rbp + 0x168], 0
jne 0x180005baf
mov qword [rbp + 0x198], 0
jmp 0x180005bc2
mov qword [rbp + 8], 0x8123
mov rax, qword [rbp + 8]
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 8], rax
jmp 0x180005b10
mov qword [0x18021c7c0], 0
call fcn.180004ae0
mov rax, qword [0x18021c7b8]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x180005c60
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x188], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rbp + 0x188]
call fcn.18013e940
cmp qword [rbp + 0x188], 0
jne 0x180005c40
mov qword [rbp + 0x198], 0
jmp 0x180005c53
mov qword [rbp + 0x68], 0x8123
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x68], rax
jmp 0x180005bea
mov qword [0x18021c7b8], 0
mov dword [0x18021c7a8], 0
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x180149f70]
call fcn.18013e9a0
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.18013ee20
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret