joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cd00
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x43ce6a
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x43cd18
cmp edx, ecx
jne 0x43ce58
nop dword [rax]
test rsi, rsi
jne 0x43ce58
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x43cd74
nop
call fcn.00456b40
xorps xmm15, xmm15
mov r14, qword [0x008d0c10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.0043cc00
mov rcx, qword [0x0087d3f8]
mov rdx, qword [0x0087d3f0]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x43ce53
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x43ce48
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x0087def0]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x0087def0], rbx
nop
mov edx, 1
lea rsi, [0x0087def8]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x43ce37
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x007f5f7c]
mov ebx, 0x28
call fcn.00430940
mov rcx, rax
mov rax, rsi
call fcn.004551c0
call fcn.0042f380
lea rax, [0x007f53f0]
mov ebx, 0x23
call fcn.00430940
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00452b40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0043cd00
Function at 0x446180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x4462f8
movzx edx, byte [rax]
nop
test edx, edx
jne 0x4461bc
test r8b, r8b
jne 0x4461bc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x4461cf
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4462b8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x4462a6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44629c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x446223
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x446266
mov eax, 1
cmp rax, rbx
ja 0x446255
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.00455280
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x446294
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44625d
mov r8d, eax
mov eax, r10d
jmp 0x446228
mov rcx, rbx
call fcn.004551c0
xor eax, eax
mov rcx, rax
call fcn.004551c0
mov eax, r8d
mov rcx, rbx
call fcn.00455280
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x4462ee
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x4462b1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x4461d5
mov eax, edx
mov rcx, rbx
call fcn.004551c0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.004551c0
nop
int3
Function at 0x44c1a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44c259
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x0044c2a0]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00452a00
xorps xmm15, xmm15
mov r14, qword [0x008d0c10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00452b40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0044c1a0
Function at 0x454be0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4039af
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00409720
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00452b40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403980
cmp byte [0x008d0a32], 0
je 0x454bf5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x451c40
jmp 0x403980

Function at 0x454c00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x008d0d00]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x008d0a32], 0
je 0x454c35
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x008d1040]
aesenc xmm0, xmmword [0x008d1050]
aesenc xmm0, xmmword [0x008d1060]
movq rax, xmm0
ret
jmp 0x409920

Function at 0x454c40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x008d0d00]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x008d0a32], 0
je 0x454c76
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x008d1040]
aesenc xmm0, xmmword [0x008d1050]
aesenc xmm0, xmmword [0x008d1060]
movq rax, xmm0
ret
jmp 0x409980
Function at 0x4a1e00
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movd xmm0, dword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
movdqu xmm4, xmmword [rsi + 0x30]
pxor xmm1, xmm0
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jb 0x4a1ed5
movdqa xmm0, xmmword [0x008176e0]
movdqa xmm5, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm3
movdqa xmm8, xmm4
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm2, xmm0, 0
pclmulqdq xmm3, xmm0, 0
pclmulqdq xmm4, xmm0, 0
movdqu xmm11, xmmword [rsi]
movdqu xmm12, xmmword [rsi + 0x10]
movdqu xmm13, xmmword [rsi + 0x20]
movdqu xmm14, xmmword [rsi + 0x30]
pclmulqdq xmm5, xmm0, 0x11
pclmulqdq xmm6, xmm0, 0x11
pclmulqdq xmm7, xmm0, 0x11
pclmulqdq xmm8, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm4, xmm8
pxor xmm1, xmm11
pxor xmm2, xmm12
pxor xmm3, xmm13
pxor xmm4, xmm14
add rdi, 0x40
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jge 0x4a1e41
movdqa xmm0, xmmword [0x008176f0]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm2
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm3
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm4
cmp rcx, 0x10
jb 0x4a1f57
movdqu xmm10, xmmword [rsi]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm10
sub rcx, 0x10
add rsi, 0x10
cmp rcx, 0x10
jge 0x4a1f2b
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x00817540]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x00817ad0]
movdqa xmm2, xmm1
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0x10
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
mov dword [rsp + 0x28], eax
ret
Function at 0x4a4980
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x008d4b70], rax
je 0x4a49b5
lea rcx, [0x008d4b80]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 2
call qword [fcn.004a6560]
mov r8d, 0x3d
mov edx, 1
lea rcx, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop

Function at 0x4a52b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x008d51c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4a5438
mov rax, qword [0x008d51c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4a52fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4a5385
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4a52e0
mov rcx, rbx
call fcn.004a5f50
test rax, rax
mov r12, rax
je 0x4a546d
mov rax, qword [0x008d51c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004a6080
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x008d51c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4a5450
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4a537e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4a53e0
add dword [0x008d51c4], 1
cmp edi, 8
jae 0x4a53b3
test dil, 4
jne 0x4a5424
test edi, edi
je 0x4a53a8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4a543f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4a53a8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4a53cc
jmp 0x4a53a8
add rsi, qword [0x008d51c8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4a537e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004a65d0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4a53a8
xor esi, esi
jmp 0x4a5307
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4a53a8
mov rax, qword [0x008d51c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004a65d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004a65d0
nop
nop dword [rax]
Function at 0x4a5bc0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x008d54a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x008d5480]
test rbx, rbx
je 0x4a5c14
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4a5c0b
test rsi, rsi
je 0x4a5c0b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4a5bf0
lea rcx, [0x008d54a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4a5f50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00879760]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4a5fbd
mov rcx, r8
call fcn.004a5e30
test eax, eax
je 0x4a5fbd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4a5fbd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4a5fb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4a5fbf
add rax, 0x28
cmp rax, r9
jne 0x4a5fa0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4a65d0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004a6560
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004a6560
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140005d40
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
cmp ecx, 2
lea rcx, [0x14003f390]
jge 0x140005dca
lea rdx, str._runshc_v.
call fcn.1400011f0
mov rcx, rax
lea rdx, [0x140028c68]
call fcn.1400011f0
mov rcx, rax
lea rdx, [0x140028c64]
call fcn.1400011f0
mov rcx, rax
lea rdx, str.Run_shellcode:_loads_and_deploys_shellcode_file._n
call fcn.1400011f0
lea rdx, str.For_64_bit_shellcodes._n
lea rcx, [0x14003f390]
call fcn.1400011f0
lea rdx, str.Args:__shellcode_file_
lea rcx, [0x14003f390]
call fcn.1400011f0
mov rcx, rax
call fcn.1400014c0
lea rcx, str.pause
call fcn.14000d648
xor eax, eax
add rsp, 0x58
ret
mov qword [rsp + 0x60], rbx
mov rbx, qword [rdx + 8]
lea rdx, str.___Reading_module_from:
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rsp + 0x70], rdi
call fcn.1400011f0
mov rcx, rax
mov rdx, rbx
call fcn.1400011f0
mov rcx, rax
call fcn.1400014c0
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140006000
mov rbx, rax
test rax, rax
jne 0x140005e40
lea rdx, str._ERROR__Loading_file_failed
lea rcx, [0x14003f4c0]
call fcn.1400011f0
mov rcx, rax
call fcn.1400014c0
mov rbx, qword [rsp + 0x60]
or eax, 0xffffffff
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
ret
mov rcx, rbx
call fcn.1400061c0
test ax, ax
je 0x140005e6a
mov ecx, 0x20b
cmp ax, cx
je 0x140005e6a
lea rdx, str._ERROR__Bitness_mismatch:_the_given_payload_is_not_compatibilie_with_this_loader_n
lea rcx, [0x14003f4c0]
jmp 0x140005eff
xor eax, eax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rax
lea rdx, str.____Creating_a_new_thread..._n
mov rax, qword [rsp + 0x70]
lea rcx, [0x14003f390]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x40], dil
call fcn.1400011f0
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rdi
lea r8, [0x140005b60]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140005ed1
lea rdx, str.Failed_to_created_the_thread__n
lea rcx, [0x14003f4c0]
call fcn.1400011f0
jmp 0x140005edd
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140005ef1
call fcn.140009180
mov qword [rsp + 0x30], rdi
lea rdx, str.____FINISHED._n
lea rcx, [0x14003f390]
call fcn.1400011f0
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
ret
Function at 0x140006000
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov r15, rdx
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r14, rcx
mov dword [rsp + 0x20], 3
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000605b
xor eax, eax
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
xor r9d, r9d
mov qword [rsp + 0x28], r12
xor edx, edx
mov qword [rsp + 0x70], rsi
mov rcx, rdi
mov dword [rsp + 0x20], r12d
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
test rax, rax
jne 0x140006094
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400061a4
xor r9d, r9d
mov qword [rsp + 0x68], rbp
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rcx, rsi
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
jne 0x1400060d2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000619f
xor edx, edx
mov qword [rsp + 0x60], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rax, qword [r15]
test rax, rax
je 0x1400060f3
cmp rax, rbx
cmovbe rbx, rax
mov rdx, rbx
mov rcx, rbp
call fcn.140006240
test al, al
je 0x140006156
lea rdx, str.____Mapping_of
lea rcx, [0x14003f4c0]
call fcn.1400011f0
mov rcx, rax
mov rdx, r14
call fcn.1400011f0
mov rcx, rax
lea rdx, str._is_invalid_
call fcn.1400011f0
mov rcx, rax
call fcn.1400014c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000619a
mov rcx, rbx
call fcn.140005fb0
mov r14, rax
test rax, rax
je 0x140006179
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call fcn.14000b970
mov qword [r15], rbx
jmp 0x14000617c
mov qword [r15], r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret

Function at 0x1400061c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140006232
mov edx, 0x40
call fcn.140006240
test al, al
jne 0x140006232
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140006232
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006232
lea rdi, [rbx + rax]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.140006240
test al, al
jne 0x140006232
cmp dword [rdi], 0x4550
jne 0x140006232
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.140006240
test al, al
jne 0x140006232
movzx eax, word [rdi + 0x18]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001425c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140014030
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014030
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014030
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014030
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014030
cmp dword [rcx + 0x84], 0xe
jbe 0x140014030
cmp dword [rcx + 0xf8], esi
je 0x140014030
mov ecx, r14d
call fcn.140014178
mov ecx, 2
call fcn.14000ee7c
nop
cmp byte [0x140040310], 0
jne 0x1400140fa
mov r15d, 1
mov eax, r15d
xchg dword [0x140040300], eax
test ebx, ebx
jne 0x1400140a3
mov rdi, qword [0x14003e080]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140040308]
cmp rcx, rax
je 0x14001409a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140007a14]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140040448]
jmp 0x1400140af
cmp ebx, r15d
jne 0x1400140b5
lea rcx, [0x140040460]
call fcn.140014d34
nop
test ebx, ebx
jne 0x1400140cc
lea rdx, [0x140028400]
lea rcx, [0x1400283e0]
call fcn.140014ffc
lea rdx, [0x140028410]
lea rcx, [0x140028408]
call fcn.140014ffc
movzx eax, byte [0x140040310]
test esi, esi
cmove eax, r15d
mov byte [0x140040310], al
jmp 0x1400140fa
mov ecx, 2
call fcn.14000eed0
test esi, esi
jne 0x140014111
mov ecx, r14d
call fcn.14001412c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140013fc0
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.1.2.13
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.14000b560
mov r15d, eax
test eax, eax
je 0x1400010d3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140002a80
lea eax, [rbp - 1]
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.140015000
mov r13, rax
test rax, rax
jne 0x140001109
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.1400027e0
jmp 0x14000126c
mov ecx, 0x2000
call fcn.140015000
mov rbp, rax
test rax, rax
jne 0x140001137
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.1400027e0
jmp 0x14000126c
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14001054c
cmp rax, rbx
jne 0x14000125e
mov rcx, rdi
call fcn.1400102c0
test eax, eax
jne 0x14000125e
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.1400099b0
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001241
cmp eax, 2
je 0x14000123c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001203
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.140010c8c
cmp rax, rbx
jne 0x1400011fe
mov rcx, r14
call fcn.1400102c0
test eax, eax
je 0x140001219
mov edi, r15d
jmp 0x140001241
test rsi, rsi
je 0x140001219
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000cab0
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400011a0
cmp edi, 1
je 0x140001237
test r12, r12
je 0x140001241
mov rdi, qword [rsp + 0xc0]
jmp 0x140001150
xor r15d, r15d
jmp 0x140001264
mov edi, 0xfffffffd
mov rdx, qword [rsp + 0xc8]
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
add rdx, 0x12
mov r8d, edi
call fcn.140002a80
jmp 0x140001264
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000b240
mov rcx, r13
call fcn.140014fec
mov rcx, rbp
call fcn.140014fec
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret