joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015904
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor eax, eax
mov rsi, rcx
movzx ecx, dx
mov rbx, r8
mov word [rsp + 0x20], 2
mov qword [rsp + 0x22], rax
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x2e], ax
call sub.WS2_32.dll_htons
xor edi, edi
mov word [rsp + 0x22], ax
cmp rbx, rdi
je 0x140015995
mov rax, qword [rbx + 0x18]
lea r8d, [rdi + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rsi + 8]
mov dword [rsp + 0x24], eax
call sub.WS2_32.dll_connect
cmp eax, edi
jne 0x14001596e
mov edi, 1
jmp 0x140015991
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x140015967
mov ecx, eax
call sub.WS2_32.dll_WSASetLastError
mov rbx, qword [rsi]
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
mov rcx, rsi
call qword [rbx + 0x30]
mov eax, edi
jmp 0x1400159a5
mov rax, qword [rsi]
or dx, 0xffff
mov rcx, rsi
call qword [rax + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140015a6c
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp qword [0x140029da8], 0
jne 0x140015bed
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
mov qword [0x140029da8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtLoadDriver
mov qword [0x140029d40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtUnloadDriver
mov qword [0x140029d48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtOpenSymbolicLinkObject
mov qword [0x140029d50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtQuerySymbolicLinkObject
mov qword [0x140029d58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtQueryObject
mov qword [0x140029d60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtOpenThread
mov qword [0x140029d68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtClose
mov qword [0x140029d70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtQueryInformationThread
mov qword [0x140029d78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtSuspendThread
mov qword [0x140029d80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtResumeThread
mov qword [0x140029d88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtTerminateThread
mov qword [0x140029d90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140029da8]
lea rdx, str.NtOpenProcess
mov qword [0x140029d98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140029da0], rax
lea rax, [0x140029d40]
add rsp, 0x28
ret
Function at 0x140015bfc
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
and qword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x60]
lea rcx, [rsp + 0x58]
mov rdx, rax
mov r8d, 0x28
call fcn.140015d3c
test eax, eax
jne 0x140015c40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x58]
mov edi, eax
jmp 0x140015ce0
lea rcx, [rsp + 0x58]
call fcn.140015cfc
test eax, eax
je 0x140015c75
mov rcx, qword [rsp + 0x58]
lea rdx, str.LookupPrivilegeValueA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140015c75
lea r8, [rsp + 0x34]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call rax
mov rdi, qword [rsp + 0x60]
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
call fcn.140015cfc
mov rbx, qword [rsp + 0x58]
test eax, eax
je 0x140015ccd
lea rdx, str.AdjustTokenPrivileges
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140015ccd
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x60]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140015cee
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400164f4
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movzx ebx, word [rsp + 0x78]
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r8, [rsp + 0x80]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
mov r11d, dword [rsp + 0x84]
movzx eax, word [rsp + 0x82]
movzx esi, r11b
and r11d, 0xff000000
mov r15d, 0x1000
shl esi, 0x10
add esi, r11d
add esi, eax
btr esi, 0x1f
add esi, 0x1c
xor edi, edi
mov r13d, edi
lea r14d, [rsi + 4]
jmp 0x1400165cf
mov rcx, qword [r12 + 0x20]
xor r8d, r8d
mov r9d, esi
lea edx, [r8 + 4]
and r9d, 0xfffff000
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp rax, rdi
mov rbp, rax
je 0x1400165d4
mov eax, esi
mov ecx, 4
mov edx, esi
and eax, 0xfff
sub ecx, r13d
mov ebx, r15d
sub ebx, eax
mov eax, r13d
cmp ecx, ebx
cmovb ebx, ecx
and edx, 0xfff
lea rcx, [rsp + rax + 0x78]
add rdx, rbp
mov r8d, ebx
call sub.msvcrt.dll_memcpy
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add r13d, ebx
add esi, ebx
cmp esi, r14d
jb 0x140016564
test dword [rsp + 0x78], 0xfff
mov eax, edi
cmove eax, dword [rsp + 0x78]
cmp eax, edi
jne 0x140016636
mov rcx, qword [r12 + 0x20]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov qword [rsp + 0x20], 0xa0000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r11, rax
mov eax, 0x67
lea rcx, [r11 + 0xc00]
cmp dword [rcx], eax
je 0x140016628
add eax, r15d
add edi, 1
add rcx, r15
cmp eax, 0xa0067
jb 0x140016614
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
shl edi, 0xc
jmp 0x140016638
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140017b54
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov edi, edx
mov rbx, rcx
jne 0x140017c12
lea rcx, str.iphlpapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [rbx], rax
je 0x140017c12
lea rdx, str.GetTcpTable
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetUdpTable
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetTcpEntry
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.AllocateAndGetTcpExTableFromStack
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.AllocateAndGetUdpExTableFromStack
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetExtendedTcpTable
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetExtendedUdpTable
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
test edi, edi
jne 0x140017cbb
cmp qword [rbx + 8], 0
jne 0x140017cbb
and dword [rbx + 0x10], edi
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [rbx + 8], rax
je 0x140017cbb
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.RtlInitUnicodeString
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.ZwOpenSection
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.ZwOpenFile
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 0x70], 0
mov qword [rbx + 0x88], rax
je 0x140017cbb
cmp qword [rbx + 0x78], 0
je 0x140017cbb
cmp qword [rbx + 0x80], 0
je 0x140017cbb
test rax, rax
je 0x140017cbb
mov dword [rbx + 0x10], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140017d38
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
and word [rsp + 0x30], 0
mov rbp, rcx
mov rdi, r8
mov rsi, rdx
lea rcx, [rsp + 0x32]
mov r8d, 0xb6
xor edx, edx
call sub.msvcrt.dll_memset
lea r14d, [rdi + 0xb8]
xor r15d, r15d
cmp edi, r14d
jae 0x140017e76
mov r13d, 0xfffff000
mov rax, qword [rbp + 0x28]
mov ecx, edi
mov r12d, edi
shr rcx, 0x16
mov eax, dword [rax + rcx*4]
test al, 1
je 0x140017e76
test al, al
js 0x140017df4
mov rcx, qword [rbp + 0x20]
xor r8d, r8d
and eax, r13d
lea edx, [r8 + 4]
mov r9d, eax
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, r12
shr rcx, 0xc
and ecx, 0x3ff
mov ebx, dword [rax + rcx*4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test bl, 1
je 0x140017e76
and ebx, r13d
jmp 0x140017e01
mov ebx, edi
and eax, r13d
and ebx, 0x3ff000
add ebx, eax
mov rcx, qword [rbp + 0x20]
xor r8d, r8d
mov r9d, ebx
lea edx, [r8 + 4]
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
mov r13, rax
je 0x140017e76
mov eax, 0xfff
mov ecx, edi
mov r8d, 0xb8
and ecx, eax
sub r8d, r15d
lea ebx, [rax + 1]
sub ebx, ecx
lea rcx, [rsp + r15 + 0x30]
cmp r8d, ebx
cmovb ebx, r8d
and r12, rax
lea rdx, [r13 + r12]
mov r8d, ebx
call sub.msvcrt.dll_memcpy
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add edi, ebx
add r15d, ebx
cmp edi, r14d
mov r13d, 0xfffff000
jb 0x140017d91
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xb8
call sub.msvcrt.dll_memcpy
lea r11, [rsp + 0xf0]
mov rax, rsi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140017eb0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140029cb8], 0
jne 0x140017f7e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
mov rbx, rax
je 0x140017f7e
lea rdx, str.CreateToolhelp32Snapshot
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026e80], rax
je 0x140017f7e
lea rdx, str.Module32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026e70], rax
je 0x140017f7e
lea rdx, str.Module32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026e68], rax
je 0x140017f7e
lea rdx, str.Process32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026d48], rax
je 0x140017f7e
lea rdx, str.Process32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x140029cb8]
mov edx, 1
test rax, rax
mov qword [0x140026e60], rax
cmovne ecx, edx
mov dword [0x140029cb8], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140017f84
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140029cbc], 0
jne 0x140018067
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbx, rax
je 0x140018067
lea rdx, str.GetModuleBaseNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026e98], rax
je 0x140018054
lea rdx, str.EnumProcessModules
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026e88], rax
je 0x140018054
lea rdx, str.GetModuleFileNameExA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026e78], rax
je 0x140018054
lea rdx, str.EnumProcesses
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140026fd0], rax
je 0x140018054
lea rdx, str.GetModuleInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x140029cbc]
mov edx, 1
test rax, rax
mov qword [0x140026e90], rax
cmovne ecx, edx
mov dword [0x140029cbc], ecx
jmp 0x14001805a
mov ecx, dword [0x140029cbc]
test ecx, ecx
jne 0x140018067
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x20
pop rbx
ret

Function at 0x140018bec
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
mov eax, 0x2040
call fcn.14001f290
sub rsp, rax
mov rdi, rdx
xor edx, edx
mov rbx, r8
test ecx, ecx
mov rbp, r9
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x31]
je 0x140018c69
call sub.msvcrt.dll_memset
mov r11, qword [rsp + 0x2080]
mov byte [rsp + 0x30], 0
mov edx, dword [r11]
test edx, edx
je 0x140018c4b
lea r8, [rsp + 0x30]
mov rcx, rbp
call fcn.140009024
mov r9, qword [rsp + 0x2088]
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x140018d1d
mov byte [rsp + 0x30], 0
call sub.msvcrt.dll_memset
mov r11, qword [rsp + 0x2088]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x30]
lea r8, [0x140020db0]
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_strlen
test eax, eax
je 0x140018d1d
mov rsi, qword [rsp + 0x2080]
xor edi, edi
xor ebx, ebx
test eax, eax
mov r13d, dword [rsi]
movsxd r12, eax
jle 0x140018d1d
mov al, byte [rsp + rbx + 0x30]
cmp al, 0x20
jne 0x140018cd2
add rbx, 1
jmp 0x140018d12
cmp edi, r13d
mov byte [rsp + 0x2060], al
mov al, byte [rsp + rbx + 0x31]
mov byte [rsp + 0x2061], al
mov byte [rsp + 0x2062], 0
jae 0x140018d17
xor edx, edx
lea rcx, [rsp + 0x2060]
lea r8d, [rdx + 0x10]
call sub.msvcrt.dll_strtoul
add edi, 1
mov byte [rbp], al
add rbp, 1
add rbx, 2
cmp rbx, r12
jl 0x140018cc4
test edi, edi
je 0x140018d1d
mov dword [rsi], edi
lea r11, [rsp + 0x2040]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140018d3c
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x120
test ecx, ecx
mov eax, r9d
mov rdi, r8
mov rsi, rdx
je 0x140018da7
mov rax, qword [rsp + 0x150]
lea rcx, [rsp + 0x21]
xor edx, edx
mov ebx, dword [rax]
mov r8d, 0xfe
mov byte [rsp + 0x20], 0
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, 0xa
mov ecx, ebx
call sub.msvcrt.dll__itoa
mov r9, qword [rsp + 0x158]
mov rdx, rdi
mov r8, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x140018dc8
mov r9, qword [rsp + 0x158]
mov r8d, eax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rcx, qword [rsp + 0x150]
mov dword [rcx], eax
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400195bc
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x140
mov rdi, rdx
mov rbx, rcx
mov r8d, 0x818
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rsp + 0x160]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r8d, dword [rsp + 0x160]
xor edx, edx
mov r9, rax
mov rcx, rbx
mov rsi, rax
call sub.VERSION.dll_GetFileVersionInfoA
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x168]
lea rdx, [0x140021278]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x14001965b
mov rcx, qword [rsp + 0x168]
mov eax, dword [rcx + 0x30]
mov dword [rdi + 4], eax
mov eax, dword [rcx + 8]
mov dword [rdi], eax
mov eax, dword [rcx + 0x14]
mov dword [rdi + 0xc], eax
mov eax, dword [rcx + 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rcx + 0x24]
mov dword [rdi + 0x10], eax
mov eax, dword [rcx + 0x28]
mov dword [rdi + 0x14], eax
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
lea rcx, [rsp + 0x20]
test eax, eax
je 0x1400196bc
mov rax, qword [rsp + 0x38]
lea rdx, str._4.4X_4.4X
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
call sub.msvcrt.dll_sprintf
lea r9, [rsp + 0x40]
lea r8, [0x140020db0]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400194f8
test eax, eax
jne 0x1400196c8
lea rcx, [rsp + 0x20]
lea rdx, str.040904E4
call fcn.14001eea4
lea r9, [rdi + 0x18]
lea r8, [0x140023200]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400194f8
lea r9, [rdi + 0x118]
lea r8, [0x140023210]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400194f8
lea r9, [rdi + 0x218]
lea r8, [0x140023220]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400194f8
lea r9, [rdi + 0x318]
lea r8, [0x140023230]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400194f8
lea r9, [rdi + 0x418]
lea r8, [0x140023240]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400194f8
lea r9, [rdi + 0x518]
lea r8, [0x140023250]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400194f8
lea r9, [rdi + 0x618]
lea r8, [0x140023260]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400194f8
lea r9, [rdi + 0x718]
lea r8, str.OriginalFileName
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400194f8
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0x140]
mov eax, 1
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400199fc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x5c], 0
mov rbx, rcx
je 0x140019a10
or eax, 0xffffffff
jmp 0x140019a71
cmp dword [rcx + 8], 0
jne 0x140019a5e
call sub.msvcrt.dll__errno
mov edx, 1
mov r8d, 0x4000
and dword [rax], 0
mov r9, qword [rbx + 0x60]
mov rcx, qword [rbx + 0x68]
call sub.msvcrt.dll_fread
test eax, eax
mov dword [rbx + 8], eax
jne 0x140019a57
mov rcx, qword [rbx + 0x60]
mov dword [rbx + 0x5c], 1
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140019a0b
or dword [rbx + 0x58], 0xffffffff
jmp 0x140019a0b
mov rax, qword [rbx + 0x68]
mov qword [rbx], rax
mov rax, qword [rbx]
add dword [rbx + 8], 0xffffffff
movzx ecx, byte [rax]
add rax, 1
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140019a78
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 8]
mov ebp, 2
mov rdi, rcx
cmp ebx, ebp
jae 0x140019b07
test ebx, ebx
je 0x140019aaa
mov rax, qword [rcx]
mov rcx, qword [rcx + 0x68]
mov al, byte [rax]
mov byte [rcx], al
call sub.msvcrt.dll__errno
mov ecx, ebx
mov edx, 1
and dword [rax], 0
mov r9, qword [rdi + 0x60]
mov eax, 0x4000
sar eax, cl
mov rcx, rbx
add rcx, qword [rdi + 0x68]
movsxd r8, eax
call sub.msvcrt.dll_fread
test eax, eax
mov rbx, rax
jne 0x140019aeb
mov rcx, qword [rdi + 0x60]
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140019aeb
or dword [rdi + 0x58], 0xffffffff
add dword [rdi + 8], ebx
mov ecx, dword [rdi + 8]
mov rax, qword [rdi + 0x68]
cmp ecx, ebp
mov qword [rdi], rax
jae 0x140019b07
mov dword [rdi + 0x90], ecx
jmp 0x140019bf5
mov rax, qword [rdi]
cmp byte [rax], 0x1f
jne 0x140019beb
cmp byte [rax + 1], 0x8b
jne 0x140019beb
add dword [rdi + 8], 0xfffffffe
add rax, rbp
mov rcx, rdi
mov qword [rdi], rax
call fcn.1400199fc
mov rcx, rdi
mov ebx, eax
call fcn.1400199fc
cmp ebx, 8
mov esi, eax
jne 0x140019be2
test al, 0xe0
jne 0x140019be2
mov ebx, 6
mov rcx, rdi
call fcn.1400199fc
sub rbx, 1
jne 0x140019b51
test sil, 4
je 0x140019b92
mov rcx, rdi
call fcn.1400199fc
mov rcx, rdi
mov ebx, eax
call fcn.1400199fc
shl eax, 8
add ebx, eax
mov ecx, ebx
add ebx, 0xffffffff
test ecx, ecx
je 0x140019b92
mov rcx, rdi
call fcn.1400199fc
cmp eax, 0xffffffff
jne 0x140019b7c
test sil, 8
je 0x140019ba9
mov rcx, rdi
call fcn.1400199fc
test eax, eax
je 0x140019ba9
cmp eax, 0xffffffff
jne 0x140019b98
test sil, 0x10
je 0x140019bc0
mov rcx, rdi
call fcn.1400199fc
test eax, eax
je 0x140019bc0
cmp eax, 0xffffffff
jne 0x140019baf
test bpl, sil
je 0x140019bd3
mov rcx, rdi
call fcn.1400199fc
sub rbp, 1
jne 0x140019bc5
mov eax, dword [rdi + 0x5c]
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
mov dword [rdi + 0x58], ecx
jmp 0x140019bf5
mov dword [rdi + 0x58], 0xfffffffd
jmp 0x140019bf5
mov dword [rdi + 0x90], 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140019fb4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov eax, dword [0x140026078]
test eax, eax
je 0x14001a0f4
xor r11d, r11d
mov dword [0x140026078], 0
lea rdx, [0x140022560]
lea r8d, [r11 + 0xe]
mov al, byte [rdx]
mov ecx, 0x1f
add rdx, 1
sub ecx, eax
mov eax, 1
shl eax, cl
or r11d, eax
sub r8, 1
jne 0x140019fe4
lea rdi, [0x140026fe0]
xor r9d, r9d
mov r10, rdi
mov r8d, r9d
mov ebx, 8
mov edx, r8d
mov ecx, r8d
shr edx, 1
mov eax, edx
mov r8d, edx
xor eax, r11d
and cl, 1
cmovne r8d, eax
sub rbx, 1
jne 0x14001a016
add r9d, 1
mov dword [r10], r8d
add r10, 4
cmp r9d, 0x100
jl 0x14001a00e
lea rdx, [0x140027fe0]
mov ebx, 0xff00
mov r8d, dword [rdx - 0x1000]
lea r10, [rdx - 0xc00]
mov r11d, 3
mov ecx, r8d
mov eax, r8d
mov r9d, r8d
shl eax, 0x10
and ecx, ebx
shr r9d, 8
add ecx, eax
mov eax, r9d
and eax, ebx
shl ecx, 8
add ecx, eax
mov eax, r8d
shr eax, 0x18
add ecx, eax
mov dword [rdx], ecx
movzx ecx, r8b
mov r8d, dword [rdi + rcx*4]
xor r8d, r9d
mov ecx, r8d
mov eax, r8d
mov r9d, r8d
shl eax, 0x10
and ecx, ebx
shr r9d, 8
add ecx, eax
mov eax, r9d
mov dword [r10], r8d
and eax, ebx
shl ecx, 8
add r10, 0x400
add ecx, eax
mov eax, r8d
shr eax, 0x18
add ecx, eax
sub r11, 1
mov dword [r10 + 0xc00], ecx
jne 0x14001a08f
lea rax, [0x1400283e0]
add rdx, 4
cmp rdx, rax
jl 0x14001a053
mov dword [0x140026074], r11d
jmp 0x14001a0fe
mov eax, dword [0x140026074]
test eax, eax
jne 0x14001a0f4
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret