joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140132830
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140132954
cmp r8d, 0xff
jne 0x140132891
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14013287b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x15a1a0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.14010fa40
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.14010fa40
cmp r8d, 0xfb
jne 0x1401328a3
lea r9, str.WILL
jmp 0x1401328e1
cmp r8d, 0xfc
jne 0x1401328b5
lea r9, str.WONT
jmp 0x1401328e1
cmp r8d, 0xfd
jne 0x1401328c7
lea r9, [0x14015abc4]
jmp 0x1401328e1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14013293d
cmp r10d, 0x27
jg 0x140132914
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x15a7c0]
test r8, r8
jne 0x140132924
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.14010fa40
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1401328fb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.14010fa40
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.14010fa40
add rsp, 0x38
ret

Function at 0x140132ca0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140132cff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14010f8c0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140132830
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140132eb0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140133058
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140132f15
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140132f15
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140132f15
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140132f4c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140132fa2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140132fa2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140132fa2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140132fa2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140132fa2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140132960
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140133004
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14010f8c0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140132d30
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140133050
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14010f8c0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1401347c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14018e080]
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 0x140134855
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 0x1401348b6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14010f8c0
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.140148bf0
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 0x140134971
sub ecx, 1
je 0x1401349e4
sub ecx, 1
je 0x140134920
cmp ecx, 1
je 0x140134903
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140160fb8]
call fcn.14010f8c0
jmp 0x1401349e4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1401344f0
test eax, eax
je 0x1401349e4
jmp 0x14013488a
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 0x1401349e4
sub rax, rsi
cmp rax, rbp
jae 0x1401349e4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14010fa40
jmp 0x1401349e4
cmp r8d, 4
jle 0x1401349e4
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 0x1401349e4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14010f7e0
mov esi, eax
test eax, eax
je 0x1401349c3
mov edx, 5
mov rcx, rbx
call fcn.1401354b0
mov eax, esi
jmp 0x14013488a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14011d8e0
mov rcx, r14
call fcn.14011dbc0
test eax, eax
je 0x140134888
mov edx, 5
mov rcx, rbx
call fcn.1401354b0
mov eax, Ordinal_46
jmp 0x14013488a
Function at 0x140148aa0
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 [section..data]
mov rdi, rax
test rax, rax
jne 0x140148ae2
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 0x140148b29
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 0x140148b82
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 0x140148b40
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140148bc3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14015f8a2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14015f8a3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140148b90
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 0x140149a0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140149a56
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140149a56
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140149a56
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140149a56
cmp dword [rcx + 0x84], 0xe
jbe 0x140149a56
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140149a58
xor al, al
add rsp, 0x28
ret
Function at 0x140149ccc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140149d06
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140149d0b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140149d54
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140149d54
dec r8
sub rdx, 1
jne 0x140149d3a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x77d140
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x77d14d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x77d15d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x77d145
lea eax, [rcx + 1]
jmp 0x77d16b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x77d17e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x77d164
sub eax, 3
jb 0x77d19e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x77d1ed
sar eax, 1
movsxd rbp, eax
jb 0x77d1d4
jmp 0x77d1ac
add ebx, ebx
jne 0x77d1aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x77d1d4
inc ecx
add ebx, ebx
jne 0x77d1ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x77d1d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x77d1cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x77d1bc
add ecx, 2
jmp 0x77d1d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0077d102
jmp 0x77d14d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x123800
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x77d239
cmp rsi, rcx
jae 0x77d241
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x77d220
cmp al, 0x8f
ja 0x77d220
cmp byte [rsi - 2], 0xf
je 0x77d226
sub al, 0xe8
cmp al, 1
ja 0x77d20a
cmp rsi, rcx
jae 0x77d241
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x77d210
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x77d241
lodsb al, byte [rsi]
jmp 0x77d220
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x376000]
mov eax, dword [rdi]
or eax, eax
je 0x77d29e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x37d000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x77d24e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x77d298
mov qword [rbx], rax
add rbx, 8
jmp 0x77d26e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x77d2e2
cmp al, 0xef
ja 0x77d2ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x77d2aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x77d2b9
mov eax, dword [rdi]
add rdi, 4
jmp 0x77d2b9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x77d336
sub rsp, 0xffffffffffffff80
jmp 0x469560
Function at 0x140005670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003a0b0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000569d
xor eax, eax
jmp 0x1400057e3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400056d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400056d7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400057e3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400057d6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000571a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005729
movsx ecx, dil
jmp 0x14000577d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140005797
sub eax, 1
je 0x140005797
cmp eax, 2
jne 0x1400057d6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000fe70
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400057db
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400057c4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14001075c
cmp rsi, rax
jne 0x1400057d6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1400057db
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400094f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x141598108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14159828f
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 0x141598139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14159811f
add dl, dl
jne 0x141598146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415981a6
xor eax, eax
add dl, dl
jne 0x141598155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14159825d
add dl, dl
jne 0x141598166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141598173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141598180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14159818d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14159819a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14159812e
mov eax, 1
add dl, dl
jne 0x1415981b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415981c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415981ab
sub eax, ebx
mov ebx, 1
jne 0x1415981fc
mov ecx, 1
add dl, dl
jne 0x1415981de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415981eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415981d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14159812e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141598218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141598225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14159820d
cmp eax, 0x7d00
jae 0x14159824b
cmp eax, 0x500
jb 0x141598246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14159812e
cmp eax, 0x7f
ja 0x14159824e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14159812e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141598282
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 0x14159812e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x141c74058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141c741df
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 0x141c74089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c7406f
add dl, dl
jne 0x141c74096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c740f6
xor eax, eax
add dl, dl
jne 0x141c740a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c741ad
add dl, dl
jne 0x141c740b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c740c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c740d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c740dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141c740ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141c7407e
mov eax, 1
add dl, dl
jne 0x141c74106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c74113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c740fb
sub eax, ebx
mov ebx, 1
jne 0x141c7414c
mov ecx, 1
add dl, dl
jne 0x141c7412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c7413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c74123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c7407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141c74168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c74175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c7415d
cmp eax, 0x7d00
jae 0x141c7419b
cmp eax, 0x500
jb 0x141c74196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c7407e
cmp eax, 0x7f
ja 0x141c7419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c7407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141c741d2
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 0x141c7407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180002d60
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
movzx r9d, byte [rsp + 0x20]
xor edi, edi
mov r11, rdx
mov rsi, rcx
mov r10, rcx
lea ebx, [rdi + 0x2f]
lea ebp, [rdi + 0x2b]
test r8d, r8d
jle 0x180002ec7
mov eax, 0xaaaaaaab
mov ecx, edi
mul edi
shr edx, 1
lea eax, [rdx + rdx*2]
sub ecx, eax
je 0x180002e7d
sub ecx, 1
je 0x180002e40
sub ecx, 1
jne 0x180002ebc
movzx ecx, byte [r11]
shr cl, 6
or cl, r9b
and cl, 0x3f
cmp cl, 0x1a
jae 0x180002dcf
add cl, 0x41
jmp 0x180002de8
cmp cl, 0x34
jae 0x180002dd9
add cl, 0x47
jmp 0x180002de8
cmp cl, 0x3e
jae 0x180002de3
sub cl, 4
jmp 0x180002de8
mov ecx, ebx
cmove ecx, ebp
mov byte [r10], cl
movzx ecx, byte [r11]
and cl, 0x3f
cmp cl, 0x1a
jae 0x180002e07
add cl, 0x41
mov byte [r10 + 1], cl
add r10, 2
jmp 0x180002eb9
cmp cl, 0x34
jae 0x180002e1c
add cl, 0x47
mov byte [r10 + 1], cl
add r10, 2
jmp 0x180002eb9
cmp cl, 0x3e
jae 0x180002e31
sub cl, 4
mov byte [r10 + 1], cl
add r10, 2
jmp 0x180002eb9
mov ecx, ebx
cmove ecx, ebp
mov byte [r10 + 1], cl
add r10, 2
jmp 0x180002eb9
movzx eax, byte [r11]
shr al, 4
or al, r9b
and al, 0x3f
cmp al, 0x1a
jae 0x180002e54
add al, 0x41
jmp 0x180002e69
cmp al, 0x34
jae 0x180002e5c
add al, 0x47
jmp 0x180002e69
cmp al, 0x3e
jae 0x180002e64
sub al, 4
jmp 0x180002e69
mov eax, ebx
cmove eax, ebp
mov byte [r10], al
inc r10
movzx r9d, byte [r11]
and r9b, 0xf
shl r9b, 2
jmp 0x180002eb9
movzx ecx, byte [r11]
shr cl, 2
cmp cl, 0x1a
jae 0x180002e8e
add cl, 0x41
jmp 0x180002ea7
cmp cl, 0x34
jae 0x180002e98
add cl, 0x47
jmp 0x180002ea7
cmp cl, 0x3e
jae 0x180002ea2
sub cl, 4
jmp 0x180002ea7
mov ecx, ebx
cmove ecx, ebp
mov byte [r10], cl
inc r10
movzx r9d, byte [r11]
and r9b, 3
shl r9b, 4
inc r11
inc edi
cmp edi, r8d
jl 0x180002d90
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub r8d, eax
je 0x180002f27
and r9b, 0x3f
cmp r9b, 0x1a
jae 0x180002eee
add r9b, 0x41
jmp 0x180002f0d
cmp r9b, 0x34
jae 0x180002efa
add r9b, 0x47
jmp 0x180002f0d
cmp r9b, 0x3e
jae 0x180002f06
sub r9b, 4
jmp 0x180002f0d
cmove ebx, ebp
movzx r9d, bl
mov byte [r10], r9b
inc r10
cmp r8d, 1
jne 0x180002f20
mov byte [r10], 0x3d
inc r10
mov byte [r10], 0x3d
inc r10
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov byte [r10], 0
sub r10d, esi
mov rsi, qword [rsp + 0x28]
mov eax, r10d
pop rdi
ret
Function at 0x180002f50
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov r8, rdx
mov rdi, rcx
mov r10, rcx
mov r11, 0xffffffffffffffff
nop word [rax + rax]
inc r11
cmp byte [rdx + r11], 0
jne 0x180002f70
xor ebx, ebx
test r11d, r11d
jle 0x18000305b
movzx r9d, byte [rsp + 8]
nop dword [rax + rax]
movzx eax, byte [r8]
cmp al, 0x3d
je 0x18000305b
nop dword [rax]
test al, al
je 0x18000305b
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x180002fb4
sub al, 0x41
jmp 0x180002fd6
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x180002fc0
sub al, 0x47
jmp 0x180002fd6
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x180002fcc
add al, 4
jmp 0x180002fd6
cmp al, 0x2b
je 0x180002fed
cmp al, 0x2f
je 0x180002fe9
mov al, 0x40
inc r8
cmp al, 0x40
jne 0x180002fe3
movzx eax, byte [r8]
jmp 0x180002fa0
cmp al, 0x41
je 0x18000305b
jmp 0x180002ff2
mov al, 0x3f
jmp 0x180002fef
mov al, 0x3e
inc r8
mov edx, ebx
and edx, 3
je 0x180003048
sub edx, 1
je 0x18000302f
sub edx, 1
je 0x180003016
cmp edx, 1
jne 0x180003050
movzx ecx, r9b
or cl, al
mov byte [r10], cl
inc r10
jmp 0x180003050
movzx ecx, al
shr cl, 2
or cl, r9b
movzx r9d, al
mov byte [r10], cl
inc r10
shl r9b, 6
jmp 0x180003050
movzx ecx, al
shr cl, 4
or cl, r9b
movzx r9d, al
mov byte [r10], cl
inc r10
shl r9b, 4
jmp 0x180003050
movzx r9d, al
shl r9b, 2
inc ebx
cmp ebx, r11d
jl 0x180002f90
mov rbx, qword [rsp + 0x10]
sub r10d, edi
mov rdi, qword [rsp + 0x18]
mov eax, r10d
ret