joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002a580
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x38], 0
jne 0x18002a59a
xor eax, eax
jmp 0x18002a5ad
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.1800f0de0
add rsp, 0x28
ret

Function at 0x1800559b0
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x498
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rax, qword [rsp + 0x4b0]
mov qword [rsp + 0x38], rax
mov r8d, 4
lea rdx, [0x1801aa610]
mov rcx, qword [rsp + 0x4b0]
call fcn.1800fd9e8
test eax, eax
je 0x180055a41
mov r8d, 4
lea rdx, [0x1801aa600]
mov rcx, qword [rsp + 0x4b0]
call fcn.1800fd9e8
test eax, eax
je 0x180055a41
mov r8d, 4
lea rdx, [0x1801aa5f0]
mov rcx, qword [rsp + 0x4b0]
call fcn.1800fd9e8
test eax, eax
jne 0x180055a52
mov rax, qword [rsp + 0x4b0]
add rax, 8
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x38]
call fcn.1800fbc94
cmp rax, 4
jb 0x180055b65
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 2]
cmp eax, 0x3a
jne 0x180055b65
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 4]
cmp eax, 0x5c
jne 0x180055b65
lea rax, [rsp + 0x48]
lea rcx, [0x1801bfaf4]
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x4e]
mov rdi, rax
xor eax, eax
mov ecx, 6
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
mov ecx, eax
call fcn.1800fdd84
mov word [rsp + 0x48], ax
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x180055b65
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov dword [rsp + 0x470], 0x208
lea r8, [rsp + 0x470]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call sub.MPR.dll_WNetGetConnectionW
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x180055b65
mov rax, qword [rsp + 0x38]
add rax, 4
mov ecx, dword [rsp + 0x4c0]
dec ecx
mov ecx, ecx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [0x1801bfae8]
mov edx, ecx
mov rcx, qword [rsp + 0x4b8]
call fcn.1800fc90c
mov dword [rsp + 0x30], 1
cmp dword [rsp + 0x30], 0
jne 0x180055bc0
mov rcx, qword [rsp + 0x38]
call fcn.1800fbc94
mov qword [rsp + 0x478], rax
mov eax, dword [rsp + 0x4c0]
dec eax
mov eax, eax
cmp qword [rsp + 0x478], rax
jbe 0x180055ba6
mov eax, dword [rsp + 0x4c0]
dec eax
mov eax, eax
mov qword [rsp + 0x478], rax
mov r8, qword [rsp + 0x478]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x4b8]
call fcn.1800fb420
mov eax, 1
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x498
pop rdi
pop rsi
ret
Function at 0x180061300
Capabilities:
Get common file path
Get disk information

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xca8
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0xc90], rax
mov eax, dword [0x18023cb20]
and eax, 1
test eax, eax
jne 0x18006135a
mov eax, dword [0x18023cb20]
or eax, 1
mov dword [0x18023cb20], eax
mov rax, qword [0x1801d0c28]
mov qword [0x18023cb18], rax
lea rcx, [0x1801a8450]
call fcn.1800fd414
mov eax, dword [0x18023cb20]
and eax, 2
test eax, eax
jne 0x180061390
mov eax, dword [0x18023cb20]
or eax, 2
mov dword [0x18023cb20], eax
mov rax, qword [0x1801d0c28]
mov qword [0x18023cb10], rax
lea rcx, [0x1801a8430]
call fcn.1800fd414
mov rax, qword [0x18023cb18]
cmp dword [rax - 8], 0
jne 0x1800613aa
mov dword [rsp + 0xc84], 1
jmp 0x1800613b5
mov dword [rsp + 0xc84], 0
cmp dword [rsp + 0xc84], 0
je 0x18006150a
xor eax, eax
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov edx, 0x208
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x18006150a
lea rdx, str.System32
lea rcx, [rsp + 0x30]
call fcn.1800fbcb0
xor eax, eax
mov word [rsp + 0x860], ax
lea rax, [rsp + 0x862]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov r8d, 0x208
lea rdx, [rsp + 0x860]
lea rcx, [rsp + 0x30]
call fcn.180056590
mov dword [rsp + 0xc80], eax
cmp dword [rsp + 0xc80], 0
jne 0x18006145f
lea rdx, [rsp + 0x860]
lea rcx, [0x18023cb18]
call fcn.1800e8410
lea rax, [rsp + 0xc70]
lea rcx, [0x1801bfaf4]
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xc76]
mov rdi, rax
xor eax, eax
mov ecx, 6
rep stosb byte [rdi], al
movzx eax, word [rsp + 0x30]
mov word [rsp + 0xc70], ax
xor eax, eax
mov word [rsp + 0x450], ax
lea rax, [rsp + 0x452]
mov rdi, rax
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov r8d, 0x208
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0xc70]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [rsp + 0x440], eax
cmp dword [rsp + 0x440], 0
jbe 0x18006150a
lea rax, [rsp + 0x34]
mov r9, rax
lea r8, [rsp + 0x450]
lea rdx, [0x1801bfae8]
lea rcx, [0x18023cb10]
call fcn.1800e9330
cmp qword [rsp + 0xcc0], 0
je 0x180061569
cmp dword [rsp + 0xcc8], 0
jle 0x180061569
movsxd rax, dword [rsp + 0xcc8]
mov qword [rsp + 0xc88], rax
xor edx, edx
lea rcx, [0x18023cb10]
call fcn.1800e8600
mov rcx, qword [rsp + 0xc88]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0xcc0]
call fcn.1800fb420
mov edx, 0xffffffff
lea rcx, [0x18023cb10]
call fcn.1800e8670
mov rax, qword [0x18023cb18]
mov rcx, qword [rsp + 0xc90]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0xca8
pop rdi
pop rsi
ret
Function at 0x1800624b0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp qword [rsp + 0x20], 0
je 0x1800624cf
mov eax, dword [rsp + 0x28]
cmp rax, 0x40
jae 0x1800624d6
xor eax, eax
jmp 0x18006255e
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18006255c
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp]
movsxd rcx, dword [rcx + 0x3c]
add rcx, 4
cmp rax, rcx
jbe 0x18006255c
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x180062555
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x454e
je 0x180062555
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x454c
jne 0x18006255c
mov eax, 1
jmp 0x18006255e
xor eax, eax
add rsp, 0x18
ret
Function at 0x1800635e0
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 [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x30], 1
cmp qword [rsp + 0xb8], 0
jne 0x180063630
cmp qword [rsp + 0xc0], 0
je 0x180063723
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 0x1800636cc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x2726
jne 0x1800636cc
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 0x18006371b
lea rax, [rsp + 0x48]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0xb8], 0
je 0x1800636fa
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 0x180063719
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
movzx ecx, word [rcx + 2]
mov word [rax], cx
jmp 0x180063723
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0xc8], 0
jne 0x18006373d
cmp qword [rsp + 0xd0], 0
je 0x18006383f
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 0x1800637df
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0x2726
jne 0x1800637df
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 0x180063837
lea rax, [rsp + 0x70]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0xc8], 0
je 0x180063813
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 0x180063835
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x88]
movzx ecx, word [rcx + 2]
mov word [rax], cx
jmp 0x18006383f
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0xa0
pop rdi
ret
Function at 0x1800bcb00
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.180137280
nop
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bbae0
test eax, eax
je 0x1800bcc1f
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.180137200
mov edx, 0x211
lea rcx, str.CTSandboxClass::GetSystemPolicyLib
call fcn.1800bf360
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180137250
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x1800bcbd7
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.180137230
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.1800bf420
lea rcx, [rsp + 0x30]
call fcn.1801371f0
cmp dword [rsp + 0x80], 0
jbe 0x1800bcd6b
cmp qword [rsp + 0xf8], 0
je 0x1800bcd6b
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x100], eax
jb 0x1800bcd6b
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.1800bc520
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 0x1800bcd5e
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 0x1800bcd44
mov eax, dword [rsp + 0x100]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call fcn.1800fb1e0
mov eax, dword [rsp + 0x80]
mov r8d, eax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf8]
call fcn.1800fcc50
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.1800e8250
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xb8], eax
lea rcx, [rsp + 0x30]
call fcn.180137390
mov eax, dword [rsp + 0xb8]
add rsp, 0xe8
ret
Function at 0x1800bcda0
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.180137280
nop
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x100]
call fcn.1800bbae0
test eax, eax
je 0x1800bcec3
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.180137200
mov edx, 0x24e
lea rcx, str.CTSandboxClass::GetSystemPolicyLib2
call fcn.1800bf360
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180137250
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1800bce7b
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.180137230
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.1800bf420
lea rcx, [rsp + 0x40]
call fcn.1801371f0
cmp dword [rsp + 0x90], 0
jbe 0x1800bd012
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.1800bc520
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 0x1800bd005
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 0x1800bcfeb
mov eax, dword [rsp + 0x90]
mov ecx, eax
call fcn.1800fb374
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800bcfd1
mov eax, dword [rsp + 0x90]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1800fb1e0
mov eax, dword [rsp + 0x90]
mov r8d, eax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
call fcn.1800fcc50
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.1800e8250
cmp qword [rsp + 0x108], 0
je 0x1800bd02e
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.180137390
mov rax, qword [rsp + 0xd0]
add rsp, 0xf8
ret
Function at 0x1800bd320
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 0x1800bd565
cmp dword [rsp + 0x100], 0
jbe 0x1800bd565
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x60]
call fcn.180137280
nop
mov r8d, 1
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bbae0
test eax, eax
jne 0x1800bd3b7
lea rcx, [rsp + 0x60]
call fcn.180137390
jmp 0x1800bd5ab
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.180137200
mov edx, 0x2e4
lea rcx, str.CTSandboxClass::SetClassPolicyLib
call fcn.1800bf360
nop
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.180137250
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x1800bd419
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 8]
and eax, 2
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x60]
call fcn.180137230
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.1800bf420
lea rcx, [rsp + 0x60]
call fcn.1801371f0
nop
lea rcx, [rsp + 0x60]
call fcn.180137390
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bd090
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc0], rax
call fcn.1800f8ec0
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 0x1800bd4e3
lea rcx, [rsp + 0x48]
call fcn.1800e8250
jmp 0x1800bd5ab
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 0x1800bd528
lea rcx, [rsp + 0x48]
call fcn.1800e8250
jmp 0x1800bd5ab
mov eax, dword [rsp + 0x100]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1800fb1e0
mov eax, dword [rsp + 0x100]
mov r8d, eax
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x38]
call fcn.1800fcc50
nop
lea rcx, [rsp + 0x48]
call fcn.1800e8250
mov r9d, dword [rsp + 0x100]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bd140
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1800bd5a1
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
xor eax, eax
test eax, eax
jne 0x1800bd35c
cmp qword [rsp + 0x38], 0
je 0x1800bd5c7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x30], 0
je 0x1800bd5e3
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 0x1800bd5f0
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.180137280
nop
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
call fcn.1800bbae0
test eax, eax
je 0x1800bd70f
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.180137200
mov edx, 0x331
lea rcx, str.CTSandboxClass::GetClassPolicyLib
call fcn.1800bf360
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180137250
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x1800bd6c7
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.180137230
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.1800bf420
lea rcx, [rsp + 0x30]
call fcn.1801371f0
cmp dword [rsp + 0x80], 0
jbe 0x1800bd85b
cmp qword [rsp + 0xf8], 0
je 0x1800bd85b
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x100], eax
jb 0x1800bd85b
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.1800bd090
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 0x1800bd84e
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 0x1800bd834
mov eax, dword [rsp + 0x100]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call fcn.1800fb1e0
mov eax, dword [rsp + 0x80]
mov r8d, eax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf8]
call fcn.1800fcc50
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.1800e8250
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xb8], eax
lea rcx, [rsp + 0x30]
call fcn.180137390
mov eax, dword [rsp + 0xb8]
add rsp, 0xe8
ret
Function at 0x1800bd890
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.180137280
nop
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x100]
call fcn.1800bbae0
test eax, eax
je 0x1800bd9b3
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.180137200
mov edx, 0x36e
lea rcx, str.CTSandboxClass::GetClassPolicyLib2
call fcn.1800bf360
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180137250
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1800bd96b
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.180137230
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.1800bf420
lea rcx, [rsp + 0x40]
call fcn.1801371f0
cmp dword [rsp + 0x90], 0
jbe 0x1800bdb02
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.1800bd090
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 0x1800bdaf5
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 0x1800bdadb
mov eax, dword [rsp + 0x90]
mov ecx, eax
call fcn.1800fb374
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800bdac1
mov eax, dword [rsp + 0x90]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1800fb1e0
mov eax, dword [rsp + 0x90]
mov r8d, eax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
call fcn.1800fcc50
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.1800e8250
cmp qword [rsp + 0x108], 0
je 0x1800bdb1e
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.180137390
mov rax, qword [rsp + 0xd0]
add rsp, 0xf8
ret