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

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400a4080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x700]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x14005dbf7
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x14005dc5d
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140041270
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400813f0
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x14005dc93.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x5ddac]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x14005dc93.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x14005dc93.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140041190
mov ebx, eax
test eax, eax
je 0x14005dcf2
mov edx, 5
mov rcx, rdi
call fcn.14005e7c0
mov eax, ebx
jmp 0x14005dc2c
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.140050de0
jmp case.0x14005dc93.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.14005e830
cmp rax, rbx
jae case.0x14005dc93.4
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.1400413e0
jmp case.0x14005dc93.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.14005d8b0
test eax, eax
je case.0x14005dc93.4
jmp 0x14005dc2c
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x140087ab0]
call fcn.140041270
mov rcx, rsi
call fcn.140051120
test eax, eax
je 0x14005dc2a
mov edx, 5
mov rcx, rdi
call fcn.14005e7c0
mov eax, Ordinal_45
jmp 0x14005dc2c
Function at 0x140065f40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400a4080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1f0]
mov rcx, rbp
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140065fbb
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.140041be0
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x140065fe3
lea rdx, str.Error_accept__ing_server_connect
call fcn.140041270
lea eax, [rbx + 0x1f]
jmp 0x14006605f
lea rdx, str.Connection_accepted_from_server
call fcn.1400413e0
mov edx, 1
mov byte [rsi + 0x3d9], 0
mov rcx, rbx
mov qword [rsi + 0x1f0], rbx
call fcn.140071890
mov byte [rsi + 0x3ec], 1
cmp qword [rdi + 0x288], 0
je 0x14006605d
mov dl, 1
mov rcx, rdi
call fcn.140030a80
mov rcx, qword [rdi + 0x290]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140030a80
test ebx, ebx
je 0x14006605d
mov rdx, rsi
mov rcx, rdi
call fcn.140066560
mov eax, Ordinal_45
jmp 0x14006605f
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400813f0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140067b40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
mov rdx, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x140067b76
mov dword [rdx + 0x7d0], 0xd
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.140067c60
cmp byte [rcx + 0xb0e], 0
je 0x140067b8b
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.1400686d0
cmp byte [rcx + 0xb11], 0
je 0x140067c0c
mov r9, qword [rdx + 0x790]
test r9, r9
jne 0x140067bce
mov r9, qword [rcx + 0x7b0]
test r9, r9
jne 0x140067bc5
cmp byte [rbx + 0x12e1], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x140067be5
cmp byte [rcx + 0xb1d], 0
lea r8, str.PRET_STOR__s
jne 0x140067be5
lea r8, str.PRET_RETR__s
add rdx, 0x700
mov rcx, rbx
call fcn.14007c5b0
test eax, eax
jne 0x140067c16
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7d0], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140068620
add rsp, 0x20
pop rbx
ret

