joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ed720
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov eax, dword [rsp + 0xe8]
cmp rax, 3
jb 0x1400ed8f9
mov r8d, 3
lea rdx, [0x140179d08]
mov rcx, qword [rsp + 0xe0]
call fcn.140161ba0
test eax, eax
jne 0x1400ed8f9
cmp qword [rsp + 0xf0], 0
je 0x1400ed8e8
cmp qword [rsp + 0xf8], 0
je 0x1400ed8e8
lea rcx, str.__using_BCrypt_with_AES_256_GCM_n
call fcn.140013fd0
mov r8d, reloc.WLDAP32.dll_Ordinal_88
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140161800
mov dword [rsp + 0x70], reloc.WLDAP32.dll_Ordinal_88
mov dword [rsp + 0x74], 1
mov rax, qword [rsp + 0xe0]
add rax, 3
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], reloc.WLDAP32.dll_Ordinal_12
mov eax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx + rax - 0x13]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0xa0], Ordinal_26
mov eax, dword [rsp + 0xe8]
sub rax, 3
mov ecx, dword [rsp + 0x80]
sub rax, rcx
mov ecx, dword [rsp + 0xa0]
sub rax, rcx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400ed8e6
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x1400ed8cb
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x110]
lea rcx, str._s:__.S_n
call fcn.140013fd0
jmp 0x1400ed8db
mov edx, dword [rsp + 0x60]
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_decrypt___BCryptDecrypt:_0x_08x_n
call fcn.140013fd0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400ed8f4
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_decrypt___No_Alg_and_or_Key_handle_despite_AES_encryption_n
call fcn.140013fd0
jmp 0x1400ed980
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x100]
xor r8d, r8d
mov edx, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.1400ead60
test eax, eax
je 0x1400ed980
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x110]
lea rcx, str._s:__.S_n
call fcn.140013fd0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0xd8
ret
Function at 0x140101b80
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x2c]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x24], 0
cmp qword [rsp + 0x38], 0
je 0x140101ceb
cmp dword [rsp + 0x2c], 0
jle 0x140101ceb
xor eax, eax
mov word [rsp + 0x20], ax
jmp 0x140101bdb
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
cmp dword [rsp + 0x24], 0
jne 0x140101cc0
movzx eax, word [rsp + 0x20]
cmp rax, 0x13
jae 0x140101cc0
movzx eax, word [rsp + 0x20]
imul rax, rax, 0x20
lea rcx, [0x14017a440]
mov edx, 8
imul rdx, rdx, 0
mov qword [rsp + 0x40], rdx
mov rdx, qword [rcx + rax + 0x10]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rax + rcx]
call fcn.1401458b4
test eax, eax
jne 0x140101c39
mov dword [rsp + 0x28], 1
jmp 0x140101c41
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140101cbb
movzx eax, word [rsp + 0x20]
imul rax, rax, 0x20
lea rcx, [0x14017a440]
cmp qword [rcx + rax], 0
je 0x140101c9d
mov rax, qword [rsp + 0x38]
add rax, 8
mov ecx, dword [rsp + 0x2c]
dec ecx
movzx edx, word [rsp + 0x20]
imul rdx, rdx, 0x20
mov qword [rsp + 0x48], rdx
lea r8, [0x14017a440]
mov rdx, rax
mov rax, qword [rsp + 0x48]
call qword [r8 + rax]
mov dword [rsp + 0x30], eax
jmp 0x140101cbb
movzx eax, word [rsp + 0x20]
imul rax, rax, 0x20
lea rcx, [0x14017a440]
xor r8d, r8d
xor edx, edx
mov ecx, dword [rcx + rax + 8]
call fcn.140010c30
jmp 0x140101bce
cmp dword [rsp + 0x24], 0
jne 0x140101ceb
mov rcx, qword [rsp + 0x60]
call fcn.140145b80
inc rax
mov eax, eax
shl rax, 1
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov ecx, 0x22c003
call fcn.140010c30
mov eax, dword [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x140114a40
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov dword [rsp + 0x30], 0xc0000225
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140114a84
cmp dword [rsp + 0x38], 1
je 0x140114a9a
cmp dword [rsp + 0x38], 2
je 0x140114ab0
jmp 0x140114ac6
mov dword [rsp + 0x3c], 1
lea rax, [0x1401b66e0]
mov qword [rsp + 0x50], rax
jmp 0x140114acf
mov dword [rsp + 0x3c], 0x800
lea rax, [0x1401b6708]
mov qword [rsp + 0x50], rax
jmp 0x140114acf
mov dword [rsp + 0x3c], 0x800
lea rax, [0x1401b6730]
mov qword [rsp + 0x50], rax
jmp 0x140114acf
mov eax, dword [rsp + 0x30]
jmp 0x140114bf3
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
lea r8, [0x1401a8758]
mov rdx, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x70]
call fcn.140020880
test eax, eax
je 0x140114b09
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140148454
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140114be3
mov r8d, dword [rsp + 0x34]
xor edx, edx
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140114bcd
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140114b58
cmp dword [rsp + 0x40], 1
je 0x140114b6b
cmp dword [rsp + 0x40], 2
je 0x140114b7c
jmp 0x140114b8b
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
mov dword [rsp + 0x30], eax
jmp 0x140114b8b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtSuspendProcess]
mov dword [rsp + 0x30], eax
jmp 0x140114b8b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtResumeProcess]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140114baa
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
lea rcx, str._s_of__u_PID_:_OK___n
call fcn.140013fd0
jmp 0x140114bc0
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
lea rcx, str.ERROR_kuhl_m_process_genericOperation____s_0x_08x_n
call fcn.140013fd0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140114be1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_process_genericOperation___OpenProcess__0x_08x__n
call fcn.140013fd0
jmp 0x140114bef
lea rcx, str.ERROR_kuhl_m_process_genericOperation___pid___pid:123__is_missing
call fcn.140013fd0
mov eax, dword [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x14012c470
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x24]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 8]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14012c564
cmp dword [rsp + 0x24], 0
jle 0x14012c54b
mov dword [rsp + 0x20], 0
jmp 0x14012c4cb
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jge 0x14012c535
movsxd rax, dword [rsp + 0x20]
mov r8d, 5
lea rdx, str._HTC:
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + rax*8]
call fcn.140151334
test eax, eax
jne 0x14012c533
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax*8]
add rax, 0xa
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.140148454
mov eax, eax
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.14012c580
jmp 0x14012c535
jmp 0x14012c4c1
cmp qword [rsp + 0x30], 0
jne 0x14012c549
lea rcx, str.__No_shared_memory__no_SSO_enabled___n
call fcn.140013fd0
jmp 0x14012c557
lea rcx, str.ERROR_Citrix_SSO_Program_args___No_command_module_
call fcn.140013fd0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14012c578
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_args___CommandLineToArgvW__0x_08x__n
call fcn.140013fd0
add rsp, 0x48
ret
Function at 0x14012c580
Capabilities:
Encrypt data using dpapi
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov r8, rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14012c710
mov qword [rsp + 0x20], 0x61c
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14012c6ef
mov edx, 0x610
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14012c6e2
mov rax, qword [rsp + 0x50]
add rax, 0xc
mov r8d, 0x610
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.140161160
mov r8d, 1
mov edx, 0x610
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_SystemFunction041]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x14012c6c7
mov rax, qword [rsp + 0x48]
add rax, 0x404
mov rcx, qword [rsp + 0x48]
mov edx, dword [rcx + 0x400]
mov rcx, rax
call fcn.14012c730
mov rax, qword [rsp + 0x48]
add rax, 0x404
mov rcx, qword [rsp + 0x48]
add rcx, 0x200
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x48]
mov r8d, dword [r8 + 0x604]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
mov r9d, dword [rax + 0x400]
mov r8, rcx
lea rcx, str._Username__:__s_n_Domain____:__s_n_Password__:__.s_n_flags_type:_0x_08x_n
call fcn.140013fd0
jmp 0x14012c6d7
mov edx, dword [rsp + 0x40]
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___RtlDecryptMemory:_0x_08x_n
call fcn.140013fd0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x14012c703
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___MapViewOfFile__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14012c724
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___DuplicateHandle__0x_08x__n
call fcn.140013fd0
add rsp, 0x68
ret
Function at 0x140131580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
jmp 0x1401315c9
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 8]
cmp qword [rsp + 0x28], rax
jae 0x1401316a4
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x100]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov byte [rsp], al
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x101]
movzx ecx, byte [rsp]
add eax, ecx
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x101], al
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x101]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov byte [rsp + 1], al
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x100]
mov rcx, qword [rsp + 0x20]
movzx edx, byte [rsp + 1]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x101]
mov rcx, qword [rsp + 0x20]
movzx edx, byte [rsp]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 1]
add ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
xor eax, ecx
mov rcx, qword [rsp + 0x30]
mov byte [rcx], al
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x100]
inc eax
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x100], al
jmp 0x1401315af
add rsp, 0x18
ret
Function at 0x140136420
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1401365e6
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x1401365e6
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401365c5
mov edx, 0x10000000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1401365c3
mov qword [rsp + 0x48], 0
jmp 0x1401364da
mov rax, qword [rsp + 0x48]
add rax, 0x10000000
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x48], rax
jge 0x1401365b8
mov rax, qword [rsp + 0x48]
add rax, 0x10000000
cmp rax, qword [rsp + 0x60]
jge 0x140136507
mov qword [rsp + 0x68], 0x10000000
jmp 0x14013651c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14013659f
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140136589
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x58]
call fcn.140136220
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x14013659d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___ReadFile__0x_08x__n
call fcn.140013fd0
jmp 0x1401365b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___SetFilePointerEx__0x_08x__n
call fcn.140013fd0
jmp 0x1401364ca
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1401365d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___GetFileSizeEx__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401365fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___CreateFile__0x_08x__n
call fcn.140013fd0
mov eax, dword [rsp + 0x40]
add rsp, 0x88
ret
Function at 0x14013ab50
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14013abc8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14013abc8
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14013abc8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14013abbc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14013abda
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14013abaa
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14013abca

Function at 0x14013b80c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14013b856
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14013b856
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14013b856
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14013b856
cmp dword [rcx + 0x84], 0xe
jbe 0x14013b856
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14013b858
xor al, al
add rsp, 0x28
ret

Function at 0x140153144
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140152f40
Function at 0x14015a04c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14015a0d3
mov rsi, rbx
cmp word [rax], bp
je 0x14015a092
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14015a07c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14015a078
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140153e30
mov rdi, rax
test rax, rax
je 0x14015a0c0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140161160
mov rbp, rdi
xor ecx, ecx
call fcn.140153df4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14015cc24
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14015cc3a
mov al, 1
jmp 0x14015cc9a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14015cc4b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14015cc98
mov ecx, dword [rcx + 0x18]
nop
call fcn.140157dec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14015cc98
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14015cc98
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14015cc98
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14015cc9a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14015d284
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, [0x1401dc7c0]
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 0x14015d2db
cmp word [rdx], r13w
jne 0x14015d2db
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14015d2e0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14015d405
mov r11d, reloc.Cabinet.dll_FCIFlushCabinet
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14015d426
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14015d319
mov rdx, r9
mov word [rbx], cx
jmp 0x14015d340
cmp r9, r8
jae 0x14015d350
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 0x14015d2fa
jmp 0x14015d405
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 0x14015d3fa
cmp dword [rsp + 0x80], esi
je 0x14015d3fa
lea r8, [0x1401dc7c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14015d3d2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14015d3a2
mov word [rbx], r13w
jmp 0x14015d402
mov ecx, reloc.Cabinet.dll_FCIFlushCabinet
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 0x14015d3af
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14015d402
cmp word [rsp + 0x70], r13w
jne 0x14015d3df
cmp rbx, r14
je 0x14015d39c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14015d1a4
cmp word [rsp + 0x70], r13w
je 0x14015d405
mov ecx, reloc.Cabinet.dll_FCIFlushCabinet
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, [0x1401dc7c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14015d3ff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14015d405
Function at 0x14016011c
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.14015d1a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14015d1a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14016026c
cmp rax, 0xffffffffffffffff
je 0x14016026c
xor edi, edi
test rbp, rbp
jle 0x140160217
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140155fe8
mov rbx, rax
test rax, rax
jne 0x1401601a4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14016020d
mov edx, 0x8000
mov ecx, r14d
call fcn.140146844
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.140157234
cmp eax, 0xffffffff
je 0x1401601ed
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401601b4
mov edx, r15d
mov ecx, r14d
call fcn.140146844
jmp 0x14016020d
cmp byte [rsi + 0x38], dil
je 0x140160204
cmp dword [rsi + 0x34], 5
jne 0x140160204
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.Cabinet.dll_FCIFlushCabinet
cmp byte [rsi + 0x30], dil
je 0x14016020d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140153df4
jmp 0x140160280
jns 0x140160280
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14015d1a4
cmp rax, 0xffffffffffffffff
jne 0x140160238
cmp byte [rsi + 0x30], dil
je 0x140160280
mov edi, dword [rsi + 0x2c]
jmp 0x140160280
mov ecx, r14d
call fcn.140157dec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140160280
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.Cabinet.dll_FCIFlushCabinet
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.Cabinet.dll_FCIFlushCabinet
jmp 0x140160280
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140160279
mov eax, dword [rsi + 0x2c]
jmp 0x14016027e
mov eax, Ordinal_26
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14015d1a4
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 0x140160bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140160bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140160bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret