joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140071260
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.140035430
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [fcn.14007e9f8]
mov rbx, rax
test rax, rax
je 0x140071406
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400712f0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x140071352
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
sub r15, 1
jne 0x140071310
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x140071393
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400b7c2c]
mov r8d, 1
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400b7c2d]
mov r8d, 1
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140071360
mov rcx, qword [rsp + 0x70]
call fcn.140035430
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x1400713c2
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.14007c800]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x140072ca0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140072d05
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x140072cb0
ret
Function at 0x1400800a8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400800c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007c524
or eax, 0xffffffff
jmp 0x1400800ca
xor eax, eax
add rsp, 0x28
ret

Function at 0x140087268
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140087094

Function at 0x1400964bc
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400961e2
call fcn.14007c594
mov dword [rax], socket
call fcn.14007c410
jmp 0x14009632d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14009632d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14009632d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140096211
lock or dword [rcx + 0x14], 0x10
jmp 0x14009632d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140096225
call fcn.140096578
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140096235
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140096238
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140093798
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140096b4c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14009631b
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400962c9
mov rcx, rbx
call fcn.140093798
cmp eax, 0xffffffff
je 0x1400962b4
mov rcx, rbx
call fcn.140093798
cmp eax, 0xfffffffe
je 0x1400962b4
mov rcx, rbx
call fcn.140093798
movsxd rdi, eax
lea r14, [0x1400d9e70]
mov rcx, rbx
sar rdi, 6
call fcn.140093798
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400962bb
lea rdx, [0x1400d74b0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400962c9
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400962ed
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400962ed
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400962ed
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14009630b
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140096316
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140096332
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400961ac
Function at 0x1400014a0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
push r14
mov eax, 0x1058
call fcn.14003d960
sub rsp, rax
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rsi, r8
mov qword [rsp + 0x38], rdx
mov rbx, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x1000
mov rdi, r9
call fcn.14003e350
cmp qword [r14 + 0x18], 0xf
jbe 0x1400014f2
mov r14, qword [r14]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400014fc
mov rdi, qword [rdi]
cmp qword [rsi + 0x18], 0xf
jbe 0x140001506
mov rsi, qword [rsi]
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x40]
lea r8, [0x14004b553]
mov dword [rsp + 0x20], 0x1000
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140001550
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140012be0
mov rax, rbx
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001a070
add rsp, 0x1058
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140001590
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1070
call fcn.14003d960
sub rsp, rax
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x60]
call fcn.14003e350
cmp qword [rsi + 0x18], 0xf
jbe 0x1400015d8
mov rsi, qword [rsi]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400015e2
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400015ec
mov rdi, qword [rdi]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x60]
lea r8, [0x14004b553]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140001630
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140012be0
nop
call fcn.140027794
mov rdi, rax
lea rbx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rbx, qword [rsp + 0x38]
mov dword [rax], 0
mov r8d, 0xa
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140027e30
mov esi, eax
cmp rbx, qword [rsp + 0x30]
je 0x1400016e6
cmp dword [rdi], 0x22
je 0x1400016f3
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400016c3
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016e0
call fcn.14001a090
mov eax, esi
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.14001a070
add rsp, 0x1070
pop rdi
pop rsi
pop rbx
ret
call fcn.1400271a4
nop
lea rcx, str.invalid_stoi_argument
call fcn.140013ad4
int3
lea rcx, str.stoi_argument_out_of_range
call fcn.140013b1c
int3
Function at 0x140001af0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x458
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
movzx edi, word [rsp + 0x28]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x400
call fcn.14003e350
mov rdx, qword [rsp + 0x470]
lea r8, [rsp + 0x478]
lea rcx, [rsp + 0x40]
call fcn.1400010d0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov rcx, rax
mov edx, 0xc
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_SetConsoleTextAttribute]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, str._FATAL___s._LastError___d_n
call fcn.140001070
movzx edx, di
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetConsoleTextAttribute]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x1400029b0
Capabilities:
Write 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, 0x40
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, dword [rcx + 0x18]
mov r14, rcx
xor ebp, ebp
mov qword [rsp + 0x30], r8
cmp r8, rsi
mov r12, rdx
cmovb rsi, r8
mov r13, rsi
add rsi, 4
lea rbx, [rsi + 0x13]
and rbx, 0xfffffffffffffff0
mov rcx, rbx
call fcn.14001a1a4
mov rdi, rax
mov r15, rax
xor eax, eax
mov rcx, rbx
rep stosb byte [rdi], al
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x140002b58
test r12, r12
je 0x140002a6d
cmp r12, rax
je 0x140002a6d
mov eax, dword [r14 + 0x18]
cmp eax, 0xffff
jbe 0x140002a4a
lea ecx, [rbp + 0x32]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
lea rcx, str.Buffer_size_is_too_large_to_send
call fcn.1400019f0
jmp 0x140002b29
cmp qword [rsp + 0x30], rax
jbe 0x140002a6d
mov ecx, 0x57
call qword [sym.imp.KERNEL32.DLL_SetLastError]
lea rcx, str.Data_is_too_large_to_send
call fcn.1400019f0
jmp 0x140002b29
movzx r9d, si
lea r8, str._04X
mov edx, 5
mov rcx, r15
call fcn.140001190
lea rcx, [r15 + 4]
test r13, r13
je 0x140002abc
test rcx, rcx
je 0x140002aac
mov r8, r13
test r12, r12
je 0x140002aa5
mov rdx, r12
call fcn.14003dcb0
jmp 0x140002abc
xor edx, edx
call fcn.14003e350
call fcn.140027794
mov dword [rax], 0x16
call fcn.140027184
mov rdx, rsi
lea rcx, str.Sending__d_bytes_to_pipe
mov edi, ebp
call fcn.140001700
mov rax, rbp
mov rcx, qword [r14]
lea rdx, [rax + r15]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], ebp
mov r8d, esi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, qword [r14]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
test ebx, ebx
je 0x140002b1d
add edi, dword [rsp + 0x30]
mov eax, edi
cmp rax, rsi
jb 0x140002ad0
mov edx, edi
lea rcx, str.Sent__d_bytes_to_pipe
call fcn.140001700
mov ebp, 1
jmp 0x140002b29
lea rcx, str.Failed_to_send_data_to_pipe.
call fcn.140001900
mov rcx, r15
call fcn.14001a090
mov eax, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001a070
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.Buffer_is_not_allocated
call fcn.140001af0
int3
Function at 0x140005bc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x20], 0
call fcn.140012480
nop
lea rcx, [rdi + 0x20]
mov rdx, rbx
call fcn.140012480
nop
xorps xmm0, xmm0
movups xmmword [rdi + 0x40], xmm0
mov qword [rdi + 0x50], 0
mov qword [rdi + 0x58], 0xf
mov byte [rdi + 0x40], 0
cmp qword [rsi + 0x18], 0xf
jbe 0x140005c16
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005d28
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, 9
lea rdx, str.__version
lea rcx, [rsp + 0x48]
call fcn.140012be0
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140005890
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140005cc1
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005cbc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005d35
call fcn.14001a090
cmp qword [rsp + 0x38], 0
sete bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140005d03
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005cfe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005d3b
call fcn.14001a090
test bl, bl
jne 0x140005d1b
mov rcx, rdi
call fcn.140006200
nop
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
lea rcx, str.vBoxManager:_exePath_is_not_a_valid_VirtualBox_executable
call fcn.140001af0
int3
lea rcx, str.vBoxManager:_Invalid_exePath
call fcn.140001af0
nop
call fcn.1400271a4
nop
call fcn.1400271a4
int3
Function at 0x140013ef0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
movzx r9d, byte [rcx + 0x68]
mov rbx, r8
test r9b, r9b
jne 0x140013f24
cmp byte [rcx + 0x80], r9b
je 0x140013f24
lea rcx, str.Password_is_not_defined
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x80004004
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rdi
xor edi, edi
mov eax, edi
test r9b, r9b
setne al
mov dword [rdx], eax
mov rcx, qword [rcx + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
test rax, rax
mov qword [rbx], rax
mov ecx, 0x8007000e
cmovne ecx, edi
mov rdi, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140013f60
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x88], 0
mov rbx, rdx
jne 0x140013f8a
lea rcx, str.Password_is_not_defined
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x80004004
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x90]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor edx, edx
mov ecx, 0x8007000e
test rax, rax
mov qword [rbx], rax
cmovne ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140013fb0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0xc], 0
mov rbx, rdx
jne 0x140013fd7
lea rcx, str.Password_is_not_defined
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x80004004
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor edx, edx
mov ecx, 0x8007000e
test rax, rax
mov qword [rbx], rax
cmovne ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140014c20
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov byte [rcx + 0x50], 0
mov rbx, rcx
test edx, edx
jne 0x140014c54
mov byte [rcx + 0x50], 1
lea rcx, str.Extracting
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
xor eax, eax
add rsp, 0x20
pop rbx
ret
sub edx, 1
je 0x140014c7e
sub edx, 1
je 0x140014c75
cmp edx, 1
je 0x140014c6c
lea rcx, str.___
jmp 0x140014c3c
lea rcx, str.Reading
jmp 0x140014c3c
lea rcx, str.Skipping
jmp 0x140014c3c
lea rcx, str.Testing
jmp 0x140014c3c
Function at 0x140015140
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, edx
mov rbx, rcx
test edx, edx
je 0x140015213
inc qword [rcx + 0x88]
lea rcx, str.__:
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
lea eax, [rdi - 1]
cmp eax, 7
ja case.default.0x140015195
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x15294]
add rcx, rdx
jmp rcx
lea rdi, str.Unsupported_Method
jmp 0x1400151dd
lea rdi, str.CRC_Failed
jmp 0x1400151dd
lea rdi, str.Data_Error
jmp 0x1400151dd
lea rdi, str.Unavailable_data
jmp 0x1400151dd
lea rdi, str.Unexpected_end_of_data
jmp 0x1400151dd
lea rdi, str.There_are_some_data_after_the_end_of_the_payload_data
jmp 0x1400151dd
lea rdi, str.Is_not_archive
jmp 0x1400151dd
lea rdi, str.Headers_Error
lea rcx, str.Error_:
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov rcx, rdi
jmp 0x14001520d
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140016540
lea rcx, str.Error_
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
cmp qword [rbx + 0x70], 0
je 0x140015248
cmp byte [rbx + 0x5f], 0
je 0x14001523b
mov rcx, qword [rbx + 0x68]
lea rdx, [rsp + 0x20]
mov rax, qword [rbx + 0x54]
add rcx, 0x10
mov qword [rsp + 0x20], rax
call fcn.140017f60
mov rcx, qword [rbx + 0x68]
call fcn.140019550
test eax, eax
jne 0x140015279
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14001525f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x70], 0
cmp byte [rbx + 0x50], 0
je 0x140015277
cmp byte [rbx + 0x65], 0
je 0x140015277
mov edx, dword [rbx + 0x60]
mov rcx, qword [rbx + 0x40]
call fcn.140018360
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14001a070
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400164b0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x848
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.140001050
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x400
mov rcx, qword [rax]
or rcx, 1
call fcn.1400263a0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.14001a070
add rsp, 0x848
pop rdi
pop rbx
ret

Function at 0x140017b60
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140017ba1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x140017ba1
xor al, al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rsp + 0x30]
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov rbx, qword [rsp + 0x38]
mov qword [rdi], rcx
add rsp, 0x20
pop rdi
ret

Function at 0x140017ce0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, r8d
mov rbx, r9
mov r8d, 0x400000
xor r9d, r9d
cmp eax, r8d
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x50]
cmovbe r8d, eax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x140017f80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rsi, r9
mov dword [r9], ebp
mov ebx, r8d
mov rdi, rdx
mov r14, rcx
mov r15d, 0x400000
nop
mov rcx, qword [r14]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov dword [rsp + 0x60], ebp
cmp ebx, r15d
mov qword [rsp + 0x20], rbp
mov rdx, rdi
cmova r8d, r15d
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [rsp + 0x60]
add dword [rsi], ecx
test eax, eax
je 0x140017fed
test ecx, ecx
je 0x140017fe9
add rdi, rcx
sub ebx, ecx
jne 0x140017fb0
mov al, 1
jmp 0x140017fef
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140018270
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.140018cd0
cmp eax, 0xffffffff
je 0x14001829e
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x14001829e
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call fcn.140018300
test al, al
je 0x1400182cd
cmp byte [section..data], 0
jne 0x1400182dd
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400174c0
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call fcn.14001a090
test ebx, ebx
jne 0x1400182d5
xor al, al
add rsp, 0x30
pop rbx
ret
mov al, 1
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x140018300
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [section..data], 0
mov ebx, edx
jne 0x140018349
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400174c0
mov edx, ebx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call fcn.14001a090
test ebx, ebx
jne 0x140018341
xor al, al
add rsp, 0x30
pop rbx
ret
mov al, 1
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x140018360
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
and ebx, 0x3fff
test edx, 0xf0000000
cmove ebx, edx
cmp byte [section..data], 0
jne 0x1400183b0
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400174c0
mov edx, ebx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call fcn.14001a090
test ebx, ebx
je 0x1400183c4
mov al, 1
add rsp, 0x30
pop rbx
ret
mov edx, ebx
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x1400183c4
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x140018cd0
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x38
cmp byte [section..data], 0
jne 0x140018d10
mov rdx, rcx
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x20]
call fcn.1400174c0
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call fcn.14001a090
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
add rsp, 0x38
ret

Function at 0x14001acb0
Capabilities:
Parse pe header

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

Function at 0x14002e488
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002e284