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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401c58
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401b1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401ba5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401b00
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401c8d
mov rax, qword [0x00407628]
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 [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401c70
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401b9e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401c00
add dword [0x00407624], 1
cmp edi, 8
jae 0x401bd3
test dil, 4
jne 0x401c44
test edi, edi
je 0x401bc8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401c5f
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 0x401bc8
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 0x401bec
jmp 0x401bc8
add rsi, qword [0x00407628]
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 0x401b9e
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 0x401bc8
xor esi, esi
jmp 0x401b27
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401bc8
mov rax, qword [0x00407628]
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 0x4023e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402434
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 0x40242b
test rsi, rsi
je 0x40242b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402410
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402670
Capabilities:
Parse pe header

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

Function at 0x402690
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 0x4026d1
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 0x4026c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4026d3
add rax, 0x28
cmp rax, r9
jne 0x4026b4
xor eax, eax
ret

Function at 0x402770
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004045c0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4027dd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4027dd
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 0x4027dd
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 0x4027d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4027df
add rax, 0x28
cmp rax, r9
jne 0x4027c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4028e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004045c0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402900
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028f8
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 0x40295d
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 0x402954
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402964
add rax, 0x28
cmp rax, r9
jne 0x402940
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402980
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004045c0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4029ee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029ee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4029ee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4029ee
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 0x4029e5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4029f5
add rcx, 0x28
cmp rcx, rax
jne 0x4029d0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402a08
jmp 0x4029ee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402a16
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4029ee
test r9d, r9d
jg 0x402a00
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402c60
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 0x1238000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x123800a
jmp 0x123a00f
jmp fcn.00e2e058
Function at 0x140001424
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rcx, qword gs:[0x60]
xor eax, eax
cmp byte [rcx + 2], al
setne al
ret

Function at 0x14000143c
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov rax, qword gs:[0x60]
test byte [rax + 0xbc], 0x70
mov eax, 0
setne al
ret

Function at 0x14000167c
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process filename

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword gs:[0x60]
xor ebx, ebx
mov rcx, qword [rax + 0x18]
mov rcx, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x50]
call fcn.14000506c
mov edx, eax
mov dword [rsp + 0x20], 0x7d73878e
lea rax, [rsp + 0x20]
mov dword [rsp + 0x24], 0xef36424b
mov dword [rsp + 0x28], 0xaf64bc2b
mov ecx, ebx
mov dword [rsp + 0x2c], 0x1dbbc879
mov dword [rsp + 0x30], 0xae6d1d56
mov dword [rsp + 0x34], 0x7b3242f2
mov dword [rsp + 0x38], 0x14d922b9
mov dword [rsp + 0x3c], 0x4c92df53
cmp edx, dword [rax]
je 0x1400016f8
inc ecx
add rax, 4
cmp ecx, 8
jb 0x1400016e7
jmp 0x1400016fd
mov ebx, 1
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x1400019b4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
xor ebx, ebx
lea rcx, [0x1400080f0]
mov dword [rbp + 0x67], ebx
lea edx, [rbx + 0x5f]
lea r8d, [rbx + 1]
call fcn.140004ed4
xor r8d, r8d
mov qword [rbp - 0x49], rax
lea edx, [rbx + 0x41]
lea rcx, [0x1400081b0]
call fcn.140004ed4
xor r8d, r8d
mov qword [rbp - 0x41], rax
lea edx, [rbx + 0x2e]
lea rcx, [0x140008240]
call fcn.140004ed4
xor r8d, r8d
mov qword [rbp - 0x39], rax
lea edx, [rbx + 0xb]
lea rcx, [0x1400082a0]
call fcn.140004ed4
xor r8d, r8d
mov qword [rbp - 0x31], rax
lea edx, [rbx + 0x13]
lea rcx, [0x1400082b8]
call fcn.140004ed4
xor r8d, r8d
mov qword [rbp - 0x29], rax
lea edx, [rbx + 0x12]
lea rcx, [0x1400082e0]
call fcn.140004ed4
xor r8d, r8d
mov qword [rbp - 0x21], rax
lea edx, [rbx + 7]
lea rcx, [0x140008308]
call fcn.140004ed4
lea edi, [rbx + 5]
xor r8d, r8d
mov edx, edi
lea rcx, [0x140008318]
mov r12, rax
call fcn.140004ed4
xor r8d, r8d
lea rcx, [0x140008328]
mov edx, edi
mov r13, rax
call fcn.140004ed4
mov qword [rbp + 0x77], rax
mov r15d, ebx
mov r14d, ebx
mov rdx, qword [rbp + r14 - 0x49]
lea rcx, [rbp - 0x19]
call qword [0x140266060]
lea rax, [rbp - 0x19]
mov dword [rbp - 9], 0x30
xorps xmm0, xmm0
mov qword [rbp + 7], rax
lea r8, [rbp - 9]
mov qword [rbp - 1], rbx
mov edx, 0x20019
mov dword [rbp + 0xf], 0x40
lea rcx, [rbp + 0x6f]
movdqu xmmword [rbp + 0x17], xmm0
call fcn.1400074f8
test eax, eax
js 0x140001bd3
mov rdx, qword [rbp + r14 - 0x31]
lea rcx, [rbp - 0x59]
call qword [0x140266060]
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x59]
mov dword [rsp + 0x20], ebx
lea r8d, [r9 + 2]
call fcn.1400074b4
mov rcx, qword gs:[0x60]
mov edx, 8
mov r8d, dword [rbp + 0x67]
mov rcx, qword [rcx + 0x30]
call qword [0x140266070]
mov rdi, rax
test rax, rax
je 0x140001bca
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x59]
mov eax, dword [rbp + 0x67]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call fcn.1400074b4
test eax, eax
js 0x140001bb2
cmp dword [rdi + 4], 1
je 0x140001b7a
cmp dword [rdi + 4], 7
jne 0x140001bb2
lea rsi, [rdi + 0xc]
mov rdx, r12
mov rcx, rsi
call qword [0x140266098]
test rax, rax
jne 0x140001be5
mov rdx, r13
mov rcx, rsi
call qword [0x140266098]
test rax, rax
jne 0x140001be5
mov rdx, qword [rbp + 0x77]
mov rcx, rsi
call qword [0x140266098]
test rax, rax
jne 0x140001be5
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [0x140266078]
mov rcx, qword [rbp + 0x6f]
call fcn.14000764c
inc r15d
add r14, 8
cmp r15d, 3
jae 0x140001bea
jmp 0x140001aa1
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x108]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400026dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
and qword [rbp + 0x270], 0
mov rdi, rcx
movsxd r14, dword [rcx + 0x3c]
call fcn.14000149c
test eax, eax
je 0x140002722
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x1400028c7
mov esi, dword [r14 + rdi + 0x88]
xor ebx, ebx
add rsi, rdi
lea r15d, [rbx + 1]
mov r12d, dword [rsi + 0x24]
mov r13d, dword [rsi + 0x20]
add r12, rdi
add r13, rdi
cmp dword [rsi + 0x14], ebx
jbe 0x140002777
mov ecx, dword [r13 + rbx*4]
add rcx, rdi
call fcn.140005090
mov r15d, 1
cmp eax, dword [rbp + 0x278]
je 0x1400027c3
add ebx, r15d
cmp ebx, dword [rsi + 0x14]
jb 0x140002754
mov rbx, qword [rbp + 0x270]
cmp rbx, rsi
jb 0x1400028ce
mov eax, dword [r14 + rdi + 0x8c]
add rax, rsi
cmp rbx, rax
jae 0x1400028ce
test rbx, rbx
je 0x1400028ce
mov rcx, rbx
call fcn.1400050cc
add eax, r15d
mov ecx, eax
je 0x14000281b
cmp rcx, 0x7fffffff
jbe 0x1400027dd
mov byte [rsp + 0x30], 0
jmp 0x14000281b
movzx edx, word [r12 + rbx*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rdi
mov ebx, dword [rcx + rdx*4]
add rbx, rdi
mov qword [rbp + 0x270], rbx
jmp 0x14000277e
mov r8d, 0x7ffffffe
lea rax, [rsp + 0x30]
sub r8, rcx
lea rdx, [rsp + 0x30]
sub rbx, rax
lea rax, [r8 + rcx]
test rax, rax
je 0x14000280d
mov al, byte [rbx + rdx]
test al, al
je 0x14000280d
mov byte [rdx], al
add rdx, r15
sub rcx, r15
jne 0x1400027f3
test rcx, rcx
lea rax, [rdx - 1]
cmovne rax, rdx
mov byte [rax], 0
and qword [rbp + 0x270], 0
lea rcx, [rsp + 0x30]
mov edx, 0x2e
call fcn.140005050
lea rbx, [r15 + rax]
mov byte [rax], 0
cmp byte [rbx], 0x23
jne 0x14000284a
lea rcx, [rbx + 1]
call fcn.14000512c
movzx ebx, ax
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400050e4
lea rcx, [rbp + 0x30]
call fcn.140002670
mov rdi, rax
test rax, rax
je 0x140002894
cmp dword [rsp + 0x30], 0x2d697061
je 0x140002894
cmp dword [rsp + 0x30], 0x2d747865
je 0x140002894
mov rcx, rbx
call fcn.140005090
mov edx, eax
mov rcx, rdi
call fcn.1400026dc
mov rbx, rax
jmp 0x1400028ce
mov rcx, rbx
mov qword [rsp + 0x28], rbx
call fcn.1400050cc
mov word [rsp + 0x20], ax
lea r9, [rbp + 0x270]
add ax, r15w
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov word [rsp + 0x22], ax
mov rcx, rdi
call qword [0x140266080]
mov rbx, qword [rbp + 0x270]
mov rax, rbx
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400028f4
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor esi, esi
mov r14, rdx
mov ebp, ecx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x14000293e
mov rcx, qword [rbx + 0x50]
call fcn.14000506c
cmp eax, ebp
je 0x140002945
test ebp, ebp
je 0x140002945
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000292a
jmp 0x140002955
mov rsi, qword [rbx + 0x20]
test r14, r14
je 0x140002955
mov rcx, qword [rbx + 0x40]
mov qword [r14], rcx
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000297c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
xor edx, edx
mov ecx, 0xd22e2014
call fcn.1400028f4
mov rbp, rax
xor esi, esi
movsxd rdx, dword [rax + 0x3c]
mov r8d, dword [rdx + rax + 0x88]
add r8, rax
mov r13d, dword [r8 + 0x1c]
mov r12d, dword [r8 + 0x20]
add r13, rax
mov r14d, dword [r8 + 0x18]
add r12, rax
mov eax, dword [r8 + 0x24]
add rax, rbp
mov qword [rsp + 0x50], rax
mov eax, 0x5a4d
cmp word [rbp], ax
jne 0x140002a30
lea eax, [r14 - 1]
mov ecx, dword [r12 + rax*4]
mov r14d, eax
add rcx, rbp
mov r15d, eax
mov eax, 0x775a
cmp word [rcx], ax
jne 0x140002a2b
mov ebx, esi
add rbx, rbx
call fcn.140005090
mov dword [rdi + rbx*8 + 8], eax
inc esi
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + r15*2]
mov ecx, dword [r13 + rax*4]
mov qword [rdi + rbx*8 + 0x10], rcx
cmp esi, 0x1f4
je 0x140002a30
test r14d, r14d
jne 0x1400029e4
xor r8d, r8d
mov dword [rdi], esi
lea eax, [rsi - 1]
test eax, eax
je 0x140002aa8
mov edx, esi
mov eax, edx
xor ecx, ecx
sub eax, r8d
mov r9d, edx
cmp eax, 1
je 0x140002a9c
lea r10d, [rcx + 1]
mov r9d, ecx
add r9, r9
mov edx, r10d
add rdx, rdx
mov rbx, qword [rdi + r9*8 + 0x10]
mov r11, qword [rdi + rdx*8 + 0x10]
cmp rbx, r11
jbe 0x140002a88
mov ecx, dword [rdi + r9*8 + 8]
mov eax, dword [rdi + rdx*8 + 8]
mov dword [rdi + r9*8 + 8], eax
mov dword [rdi + rdx*8 + 8], ecx
mov qword [rdi + r9*8 + 0x10], r11
mov qword [rdi + rdx*8 + 0x10], rbx
mov edx, dword [rdi]
mov ecx, r10d
mov eax, edx
sub eax, r8d
dec eax
cmp r10d, eax
jb 0x140002a4d
mov r9d, edx
inc r8d
lea ecx, [r9 - 1]
cmp r8d, ecx
jb 0x140002a3e
mov rbx, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400038e0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
and dword [rbp + 0x20], 0
xorps xmm0, xmm0
mov rax, qword gs:[0x60]
xor ebx, ebx
mov rsi, qword [rax + 0x20]
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp + 0x28], 4
call fcn.1400051d0
lea r14d, [rbx + 1]
mov rdi, rax
mov r8d, r14d
lea edx, [rbx + 0x1d]
lea rcx, [0x140008f38]
call fcn.140004ed4
mov rcx, rax
call fcn.140005bec
test eax, eax
je 0x1400039ef
mov r8d, r14d
lea edx, [rbx + 0xb]
lea rcx, [0x140008f78]
call fcn.140004ed4
mov rdx, rax
lea rcx, [rbp - 0x10]
call qword [0x140266060]
xor r8d, r8d
lea edx, [rbx + 0x27]
lea rcx, [0x140008f90]
call fcn.140004ed4
mov rdx, rax
lea rcx, [rbp - 0x20]
call qword [0x140266060]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call qword [0x1402661a8]
and qword [rsp + 0x20], rbx
lea r9, [rbp + 0x28]
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.1400070b8
mov edx, eax
test eax, eax
js 0x1400039d5
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x1400039dd
cmp eax, r14d
jne 0x1400039d5
mov eax, dword [0x7ffe026c]
lea ecx, [rax + rax*4]
mov eax, dword [0x7ffe0270]
lea ecx, [rax + rcx*2]
cmp ecx, 0x3d
jbe 0x1400039dd
cmp edx, 0xc0000100
jne 0x1400039e1
xor ecx, ecx
jmp 0x1400039e8
test edx, edx
js 0x1400039ef
mov ecx, r14d
call fcn.1400035f4
mov ebx, eax
mov rcx, qword [rsi + 0x68]
xor edx, edx
lea r8d, [rdx + 4]
call qword [0x140266198]
test rdi, rdi
je 0x140003a0c
mov rcx, rdi
call fcn.1400051ac
test ebx, ebx
je 0x140003a43
mov r8d, r14d
lea rcx, [0x140008fe0]
mov edx, 0x14
call fcn.140004ed4
mov rcx, rax
call fcn.140005bec
test eax, eax
je 0x140003a43
mov ecx, 0xea60
call qword [0x140266148]
mov ecx, r14d
call fcn.140006f64
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140004d4c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor r11d, r11d
mov ebx, edx
mov rdi, rcx
cmp edx, 2
jb 0x140004eb9
lea rsi, [0x140265c78]
test r8d, r8d
je 0x140004d8f
and dword [0x1402654a0], r11d
xor edx, edx
mov r8d, 0x3e8
mov rcx, rsi
call fcn.140001000
mov r8d, dword [0x1402654a0]
lea r10d, [rbx - 1]
movzx ecx, byte [r10 + rdi]
cmp cl, 0x7f
lea r11, [rsi + r8]
lea eax, [rcx - 0x60]
movzx edx, al
lea rsi, [0x1402654a0]
cmovbe edx, ecx
lea eax, [r8 - 1]
add eax, ebx
xor r9d, r9d
mov byte [rax + rsi + 0x7d8], dl
mov edx, dword [0x1402654a0]
mov eax, ebx
sub eax, r9d
sub edx, r9d
dec eax
add edx, ebx
movzx ecx, byte [rax + rdi]
cmp cl, 0x7f
lea eax, [rcx - 0x60]
movzx r8d, al
lea eax, [rdx - 1]
cmovbe r8d, ecx
inc r9d
xor r8b, byte [rdx + rsi + 0x7d8]
mov byte [rax + rsi + 0x7d8], r8b
cmp r9d, ebx
jb 0x140004dc6
xor r9d, r9d
test r10d, r10d
je 0x140004e4c
mov eax, dword [0x1402654a0]
add eax, r9d
mov edx, eax
mov r8b, byte [rax + rsi + 0x7d8]
inc eax
mov al, byte [rax + rsi + 0x7d8]
mov byte [rdx + rsi + 0x7d8], al
mov ecx, dword [0x1402654a0]
inc ecx
add ecx, r9d
add r9d, 2
mov byte [rcx + rsi + 0x7d8], r8b
cmp r9d, r10d
jb 0x140004e0d
mov r9d, ebx
mov r10d, 0
shr r9d, 1
je 0x140004ea1
mov ecx, dword [0x1402654a0]
lea eax, [rcx + r10]
sub ecx, r10d
mov r8b, byte [rax + rsi + 0x7d8]
mov edx, eax
lea eax, [rbx - 1]
add eax, ecx
mov al, byte [rax + rsi + 0x7d8]
mov byte [rdx + rsi + 0x7d8], al
mov eax, dword [0x1402654a0]
sub eax, r10d
inc r10d
dec eax
add eax, ebx
mov byte [rax + rsi + 0x7d8], r8b
cmp r10d, r9d
jb 0x140004e5a
mov edx, dword [0x1402654a0]
dec edx
add edx, ebx
mov byte [rdx + rsi + 0x7d8], 0
add dword [0x1402654a0], ebx
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140004ed4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov ebx, edx
mov rdi, rcx
mov r11d, esi
cmp edx, 2
jb 0x140005030
test r8d, r8d
je 0x140004f1a
xor edx, edx
mov dword [0x1402654a4], esi
mov r8d, 0x7d0
lea rcx, [0x1402654a8]
call fcn.140001000
mov ecx, dword [0x1402654a4]
lea r10d, [rbx - 1]
movzx edx, word [rdi + r10*2]
lea rbp, [0x1402654a0]
sub dx, 0x60
mov r9d, esi
lea eax, [rcx - 1]
lea r11, [rcx*2 + 8]
add r11, rbp
cmp word [rdi + r10*2], 0x7f
cmovbe dx, word [rdi + r10*2]
add eax, ebx
mov word [rbp + rax*2 + 8], dx
mov edx, dword [0x1402654a4]
mov eax, ebx
sub eax, r9d
sub edx, r9d
dec eax
add edx, ebx
movzx ecx, word [rdi + rax*2]
lea eax, [rdx - 1]
cmp cx, 0x7f
lea r8d, [rcx - 0x60]
cmovbe r8w, cx
inc r9d
xor r8w, word [rbp + rdx*2 + 8]
mov word [rbp + rax*2 + 8], r8w
cmp r9d, ebx
jb 0x140004f58
mov r9d, esi
test r10d, r10d
je 0x140004fd1
mov eax, dword [0x1402654a4]
add eax, r9d
mov edx, eax
movzx r8d, word [rbp + rax*2 + 8]
inc eax
movzx eax, word [rbp + rax*2 + 8]
mov word [rbp + rdx*2 + 8], ax
mov ecx, dword [0x1402654a4]
inc ecx
add ecx, r9d
add r9d, 2
mov word [rbp + rcx*2 + 8], r8w
cmp r9d, r10d
jb 0x140004f9a
mov r9d, ebx
mov r10d, esi
shr r9d, 1
je 0x14000501b
mov ecx, dword [0x1402654a4]
lea eax, [rcx + r10]
sub ecx, r10d
movzx r8d, word [rbp + rax*2 + 8]
mov edx, eax
lea eax, [rbx - 1]
add eax, ecx
movzx eax, word [rbp + rax*2 + 8]
mov word [rbp + rdx*2 + 8], ax
mov eax, dword [0x1402654a4]
sub eax, r10d
inc r10d
dec eax
add eax, ebx
mov word [rbp + rax*2 + 8], r8w
cmp r10d, r9d
jb 0x140004fdc
mov edx, dword [0x1402654a4]
dec edx
add edx, ebx
mov word [rbp + rdx*2 + 8], si
add dword [0x1402654a4], ebx
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret