joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d8bb7c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8dc5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8bb948
mov rax, qword [0x6d8dc5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8bb80c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8bb895
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8bb7f0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8bb97d
mov rax, qword [0x6d8dc5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8dc5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8bb960
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8bb88e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8bb8f0
add dword [0x6d8dc5e4], 1
cmp edi, 8
jae 0x6d8bb8c3
test dil, 4
jne 0x6d8bb934
test edi, edi
je 0x6d8bb8b8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8bb94f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8bb8b8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8bb8dc
jmp 0x6d8bb8b8
add rsi, qword [0x6d8dc5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8bb88e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8bb8b8
xor esi, esi
jmp 0x6d8bb817
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8bb8b8
mov rax, qword [0x6d8dc5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8bc0d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8dc8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8dc8a0]
test rbx, rbx
je 0x6d8bc124
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8bc11b
test rsi, rsi
je 0x6d8bc11b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8bc100
lea rcx, [0x6d8dc8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8bc360
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8bc370
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8bc380
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8bc3c1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8bc3b8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8bc3c3
add rax, 0x28
cmp rax, r9
jne 0x6d8bc3a4
xor eax, eax
ret

Function at 0x6d8bc460
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8d91f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8bc4cd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8bc4cd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8bc4cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8bc4c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8bc4cf
add rax, 0x28
cmp rax, r9
jne 0x6d8bc4b0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8bc5d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8d91f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8bc5f0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8bc5e8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8bc64d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8bc644
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8bc654
add rax, 0x28
cmp rax, r9
jne 0x6d8bc630
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8bc670
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8d91f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8bc6de
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8bc6de
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8bc6de
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8bc6de
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8bc6d5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8bc6e5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8bc6c0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8bc6f8
jmp 0x6d8bc6de
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8bc706
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8bc6de
test r9d, r9d
jg 0x6d8bc6f0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8bca70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x180009730
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, edx
mov edi, 0x40
shl rax, 4
mov rbx, rcx
cmp rax, 0x400
cmovbe edi, edx
cmp edi, dword [rcx]
je 0x1800098a6
mov rax, qword [0x180129dd0]
test rax, rax
je 0x180009767
call rax
mov ecx, edi
shl rcx, 4
call fcn.180005150
mov rcx, qword [0x180129dd8]
mov rdi, rax
test rcx, rcx
je 0x180009783
call rcx
test rdi, rdi
je 0x1800098a6
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x30], rsi
call fcn.1800055e0
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [0x180124e60]
movsxd rsi, eax
xor edx, edx
shr rsi, 4
mov rcx, rdi
mov r8d, esi
shl r8, 4
mov dword [rbx], esi
call fcn.1800ced40
mov rcx, qword [rbx + 8]
xor r10d, r10d
mov qword [rbx + 8], r10
test rcx, rcx
je 0x180009891
lea r11, [0x1801103d0]
nop dword [rax]
mov r9, qword [rcx + 0x18]
mov eax, r10d
movzx edx, byte [r9]
test dl, dl
je 0x180009811
nop
movzx edx, dl
lea r9, [r9 + 1]
movzx r8d, byte [rdx + r11]
lea edx, [rax*8]
xor r8d, edx
movzx edx, byte [r9]
xor eax, r8d
test dl, dl
jne 0x1800097f0
mov r9, qword [rcx]
xor edx, edx
div esi
mov r8d, edx
shl r8, 4
add r8, rdi
je 0x180009869
mov eax, dword [r8]
test eax, eax
je 0x180009831
mov rdx, qword [r8 + 8]
jmp 0x180009834
mov rdx, r10
inc eax
mov qword [r8 + 8], rcx
mov dword [r8], eax
test rdx, rdx
je 0x180009869
mov qword [rcx], rdx
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 8]
test rax, rax
je 0x18000985f
mov qword [rax], rcx
mov qword [rdx + 8], rcx
jmp 0x180009885
mov qword [rbx + 8], rcx
mov qword [rdx + 8], rcx
jmp 0x180009885
mov rax, qword [rbx + 8]
mov qword [rcx], rax
mov rax, qword [rbx + 8]
test rax, rax
je 0x18000987d
mov qword [rax + 8], rcx
mov qword [rcx + 8], r10
mov qword [rbx + 8], rcx
mov rcx, r9
test r9, r9
jne 0x1800097e0
mov rsi, qword [rsp + 0x30]
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1800098c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r11, qword [rcx + 0x10]
lea rsi, [0x1801103d0]
xor r9d, r9d
mov rdi, rdx
mov rbx, rcx
test r11, r11
je 0x18000992d
movzx eax, byte [rdx]
mov r10, rdx
test al, al
je 0x180009912
movzx eax, al
lea r10, [r10 + 1]
movzx ecx, byte [rax + rsi]
lea eax, [r9*8]
xor ecx, eax
movzx eax, byte [r10]
xor r9d, ecx
test al, al
jne 0x1800098f2
mov eax, r9d
xor edx, edx
div dword [rbx]
mov eax, edx
shl rax, 4
add rax, r11
mov r9d, edx
mov r11, qword [rax + 8]
mov ebx, dword [rax]
jmp 0x180009934
mov r11, qword [rcx + 8]
mov ebx, dword [rcx + 4]
mov dword [r8], r9d
test ebx, ebx
je 0x1800099a0
nop dword [rax + rax]
mov r10, qword [r11 + 0x18]
dec ebx
mov r8, rdi
movzx r9d, byte [r10]
test r9b, r9b
je 0x180009985
movzx eax, r9b
sub r10, rdi
nop dword [rax]
movzx edx, byte [r8]
movzx r9d, al
movzx ecx, al
movzx eax, byte [rdx + rsi]
cmp byte [rcx + rsi], al
jne 0x180009985
movzx eax, byte [r10 + r8 + 1]
inc r8
movzx r9d, al
test al, al
jne 0x180009960
movzx eax, byte [r8]
movzx ecx, byte [rax + rsi]
movzx eax, r9b
movzx eax, byte [rax + rsi]
cmp eax, ecx
je 0x1800099b2
mov r11, qword [r11]
test ebx, ebx
jne 0x180009940
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov rbx, qword [rsp + 8]
mov rax, r11
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x1800099d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rsi, rdx
lea r8, [rsp + 0x58]
mov rdi, rcx
call fcn.1800098c0
mov rcx, rax
test rax, rax
je 0x180009ac8
mov qword [rsp + 0x40], r14
mov r14, qword [rax + 0x10]
test rbp, rbp
jne 0x180009aab
mov rdx, qword [rax + 8]
mov rax, qword [rax]
test rdx, rdx
je 0x180009a1e
mov qword [rdx], rax
jmp 0x180009a22
mov qword [rdi + 8], rax
mov rdx, qword [rcx]
test rdx, rdx
je 0x180009a32
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x180009a55
mov edx, dword [rsp + 0x58]
shl rdx, 4
add rdx, rax
cmp qword [rdx + 8], rcx
jne 0x180009a53
mov rax, qword [rcx]
mov qword [rdx + 8], rax
dec dword [rdx]
call fcn.1800055e0
add dword [rdi + 4], 0xffffffff
jne 0x180009ab3
mov rsi, qword [rdi + 8]
xor ebp, ebp
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 8], rbp
call fcn.1800055e0
mov qword [rdi + 0x10], rbp
mov dword [rdi], ebp
test rsi, rsi
je 0x180009a93
nop
mov rbx, qword [rsi]
mov rcx, rsi
call fcn.1800055e0
mov rsi, rbx
test rbx, rbx
jne 0x180009a80
mov rax, r14
mov dword [rdi + 4], ebp
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, r14
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
test rbp, rbp
je 0x180009be5
mov ecx, 0x20
call fcn.180005150
mov rbx, rax
test rax, rax
jne 0x180009af3
mov rax, rbp
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov qword [rax + 0x10], rbp
xor ebp, ebp
mov qword [rax + 0x18], rsi
inc dword [rdi + 4]
mov edx, dword [rdi + 4]
cmp edx, 0xa
jb 0x180009b54
mov eax, dword [rdi]
add eax, eax
cmp edx, eax
jbe 0x180009b54
add edx, edx
mov rcx, rdi
call fcn.180009730
test eax, eax
je 0x180009b54
movzx ecx, byte [rsi]
mov eax, ebp
test cl, cl
je 0x180009b4e
lea r8, [0x1801103d0]
nop
movzx ecx, cl
lea rsi, [rsi + 1]
movzx edx, byte [rcx + r8]
lea ecx, [rax*8]
xor edx, ecx
movzx ecx, byte [rsi]
xor eax, edx
test cl, cl
jne 0x180009b30
xor edx, edx
div dword [rdi]
jmp 0x180009b58
mov edx, dword [rsp + 0x58]
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x180009bc9
mov ecx, edx
shl rcx, 4
add rcx, rax
je 0x180009bc9
mov eax, dword [rcx]
test eax, eax
je 0x180009b78
mov rdx, qword [rcx + 8]
jmp 0x180009b7b
mov rdx, rbp
inc eax
mov qword [rcx + 8], rbx
mov dword [rcx], eax
test rdx, rdx
je 0x180009bc9
mov qword [rbx], rdx
mov rax, qword [rdx + 8]
mov qword [rbx + 8], rax
mov rax, qword [rdx + 8]
test rax, rax
je 0x180009bb2
mov qword [rax], rbx
xor eax, eax
mov qword [rdx + 8], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov qword [rdi + 8], rbx
xor eax, eax
mov qword [rdx + 8], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rdi + 8]
mov qword [rbx], rax
mov rax, qword [rdi + 8]
test rax, rax
je 0x180009bdd
mov qword [rax + 8], rbx
mov qword [rbx + 8], rbp
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x180023cf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov r15, rcx
mov r14d, edx
mov r12d, r9d
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov r13, qword [r11]
mov r10, qword [rax + 8]
movsxd rax, dword [r10 + 0x30]
movsxd r10, dword [r11 + 0x30]
cmp eax, r10d
mov qword [rsp + 0x20], rax
mov ecx, r10d
cmovl ecx, eax
xor ebx, ebx
imul r14, rax
mov dword [rsp + 0x78], ecx
mov rcx, rax
cmp eax, r10d
je 0x180023d53
cmp byte [r13 + 0x13], bl
mov eax, 8
cmovne ebx, eax
mov rdi, r14
sub rdi, rcx
test ebx, ebx
jne 0x180023e74
mov qword [rsp + 0x88], rbp
mov rbp, r10
mov qword [rsp + 0x30], rsi
cmp rdi, r14
jge 0x180023e56
mov rax, rdi
mov qword [rsp + 0x70], 0
cqo
idiv rbp
mov rsi, rdx
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r15 + 8]
mov rcx, qword [rax + 8]
mov eax, dword [0x180124b28]
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x180023e4b
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, r10d
mov rcx, r13
call fcn.180013f60
mov ebx, eax
test eax, eax
jne 0x180023e3c
mov rcx, qword [rsp + 0x70]
call fcn.180014df0
mov ebx, eax
test eax, eax
jne 0x180023e3c
mov rax, qword [rsp + 0x70]
movsxd r8, dword [rsp + 0x78]
add rsi, qword [rax + 8]
mov rax, rdi
cqo
mov rcx, rsi
idiv qword [rsp + 0x20]
add rdx, qword [rsp + 0x80]
call fcn.1800cef60
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
mov byte [rcx], bl
test rdi, rdi
jne 0x180023e3c
test r12d, r12d
jne 0x180023e3c
mov rax, qword [r15 + 0x28]
mov rcx, qword [rax + 8]
mov edx, dword [rcx + 0x3c]
mov eax, edx
shr eax, 0x18
mov byte [rsi + 0x1c], al
mov eax, edx
shr eax, 0x10
mov byte [rsi + 0x1d], al
mov eax, edx
shr eax, 8
mov byte [rsi + 0x1e], al
mov byte [rsi + 0x1f], dl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180023e4b
call fcn.1800144b0
add rdi, rbp
test ebx, ebx
je 0x180023d71
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rbp, qword [rsp + 0x88]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
Function at 0x180034ea0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rsi, r8
mov rbp, rdx
call fcn.180005150
mov rbx, rax
test rax, rax
jne 0x180034edb
lea eax, [rbx + 7]
jmp 0x180034f46
cmp dword [0x180124e24], 0
je 0x180034f18
mov qword [rax + 0x10], rbp
lea r8, [0x180007ea0]
mov qword [rax + 0x18], rsi
mov r9, rbx
add rax, 8
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.1800d3a24
mov qword [rbx], rax
test rax, rax
jne 0x180034f28
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x10], 0
jne 0x180034f41
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rsi
mov dword [rbx + 8], eax
call rbp
mov qword [rbx + 0x20], rax
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180037200
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, qword [rcx + 0x48]
xor ebx, ebx
mov r14, qword [rcx + 0x10]
mov r15, r9
mov ebp, r8d
mov r13, rdx
mov rdi, qword [rsi + 0x30]
test rdi, rdi
jne 0x180037288
movzx eax, word [r14 + 6]
mov rcx, qword [r14 + 0x10]
imul rdx, rax, 0x38
add rdx, 0x58
call fcn.1800059e0
mov rdi, rax
test rax, rax
jne 0x18003725c
mov edi, ebx
jmp 0x180037273
add rax, 0x20
mov qword [rdi], r14
mov qword [rdi + 0x10], rax
movzx eax, word [r14 + 6]
inc ax
mov word [rdi + 8], ax
mov qword [rsi + 0x30], rdi
test rdi, rdi
jne 0x180037284
lea eax, [rdi + 7]
jmp 0x18003730a
mov word [rdi + 8], bp
cmp byte [rsi + 0x58], bl
je 0x1800372c2
cmp byte [rsi + 0x59], bl
je 0x1800372a0
mov rax, qword [rsi + 0x10]
mov r8, qword [rax + 0x28]
add rax, 0x14
jmp 0x1800372ca
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rcx + rcx*4]
shl rax, 4
add rax, qword [rdx + 0x18]
mov r8, qword [rax + 0x28]
add rax, 0x14
jmp 0x1800372ca
mov rax, qword [rsi + 0x38]
lea r8, [rax + 0x10]
mov edx, dword [rax]
mov r9, rdi
mov rcx, r14
call fcn.180029630
test ebp, ebp
jle 0x1800372f2
mov rax, qword [rdi + 0x10]
add rax, 8
test byte [rax], 1
jne 0x180037329
inc ebx
add rax, 0x38
cmp ebx, ebp
jl 0x1800372e3
mov rdx, qword [r13 + 0x10]
xor r9d, r9d
mov ecx, dword [r13 + 0xc]
mov r8, rdi
call fcn.180029aa0
mov dword [r15], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
mov dword [r15], 0xffffffff
jmp 0x180037308
Function at 0x18003dfe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
mov r14, qword [rcx + 0x10]
xor r10d, r10d
mov rbx, rcx
mov esi, r9d
add rcx, 0x88
mov ebp, r8d
nop dword [rax]
cmp dword [rcx + 0xc], 0
jle 0x18003e022
cmp dword [rcx], esi
jne 0x18003e022
movsx eax, word [rcx + 4]
cmp eax, ebp
je 0x18003e078
inc r10d
add rcx, 0x14
cmp r10d, 0xa
jl 0x18003e010
mov qword [rsp + 0x40], rdi
mov r9d, ebp
mov edi, dword [rsp + 0x60]
mov r8d, esi
mov rcx, r14
mov dword [rsp + 0x20], edi
call fcn.18003df00
movzx r8d, byte [rsp + 0x68]
test r8b, r8b
je 0x18003e11f
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x18003e12f
movsxd rax, dword [r14 + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], r8b
jmp 0x18003e12f
mov eax, dword [rbx + 0x74]
mov dword [rcx + 0x10], eax
inc dword [rbx + 0x74]
mov eax, dword [rcx + 0xc]
cmp dword [rbx + 0x94], eax
jne 0x18003e093
mov byte [rbx + 0x8e], 0
cmp dword [rbx + 0xa8], eax
jne 0x18003e0a2
mov byte [rbx + 0xa2], 0
cmp dword [rbx + 0xbc], eax
jne 0x18003e0b1
mov byte [rbx + 0xb6], 0
cmp dword [rbx + 0xd0], eax
jne 0x18003e0c0
mov byte [rbx + 0xca], 0
cmp dword [rbx + 0xe4], eax
jne 0x18003e0cf
mov byte [rbx + 0xde], 0
cmp dword [rbx + 0xf8], eax
jne 0x18003e0de
mov byte [rbx + 0xf2], 0
cmp dword [rbx + 0x10c], eax
jne 0x18003e0ed
mov byte [rbx + 0x106], 0
cmp dword [rbx + 0x120], eax
jne 0x18003e0fc
mov byte [rbx + 0x11a], 0
cmp dword [rbx + 0x134], eax
jne 0x18003e10b
mov byte [rbx + 0x12e], 0
cmp dword [rbx + 0x148], eax
jne 0x18003e11a
mov byte [rbx + 0x142], 0
mov eax, dword [rcx + 0xc]
jmp 0x18003e136
mov r9d, edi
mov r8d, ebp
mov edx, esi
mov rcx, rbx
call fcn.18003d7c0
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1800403d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x180040558
test rdx, rdx
je 0x180040558
mov r9d, dword [rdx + 4]
mov r11d, dword [rcx + 4]
mov qword [rsp + 0x30], rsi
mov esi, r9d
or esi, r11d
bt esi, 0xa
jae 0x180040444
and r9d, r11d
bt r9d, 0xa
jae 0x18004054e
mov eax, dword [rdx + 8]
cmp dword [rcx + 8], eax
jne 0x18004054e
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx r8d, byte [rcx]
cmp r8b, byte [rdx]
je 0x18004048c
cmp r8b, 0x5f
jne 0x180040464
mov rcx, qword [rcx + 0x10]
mov r8d, ebp
call fcn.1800403d0
cmp eax, 2
jl 0x180040485
cmp byte [rbx], 0x5f
jne 0x18004054e
mov rdx, qword [rbx + 0x10]
mov r8d, ebp
mov rcx, rdi
call fcn.1800403d0
cmp eax, 2
jge 0x18004054e
mov eax, 1
jmp 0x18004042f
lea eax, [r8 + 0x66]
test al, 0xfd
je 0x1800404cb
mov rax, qword [rcx + 8]
test rax, rax
je 0x1800404cb
mov r10, qword [rdx + 8]
sub r10, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r10]
sub edx, ecx
jne 0x1800404b7
inc rax
test ecx, ecx
jne 0x1800404a4
test edx, edx
je 0x1800404cb
xor eax, eax
cmp r8b, 0x5f
setne al
inc eax
jmp 0x18004042f
xor r9d, r11d
test r9b, 0x10
jne 0x18004054e
bt esi, 0xe
jb 0x18004042d
bt esi, 0xb
jb 0x18004054e
mov rdx, qword [rbx + 0x10]
mov r8d, ebp
mov rcx, qword [rdi + 0x10]
call fcn.1800403d0
test eax, eax
jne 0x18004054e
mov rdx, qword [rbx + 0x18]
mov r8d, ebp
mov rcx, qword [rdi + 0x18]
call fcn.1800403d0
test eax, eax
jne 0x18004054e
mov rdx, qword [rbx + 0x20]
mov r8d, ebp
mov rcx, qword [rdi + 0x20]
call fcn.180040580
test eax, eax
jne 0x18004054e
bt esi, 0xd
jb 0x18004042d
movzx eax, word [rbx + 0x30]
cmp word [rdi + 0x30], ax
jne 0x18004054e
mov ecx, dword [rdi + 0x2c]
mov eax, dword [rbx + 0x2c]
cmp ecx, eax
je 0x18004042d
cmp ecx, ebp
jne 0x18004054e
test eax, eax
js 0x18004042d
mov eax, 2
jmp 0x18004042f
mov rbp, qword [rsp + 0x40]
xor eax, eax
cmp rbx, rdi
mov ecx, 2
mov rbx, qword [rsp + 0x38]
cmove ecx, eax
mov eax, ecx
add rsp, 0x20
pop rdi
ret