joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021a20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov r10, r9
movzx ebx, r8b
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rsp + 0x90]
mov qword [rsp + 0x38], r14
mov r11, qword [rcx]
mov r8, qword [r11 + 8]
mov cl, 1
nop dword [rax]
cmp byte [r8 + 0x19], 0
jne 0x140021af7
mov r11, r8
test bl, bl
je 0x140021aab
mov rax, qword [r8 + 0x20]
test rax, rax
je 0x140021a9b
mov r9, qword [r10]
sub r9, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x140021a94
inc rax
test ecx, ecx
jne 0x140021a81
test edx, edx
sets cl
jmp 0x140021aa6
mov eax, dword [r10 + 8]
cmp dword [r8 + 0x28], eax
setb cl
xor cl, 1
jmp 0x140021ae5
mov rax, qword [r10]
test rax, rax
je 0x140021ada
mov r9, qword [r8 + 0x20]
sub r9, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x140021ad3
inc rax
test ecx, ecx
jne 0x140021ac0
test edx, edx
sets cl
jmp 0x140021ae5
mov eax, dword [r8 + 0x28]
cmp dword [r10 + 8], eax
setb cl
test cl, cl
je 0x140021aee
mov r8, qword [r8]
jmp 0x140021af2
mov r8, qword [r8 + 0x10]
jmp 0x140021a60
mov rbx, r11
test cl, cl
je 0x140021b7c
mov rdx, qword [rdi]
cmp r11, qword [rdx]
jne 0x140021b30
mov qword [rsp + 0x28], r14
mov r9, r11
mov r8b, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140021750
mov rcx, qword [rax]
mov qword [rsi], rcx
mov byte [rsi + 8], 1
mov rax, rsi
jmp 0x140021c1b
cmp byte [r11 + 0x19], 0
je 0x140021b3d
mov rbx, qword [r11 + 0x10]
jmp 0x140021b7c
mov rax, qword [r11]
cmp byte [rax + 0x19], 0
jne 0x140021b60
mov rbx, rax
nop dword [rax]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140021b7c
mov rbx, rax
jmp 0x140021b50
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140021b74
cmp rbx, qword [rax]
jne 0x140021b74
mov rbx, rax
jmp 0x140021b60
cmp byte [rbx + 0x19], 0
cmove rbx, rax
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x140021bad
mov r9, qword [r10]
sub r9, rax
nop dword [rax + rax]
movzx r8d, byte [rax]
movzx edx, byte [rax + r9]
sub r8d, edx
jne 0x140021ba5
inc rax
test edx, edx
jne 0x140021b90
test r8d, r8d
sets al
jmp 0x140021bb7
mov eax, dword [r10 + 8]
cmp dword [rbx + 0x28], eax
setb al
test al, al
je 0x140021be3
mov qword [rsp + 0x28], r14
mov r9, r11
movzx r8d, cl
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140021750
mov rcx, qword [rax]
mov qword [rsi], rcx
mov byte [rsi + 8], 1
mov rax, rsi
jmp 0x140021c1b
lea rdi, [r14 + 0x20]
mov qword [rsp + 0x30], rdi
lea rcx, [rdi + 0x10]
call fcn.140017690
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140021c09
cmp dword [rdi + 8], 1
jne 0x140021c09
call fcn.14006e49c
mov rcx, r14
call fcn.14005ed1c
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140022970
Capabilities:
Create thread
Resume thread