Function at 0x140067f30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x700
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x140067f7e
cmp qword [rdx + 0x90], 0
je 0x140067f7e
xor r9d, r9d
lea r8, str.REST__d
call fcn.14007c5b0
test eax, eax
jne 0x140067f88
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7d0], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140067b40
add rsp, 0x20
pop rbx
ret
Function at 0x140068250
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x14006828f
lea rdx, str.Couldnt_set_desired_mode
call fcn.140041270
lea eax, [rdi + 0x11]
jmp 0x1400683f5
cmp edx, 0xc8
je 0x1400682a6
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1400413e0
cmp esi, 0x13
jne 0x1400682bb
mov rdx, rbp
mov rcx, rbx
call fcn.140068150
jmp 0x1400683f1
cmp esi, 0x14
jne 0x1400683d3
cmp dword [rbx + 0x748], 2
mov rbp, qword [rbx + 0x18]
jne 0x140068338
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140068338
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.140070c00
test eax, eax
jne 0x1400683f1
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14006832d
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x140068338
mov rcx, qword [rsp + 0x40]
call qword [fcn.140082392]
mov rdx, qword [rbx + 0x7b0]
test rdx, rdx
jne 0x14006835d
cmp byte [rbx + 0x12e1], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400953f9]
test rdi, rdi
mov r9, r8
lea rax, [0x140095424]
cmovne r9, rdi
lea rcx, [0x140088e6c]
cmovne r8, rax
call fcn.1400536d0
mov rcx, rdi
mov rsi, rax
call qword [fcn.140082392]
test rsi, rsi
jne 0x14006839b
lea edi, [rsi + 0x1b]
jmp 0x1400683f3
lea rdx, [rbp + 0x700]
mov r9, rsi
lea r8, [0x140087ab0]
mov rcx, rbx
call fcn.14007c5b0
mov rcx, rsi
mov edi, eax
call qword [fcn.140082392]
test edi, edi
jne 0x1400683f3
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7d0], 0x1f
jmp 0x1400683f3
cmp esi, 0x15
jne 0x1400683de
lea r8d, [rsi - 8]
jmp 0x1400683e7
cmp esi, 0x16
jne 0x1400683f3
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.140067c60
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140078180
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1400a4080]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x140035e79.0
mov r13, rax
test rax, rax
jne 0x1400781fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140055560
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140041270
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.140082392]
jmp 0x1400783b8
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140078271
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140055560
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140041270
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x1400783a2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400782ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140055560
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140041270
mov ebx, Ordinal_79
jmp 0x140078396
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x1400782ef
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.140041270
mov ebx, Ordinal_79
jmp 0x14007838e
lea rcx, [rdi + 1]
call qword [section..data]
mov rbp, rax
test rax, rax
jne 0x140078309
lea ebx, [rax + 0x1b]
jmp 0x14007838e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x140078368
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400783da
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14007835f
mov edi, esi
jmp 0x140078361
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x140078320
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.140077f00
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.140082392]
mov rcx, r13
call fcn.140082392
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400813f0
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140055560
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140041270
mov ebx, Ordinal_79
jmp 0x140078386
Function at 0x14007f680
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x14007f6c5
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x14007f710
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
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 0x14007f772
mov rsi, r15
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 [rbx + 8]
call qword [rbp + 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 [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x14007f730
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x14007f7b3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14009511c]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14009511d]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007f780
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x14007f7d0
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.140043e40
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 [section..data]
mov rbx, rax
test rax, rax
je 0x14007f976
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 0x14007f860
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
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 0x14007f8c2
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.WS2_32.dll_htonl]
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.WS2_32.dll_htonl]
sub r15, 1
jne 0x14007f880
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x14007f903
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14009511c]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14009511d]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007f8d0
mov rcx, qword [rsp + 0x70]
call fcn.140043e40
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x14007f932
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.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.140082392]
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, reloc.WLDAP32.dll_Ordinal_27
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x140081210
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140081275
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 0x140081220
ret
Function at 0x1400821dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140082226
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140082226
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140082226
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140082226
cmp dword [rcx + 0x84], 0xe
jbe 0x140082226
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140082228
xor al, al
add rsp, 0x28
ret
Function at 0x1405fa058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405fa1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1405fa089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405fa06f
add dl, dl
jne 0x1405fa096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405fa0f6
xor eax, eax
add dl, dl
jne 0x1405fa0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405fa1ad
add dl, dl
jne 0x1405fa0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405fa0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405fa0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405fa0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405fa0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405fa07e
mov eax, 1
add dl, dl
jne 0x1405fa106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405fa113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405fa0fb
sub eax, ebx
mov ebx, 1
jne 0x1405fa14c
mov ecx, 1
add dl, dl
jne 0x1405fa12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405fa13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405fa123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405fa07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405fa168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405fa175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405fa15d
cmp eax, 0x7d00
jae 0x1405fa19b
cmp eax, 0x500
jb 0x1405fa196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405fa07e
cmp eax, 0x7f
ja 0x1405fa19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405fa07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405fa1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1405fa07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x416400
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41658b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00433980
xorps xmm15, xmm15
mov r14, qword [0x006e1a78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416465
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416474
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x416493
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4164a3
cmp rbx, 0x1000
jae 0x41646b
jmp 0x41650d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4164b5
xor edx, edx
jmp 0x416504
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00433980
xorps xmm15, xmm15
mov r14, qword [0x006e1a78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x416499
jmp 0x416488
call fcn.00464b00
xorps xmm15, xmm15
mov r14, qword [0x006e1a78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00437f60
lea rax, [0x0057836d]
mov ebx, 0x18
nop dword [rax]
call fcn.004387e0
mov rax, qword [rsp + 0x38]
call fcn.00438520
lea rax, [0x00578999]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.004387e0
mov rax, qword [rsp + 0x30]
call fcn.00438520
call fcn.004381a0
call fcn.00437fc0
lea rax, [0x0057b418]
mov ebx, 0x21
call fcn.004365c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004613e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416400
Function at 0x4165c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4167e6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00433a00
xorps xmm15, xmm15
mov r14, qword [0x006e1a78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x416633
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x416642
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x416665
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x416675
cmp rbx, 0x1000
jae 0x416639
nop
jmp 0x4166f8
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x41668d
xor esi, esi
jmp 0x4166ea
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00433a00
xorps xmm15, xmm15
mov r14, qword [0x006e1a78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41666b
jmp 0x416656
call fcn.00464b00
xorps xmm15, xmm15
mov r14, qword [0x006e1a78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x416780
nop dword [rax + rax]
call fcn.00437f60
lea rax, [0x005789b2]
mov ebx, 0x19
call fcn.004387e0
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00438520
lea rax, [0x00578999]
mov ebx, 0x19
call fcn.004387e0
mov eax, dword [rsp + 0x34]
call fcn.00438520
nop
call fcn.004381a0
call fcn.00437fc0
lea rax, [0x0057462e]
mov ebx, 0xd
call fcn.004365c0
nop dword [rax + rax]
cmp eax, 0x5af
je 0x416720
call fcn.00437f60
lea rax, [0x005789b2]
mov ebx, 0x19
call fcn.004387e0
mov rax, qword [rsp + 0x38]
call fcn.00438520
lea rax, [0x00578999]
mov ebx, 0x19
call fcn.004387e0
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00438520
call fcn.004381a0
call fcn.00437fc0
lea rax, [0x0057ab13]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.004365c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004613e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.004165c0