joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029d40
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov r12, r8
mov ebx, edx
mov rdi, rcx
mov r13d, dword [rcx + 8]
mov ebp, dword [rcx + 0x18]
add ebp, dword [rcx + 0x14]
add ebp, dword [rcx + 0x1c]
mov rcx, rbp
call fcn.14012e020
test rax, rax
je 0x140029da4
mov r14, rax
add r13, r12
mov rsi, rax
test ebp, ebp
je 0x140029dab
mov ecx, ebx
mov rdx, rsi
mov r8d, ebp
call fcn.14015586c
test eax, eax
js 0x140029dc6
sub ebp, eax
mov ecx, eax
add rsi, rcx
test eax, eax
jne 0x140029d7e
test ebp, ebp
je 0x140029d7e
jmp 0x140029dbf
mov ebx, 1
jmp 0x140029dd3
mov eax, dword [rdi + 0x14]
imul ecx, eax, 0xaaaaaaab
ror ecx, 2
cmp ecx, 0x15555555
jbe 0x140029de6
mov ebx, 8
jmp 0x140029dcb
mov ebx, 6
mov rcx, r14
call fcn.14012e070
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test rax, rax
je 0x140029f24
mov dword [rsp + 0x24], r15d
mov rbp, r14
add rbp, rax
mov eax, dword [rdi + 0x18]
mov ecx, dword [rdi + 0x1c]
add rax, rbp
add rcx, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
mov rdi, rax
mov qword [rsp + 0x28], rbp
mov r15, r12
mov r12, r14
mov qword [rsp + 0x30], r15
mov ecx, dword [r12]
mov rsi, qword [sym.imp.WS2_32.dll_ntohl]
call rsi
mov dword [r12], eax
mov ecx, dword [r12 + 4]
call rsi
mov dword [r12 + 4], eax
mov ecx, dword [r12 + 8]
call rsi
mov dword [r12 + 8], eax
mov eax, dword [r12]
mov rcx, r13
sub rcx, r15
cmp rcx, rax
jb 0x140029dbf
mov rcx, qword [rsp + 0x40]
sub rcx, rbp
cmp rcx, rax
jb 0x140029dbf
test eax, eax
je 0x140029e8c
xor eax, eax
mov cl, byte [r15 + rax]
add byte [rbp + rax], cl
inc rax
mov r8d, dword [r12]
cmp rax, r8
jb 0x140029e76
jmp 0x140029e8f
xor r8d, r8d
mov ecx, dword [rsp + 0x24]
mov rdx, rbp
call fcn.140159690
mov ebx, 7
cmp eax, dword [r12]
jne 0x140029dcb
mov esi, eax
mov r8d, dword [r12 + 4]
mov rax, qword [rsp + 0x38]
sub rax, rdi
cmp rax, r8
jb 0x140029dbf
mov ecx, dword [rsp + 0x24]
mov rdx, rdi
call fcn.140159690
cmp eax, dword [r12 + 4]
jne 0x140029dcb
mov edx, esi
add r15, rdx
movsxd rcx, dword [r12 + 8]
mov rbx, qword [rsp + 0x30]
sub rbx, r15
cmp rbx, rcx
jg 0x140029dbf
mov rbx, r13
sub rbx, r15
cmp rbx, rcx
jl 0x140029dbf
add rbp, rdx
mov eax, eax
add rdi, rax
add r15, rcx
add r12, 0xc
xor ebx, ebx
cmp r12, qword [rsp + 0x28]
jb 0x140029e23
jmp 0x140029dcb
xor ebx, ebx
jmp 0x140029dcb
Function at 0x140029f30
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov r15, r8
mov rbp, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rbx, [rsp + 0x30]
mov dword [rbx], 0xaaaaaaaa
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
xor esi, esi
mov rcx, rdx
mov edx, 0x8000
mov r8d, 0x40
xor r9d, r9d
call fcn.1401566bc
cmp eax, 1
sbb esi, esi
not esi
or esi, dword [rbx]
js 0x140029fd1
movaps xmm6, xmmword [0x1402961a0]
lea rdx, [rsp + 0x70]
movaps xmmword [rdx + 0x10], xmm6
movaps xmmword [rdx], xmm6
mov ecx, esi
call fcn.140029c50
mov r12d, 0xffffffff
xor r14d, r14d
test eax, eax
je 0x140029fdb
mov edi, eax
mov ebx, 0xffffffff
jmp 0x14002a115
mov edi, 6
jmp 0x14002a13c
mov dword [rsp + 0x30], 0xaaaaaaaa
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
mov rcx, rbp
mov edx, 0x8000
mov r8d, 0x40
xor r9d, r9d
call fcn.1401566bc
mov ebx, dword [rsp + 0x30]
cmp eax, 1
mov ebp, 0
sbb ebp, ebp
not ebp
or ebp, ebx
js 0x14002a0fd
lea rdx, [rsp + 0x30]
movaps xmmword [rdx + 0x20], xmm6
movaps xmmword [rdx + 0x10], xmm6
movaps xmmword [rdx], xmm6
mov ecx, ebp
call fcn.140153be8
mov r12d, 0xffffffff
mov edi, 6
test eax, eax
jne 0x14002a112
mov r13d, dword [rsp + 0x44]
cmp r13d, dword [rsp + 0x78]
jne 0x14002a106
mov rcx, r13
call fcn.14012e020
test rax, rax
je 0x14002a10d
mov r14, rax
mov ecx, ebp
mov rdx, rax
mov r8d, r13d
call fcn.14015586c
cmp eax, dword [rsp + 0x78]
jne 0x14002a115
mov ebp, eax
call fcn.1401a97d0
movsxd rdx, ebp
mov rcx, r14
call fcn.1401a97a0
not eax
cmp dword [rsp + 0x7c], eax
jne 0x14002a16a
lea r12, [rsp + 0x6c]
mov dword [r12], 0xaaaaaaaa
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x28], 0
xor ebp, ebp
mov rcx, r15
mov edx, 0x8301
mov r8d, 0x40
xor r9d, r9d
call fcn.1401566bc
mov r12d, dword [r12]
cmp eax, 1
sbb ebp, ebp
not ebp
or ebp, r12d
js 0x14002a171
lea rcx, [rsp + 0x70]
mov edx, esi
mov r8, r14
mov r9d, ebp
call fcn.140029d40
mov edi, eax
jmp 0x14002a115
mov edi, 6
mov ebx, ebp
jmp 0x14002a115
mov edi, 8
jmp 0x14002a112
mov edi, 1
xor r14d, r14d
mov rcx, r14
call fcn.14012e070
mov ecx, esi
call fcn.140150de4
test ebx, ebx
js 0x14002a12f
mov ecx, ebx
call fcn.140150de4
test r12d, r12d
js 0x14002a13c
mov ecx, r12d
call fcn.140150de4
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140143020
mov eax, edi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, 4
jmp 0x14002a115
mov r12d, ebp
jmp 0x14002a115
Function at 0x14003fc30
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rcx], rax
mov rbp, qword [rdx]
mov qword [rdx], rax
lea rdi, [rbp + 1]
cmp rdi, 2
jb 0x14003fc6e
call fcn.14012aa20
cmp qword [rsi], rbp
je 0x14003fca3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003fd5a
cmp rdi, 2
jb 0x14003fc9a
mov qword [rsi], rbp
call fcn.14012aa20
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsi + 8], 0xffffffffffffffff
lea r15, [rsi + 0x10]
xor eax, eax
mov qword [rsp + 0x28], rax
mov rdi, qword [r14]
mov qword [r14], rax
cmp rdi, 0xffffffffffffffff
je 0x14003fccc
test rdi, rdi
je 0x14003fcf0
call fcn.14012aa20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14003fce8
mov qword [rsp + 0x28], rdi
call fcn.14012aa20
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.1401e8de0
mov rax, qword [rbx]
inc rax
cmp rax, 2
jb 0x14003fd1d
call fcn.14012aa20
mov rcx, qword [rbx]
call fcn.14012dff0
mov qword [rbx], 0
mov rax, qword [r14]
inc rax
cmp rax, 2
jb 0x14003fd3d
call fcn.14012aa20
mov rcx, qword [r14]
call fcn.14012dff0
mov qword [r14], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140143020
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14012aa20
mov rcx, qword [rsi]
call fcn.14012dff0
mov qword [rsi], 0
jmp 0x14003fc8c
Function at 0x140042a30
Capabilities:
Get session information

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x140042af5
lea r9, [rsp + 0x48]
mov qword [r9], 0
lea rcx, [rsp + 0x44]
mov dword [rcx], 0
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov edx, eax
mov r8d, 0x18
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x140042af5
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x38]
mov qword [r14], rax
mov rdi, qword [rsp + 0x48]
mov ecx, 0x30
call fcn.140142708
mov rbx, rax
lea rdx, [0x1400438b0]
lea r8, [0x140026600]
mov rcx, rax
call fcn.140128ff0
lea rax, [0x14027d6d0]
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rdi
lea rdx, [rsp + 0x30]
mov qword [rdx], rbx
mov rcx, r14
call fcn.1400adfc0
cmp dword [rsp + 0x44], 0xd7
ja 0x140042afe
mov qword [rsi], 0
jmp 0x140042b12
mov qword [rsi], 0
jmp 0x140042b1c
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0xc8]
mov rcx, rsi
call fcn.1400ae100
lea rcx, [rsp + 0x38]
call fcn.1400ae0a0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140143020
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140046a10
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1402dd730]
test rdi, rdi
jne 0x140046ab3
mov ecx, 0x48
call fcn.140142708
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov ecx, 0x18
call fcn.140142708
mov qword [rsi + 0x10], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x20], rcx
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x18], rcx
lea rax, [rsi + 0x30]
movups xmmword [rsi + 0x30], xmm6
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x40], 1
mov qword [0x1402dd730], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140046ad5
mov rcx, rax
call fcn.14015ded4
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140046ae0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
int3

Function at 0x140046ae0
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 3
call fcn.1400547d0
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140046c1e
movups xmm0, xmmword [rbx]
movups xmmword [r14], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140046c3b
lea rdx, [0x14029d67e]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140046c4e
mov rsi, rax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call rax
mov rbx, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x20]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rsi], xmm0
movsxd rax, dword [rsp + 0x3c]
lea r8, [rbx + rax*8]
mov rcx, rsi
mov rdx, rbx
call fcn.1400482a0
mov rcx, r14
mov rdx, rsi
call fcn.1400466d0
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140046be0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x140046c1e
mov rax, qword [rsp + 0x28]
cmp rax, rsi
je 0x140046c36
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x140046c07
mov rcx, qword [rax - 0x18]
call fcn.140142744
mov rax, rdi
cmp rdi, rsi
jne 0x140046bf4
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rsi
call fcn.140142744
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140143020
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
jmp 0x140046c14
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140046b83
xor ebx, ebx
jmp 0x140046b86
Function at 0x1400486c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rbp
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx eax, byte [0x1402dd740]
and eax, 1
neg rax
cmp rax, 0xfffffffffffffffd
je 0x14004885d
mov r13, rcx
mov qword [rsp + 0x30], rdx
mov rbx, qword [rcx]
mov rdi, qword [rcx + 8]
xor r15d, r15d
lea r12, [0x14029d5f0]
movabs rcx, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x1402961a0]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x38]
mov rax, r15
shl rax, 4
mov qword [rsp + 0x60], rcx
movaps xmmword [rsp + 0x50], xmm6
mov rdx, qword [rax + r12]
mov rbp, qword [rax + r12 + 8]
mov byte [rsp + 0x67], bpl
mov r8, rbp
add r8, rbp
mov rcx, r9
call fcn.140145a10
mov word [rsp + rbp*2 + 0x50], 0
movzx eax, byte [rsp + 0x67]
mov rcx, rax
test al, al
jns 0x140048780
mov rcx, qword [rsp + 0x58]
cmp rdi, rcx
jb 0x1400488b4
mov r14b, 1
test rcx, rcx
lea r9, [rsp + 0x50]
je 0x1400488c1
mov rdx, r9
test al, al
jns 0x1400487a6
mov rdx, qword [rsp + 0x50]
xor ebp, ebp
movzx edi, word [rbx + rbp*2]
cmp di, word [rdx + rbp*2]
jne 0x1400487f7
inc rbp
cmp rcx, rbp
jne 0x1400487a8
mov rbp, rcx
test al, al
js 0x1400488c8
test r14b, r14b
jne 0x140048801
mov qword [rsp + 0x20], rbp
inc r15
movzx eax, byte [0x1402dd740]
xor rax, 3
cmp r15, rax
mov rdi, qword [rsp + 0x28]
movabs rcx, 0xaaaaaaaaaaaaaaaa
jb 0x14004873b
jmp 0x14004885d
xor r14d, r14d
mov rbp, qword [rsp + 0x20]
jmp 0x1400487bd
test rbp, rbp
je 0x14004885d
cmp rbp, qword [r13 + 8]
mov rdi, qword [rsp + 0x30]
je 0x14004885d
lea rax, [0x14029d620]
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
mov qword [rdx + 8], 1
movups xmm0, xmmword [r13]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
xor r8d, r8d
call fcn.1400af4f0
mov rdx, qword [r13 + 8]
sub rdx, rbp
jb 0x1400488dc
sub rax, rbp
mov rcx, qword [rdi + 8]
cmp rdx, rax
cmovb rax, rdx
cmp rax, rcx
je 0x140048886
xor ebx, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov bl, 1
test rcx, rcx
je 0x14004885f
mov rax, qword [rdi]
add rbp, rbp
add rbp, qword [r13]
xor edx, edx
mov rdi, rbp
movzx ebp, word [rbp + rdx*2]
cmp bp, word [rax + rdx*2]
jne 0x14004885d
inc rdx
cmp rcx, rdx
mov rbp, rdi
jne 0x140048899
jmp 0x14004885f
xor r14d, r14d
lea r9, [rsp + 0x50]
jmp 0x1400487fa
xor ebp, ebp
jmp 0x1400487bd
mov rcx, qword [rsp + 0x50]
call fcn.140142744
lea r9, [rsp + 0x50]
jmp 0x1400487c5
int3
Function at 0x140049c10
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea rbp, [rbx + 1]
cmp rbp, 2
jb 0x140049c3f
call fcn.14012aa20
cmp qword [rsi], rbx
je 0x140049c70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140049cad
cmp rbp, 2
jb 0x140049c67
mov qword [rsi], rbx
call fcn.14012aa20
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
call fcn.140049e20
lea rcx, [rsi + 0x20]
call fcn.1400af700
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x28], 0
mov byte [rsi + 0x29], r14b
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140049cc3
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14012aa20
mov rcx, qword [rsi]
call fcn.14012dff0
mov qword [rsi], 0
jmp 0x140049c59
call fcn.14012aa20
mov rcx, qword [rdi]
call fcn.14012dff0
mov qword [rdi], 0
jmp 0x140049c9d

Function at 0x140049ce0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140052740
mov qword [rsi], 0
test rax, rax
je 0x140049d33
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140049d67
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140049d2b
mov qword [rsi], rbx
call fcn.14012aa20
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140049e40
lea rcx, [rsi + 0x20]
call fcn.1400af700
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.14012aa20
mov rcx, qword [rsi]
call fcn.14012dff0
mov qword [rsi], 0
jmp 0x140049d19
Function at 0x14004be50
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov rsi, r8
mov r14, rdx
mov r12, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xd8], rax
test r8, r8
je 0x14004be9b
cmp byte [rsi + 0x17], 0
js 0x14004c064
xor eax, eax
mov byte [rsi], al
mov byte [rsi + 0x17], al
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.14015b4a4
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x80]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.ReadStreamToStringWithMaxSize
lea r8, str..._.._base_files_file_util.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0xcd
call fcn.14012aa00
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140131050
xorps xmm6, xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
mov dword [rbx + 0x30], 0
mov rcx, r12
call fcn.140153bc0
mov ecx, eax
call fcn.14015465c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14004c077
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov edi, 0xffff
cmovg rdi, rax
cmp rdi, r14
cmova rdi, r14
lea r15, [rsp + 0x20]
movaps xmmword [r15], xmm6
mov qword [r15 + 0x10], 0
inc rdi
xor ebx, ebx
mov rcx, r15
mov rdx, rdi
xor r8d, r8d
call fcn.140128af0
mov r13d, 0x10000
cmp byte [rsp + 0x37], 0
mov rcx, r15
jns 0x14004bf9c
mov rcx, qword [rsp + 0x20]
add rcx, rbx
mov edx, 1
mov r8, rdi
mov r9, r12
call fcn.14015b224
test rax, rax
je 0x14004bfdd
mov rcx, r14
sub rcx, rbx
cmp rcx, rax
jb 0x14004c081
test rbx, rbx
cmove rdi, r13
add rbx, rax
mov rcx, r12
call fcn.14015add0
test eax, eax
je 0x14004c088
mov rcx, r12
call fcn.14015adfc
test eax, eax
sete dil
mov r14, rbx
test rsi, rsi
je 0x14004c023
movups xmm0, xmmword [rsi]
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsp + 0x30]
mov qword [rsi + 0x10], rcx
movaps xmm1, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.140128af0
cmp byte [rsp + 0x37], 0
js 0x14004c09e
lea rcx, [rsp + 0x80]
call fcn.1401310b0
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140143020
mov eax, edi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi]
mov byte [rax], 0
mov qword [rsi + 8], 0
jmp 0x14004be9b
mov edi, 0xffff
jmp 0x14004bf5c
xor edi, edi
jmp 0x14004bfee
lea rdx, [rbx + rdi]
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140128af0
jmp 0x14004bf8d
mov rcx, qword [rsp + 0x20]
call fcn.140142744
jmp 0x14004c02a
Function at 0x14004c3d0
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.140046c60
test al, al
je 0x14004c429
call fcn.140129100
mov rdi, rax
lea rbx, [0x1402a6bee]
mov rcx, rax
mov rdx, rbx
call fcn.1401291a0
test al, al
jne 0x14004c458
lea rdx, str.vmodule
mov rcx, rdi
call fcn.1401291a0
test al, al
jne 0x14004c458
mov eax, dword [rsi]
mov dword [0x1402d1288], eax
mov bl, 1
test al, 1
jne 0x14004c519
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp qword [0x1402dd748], 0
jne 0x14004c5aa
mov rax, qword [0x1402dd750]
mov qword [0x1402dd748], rax
mov ecx, 0x28
call fcn.140142708
mov r14, rax
lea rcx, str.vmodule
lea r15, [rsp + 0x48]
mov qword [r15], rcx
call fcn.14015dc20
mov qword [r15 + 8], rax
lea r12, [rsp + 0x58]
mov rcx, rdi
mov rdx, r12
mov r8, r15
call fcn.1400472f0
lea r15, [rsp + 0x20]
mov qword [r15], rbx
mov rcx, rbx
call fcn.14015dc20
mov qword [r15 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.1400472f0
lea r9, [0x1402dd758]
mov rcx, r14
mov rdx, rbx
mov r8, r12
call fcn.1401eae30
mov qword [0x1402dd750], r14
cmp byte [rbx + 0x17], 0
jns 0x14004c4ff
mov rcx, qword [rsp + 0x30]
call fcn.140142744
cmp byte [rsp + 0x6f], 0
jns 0x14004c429
mov rcx, qword [rsp + 0x58]
call fcn.140142744
jmp 0x14004c429
mov rcx, qword [0x1402dd780]
test rcx, rcx
jne 0x14004c533
mov rcx, qword [0x1402dd760]
test rcx, rcx
je 0x14004c557
jmp 0x14004c579
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1402dd780], 0
mov rcx, qword [0x1402dd760]
test rcx, rcx
jne 0x14004c579
and byte [0x1402d1288], 0xfe
mov ecx, 0x18
call fcn.140142708
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1402dd760], rax
mov rdx, qword [rsi + 8]
call fcn.140026770
cmp dword [rsi + 0x14], 0
jne 0x14004c59e
mov rcx, qword [0x1402dd760]
cmp byte [rcx + 0x17], 0
jns 0x14004c598
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140193e00
mov ebx, eax
jmp 0x14004c43b
int3
Function at 0x140050fe0
Capabilities:
Get file version info

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str..._.._base_file_version_info_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x4c
call fcn.14012aa00
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140131050
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 0x17], 0
jns 0x140051072
mov rdi, qword [rdi]
lea rdx, [rsp + 0x24]
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x14005118f
mov ebp, eax
mov esi, eax
mov rcx, rsi
call fcn.140142708
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.140145e20
mov edx, dword [rsp + 0x24]
mov rcx, rdi
mov r8d, ebp
mov r9, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140051198
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea r9, [rsp + 0x4c]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140051198
mov rbp, qword [rsp + 0x28]
test rbp, rbp
je 0x140051198
mov rdi, rbx
add rdi, rsi
mov ecx, 0x38
call fcn.140142708
mov rsi, rax
mov eax, dword [rbp]
lea rcx, fcn.140051580
mov qword [rsi], rcx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
mov qword [rsi + 0x20], rbx
mov dword [rsi + 0x28], eax
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea r9, [rsp + 0x4c]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x14029db32]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400511ae
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x30], rax
mov qword [r14], rsi
lea rcx, [rsp + 0x50]
call fcn.1401310b0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140143020
mov rax, r14
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov qword [r14], 0
jmp 0x140051164
mov qword [r14], 0
test rbx, rbx
je 0x140051164
mov rcx, rbx
call fcn.140142744
jmp 0x140051164
int3