Disassembly:
push rdi
mov eax, 0x1080
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1098], rbx
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x1078], rax
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x1070], rax
lea rdx, [rcx + 0x10]
lea rcx, [rsp + 0x1070]
call fcn.14000db10
nop
lea rax, [rdi + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x140022c40]
xor edx, edx
xor ecx, ecx
call fcn.14006aa5c
mov rbx, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x30], 0
mov rcx, qword [rdi]
cmp rax, rcx
je 0x140022a43
test rcx, rcx
je 0x140022a40
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140022a39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_close_handle___i_.
lea rcx, [rsp + 0x50]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x50]
call fcn.140060304
int3
mov qword [rdi], 0
mov qword [rdi], rbx
lea rcx, [rsp + 0x30]
call fcn.1400055e0
mov qword [rsp + 0x38], 0
cmp qword [rdi], 0
sete bl
lea rcx, [rsp + 0x38]
call fcn.1400055e0
test bl, bl
je 0x140022a8e
lea rdx, str.Thread_cannot_start.
lea rcx, [rsp + 0x50]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x50]
call fcn.140060304
int3
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
lea rcx, [rsp + 0x1070]
call fcn.14000dba0
mov rcx, qword [rsp + 0x1078]
xor rcx, rsp
call fcn.14005f0d0
mov rbx, qword [rsp + 0x1098]
add rsp, 0x1080
pop rdi
ret

Function at 0x140022ad0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdx, [rcx + 0x10]
lea rcx, [rsp + 0x28]
call fcn.14000db10
nop
movzx eax, byte [rbx + 0x80]
test al, al
je 0x140022b22
mov rcx, qword [rbx]
test rcx, rcx
je 0x140022b22
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
xchg byte [rbx + 0x80], al
lea rcx, [rsp + 0x28]
call fcn.14000dba0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x40
pop rbx
ret

Function at 0x140022e30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x68]
mov ebx, edx
mov rax, r8
xor edx, edx
mov r8d, ebx
mov dword [rsp + 0x68], edx
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140022e8b
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x80
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, ebx
lea rdx, str.Could_not_write__i_bytes_to_file_stream___i_.
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.140022d80
lea rdx, [0x1401356a0]
lea rcx, [rsp + 0x30]
call fcn.140060304
int3
Function at 0x1400232e0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xfe0]
mov eax, 0x10e0
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rbp + 0xfd8], rax
mov rsi, r9
mov rbx, rcx
mov qword [rsp + 0x70], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rbp + 0xfb8]
call fcn.1400235d0
nop
xor eax, eax
mov qword [rbp + 0xfa0], rax
mov qword [rbp + 0xfa8], rax
mov qword [rbp + 0xfb0], rax
test rsi, rsi
je 0x140023370
mov dword [rbp + 0xfa0], 0x18
mov dword [rbp + 0xfb0], 1
mov rax, qword [rsi]
mov qword [rbp + 0xfa8], rax
lea rax, vtable.Mutex.0
mov qword [rbx], rax
mov qword [rbx + 8], r14
mov dword [rsp + 0x20], 1
lea rdx, [rbp + 0xfb8]
lea rcx, [rsp + 0x30]
call fcn.1400029b0
nop
cmp qword [rax + 0x18], 8
jb 0x1400233a2
mov rax, qword [rax]
lea rcx, [rbp + 0xfa0]
test rsi, rsi
cmove rcx, r14
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
lea rcx, [rbx + 8]
call fcn.140011800
nop
lea rcx, [rsp + 0x28]
call fcn.1400055e0
nop
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x1400233f7
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140003f50
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp qword [rbx + 8], 0
jne 0x1400234a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002345b
lea r8, [rbp + 0xfb8]
cmp qword [rbp + 0xfd0], 0x10
cmovae r8, qword [rbp + 0xfb8]
lea rdx, str.Access_is_denied_when_creating_mutex:__s
lea rcx, [rsp + 0x30]
call fcn.140023240
lea rdx, [0x1401356e0]
lea rcx, [rsp + 0x30]
call fcn.140060304
int3
lea rdx, [rbp + 0xfb8]
lea rcx, [rsp + 0x30]
call fcn.140002960
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140023479
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.Could_not_create_open_mutex_with_name__s___i_.
lea rcx, [rbp - 0x80]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rbp - 0x80]
call fcn.140060304
nop
lea rcx, [rbp + 0xfb8]
call fcn.140002ff0
mov rax, rbx
mov rcx, qword [rbp + 0xfd8]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x10e0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140026260
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x10
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140001750
nop
mov rdx, rax
mov rcx, rbx
call fcn.140001d20
nop
lea rcx, [rsp + 0x30]
call fcn.140002ff0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x70
pop rbx
ret
Function at 0x1400262e0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push rbx
sub rsp, 0x300
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
lea rbx, [rcx + 0x88]
mov rcx, rbx
call fcn.140001e80
xor edx, edx
mov r8d, 0x198
lea rcx, [rsp + 0x50]
call fcn.140060ef0
mov ecx, 0x101
lea rdx, [rsp + 0x50]
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1400263af
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x1f0]
call fcn.140060ef0
mov edx, 0x100
lea rcx, [rsp + 0x1f0]
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x1400263aa
lea rcx, [rsp + 0x1f0]
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x1400263aa
mov rax, qword [rax + 0x18]
mov rdx, qword [rax]
mov ecx, dword [rdx]
call sub.WS2_32.dll_inet_ntoa
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140001750
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140001d20
nop
lea rcx, [rsp + 0x28]
call fcn.140002ff0
call sub.WS2_32.dll_WSACleanup
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x300
pop rbx
ret

Function at 0x1400263d0
Capabilities:
Get domain information
Get hostname

Disassembly:
push rbx
mov eax, 0x11a0
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x1190], rax
mov rbx, rcx
mov qword [rcx + 0x40], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov edx, 1
xor ecx, ecx
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
test eax, eax
je 0x140026451
mov r8d, eax
lea rdx, str.Unable_to_get_computer_domain_name:_Error__d
lea rcx, [rsp + 0x60]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x60]
call fcn.140060304
int3
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x140026496
lea rcx, [rsp + 0x38]
call fcn.1400017c0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x38]
call fcn.140001d20
nop
lea rcx, [rsp + 0x38]
call fcn.140002ff0
mov dword [rbx + 0x40], 2
mov dword [rbx + 0x44], 2
jmp 0x14002652a
mov dword [rsp + 0x20], 0x104
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x1080]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
setne al
test al, al
jne 0x1400264e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Unable_to_get_computer_workgroup_name:_Error__d
lea rcx, [rsp + 0x60]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x60]
call fcn.140060304
int3
mov r8d, dword [rsp + 0x20]
test r8d, r8d
je 0x14002652a
lea rdx, [rsp + 0x1080]
lea rcx, [rsp + 0x38]
call fcn.140001790
nop
lea rcx, [rbx + 0x20]
mov rdx, rax
call fcn.140001d20
nop
lea rcx, [rsp + 0x38]
call fcn.140002ff0
mov dword [rbx + 0x40], 1
mov dword [rbx + 0x44], 1
mov rcx, qword [rsp + 0x1190]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x11a0
pop rbx
ret
Function at 0x140026550
Capabilities:
Get session information

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rbx, [rcx + 0x48]
mov rcx, rbx
call fcn.140001e80
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov r8d, 0xa
or edx, 0xffffffff
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x1400265d0
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140001750
nop
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140001d20
nop
lea rcx, [rsp + 0x48]
call fcn.140002ff0
mov rcx, qword [rsp + 0x38]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x70
pop rbx
ret

Function at 0x1400265f0
Capabilities:
Get session information

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rbx, [rcx + 0x68]
mov rcx, rbx
call fcn.140001e80
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0xe
or edx, 0xffffffff
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14002669e
test rcx, rcx
je 0x14002669e
cmp dword [rcx], 2
jne 0x14002669e
movzx eax, byte [rcx + 9]
movzx edx, byte [rcx + 8]
movzx r9d, byte [rcx + 7]
movzx r8d, byte [rcx + 6]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str._u._u._u._u
lea rcx, [rsp + 0x48]
call fcn.140001900
nop
mov rdx, rax
mov rcx, rbx
call fcn.140001d20
nop
lea rcx, [rsp + 0x48]
call fcn.140002ff0
mov rcx, qword [rsp + 0x30]
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x70
pop rbx
ret
Function at 0x1400287a0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rbx, rcx
call fcn.1400278f0
nop
cmp qword [rbx + 0x358], 0
je 0x140028880
cmp dword [rbx + 0x28], 0
je 0x1400287e2
mov rcx, rbx
call fcn.14002bb40
xor edx, edx
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov rcx, qword [rbx + 0x358]
call fcn.140028de0
cmp dword [rbx + 0x338], 0
jne 0x14002882a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov qword [rbx + 0x358], rdi
mov rcx, qword [rbx + 0x368]
test rcx, rcx
je 0x14002885b
mov rax, qword [rcx]
lea edx, [rdi + 1]
call qword [rax]
mov qword [rbx + 0x368], rdi
mov eax, dword [rbx + 0x184]
cmp eax, 7
je 0x14002886b
cmp eax, 0x12
jne 0x140028882
test esi, esi
je 0x140028877
cmp dword [rbx + 0x338], edi
jne 0x140028882
mov dword [rbx + 0x24], 1
jmp 0x140028882
xor edi, edi
mov rcx, qword [rbx + 0x360]
test rcx, rcx
je 0x14002889f
mov edx, 0x5c
call fcn.14005f164
mov qword [rbx + 0x360], rdi
jmp 0x1400288a8
lea rcx, [rbx + 0x168]
xor edx, edx
mov r8d, 0x1d0
call fcn.140060ef0
mov qword [rbx + 0x358], rdi
mov dword [rbx + 0x338], edi
mov qword [rbx + 0x340], rdi
mov qword [rbx + 0x348], rdi
mov qword [rbx + 0x350], 0
mov dword [rbx + 0x20], edi
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x360], rdi
mov dword [rbx + 0x370], edi
mov rcx, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.14002b470
Function at 0x140028de0
Capabilities:
Get common file path
Timestomp file

Disassembly:
push rdi
sub rsp, 0x180
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x198], rbx
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, rcx
cmp dword [section..data], 0
je 0x140028ee6
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rsp + 0x60]
call fcn.140048e80
lea rcx, [rsp + 0x60]
dec rcx
nop
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140028e40
movsd xmm0, qword [0x1400bcc10]
movsd qword [rcx], xmm0
mov eax, dword [0x1400bcc18]
mov dword [rcx + 8], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140028ee6
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140028edc
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14005f0d0
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
Function at 0x140028f10
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov dword [rsp + 0x28], r9d
test r8d, r8d
je 0x140029060
test r9d, r9d
je 0x140029060
mov ecx, dword [rsp + 0x28]
call fcn.14005f15c
mov rdi, rax
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x28]
mov rcx, rdi
cmp ebx, eax
je 0x140029048
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8, rsi
lea rdx, [rsp + 0x20]
call fcn.14003a400
mov esi, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140029037
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0x28]
cmp dword [rsp + 0x28], 0x100
cmovbe rax, rcx
mov ebx, dword [rax]
mov ecx, ebx
call fcn.14005f15c
mov r14, rax
mov r8d, ebx
mov edx, 0xcd
mov rcx, rax
call fcn.140060ef0
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
call fcn.1400611e0
test eax, eax
jne 0x140029021
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.140060ef0
lea r8, [r15 + 0x3c]
lea rdx, str.DecompressData:_Memory_Sanity_Check_Failed__file__s_n
lea rcx, [rsp + 0x50]
call fcn.14002bc50
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or esi, 0xffffffff
mov dword [rsp + 0x30], esi
mov rcx, r14
call fcn.14005f164
test esi, esi
jne 0x140029037
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x20], eax
je 0x140029054
mov rcx, rdi
call fcn.14005f164
xor edi, edi
mov qword [rsp + 0x38], rdi
jmp 0x140029054
mov r8, rax
mov rdx, rsi
call fcn.140060aa0
nop
jmp 0x14002905b
mov rax, rdi
jmp 0x140029062
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002a790
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14002a85a
test r8, r8
je 0x14002a85a
cmp qword [rcx + 0x358], 0
je 0x14002a85a
xor edi, edi
call fcn.1400278f0
nop
mov rcx, rsi
call fcn.14005f15c
mov r15, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rax
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a838
mov eax, dword [rsp + 0x68]
cmp rax, rsi
jne 0x14002a838
mov dword [rsp + 0x20], 1
mov r9, r14
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call fcn.14002a5a0
mov rdi, rax
mov qword [rsp + 0x30], rax
mov rcx, r15
call fcn.14005f164
nop
jmp 0x14002a84d
mov rcx, rbx
call fcn.14002b470
mov rax, rdi
jmp 0x14002a85c
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x14002a870
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14002a89c
xor eax, eax
jmp 0x14002a91b
cmp dword [rcx + 0x34], 0
jne 0x14002a8a8
cmp dword [rdx + 0x54], 0x44
jb 0x14002a898
cmp dword [rdx + 0x48], 0
jl 0x14002a898
xor edx, edx
mov rcx, qword [rcx + 0x358]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [rdi + 0x50], eax
ja 0x14002a898
cmp dword [rdi + 0x4c], eax
ja 0x14002a898
xor esi, esi
mov rcx, rbx
call fcn.1400278f0
nop
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rdi + 0x4c]
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14002a904
mov r8d, dword [rdi + 0x54]
mov edx, dword [rdi + 0x50]
mov rcx, rbx
call fcn.14002a790
mov rsi, rax
mov qword [rsp + 0x20], rax
jmp 0x14002a910
mov rcx, rbx
call fcn.14002b470
mov rax, rsi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002a9c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rbx, rcx
xor edi, edi
mov qword [rsp + 0x30], rdi
call fcn.1400278f0
nop
cmp dword [rbx + 0x180], edi
je 0x14002aa8b
mov dword [rsp + 0x58], edi
mov ecx, dword [rbx + 0x17c]
call fcn.14005f15c
mov rsi, rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbx + 0x174]
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
mov r8d, dword [rbx + 0x17c]
mov rdx, rsi
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002aa82
mov r8d, dword [rbx + 0x17c]
cmp dword [rsp + 0x58], r8d
jne 0x14002aa82
mov r9d, dword [rbx + 0x180]
mov rdx, rsi
mov rcx, rbx
call fcn.140028f10
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002aa82
mov ecx, dword [rbx + 0x178]
mov dword [rbx + 0x350], ecx
mov rcx, rsi
call fcn.14005f164
nop
jmp 0x14002aa97
mov rcx, rbx
call fcn.14002b470
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14002af30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rbx, rcx
xor edi, edi
mov qword [rsp + 0x30], rdi
call fcn.1400278f0
nop
cmp dword [rbx + 0x180], edi
je 0x14002b01e
mov dword [rsp + 0x68], edi
mov ecx, dword [rbx + 0x17c]
call fcn.14005f15c
mov rsi, rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbx + 0x174]
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
mov r8d, dword [rbx + 0x17c]
mov rdx, rsi
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002b015
mov r8d, dword [rbx + 0x17c]
cmp dword [rsp + 0x68], r8d
jne 0x14002b015
mov r9d, dword [rbx + 0x180]
mov rdx, rsi
mov rcx, rbx
call fcn.140028f10
mov r14, rax
test rax, rax
je 0x14002b015
mov r8d, dword [rbx + 0x178]
mov rdx, rsi
mov ecx, dword [rbx + 0x170]
call fcn.1400328d0
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002b00d
mov ecx, dword [rbx + 0x178]
mov dword [rbx + 0x350], ecx
mov rcx, r14
call fcn.14005f164
mov rcx, rsi
call fcn.14005f164
nop
jmp 0x14002b02a
mov rcx, rbx
call fcn.14002b470
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret