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

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x18035b0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov word [rcx], 1
lea rax, [0x180091740]
mov qword [rcx + 8], rax
mov rcx, qword [0x18035f170]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov dword [rbx + 0x28], 0x25ff
mov dword [rbx + 0x2c], 0x1010000
mov dword [rbx + 0x30], 0x1010101
mov word [rbx + 0x34], 0x101
call fcn.1800703d0
mov rcx, qword [rbx + 0x10]
mov edx, 0xe
mov r8d, 0x40
mov byte [rbx + 1], al
call fcn.1800714d0
mov qword [rbx + 0x20], rax
test rax, rax
je 0x1800924c3
mov rcx, qword [rbx + 8]
mov r9d, 0x40
mov qword [rbx + 0x2e], rcx
mov r8d, 0x3000
movsd xmm0, qword [rbx + 0x28]
movsd qword [rax], xmm0
mov ecx, dword [rbx + 0x30]
mov dword [rax + 8], ecx
movzx ecx, word [rbx + 0x34]
mov word [rax + 0xc], cx
xor ecx, ecx
movzx edx, byte [rbx + 1]
add rdx, 0xe
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1800924c3
mov qword [0x18035f158], rax
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x48], rdi
call fcn.1800d1db0
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
mov r8d, 0x40
add rcx, rdx
mov qword [rbx + 0x2e], rcx
mov rcx, qword [rbx + 0x18]
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx + rdx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + rdx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + rdx + 0xc], ax
mov edx, 5
mov edi, dword [rbx + 0x20]
sub edi, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x10]
sub edi, 5
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180092497
lea rdx, str.Hook:_Failed_to_change_target_function_protection_n
lea rcx, [0x18035d030]
call fcn.1800078e0
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a2a20
add rsp, 0x30
pop rbx
ret
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x20]
mov edx, 5
mov byte [rax], 0xe9
mov rax, qword [rbx + 0x10]
mov dword [rax + 1], edi
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rbx], 0
jmp 0x18009247c
lea rdx, str.Hook:_Failed_to_allocate_memory_n
lea rcx, [0x18035d030]
call fcn.1800078e0
jmp 0x180092481
Function at 0x1800924e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x18035b0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov word [rcx], 1
lea rax, [0x180091660]
mov qword [rcx + 8], rax
mov rcx, qword [0x18035f130]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov dword [rbx + 0x28], 0x25ff
mov dword [rbx + 0x2c], 0x1010000
mov dword [rbx + 0x30], 0x1010101
mov word [rbx + 0x34], 0x101
call fcn.1800703d0
mov rcx, qword [rbx + 0x10]
mov edx, 0xe
mov r8d, 0x40
mov byte [rbx + 1], al
call fcn.1800714d0
mov qword [rbx + 0x20], rax
test rax, rax
je 0x180092683
mov rcx, qword [rbx + 8]
mov r9d, 0x40
mov qword [rbx + 0x2e], rcx
mov r8d, 0x3000
movsd xmm0, qword [rbx + 0x28]
movsd qword [rax], xmm0
mov ecx, dword [rbx + 0x30]
mov dword [rax + 8], ecx
movzx ecx, word [rbx + 0x34]
mov word [rax + 0xc], cx
xor ecx, ecx
movzx edx, byte [rbx + 1]
add rdx, 0xe
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x180092683
mov qword [0x18035f148], rax
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x48], rdi
call fcn.1800d1db0
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
mov r8d, 0x40
add rcx, rdx
mov qword [rbx + 0x2e], rcx
mov rcx, qword [rbx + 0x18]
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx + rdx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + rdx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + rdx + 0xc], ax
mov edx, 5
mov edi, dword [rbx + 0x20]
sub edi, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x10]
sub edi, 5
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180092657
lea rdx, str.Hook:_Failed_to_change_target_function_protection_n
lea rcx, [0x18035d030]
call fcn.1800078e0
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a2a20
add rsp, 0x30
pop rbx
ret
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x20]
mov edx, 5
mov byte [rax], 0xe9
mov rax, qword [rbx + 0x10]
mov dword [rax + 1], edi
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rbx], 0
jmp 0x18009263c
lea rdx, str.Hook:_Failed_to_allocate_memory_n
lea rcx, [0x18035d030]
call fcn.1800078e0
jmp 0x180092641
Function at 0x180094b10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rdx]
mov rbx, r8
dec eax
mov r8, rdx
mov rdi, rcx
cmp eax, 0x20
ja case.0x180094bf9.4
lea rsi, [0x180000000]
nop dword [rax]
cdqe
movzx eax, byte [rsi + rax + 0x94d78]
mov ecx, dword [rsi + rax*4 + 0x94d4c]
add rcx, rsi
jmp rcx
mov rax, qword [rbx + 0xd0]
movzx r8d, byte [r8 + 1]
add rax, 0xffffffffffffffc4
lea r8, [rax + r8*2]
movzx eax, byte [r8]
dec eax
cmp eax, 0x20
jbe 0x180094b40
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, dword [rbx + 0xcc]
movzx edx, word [rsi + rax*2 + 0xdbd00]
mov rcx, rdi
call fcn.1800933c0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x9c]
cmp al, 8
jae case.0x180094bf9.4
lea edx, [rax + 0x6d]
mov rcx, rdi
call fcn.1800933c0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [r8 + 1]
add eax, 0xfffffffe
cmp eax, 0x1a
ja case.0x180094bf9.4
cdqe
movzx eax, byte [rsi + rax + 0x94da8]
mov ecx, dword [rsi + rax*4 + 0x94d9c]
add rcx, rsi
jmp rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180095bb0
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180094dd0
movzx eax, byte [rbx + 0xa2]
mov r9, rbx
mov rcx, rdi
mov rdx, qword [rbx + rax*8 + 0xa8]
inc al
mov byte [rbx + 0xa2], al
call fcn.180093940
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx edx, byte [rbx + 0x34]
mov rcx, rdi
call fcn.180093390
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0x60]
cmp eax, 2
jne 0x180094c8e
lea edx, [rax + 0x35]
jmp 0x180094ca0
cmp eax, 1
jne 0x180094c9b
lea edx, [rax + 0x1f]
lea eax, [rdx + 0x19]
jmp 0x180094ca5
mov edx, 0x39
mov eax, 0x20
cmp byte [rbx + 0x37], 0
mov rcx, rdi
cmovne edx, eax
call fcn.1800933c0
movsxd rax, dword [rbx + 8]
mov rcx, rdi
movzx edx, byte [rax + rsi + 0xdbec0]
call fcn.1800933c0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0x60]
cmp eax, 2
jne 0x180094ce7
lea edx, [rax + 0x31]
jmp 0x180094cf9
cmp eax, 1
jne 0x180094cf4
lea edx, [rax + 0x19]
lea eax, [rdx - 0xa]
jmp 0x180094cfe
mov edx, 0x10
mov eax, 0x1a
cmp byte [rbx + 0x37], 0
mov rcx, rdi
cmovne edx, eax
call fcn.1800933c0
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, dword [rbx + 0xb8]
jmp 0x180094b8e
movzx edx, byte [rbx + 0xa0]
and edx, 7
add edx, 0x85
jmp 0x180094b96
movsxd rax, dword [rbx + 0x98]
jmp 0x180094b8e
Function at 0x1800a0fc4
Capabilities:
Read file on windows

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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1800a0ff2
xor eax, eax
jmp 0x1800a10d8
cmp qword [rcx + 0x68], 0
je 0x1800a1003
call fcn.1800a10f4
jmp 0x1800a10d8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800a101a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800a101c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800a104e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1800d1db0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1800a10d2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1800a1085
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1800a10ae
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1800ae9bc
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1800a10d2
cmp rsi, rbx
ja 0x1800a108c
test rsi, rsi
je 0x1800a10d2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800ae9bc
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x1800a8bb8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1800a8bef
call fcn.1800b5ba4
mov dword [rax], 0x16
call fcn.1800ac920
xor eax, eax
jmp 0x1800a8c7d
mov rdx, r9
mov rcx, r8
call fcn.1800a8b54
mov rbx, rax
test rax, rax
je 0x1800a8c7a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1800a8a80]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1800a8c67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800b5b18
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800a8c4e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800a8c5d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800b8934
jmp 0x1800a8c7a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800a8c77
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800acd60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800a3790
sub rsp, rax
mov rax, qword [0x18035b0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800bae9c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800acdaf
mov rax, rbp
jmp 0x1800aceb7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x35e630]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800bd88c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x35e630]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800aceb3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800aceb3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800bd88c
test rax, rax
js 0x1800aceb3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800aceb3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800acea5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800acea5
cmp byte [rcx], 0xd
jne 0x1800ace8b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800ace9a
cmp byte [rcx + 1], 0xa
jne 0x1800ace9a
inc rcx
jmp 0x1800ace9a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x35b4f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800ace6d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800aceb7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800a2a20
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800b7984
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800b79f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800b79f3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800b79f3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800b79f3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800b79f3
cmp dword [rcx + 0x84], 0xe
jbe 0x1800b79f3
cmp dword [rcx + 0xf8], 0
je 0x1800b79f3
mov ecx, ebx
call fcn.1800b7aa4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800b7880
nop
cmp dword [rbp + 0x20], 0
je 0x1800b7a41
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800b7a4c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800b7984
Function at 0x1800bd938
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18035e630]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1800bd98f
cmp word [rdx], r13w
jne 0x1800bd98f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800bd994
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800bdab9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800bdada
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800bd9cd
mov rdx, r9
mov word [rbx], cx
jmp 0x1800bd9f4
cmp r9, r8
jae 0x1800bda04
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800bd9ae
jmp 0x1800bdab9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800bdaae
cmp dword [rsp + 0x80], esi
je 0x1800bdaae
lea r8, [0x18035e630]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800bda86
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800bda56
mov word [rbx], r13w
jmp 0x1800bdab6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1800bda63
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800bdab6
cmp word [rsp + 0x70], r13w
jne 0x1800bda93
cmp rbx, r14
je 0x1800bda50
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800bd894
cmp word [rsp + 0x70], r13w
je 0x1800bdab9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18035e630]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800bdab3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800bdab9
Function at 0x1800bf70c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800bf722
mov al, 1
jmp 0x1800bf782
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800bf733
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800bf780
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800c0d3c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800bf780
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800bf780
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800bf780
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800bf782
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800c4330
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800c4360
xor eax, eax
jmp 0x1800c4423
mov rbp, rbx
cmp word [rax], si
je 0x1800c4385
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800c436c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800c4368
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800c2c54
movsxd r14, eax
test eax, eax
jne 0x1800c43c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800c4359
mov rcx, r14
call fcn.1800b9b9c
mov rdi, rax
test rax, rax
jne 0x1800c43dc
xor ecx, ecx
call fcn.1800b8934
jmp 0x1800c43b8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800c2c54
test eax, eax
jne 0x1800c440d
mov rcx, rdi
call fcn.1800b8934
jmp 0x1800c4417
xor ecx, ecx
call fcn.1800b8934
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800c8530
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800b8d2c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800c85d1
cmp ebx, dword [rsp + 0x30]
je 0x1800c85ca
test esi, esi
je 0x1800c85ca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800c85a5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800c85b2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800c858f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800c85b6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800c85d3
mov eax, 1
jmp 0x1800c85d3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800c9264
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800bd894
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800bd894
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800c93b4
cmp rax, 0xffffffffffffffff
je 0x1800c93b4
xor edi, edi
test rbp, rbp
jle 0x1800c935f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800b88bc
mov rbx, rax
test rax, rax
jne 0x1800c92ec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800c9355
mov edx, 0x8000
mov ecx, r14d
call fcn.1800c90e8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800bef08
cmp eax, 0xffffffff
je 0x1800c9335
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800c92fc
mov edx, r15d
mov ecx, r14d
call fcn.1800c90e8
jmp 0x1800c9355
cmp byte [rsi + 0x38], dil
je 0x1800c934c
cmp dword [rsi + 0x34], 5
jne 0x1800c934c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800c9355
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800b8934
jmp 0x1800c93c8
jns 0x1800c93c8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800bd894
cmp rax, 0xffffffffffffffff
jne 0x1800c9380
cmp byte [rsi + 0x30], dil
je 0x1800c93c8
mov edi, dword [rsi + 0x2c]
jmp 0x1800c93c8
mov ecx, r14d
call fcn.1800c0d3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800c93c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800c93c8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800c93c1
mov eax, dword [rsi + 0x2c]
jmp 0x1800c93c6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800bd894
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800cb2c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800cb2e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800cb2e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140019140
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x288], rax
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov rdx, qword [rsp + 0x2c0]
lea rax, vtable.IPSLog.0
mov qword [rcx], rax
add rcx, 8
movzx eax, byte [rsp + 0x2e8]
mov byte [rsp + 0x38], al
mov byte [rsp + 0x30], 1
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdx
mov r9b, 1
movzx r8d, r9b
mov ebp, 1
mov edx, ebp
call fcn.140031c10
nop
lea rax, vtable.CLogEx.0
mov qword [rdi], rax
lea rbx, [rdi + 0x488]
lea ecx, [rsi + 8]
call fcn.140065e94
test rax, rax
je 0x1400191e4
mov qword [rax], rbx
jmp 0x1400191e7
mov rax, rsi
mov qword [rbx], rax
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
mov word [rsp + 0x70], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.1400719a0
mov dword [rsp + 0x40], 0x1e
mov dword [rdi + 0x484], esi
mov dword [rdi + 0x480], 0x1e
mov rcx, rbx
call fcn.14001a2d0
lea r11, [rdi + 0x218]
mov qword [rsp + 0x20], r11
lea r9, str.SoftwarePanda_SoftwareLog
lea r8, [0x1400ade30]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140066ef4
xor bl, bl
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400192e0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.LogLevel
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
test eax, eax
cmove ebx, ebp
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x1400192e0
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0x480], eax
mov ecx, FDICreate
call fcn.140065e94
test rax, rax
je 0x1400192ff
lea rcx, vtable.CNoMainLogReport.0
mov qword [rax], rcx
mov qword [rax + 8], rdi
jmp 0x140019302
mov rax, rsi
mov qword [rdi + 0x4b8], rax
mov rax, rdi
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.140064b70
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret