joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063e00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400a2080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140063e95
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140063ef6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14003e720
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140077090
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140063fb1
sub ecx, 1
je 0x140064024
sub ecx, 1
je 0x140063f60
cmp ecx, 1
je 0x140063f43
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140084970]
call fcn.14003e720
jmp 0x140064024
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140063b30
test eax, eax
je 0x140064024
jmp 0x140063eca
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140064024
sub rax, rsi
cmp rax, rbp
jae 0x140064024
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14003e8a0
jmp 0x140064024
cmp r8d, 4
jle 0x140064024
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140064024
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14003e640
mov esi, eax
test eax, eax
je 0x140064003
mov edx, 5
mov rcx, rbx
call fcn.140064af0
mov eax, esi
jmp 0x140063eca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14004cf20
mov rcx, r14
call fcn.14004d200
test eax, eax
je 0x140063ec8
mov edx, 5
mov rcx, rbx
call fcn.140064af0
mov eax, Ordinal_46
jmp 0x140063eca
Function at 0x140076dc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140076e02
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140076e49
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140076ea2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140076e60
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140076ee3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008a0fa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008a0fb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140076eb0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140077fbc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140078006
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140078006
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140078006
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140078006
cmp dword [rcx + 0x84], 0xe
jbe 0x140078006
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140078008
xor al, al
add rsp, 0x28
ret
Function at 0x6d8a8930
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8c95e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8a8ab8
mov rax, qword [0x6d8c95e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8a897c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8a8a05
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8a8960
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8a8aed
mov rax, qword [0x6d8c95e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8c95e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8a8ad0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8a89fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8a8a60
add dword [0x6d8c95e4], 1
cmp edi, 8
jae 0x6d8a8a33
test dil, 4
jne 0x6d8a8aa4
test edi, edi
je 0x6d8a8a28
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8a8abf
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 0x6d8a8a28
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 0x6d8a8a4c
jmp 0x6d8a8a28
add rsi, qword [0x6d8c95e8]
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 0x6d8a89fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8a8a28
xor esi, esi
jmp 0x6d8a8987
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8a8a28
mov rax, qword [0x6d8c95e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8a9240
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8c98c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8c98a0]
test rbx, rbx
je 0x6d8a9294
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 0x6d8a928b
test rsi, rsi
je 0x6d8a928b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8a9270
lea rcx, [0x6d8c98c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8a94d0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8a94e0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8a94f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8a9531
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8a9528
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8a9533
add rax, 0x28
cmp rax, r9
jne 0x6d8a9514
xor eax, eax
ret

Function at 0x6d8a95d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8c61f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8a963d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a963d
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 0x6d8a963d
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 0x6d8a9634
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8a963f
add rax, 0x28
cmp rax, r9
jne 0x6d8a9620
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8a9740
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8c61f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8a9760
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a9758
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 0x6d8a97bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8a97b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8a97c4
add rax, 0x28
cmp rax, r9
jne 0x6d8a97a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8a97e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8c61f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8a984e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8a984e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8a984e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8a984e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8a9845
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8a9855
add rcx, 0x28
cmp rcx, rax
jne 0x6d8a9830
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8a9868
jmp 0x6d8a984e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8a9876
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8a984e
test r9d, r9d
jg 0x6d8a9860
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8a9be0
Capabilities:
Write file on windows

Disassembly:
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x180005109
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe0
mov eax, 0xffffffff
cmp byte [0x18000c300], 0
je 0x180005286
mov r14, r9
mov r12d, r8d
mov r15, rdx
mov ebp, ecx
lea rcx, [0x18000c328]
mov edx, ebp
call fcn.1800049f3
mov ecx, eax
xor eax, eax
test cl, 1
je 0x180005286
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.180004a2a
movzx ecx, word [rsi + 8]
test cx, cx
jne 0x18000527f
mov rbx, qword [rsp + 0x30]
lea rsi, [rsp + 0x68]
mov rcx, rsi
mov edx, ebp
call fcn.180004a6c
mov ecx, 0xf
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
test r15, r15
je 0x1800051c8
movsxd r8, r12d
lea rdx, [0x18000c2e8]
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.180002969
cmp word [rsi + 0x10], 0
jne 0x18000520a
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rcx, rsi
mov rdx, r15
mov r8, rdi
call fcn.1800088df
jmp 0x1800051cc
xor esi, esi
xor edi, edi
lea rcx, [0x18000c328]
mov edx, ebp
call fcn.180004946
mov r15, rax
lea r12, [rsp + 0x58]
mov rcx, r12
call fcn.180004d95
cmp word [r12 + 8], 0
je 0x180005220
test rsi, rsi
je 0x18000520a
lea rcx, [0x18000c2e8]
mov rdx, rsi
mov r8, rdi
call fcn.180004dd7
mov rcx, rbx
call fcn.180004d00
mov rcx, rbx
call fcn.180004d64
mov cx, 1
jmp 0x18000527f
mov r12, qword [rsp + 0x148]
mov rax, qword [rsp + 0x140]
mov r9, qword [rsp + 0x58]
mov qword [r9], r15
mov qword [r9 + 8], rsi
mov qword [r9 + 0x10], rdi
mov qword [r9 + 0x18], r14
mov qword [r9 + 0x20], rax
mov qword [r9 + 0x28], rbx
mov byte [r9 + 0x30], 0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x180004e12]
xor ecx, ecx
xor edx, edx
call sub.KERNEL32.dll_CreateThread
test rax, rax
je 0x180005279
mov rcx, rax
call sub.KERNEL32.dll_CloseHandle
mov qword [r12], rbx
xor ecx, ecx
xor eax, eax
neg cx
sbb eax, eax
add rsp, 0xe0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x180005298
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe0
mov eax, 0xffffffff
cmp byte [0x18000c300], 0
je 0x180005415
mov r14, r9
mov r12d, r8d
mov r15, rdx
mov ebp, ecx
lea rcx, [0x18000c328]
mov edx, ebp
call fcn.1800049f3
mov ecx, eax
xor eax, eax
test cl, 1
je 0x180005415
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.180004a2a
movzx ecx, word [rsi + 8]
test cx, cx
jne 0x18000540e
mov rbx, qword [rsp + 0x30]
lea rsi, [rsp + 0x68]
mov rcx, rsi
mov edx, ebp
call fcn.180004a6c
mov ecx, 0xf
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
test r15, r15
je 0x180005357
movsxd r8, r12d
lea rdx, [0x18000c2e8]
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.180002969
cmp word [rsi + 0x10], 0
jne 0x180005399
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rcx, rsi
mov rdx, r15
mov r8, rdi
call fcn.1800088df
jmp 0x18000535b
xor esi, esi
xor edi, edi
lea rcx, [0x18000c328]
mov edx, ebp
call fcn.180004946
mov r15, rax
lea r12, [rsp + 0x58]
mov rcx, r12
call fcn.180004d95
cmp word [r12 + 8], 0
je 0x1800053af
test rsi, rsi
je 0x180005399
lea rcx, [0x18000c2e8]
mov rdx, rsi
mov r8, rdi
call fcn.180004dd7
mov rcx, rbx
call fcn.180004d00
mov rcx, rbx
call fcn.180004d64
mov cx, 1
jmp 0x18000540e
mov r12, qword [rsp + 0x148]
mov rax, qword [rsp + 0x140]
mov r9, qword [rsp + 0x58]
mov qword [r9], r15
mov qword [r9 + 8], rsi
mov qword [r9 + 0x10], rdi
mov qword [r9 + 0x18], r14
mov qword [r9 + 0x20], rax
mov qword [r9 + 0x28], rbx
mov byte [r9 + 0x30], 1
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x180004e12]
xor ecx, ecx
xor edx, edx
call sub.KERNEL32.dll_CreateThread
test rax, rax
je 0x180005408
mov rcx, rax
call sub.KERNEL32.dll_CloseHandle
mov qword [r12], rbx
xor ecx, ecx
xor eax, eax
neg cx
sbb eax, eax
add rsp, 0xe0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400105a0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1400105cd
xor al, al
jmp 0x14001072f
mov rax, qword [0x1400306b0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400306b8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400306c0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400306c8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400306d0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400306d8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400306e0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400306e8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1400306f0]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x140010721
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140010679
mov r11d, 2
jmp 0x14001069d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140010693
mov r11d, 1
jmp 0x14001069d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140010745
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1400106e2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1400106fa
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14001070a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x140010718
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140010660
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14001072a
Function at 0x14034063e
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rcx
mov bh, 0xa2
push r10
movzx dx, r9b
cdq
pushfq
cbw
movsxd rbx, edi
lahf
push r14
cdqe
push r8
push r13
movzx r10w, r9b
cdqe
inc r11b
push r15
cbw
rdtsc
cdqe
push rdi
cdq
movabs rdx, 0
cwde
push rdx
mov r10, qword [rsp + 0x90]
lahf
setb dil
cwde
inc r10d
ror r10d, 2
add r10d, 0x2740750e
bswap r10d
bt bx, sp
xadd bx, r8w
movzx r8d, r11w
add r10, rdx
movzx r8, cx
xor dl, bpl
movzx di, r8b
movabs rdx, 0x100000000
xchg r8b, dil
lea r10, [r10 + rdx]
xor bx, cx
rcl di, 0x27
cmc
mov rdi, rsp
movzx r8w, bl
cmc
sub rsp, 0x180
and rsp, 0xfffffffffffffff0
rcr bh, cl
mov r11, r10
shr bl, cl
movsx rbx, r9w
movabs rbx, 0
sub ax, r14w
sal ah, cl
sub r11, rbx
lea r8, [0x1402bb642]
lahf
sub r10, 4
mov eax, dword [r10]
xor eax, r11d
bswap eax
clc
cmp r9, r12
xor eax, 0x73f80fe4
bswap eax
sub eax, 0x17910950
test eax, 0x2ff22968
push r11
setae r11b
mov r11d, esi
xor dword [rsp], eax
shr r11b, cl
pop r11
movsxd rax, eax
cmp ah, bl
jmp 0x1402bfca1
add r8, rax
jmp 0x1402c9409
push r8
ret
push rsi
jmp 0x140371cc3
push rdx
push rbx
mov edx, 0x79262571
cmovo ebx, r11d
push r9
movsx ebx, ax
not bh
push rbp
bswap bx
movsx rbx, bx
push rax
movsx eax, r10w
rdtsc
push r12
cbw
cwde
movsx rdx, cx
push r11
cwd
jmp 0x1402bb57e
Function at 0x1405ee642
Capabilities:
Execute anti-debugging instructions

Disassembly:
push r8
ret
push rcx
mov bh, 0xa2
push r10
movzx dx, r9b
cdq
pushfq
cbw
movsxd rbx, edi
lahf
push r14
cdqe
push r8
push r13
movzx r10w, r9b
cdqe
inc r11b
push r15
cbw
rdtsc
cdqe
push rdi
cdq
movabs rdx, 0
cwde
push rdx
mov r10, qword [rsp + 0x90]
lahf
setb dil
cwde
inc r10d
ror r10d, 2
add r10d, 0x2740750e
bswap r10d
bt bx, sp
xadd bx, r8w
movzx r8d, r11w
add r10, rdx
movzx r8, cx
xor dl, bpl
movzx di, r8b
movabs rdx, 0x100000000
xchg r8b, dil
lea r10, [r10 + rdx]
xor bx, cx
rcl di, 0x27
cmc
mov rdi, rsp
movzx r8w, bl
cmc
sub rsp, 0x180
and rsp, 0xfffffffffffffff0
rcr bh, cl
mov r11, r10
shr bl, cl
movsx rbx, r9w
movabs rbx, 0
sub ax, r14w
sal ah, cl
sub r11, rbx
lea r8, [0x1405a6f83]
lahf
sub r10, 4
mov eax, dword [r10]
xor eax, r11d
bswap eax
clc
cmp r9, r12
xor eax, 0x73f80fe4
bswap eax
sub eax, 0x17910950
test eax, 0x2ff22968
push r11
setae r11b
mov r11d, esi
xor dword [rsp], eax
shr r11b, cl
pop r11
movsxd rax, eax
cmp ah, bl
jmp 0x14064077b
push rsi
jmp 0x14060036f
push rdx
push rbx
mov edx, 0x79262571
cmovo ebx, r11d
push r9
movsx ebx, ax
not bh
push rbp
bswap bx
movsx rbx, bx
push rax
movsx eax, r10w
rdtsc
push r12
cbw
cwde
movsx rdx, cx
push r11
cwd
jmp 0x1405a6ebf
add r8, rax
jmp 0x140574ba8
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.14000b520
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.140002b10
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.140015460
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.140002870
jmp 0x140001264
mov ecx, 0x2000
call fcn.140015460
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.140002870
jmp 0x140001264
mov qword [rsp + 0xd0], r12
mov r15d, 0xffffffff
mov r12d, dword [rbx + 8]
nop dword [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.1400109ac
cmp rax, rbx
jne 0x14000125c
mov rcx, rdi
call fcn.140010720
test eax, eax
jne 0x14000125c
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.140009960
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.1400110ec
cmp rax, rbx
jne 0x1400011fe
mov rcx, r14
call fcn.140010720
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.14002abd0
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 0x14000125c
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.140002b10
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000b200
mov rcx, r13
call fcn.14001544c
mov rcx, rbp
call fcn.14001544c
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret