joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800627e0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x30], 1
cmp qword [rsp + 0xb8], 0
jne 0x180062830
cmp qword [rsp + 0xc0], 0
je 0x180062923
xor eax, eax
mov word [rsp + 0x48], ax
lea rax, [rsp + 0x4a]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_ntohl
rep stosb byte [rdi], al
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x1800628cc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x2726
jne 0x1800628cc
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0xb0]
mov r8d, 0x700b
mov edx, 0xffff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
je 0x18006291b
lea rax, [rsp + 0x48]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0xb8], 0
je 0x1800628fa
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 4]
mov dword [rax], ecx
cmp qword [rsp + 0xc0], 0
je 0x180062919
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
movzx ecx, word [rcx + 2]
mov word [rax], cx
jmp 0x180062923
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0xc8], 0
jne 0x18006293d
cmp qword [rsp + 0xd0], 0
je 0x180062a3f
xor eax, eax
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_ntohl
rep stosb byte [rdi], al
mov dword [rsp + 0x6c], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x6c]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getpeername]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0xffffffff
jne 0x1800629df
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0x2726
jne 0x1800629df
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0xb0]
mov r8d, 0x700b
mov edx, 0xffff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x6c]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0xffffffff
je 0x180062a37
lea rax, [rsp + 0x70]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0xc8], 0
je 0x180062a13
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 4]
mov dword [rax], ecx
cmp qword [rsp + 0xd0], 0
je 0x180062a35
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x88]
movzx ecx, word [rcx + 2]
mov word [rax], cx
jmp 0x180062a3f
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0xa0
pop rdi
ret
Function at 0x1800bbd00
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x84], 0
lea rcx, [rsp + 0x30]
call fcn.180134700
nop
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bace0
test eax, eax
je 0x1800bbe1f
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.180134680
mov edx, 0x211
lea rcx, str.CTSandboxClass::GetSystemPolicyLib
call fcn.1800be550
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1801346d0
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x1800bbdd7
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
mov dword [rsp + 0x84], eax
lea rcx, [rsp + 0x30]
call fcn.1801346b0
mov dword [rsp + 0x8c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
mov r9d, 0x223
lea r8, str.CTSandboxClass::GetSystemPolicyLib
mov edx, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x8c]
call fcn.1800be610
lea rcx, [rsp + 0x30]
call fcn.180134670
cmp dword [rsp + 0x80], 0
jbe 0x1800bbf6b
cmp qword [rsp + 0xf8], 0
je 0x1800bbf6b
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x100], eax
jb 0x1800bbf6b
mov eax, dword [rsp + 0x84]
and eax, 2
mov dword [rsp + 0xa8], eax
mov r8d, dword [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bb720
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xc0]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x1800bbf5e
mov eax, dword [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x1800bbf44
mov eax, dword [rsp + 0x100]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call fcn.1800f8660
mov eax, dword [rsp + 0x80]
mov r8d, eax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf8]
call fcn.1800fa0d0
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0xb0], 0
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0xa0]
call fcn.1800e56d0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xb8], eax
lea rcx, [rsp + 0x30]
call fcn.180134810
mov eax, dword [rsp + 0xb8]
add rsp, 0xe8
ret
Function at 0x1800bbfa0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x94], 0
lea rcx, [rsp + 0x40]
call fcn.180134700
nop
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x100]
call fcn.1800bace0
test eax, eax
je 0x1800bc0c3
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.180134680
mov edx, 0x24e
lea rcx, str.CTSandboxClass::GetSystemPolicyLib2
call fcn.1800be550
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1801346d0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1800bc07b
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x94], eax
lea rcx, [rsp + 0x40]
call fcn.1801346b0
mov dword [rsp + 0x9c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov r9d, 0x260
lea r8, str.CTSandboxClass::GetSystemPolicyLib2
mov edx, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x9c]
call fcn.1800be610
lea rcx, [rsp + 0x40]
call fcn.180134670
cmp dword [rsp + 0x90], 0
jbe 0x1800bc212
mov eax, dword [rsp + 0x94]
and eax, 2
mov dword [rsp + 0xb8], eax
mov r8d, dword [rsp + 0xb8]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x100]
call fcn.1800bb720
nop
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xd8], rax
mov r8, qword [rsp + 0xd8]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x1800bc205
mov eax, dword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x1800bc1eb
mov eax, dword [rsp + 0x90]
mov ecx, eax
call fcn.1800f87f4
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800bc1d1
mov eax, dword [rsp + 0x90]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1800f8660
mov eax, dword [rsp + 0x90]
mov r8d, eax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
call fcn.1800fa0d0
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0xc0], 0
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0xb0]
call fcn.1800e56d0
cmp qword [rsp + 0x108], 0
je 0x1800bc22e
mov rax, qword [rsp + 0x108]
mov ecx, dword [rsp + 0x90]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x40]
call fcn.180134810
mov rax, qword [rsp + 0xd0]
add rsp, 0xf8
ret
Function at 0x1800bc520
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0xf8], 0
je 0x1800bc765
cmp dword [rsp + 0x100], 0
jbe 0x1800bc765
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x60]
call fcn.180134700
nop
mov r8d, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bace0
test eax, eax
jne 0x1800bc5b7
lea rcx, [rsp + 0x60]
call fcn.180134810
jmp 0x1800bc7ab
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.180134680
mov edx, 0x2e4
lea rcx, str.CTSandboxClass::SetClassPolicyLib
call fcn.1800be550
nop
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1801346d0
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x1800bc619
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 8]
and eax, 2
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x60]
call fcn.1801346b0
mov dword [rsp + 0xb4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xb0], eax
mov r9d, 0x2f5
lea r8, str.CTSandboxClass::SetClassPolicyLib
mov edx, dword [rsp + 0xb0]
mov ecx, dword [rsp + 0xb4]
call fcn.1800be610
lea rcx, [rsp + 0x60]
call fcn.180134670
nop
lea rcx, [rsp + 0x60]
call fcn.180134810
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bc290
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc0], rax
call fcn.1800f6340
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x100]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, 4
mov rdx, rax
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1800bc6e3
lea rcx, [rsp + 0x48]
call fcn.1800e56d0
jmp 0x1800bc7ab
mov dword [rsp + 0x54], 6
mov eax, dword [rsp + 0x100]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1800bc728
lea rcx, [rsp + 0x48]
call fcn.1800e56d0
jmp 0x1800bc7ab
mov eax, dword [rsp + 0x100]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1800f8660
mov eax, dword [rsp + 0x100]
mov r8d, eax
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x38]
call fcn.1800fa0d0
nop
lea rcx, [rsp + 0x48]
call fcn.1800e56d0
mov r9d, dword [rsp + 0x100]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bc340
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1800bc7a1
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
xor eax, eax
test eax, eax
jne 0x1800bc55c
cmp qword [rsp + 0x38], 0
je 0x1800bc7c7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x30], 0
je 0x1800bc7e3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x40]
add rsp, 0xe8
ret
Function at 0x1800bc7f0
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x84], 0
lea rcx, [rsp + 0x30]
call fcn.180134700
nop
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bace0
test eax, eax
je 0x1800bc90f
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.180134680
mov edx, 0x331
lea rcx, str.CTSandboxClass::GetClassPolicyLib
call fcn.1800be550
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1801346d0
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x1800bc8c7
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
mov dword [rsp + 0x84], eax
lea rcx, [rsp + 0x30]
call fcn.1801346b0
mov dword [rsp + 0x8c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
mov r9d, 0x343
lea r8, str.CTSandboxClass::GetClassPolicyLib
mov edx, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x8c]
call fcn.1800be610
lea rcx, [rsp + 0x30]
call fcn.180134670
cmp dword [rsp + 0x80], 0
jbe 0x1800bca5b
cmp qword [rsp + 0xf8], 0
je 0x1800bca5b
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x100], eax
jb 0x1800bca5b
mov eax, dword [rsp + 0x84]
and eax, 2
mov dword [rsp + 0xa8], eax
mov r8d, dword [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bc290
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xc0]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x1800bca4e
mov eax, dword [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x1800bca34
mov eax, dword [rsp + 0x100]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call fcn.1800f8660
mov eax, dword [rsp + 0x80]
mov r8d, eax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf8]
call fcn.1800fa0d0
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0xb0], 0
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0xa0]
call fcn.1800e56d0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xb8], eax
lea rcx, [rsp + 0x30]
call fcn.180134810
mov eax, dword [rsp + 0xb8]
add rsp, 0xe8
ret
Function at 0x1800bca90
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x94], 0
lea rcx, [rsp + 0x40]
call fcn.180134700
nop
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x100]
call fcn.1800bace0
test eax, eax
je 0x1800bcbb3
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.180134680
mov edx, 0x36e
lea rcx, str.CTSandboxClass::GetClassPolicyLib2
call fcn.1800be550
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1801346d0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1800bcb6b
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x94], eax
lea rcx, [rsp + 0x40]
call fcn.1801346b0
mov dword [rsp + 0x9c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov r9d, 0x380
lea r8, str.CTSandboxClass::GetClassPolicyLib2
mov edx, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x9c]
call fcn.1800be610
lea rcx, [rsp + 0x40]
call fcn.180134670
cmp dword [rsp + 0x90], 0
jbe 0x1800bcd02
mov eax, dword [rsp + 0x94]
and eax, 2
mov dword [rsp + 0xb8], eax
mov r8d, dword [rsp + 0xb8]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x100]
call fcn.1800bc290
nop
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xd8], rax
mov r8, qword [rsp + 0xd8]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x1800bccf5
mov eax, dword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x1800bccdb
mov eax, dword [rsp + 0x90]
mov ecx, eax
call fcn.1800f87f4
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800bccc1
mov eax, dword [rsp + 0x90]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1800f8660
mov eax, dword [rsp + 0x90]
mov r8d, eax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
call fcn.1800fa0d0
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0xc0], 0
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0xb0]
call fcn.1800e56d0
cmp qword [rsp + 0x108], 0
je 0x1800bcd1e
mov rax, qword [rsp + 0x108]
mov ecx, dword [rsp + 0x90]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x40]
call fcn.180134810
mov rax, qword [rsp + 0xd0]
add rsp, 0xf8
ret
Function at 0x1800bf5f0
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0xf8], 0
je 0x1800bf835
cmp dword [rsp + 0x100], 0
jbe 0x1800bf835
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x60]
call fcn.180134700
nop
mov r8d, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xf0]
call fcn.1800be9e0
test eax, eax
jne 0x1800bf687
lea rcx, [rsp + 0x60]
call fcn.180134810
jmp 0x1800bf87b
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.180134680
mov edx, 0x1b3
lea rcx, str.CTSandboxInstance::SetInstancePolicyLib
call fcn.1800be550
nop
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1801346d0
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x1800bf6e9
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0xc]
and eax, 2
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x60]
call fcn.1801346b0
mov dword [rsp + 0xb4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xb0], eax
mov r9d, 0x1c4
lea r8, str.CTSandboxInstance::SetInstancePolicyLib
mov edx, dword [rsp + 0xb0]
mov ecx, dword [rsp + 0xb4]
call fcn.1800be610
lea rcx, [rsp + 0x60]
call fcn.180134670
nop
lea rcx, [rsp + 0x60]
call fcn.180134810
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bf350
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc0], rax
call fcn.1800f6340
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x100]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, 4
mov rdx, rax
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1800bf7b3
lea rcx, [rsp + 0x48]
call fcn.1800e56d0
jmp 0x1800bf87b
mov dword [rsp + 0x54], 6
mov eax, dword [rsp + 0x100]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1800bf7f8
lea rcx, [rsp + 0x48]
call fcn.1800e56d0
jmp 0x1800bf87b
mov eax, dword [rsp + 0x100]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1800f8660
mov eax, dword [rsp + 0x100]
mov r8d, eax
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x38]
call fcn.1800fa0d0
nop
lea rcx, [rsp + 0x48]
call fcn.1800e56d0
mov r9d, dword [rsp + 0x100]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bf410
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1800bf871
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
xor eax, eax
test eax, eax
jne 0x1800bf62c
cmp qword [rsp + 0x38], 0
je 0x1800bf897
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x30], 0
je 0x1800bf8b3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x40]
add rsp, 0xe8
ret
Function at 0x1800bf8c0
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x84], 0
lea rcx, [rsp + 0x30]
call fcn.180134700
nop
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800be9e0
test eax, eax
je 0x1800bf9df
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.180134680
mov edx, 0x200
lea rcx, str.CTSandboxInstance::GetInstancePolicyLib
call fcn.1800be550
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1801346d0
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x1800bf997
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x84], eax
lea rcx, [rsp + 0x30]
call fcn.1801346b0
mov dword [rsp + 0x8c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
mov r9d, 0x212
lea r8, str.CTSandboxInstance::GetInstancePolicyLib
mov edx, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x8c]
call fcn.1800be610
lea rcx, [rsp + 0x30]
call fcn.180134670
cmp dword [rsp + 0x80], 0
jbe 0x1800bfb2b
cmp qword [rsp + 0xf8], 0
je 0x1800bfb2b
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x100], eax
jb 0x1800bfb2b
mov eax, dword [rsp + 0x84]
and eax, 2
mov dword [rsp + 0xa8], eax
mov r8d, dword [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bf350
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xc0]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x1800bfb1e
mov eax, dword [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x1800bfb04
mov eax, dword [rsp + 0x100]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call fcn.1800f8660
mov eax, dword [rsp + 0x80]
mov r8d, eax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf8]
call fcn.1800fa0d0
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0xb0], 0
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0xa0]
call fcn.1800e56d0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xb8], eax
lea rcx, [rsp + 0x30]
call fcn.180134810
mov eax, dword [rsp + 0xb8]
add rsp, 0xe8
ret