joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457910
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0x88], r13
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x78], r15
mov rax, qword [0x004792e8]
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea rdx, [rbp + 8]
mov eax, dword [rsp + 0x20]
lea r12, [rsp + 0x20]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x457a6e
mov r14, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x0047b594]
mov edi, dword [rbp + 0x3c]
xor ebx, ebx
cmp ecx, 2
jne 0x4579e4
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x4579de
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x4579de
lea rcx, [rbp]
mov dword [rbp], ebx
call rax
cmp eax, 1
jne 0x4579de
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
mov ecx, dword [0x0047b594]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x457a09
add edx, edi
lea eax, [rdi + rdi*2]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r12
mov eax, 0x11
mov r13d, edx
sub rbx, r13
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x457a6e
mov r9d, 4
mov r8d, 0x1000
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x457a6e
lea r9, [rbp + 4]
mov r8d, esi
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x457a6e
mov eax, r15d
jmp 0x457a70
xor eax, eax
mov rcx, qword [rbp + 0x68]
call fcn.0045d640
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
mov rdi, qword [rbp + 0xb0]
mov r12, qword [rbp + 0xb8]
mov r13, qword [rbp + 0x88]
mov r14, qword [rbp + 0x80]
mov r15, qword [rbp + 0x78]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x457ab0
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov ebp, edx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov qword [rsp + 0x28], r13
mov esi, ecx
call fcn.00457ff0
cmp eax, 0xffffffff
mov r13d, eax
je 0x457c23
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.00457ff0
cmp eax, 0xffffffff
je 0x457c23
mov qword [rsp + 0x40], rbx
mov ebx, ebp
mov qword [rsp + 0x20], r14
sub ebx, eax
test ebx, ebx
jle 0x457bc0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x457b47
call fcn.00448aa0
lea edi, [rbp - 1]
mov dword [rax], 0xc
jmp 0x457c08
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x30], r12
call fcn.0045a7c0
mov r12d, eax
nop
nop
mov r8d, ebx
cmp ebx, r14d
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.004534b0
cmp eax, 0xffffffff
je 0x457b81
sub ebx, eax
test ebx, ebx
jg 0x457b60
jmp 0x457b9b
call fcn.00448ad0
cmp dword [rax], 5
jne 0x457b96
call fcn.00448aa0
mov dword [rax], 0xd
mov edi, 0xffffffff
mov edx, r12d
mov ecx, esi
call fcn.0045a7c0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x30]
jmp 0x457c08
test ebx, ebx
jns 0x457c08
xor r8d, r8d
mov edx, ebp
mov ecx, esi
call fcn.00457ff0
mov ecx, esi
call fcn.0044cd20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb edi, edi
neg edi
dec edi
cmp edi, 0xffffffff
jne 0x457c08
call fcn.00448aa0
mov dword [rax], 0xd
call fcn.00448ad0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
xor r8d, r8d
mov edx, r13d
mov ecx, esi
call fcn.00457ff0
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov eax, edi
jmp 0x457c28
mov eax, 0xffffffff
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x459200
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x004792e8]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x459243
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
call fcn.0045d640
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.00449880
mov rcx, qword [rsp + 0x28]
call fcn.0045d640
add rsp, 0x38
ret
Function at 0x459e30
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r14
xor r12d, r12d
test rcx, rcx
mov qword [rsp + 0x28], r15
mov r15d, edx
mov rsi, rcx
je 0x45a0aa
lea edx, [r12 + 0x3d]
call fcn.0045a8c0
test rax, rax
mov r14, rax
je 0x45a0aa
cmp rsi, rax
je 0x45a0aa
cmp byte [rax + 1], r12b
mov rbx, qword [0x0047b5c0]
mov qword [rsp + 0x38], r13
mov r13d, r12d
sete r13b
cmp rbx, qword [0x0047b5c8]
jne 0x459eb0
mov rcx, rbx
call fcn.00459d80
mov rbx, rax
mov qword [0x0047b5c0], rax
test rbx, rbx
jne 0x459f2d
test r15d, r15d
je 0x459ed6
cmp qword [0x0047b5d0], r12
je 0x459ed6
call fcn.00452f50
test eax, eax
je 0x459f26
mov eax, 0xffffffff
jmp 0x459fdf
test r13d, r13d
je 0x459ee2
xor eax, eax
jmp 0x459fdf
mov ecx, 8
call fcn.00452220
test rax, rax
mov qword [0x0047b5c0], rax
je 0x459ecc
mov qword [rax], r12
cmp qword [0x0047b5d0], r12
jne 0x459f26
mov ecx, 8
call fcn.00452220
test rax, rax
mov qword [0x0047b5d0], rax
je 0x459ecc
mov qword [rax], r12
mov rbx, qword [0x0047b5c0]
jmp 0x459f2d
mov rbx, qword [0x0047b5c0]
mov edx, r14d
mov rcx, rsi
mov qword [rsp + 0x58], rbp
sub edx, esi
mov qword [rsp + 0x68], rdi
call fcn.00459ce0
test eax, eax
movsxd rdi, eax
js 0x459fa8
cmp qword [rbx], r12
je 0x459fa8
mov rcx, qword [rbx + rdi*8]
call fcn.00446bf0
test r13d, r13d
je 0x459fa2
cmp qword [rbx + rdi*8], r12
je 0x459f85
lea rdx, [rbx + rdi*8]
mov rcx, rdx
nop
nop
mov rax, qword [rdx + 8]
add rcx, 8
inc edi
mov qword [rdx], rax
cmp qword [rcx], r12
mov rdx, rcx
jne 0x459f70
movsxd rdx, edi
mov rcx, rbx
shl rdx, 3
call fcn.00452320
test rax, rax
je 0x45a015
mov qword [0x0047b5c0], rax
jmp 0x45a015
mov qword [rbx + rdi*8], rsi
jmp 0x45a015
test r13d, r13d
jne 0x45a09b
test eax, eax
jns 0x459fb7
neg edi
lea eax, [rdi + 2]
mov rcx, rbx
movsxd rdx, eax
shl rdx, 3
call fcn.00452320
test rax, rax
mov r11, rax
jne 0x45a002
lea eax, [r11 - 1]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x38]
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
movsxd rax, edi
mov qword [r11 + rax*8], rsi
mov qword [r11 + rax*8 + 8], r12
mov qword [0x0047b5c0], r11
test r15d, r15d
je 0x45a086
xor eax, eax
mov rbx, 0xffffffffffffffff
mov rdi, rsi
mov rcx, rbx
repne scasb al, byte [rdi]
not rcx
inc rcx
call fcn.00452220
test rax, rax
mov rdi, rax
je 0x45a086
mov rdx, rsi
sub rax, rsi
nop
nop
nop
movzx ecx, byte [rdx]
inc rdx
test cl, cl
mov byte [rax + rdx - 1], cl
jne 0x45a050
lea rdx, [rax + r14]
mov rcx, rdi
mov byte [rdx], r12b
inc rdx
test r13d, r13d
cmovne rdx, r12
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, rdi
test eax, eax
cmove r12d, ebx
call fcn.00446bf0
test r13d, r13d
je 0x45a093
mov rcx, rsi
call fcn.00446bf0
mov eax, r12d
jmp 0x459fd5
mov rcx, rsi
call fcn.00446bf0
xor eax, eax
jmp 0x459fd5
mov eax, 0xffffffff
jmp 0x459fe4
Function at 0x45a620
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
cmp qword [0x0047be60], rsi
mov ebx, r8d
mov rbp, rdx
mov r12, rcx
jne 0x45a706
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
je 0x45a6f6
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x0047be60], rax
je 0x45a6f6
lea rdx, str.GetActiveWindow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetLastActivePopup
mov rcx, rdi
mov qword [0x0047be68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x0047b594], 2
mov qword [0x0047be70], rax
jne 0x45a6fd
lea rdx, str.GetUserObjectInformationA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x0047be80], rax
je 0x45a6fd
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0047be78], rax
jmp 0x45a70d
xor eax, eax
jmp 0x45a797
mov rax, qword [0x0047be78]
jmp 0x45a70d
mov rax, qword [0x0047be78]
test rax, rax
je 0x45a75b
call rax
test rax, rax
je 0x45a746
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call qword [0x0047be80]
test eax, eax
je 0x45a746
test byte [rsp + 0x40], 1
jne 0x45a75b
cmp dword [0x0047b5a0], 4
jb 0x45a755
bts ebx, 0x15
jmp 0x45a785
bts ebx, 0x12
jmp 0x45a785
mov rax, qword [0x0047be68]
test rax, rax
je 0x45a785
call rax
test rax, rax
mov rsi, rax
je 0x45a785
mov rdx, qword [0x0047be70]
test rdx, rdx
je 0x45a785
mov rcx, rax
call rdx
mov rsi, rax
mov r9d, ebx
mov r8, rbp
mov rdx, r12
mov rcx, rsi
call qword [0x0047be60]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x45a990
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x48], rdi
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x28], r15
mov rax, qword [0x004792e8]
mov qword [rbp + 0x18], rax
mov edi, r9d
mov r14, r8
mov r12d, edx
mov r13d, ecx
mov r10d, dword [0x0047be88]
test r10d, r10d
jne 0x45aa33
xor r9d, r9d
xor r8d, r8d
lea edx, [r10 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45aa13
mov r10d, 1
mov dword [0x0047be88], r10d
jmp 0x45aa33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10d, dword [0x0047be88]
mov ecx, 2
cmp eax, 0x78
cmove r10d, ecx
mov dword [0x0047be88], r10d
cmp r10d, 1
jne 0x45aa50
mov r9d, edi
mov r8, r14
mov edx, r12d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x45ab6f
cmp r10d, 2
je 0x45aa62
test r10d, r10d
je 0x45aa62
xor eax, eax
jmp 0x45ab6f
xor esi, esi
xor r15d, r15d
mov eax, dword [rbp + 0x90]
test eax, eax
cmove eax, dword [0x0047b910]
mov dword [rbp + 0x90], eax
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
movsxd rcx, eax
mov dword [rbp], ecx
test eax, eax
je 0x45ab6f
lea rax, [rcx + 0xf]
and rax, 0xfffffffffffffff0
call fcn.0045d670
sub rsp, rax
lea rbx, [rsp + 0x30]
mov qword [rbp + 0x10], rbx
jmp 0x45aadf
test rbx, rbx
jne 0x45aafa
movsxd rcx, ecx
call fcn.00452220
mov rbx, rax
test rax, rax
je 0x45ab6f
mov r15d, 1
mov r9d, dword [rbp]
mov r8, rbx
mov edx, r12d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x45ab60
test edi, edi
jne 0x45ab3c
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], 0
lea r9d, [rdi - 1]
mov r8, rbx
lea edx, [rdi + 1]
mov ecx, dword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
jmp 0x45ab60
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
mov r9d, 0xffffffff
mov r8, rbx
lea edx, [r9 + 2]
mov ecx, dword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test r15d, r15d
je 0x45ab6d
mov rcx, rbx
call fcn.00446bf0
mov eax, esi
mov rcx, qword [rbp + 0x18]
call fcn.0045d640
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x50]
mov rdi, qword [rbp + 0x48]
mov r12, qword [rbp + 0x40]
mov r13, qword [rbp + 0x38]
mov r14, qword [rbp + 0x30]
mov r15, qword [rbp + 0x28]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x45aba0
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x48], rdi
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x28], r15
mov rax, qword [0x004792e8]
mov qword [rbp + 0x18], rax
mov esi, r9d
mov r15, r8
mov r13d, edx
mov r14d, ecx
mov r10d, dword [0x0047be8c]
test r10d, r10d
jne 0x45ac43
xor r9d, r9d
xor r8d, r8d
lea edx, [r10 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45ac23
mov r10d, 1
mov dword [0x0047be8c], r10d
jmp 0x45ac43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10d, dword [0x0047be8c]
mov ecx, 2
cmp eax, 0x78
cmove r10d, ecx
mov dword [0x0047be8c], r10d
cmp r10d, 2
je 0x45ad9d
test r10d, r10d
je 0x45ad9d
cmp r10d, 1
jne 0x45ad99
xor edi, edi
mov r12d, edi
mov eax, edi
mov dword [rbp], edi
mov eax, dword [rbp + 0x90]
test eax, eax
cmove eax, dword [0x0047b910]
mov dword [rbp + 0x90], eax
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movsxd rcx, eax
mov dword [rbp + 4], ecx
test eax, eax
je 0x45adaf
mov rax, rcx
add rax, rax
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0045d670
sub rsp, rax
lea rbx, [rsp + 0x40]
mov qword [rbp + 0x10], rbx
jmp 0x45acee
test rbx, rbx
jne 0x45ad11
movsxd rcx, ecx
add rcx, rcx
call fcn.00452220
mov rbx, rax
test rax, rax
je 0x45adaf
mov dword [rbp], 1
mov r9d, dword [rbp + 4]
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45ad86
test esi, esi
jne 0x45ad59
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
lea r9d, [rsi - 1]
mov r8, rbx
xor edx, edx
mov ecx, dword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12d, eax
jmp 0x45ad86
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r15
mov r9d, 0xffffffff
mov r8, rbx
xor edx, edx
mov ecx, dword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12d, eax
cmp dword [rbp], 0
je 0x45ad94
mov rcx, rbx
call fcn.00446bf0
mov eax, r12d
jmp 0x45adaf
xor eax, eax
jmp 0x45adaf
mov r9d, esi
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, qword [rbp + 0x18]
call fcn.0045d640
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x50]
mov rdi, qword [rbp + 0x48]
mov r12, qword [rbp + 0x40]
mov r13, qword [rbp + 0x38]
mov r14, qword [rbp + 0x30]
mov r15, qword [rbp + 0x28]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x45b800
Capabilities:
Hash data with md5

Disassembly:
lea rax, [0x004605f8]
mov qword [rcx], rax
xor eax, eax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov dword [rcx + 0x4c], eax
mov dword [rcx + 0x48], eax
mov dword [rcx + 0x50], 0x67452301
mov dword [rcx + 0x54], 0xefcdab89
mov rax, rcx
mov dword [rcx + 0x58], 0x98badcfe
mov dword [rcx + 0x5c], 0x10325476
ret

Function at 0x45c820
Capabilities:
Create thread
Resume thread

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
xor ebx, ebx
test rcx, rcx
mov qword [rsp + 0x30], r12
mov rbp, r8
mov rsi, rcx
mov r12d, edx
jne 0x45c85c
call fcn.00448aa0
mov dword [rax], 0x16
lea rax, [rsi - 1]
jmp 0x45c900
mov edx, 0x130
mov ecx, 1
mov qword [rsp + 0x58], rdi
call fcn.00452290
test rax, rax
mov rdi, rax
je 0x45c8dc
mov rcx, rax
call fcn.0044da90
lea r8, [0x0045c750]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x90], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
mov qword [rdi + 8], rax
jne 0x45c8c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x45c8dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x45c8f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.00446bf0
test ebx, ebx
je 0x45c8ef
mov ecx, ebx
call fcn.00448b00
mov rax, 0xffffffffffffffff
jmp 0x45c8fb
mov rax, rbx
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x1410c3058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1410c31df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1410c3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410c306f
add dl, dl
jne 0x1410c3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410c30f6
xor eax, eax
add dl, dl
jne 0x1410c30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410c31ad
add dl, dl
jne 0x1410c30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410c30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410c30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410c30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410c30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410c307e
mov eax, 1
add dl, dl
jne 0x1410c3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410c3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410c30fb
sub eax, ebx
mov ebx, 1
jne 0x1410c314c
mov ecx, 1
add dl, dl
jne 0x1410c312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410c313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410c3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410c307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410c3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410c3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410c315d
cmp eax, 0x7d00
jae 0x1410c319b
cmp eax, 0x500
jb 0x1410c3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410c307e
cmp eax, 0x7f
ja 0x1410c319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410c307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410c31d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1410c307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002690
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400026b1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400026de
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400026e0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002739
test ecx, ecx
jle 0x140002719
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002739
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002739
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140002760
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002782
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002791
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400027b4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400027b6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400027f2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000288e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000282d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000286e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000288e
cmp rbx, rax
ja 0x140002840
test rbx, rbx
je 0x14000288e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret