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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0a4]
mov rbx, rcx
test esi, esi
jle 0x140001e20
mov rax, qword [0x14000d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001d3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001dc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001d20
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001e42
mov rax, qword [0x14000d0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001dbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001dd0
add dword [0x14000d0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001dbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001d48
mov rax, qword [0x14000d0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400023b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x14000240c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002403
test rsi, rsi
je 0x140002403
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400023e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002620
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002638
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002640
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002650
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000269d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002694
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000269f
add rax, 0x28
cmp rax, r9
jne 0x140002680
xor eax, eax
ret

Function at 0x1400026a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002730
mov rdx, qword [0x14000a880]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000271e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000271e
cmp word [rax + 0x18], 0x20b
jne 0x14000271e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002730
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002709
add rbx, 0x28
cmp rbx, rdi
je 0x140002730
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002700
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002740
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a880]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002760
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002768
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002760
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400027bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400027b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002760
add rax, 0x28
cmp rax, r9
jne 0x1400027a0
xor eax, eax
ret

Function at 0x1400027c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a880]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400027df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400027e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400027df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002800
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a880]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002820
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002828
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002820
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002870
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002867
test rcx, rcx
je 0x140002820
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002858
xor eax, eax
ret
Function at 0x140002880
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a880]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000289f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400028a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400028c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a880]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400028e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400028e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028e0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400028e0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002934
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002940
add rdx, 0x28
cmp r9, rdx
jne 0x140002920
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002950
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a880]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002972
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002980
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002972
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002972
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002972
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400029d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400029e8
add rdx, 0x28
cmp rdx, r10
jne 0x1400029c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400029f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002a07
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400029de
test ecx, ecx
jg 0x1400029f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180009900
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 0x180009a76
mov rax, qword [0x180129dd0]
test rax, rax
je 0x180009937
call rax
mov ecx, edi
shl rcx, 4
call fcn.180005260
mov rcx, qword [0x180129dd8]
mov rdi, rax
test rcx, rcx
je 0x180009953
call rcx
test rdi, rdi
je 0x180009a76
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x30], rsi
call fcn.1800056f0
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.1800cdea0
mov rcx, qword [rbx + 8]
xor r10d, r10d
mov qword [rbx + 8], r10
test rcx, rcx
je 0x180009a61
lea r11, [0x18010f3d0]
nop dword [rax]
mov r9, qword [rcx + 0x18]
mov eax, r10d
movzx edx, byte [r9]
test dl, dl
je 0x1800099e1
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 0x1800099c0
mov r9, qword [rcx]
xor edx, edx
div esi
mov r8d, edx
shl r8, 4
add r8, rdi
je 0x180009a39
mov eax, dword [r8]
test eax, eax
je 0x180009a01
mov rdx, qword [r8 + 8]
jmp 0x180009a04
mov rdx, r10
inc eax
mov qword [r8 + 8], rcx
mov dword [r8], eax
test rdx, rdx
je 0x180009a39
mov qword [rcx], rdx
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 8]
test rax, rax
je 0x180009a2f
mov qword [rax], rcx
mov qword [rdx + 8], rcx
jmp 0x180009a55
mov qword [rbx + 8], rcx
mov qword [rdx + 8], rcx
jmp 0x180009a55
mov rax, qword [rbx + 8]
mov qword [rcx], rax
mov rax, qword [rbx + 8]
test rax, rax
je 0x180009a4d
mov qword [rax + 8], rcx
mov qword [rcx + 8], r10
mov qword [rbx + 8], rcx
mov rcx, r9
test r9, r9
jne 0x1800099b0
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 0x180009a90
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, [0x18010f3d0]
xor r9d, r9d
mov rdi, rdx
mov rbx, rcx
test r11, r11
je 0x180009afd
movzx eax, byte [rdx]
mov r10, rdx
test al, al
je 0x180009ae2
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 0x180009ac2
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 0x180009b04
mov r11, qword [rcx + 8]
mov ebx, dword [rcx + 4]
mov dword [r8], r9d
test ebx, ebx
je 0x180009b70
nop dword [rax + rax]
mov r10, qword [r11 + 0x18]
dec ebx
mov r8, rdi
movzx r9d, byte [r10]
test r9b, r9b
je 0x180009b55
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 0x180009b55
movzx eax, byte [r10 + r8 + 1]
inc r8
movzx r9d, al
test al, al
jne 0x180009b30
movzx eax, byte [r8]
movzx ecx, byte [rax + rsi]
movzx eax, r9b
movzx eax, byte [rax + rsi]
cmp eax, ecx
je 0x180009b82
mov r11, qword [r11]
test ebx, ebx
jne 0x180009b10
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 0x180009ba0
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.180009a90
mov rcx, rax
test rax, rax
je 0x180009c98
mov qword [rsp + 0x40], r14
mov r14, qword [rax + 0x10]
test rbp, rbp
jne 0x180009c7b
mov rdx, qword [rax + 8]
mov rax, qword [rax]
test rdx, rdx
je 0x180009bee
mov qword [rdx], rax
jmp 0x180009bf2
mov qword [rdi + 8], rax
mov rdx, qword [rcx]
test rdx, rdx
je 0x180009c02
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x180009c25
mov edx, dword [rsp + 0x58]
shl rdx, 4
add rdx, rax
cmp qword [rdx + 8], rcx
jne 0x180009c23
mov rax, qword [rcx]
mov qword [rdx + 8], rax
dec dword [rdx]
call fcn.1800056f0
add dword [rdi + 4], 0xffffffff
jne 0x180009c83
mov rsi, qword [rdi + 8]
xor ebp, ebp
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 8], rbp
call fcn.1800056f0
mov qword [rdi + 0x10], rbp
mov dword [rdi], ebp
test rsi, rsi
je 0x180009c63
nop
mov rbx, qword [rsi]
mov rcx, rsi
call fcn.1800056f0
mov rsi, rbx
test rbx, rbx
jne 0x180009c50
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 0x180009db5
mov ecx, 0x20
call fcn.180005260
mov rbx, rax
test rax, rax
jne 0x180009cc3
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 0x180009d24
mov eax, dword [rdi]
add eax, eax
cmp edx, eax
jbe 0x180009d24
add edx, edx
mov rcx, rdi
call fcn.180009900
test eax, eax
je 0x180009d24
movzx ecx, byte [rsi]
mov eax, ebp
test cl, cl
je 0x180009d1e
lea r8, [0x18010f3d0]
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 0x180009d00
xor edx, edx
div dword [rdi]
jmp 0x180009d28
mov edx, dword [rsp + 0x58]
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x180009d99
mov ecx, edx
shl rcx, 4
add rcx, rax
je 0x180009d99
mov eax, dword [rcx]
test eax, eax
je 0x180009d48
mov rdx, qword [rcx + 8]
jmp 0x180009d4b
mov rdx, rbp
inc eax
mov qword [rcx + 8], rbx
mov dword [rcx], eax
test rdx, rdx
je 0x180009d99
mov qword [rbx], rdx
mov rax, qword [rdx + 8]
mov qword [rbx + 8], rax
mov rax, qword [rdx + 8]
test rax, rax
je 0x180009d82
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 0x180009dad
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 0x1800348d0
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.180005260
mov rbx, rax
test rax, rax
jne 0x18003490b
lea eax, [rbx + 7]
jmp 0x180034976
cmp dword [0x180124e24], 0
je 0x180034948
mov qword [rax + 0x10], rbp
lea r8, [0x180008040]
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.1800d2b84
mov qword [rbx], rax
test rax, rax
jne 0x180034958
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 0x180034971
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 0x180036bf0
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 0x180036c78
movzx eax, word [r14 + 6]
mov rcx, qword [r14 + 0x10]
imul rdx, rax, 0x38
add rdx, 0x58
call fcn.180005af0
mov rdi, rax
test rax, rax
jne 0x180036c4c
mov edi, ebx
jmp 0x180036c63
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 0x180036c74
lea eax, [rdi + 7]
jmp 0x180036cfa
mov word [rdi + 8], bp
cmp byte [rsi + 0x58], bl
je 0x180036cb2
cmp byte [rsi + 0x59], bl
je 0x180036c90
mov rax, qword [rsi + 0x10]
mov r8, qword [rax + 0x28]
add rax, 0x14
jmp 0x180036cba
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 0x180036cba
mov rax, qword [rsi + 0x38]
lea r8, [rax + 0x10]
mov edx, dword [rax]
mov r9, rdi
mov rcx, r14
call fcn.180029150
test ebp, ebp
jle 0x180036ce2
mov rax, qword [rdi + 0x10]
add rax, 8
test byte [rax], 1
jne 0x180036d19
inc ebx
add rax, 0x38
cmp ebx, ebp
jl 0x180036cd3
mov rdx, qword [r13 + 0x10]
xor r9d, r9d
mov ecx, dword [r13 + 0xc]
mov r8, rdi
call fcn.1800295d0
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 0x180036cf8
Function at 0x18003da30
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 0x18003da72
cmp dword [rcx], esi
jne 0x18003da72
movsx eax, word [rcx + 4]
cmp eax, ebp
je 0x18003dac8
inc r10d
add rcx, 0x14
cmp r10d, 0xa
jl 0x18003da60
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.18003d950
movzx r8d, byte [rsp + 0x68]
test r8b, r8b
je 0x18003db6f
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x18003db7f
movsxd rax, dword [r14 + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], r8b
jmp 0x18003db7f
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 0x18003dae3
mov byte [rbx + 0x8e], 0
cmp dword [rbx + 0xa8], eax
jne 0x18003daf2
mov byte [rbx + 0xa2], 0
cmp dword [rbx + 0xbc], eax
jne 0x18003db01
mov byte [rbx + 0xb6], 0
cmp dword [rbx + 0xd0], eax
jne 0x18003db10
mov byte [rbx + 0xca], 0
cmp dword [rbx + 0xe4], eax
jne 0x18003db1f
mov byte [rbx + 0xde], 0
cmp dword [rbx + 0xf8], eax
jne 0x18003db2e
mov byte [rbx + 0xf2], 0
cmp dword [rbx + 0x10c], eax
jne 0x18003db3d
mov byte [rbx + 0x106], 0
cmp dword [rbx + 0x120], eax
jne 0x18003db4c
mov byte [rbx + 0x11a], 0
cmp dword [rbx + 0x134], eax
jne 0x18003db5b
mov byte [rbx + 0x12e], 0
cmp dword [rbx + 0x148], eax
jne 0x18003db6a
mov byte [rbx + 0x142], 0
mov eax, dword [rcx + 0xc]
jmp 0x18003db86
mov r9d, edi
mov r8d, ebp
mov edx, esi
mov rcx, rbx
call fcn.18003d210
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 0x18003fdd0
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 0x18003ff58
test rdx, rdx
je 0x18003ff58
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 0x18003fe44
and r9d, r11d
bt r9d, 0xa
jae 0x18003ff4e
mov eax, dword [rdx + 8]
cmp dword [rcx + 8], eax
jne 0x18003ff4e
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 0x18003fe8c
cmp r8b, 0x5f
jne 0x18003fe64
mov rcx, qword [rcx + 0x10]
mov r8d, ebp
call fcn.18003fdd0
cmp eax, 2
jl 0x18003fe85
cmp byte [rbx], 0x5f
jne 0x18003ff4e
mov rdx, qword [rbx + 0x10]
mov r8d, ebp
mov rcx, rdi
call fcn.18003fdd0
cmp eax, 2
jge 0x18003ff4e
mov eax, 1
jmp 0x18003fe2f
lea eax, [r8 + 0x66]
test al, 0xfd
je 0x18003fecb
mov rax, qword [rcx + 8]
test rax, rax
je 0x18003fecb
mov r10, qword [rdx + 8]
sub r10, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r10]
sub edx, ecx
jne 0x18003feb7
inc rax
test ecx, ecx
jne 0x18003fea4
test edx, edx
je 0x18003fecb
xor eax, eax
cmp r8b, 0x5f
setne al
inc eax
jmp 0x18003fe2f
xor r9d, r11d
test r9b, 0x10
jne 0x18003ff4e
bt esi, 0xe
jb 0x18003fe2d
bt esi, 0xb
jb 0x18003ff4e
mov rdx, qword [rbx + 0x10]
mov r8d, ebp
mov rcx, qword [rdi + 0x10]
call fcn.18003fdd0
test eax, eax
jne 0x18003ff4e
mov rdx, qword [rbx + 0x18]
mov r8d, ebp
mov rcx, qword [rdi + 0x18]
call fcn.18003fdd0
test eax, eax
jne 0x18003ff4e
mov rdx, qword [rbx + 0x20]
mov r8d, ebp
mov rcx, qword [rdi + 0x20]
call fcn.18003ff80
test eax, eax
jne 0x18003ff4e
bt esi, 0xd
jb 0x18003fe2d
movzx eax, word [rbx + 0x30]
cmp word [rdi + 0x30], ax
jne 0x18003ff4e
mov ecx, dword [rdi + 0x2c]
mov eax, dword [rbx + 0x2c]
cmp ecx, eax
je 0x18003fe2d
cmp ecx, ebp
jne 0x18003ff4e
test eax, eax
js 0x18003fe2d
mov eax, 2
jmp 0x18003fe2f
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