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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140097944
cmp r8d, 0xff
jne 0x140097881
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14009786b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xbb510]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140073e80
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140073e80
cmp r8d, 0xfb
jne 0x140097893
lea r9, str.WILL
jmp 0x1400978d1
cmp r8d, 0xfc
jne 0x1400978a5
lea r9, str.WONT
jmp 0x1400978d1
cmp r8d, 0xfd
jne 0x1400978b7
lea r9, [0x1400bbf34]
jmp 0x1400978d1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14009792d
cmp r10d, 0x27
jg 0x140097904
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xbbb30]
test r8, r8
jne 0x140097914
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140073e80
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400978eb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140073e80
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140073e80
add rsp, 0x38
ret

Function at 0x140097c90
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 0x140097cef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140073d00
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140097820
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140097ea0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140098048
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 0x140097f05
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140097f05
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140097f05
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 0x140097f3c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140097f92
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097f92
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097f92
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097f92
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097f92
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.140097950
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 0x140097ff4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140073d00
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140097d20
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 0x140098040
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140073d00
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400997b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400dc088]
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 0x140099845
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 0x1400998a6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140073d00
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.1400ad1a0
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 0x140099961
sub ecx, 1
je 0x1400999d4
sub ecx, 1
je 0x140099910
cmp ecx, 1
je 0x1400998f3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400c4448]
call fcn.140073d00
jmp 0x1400999d4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400994e0
test eax, eax
je 0x1400999d4
jmp 0x14009987a
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 0x1400999d4
sub rax, rsi
cmp rax, rbp
jae 0x1400999d4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140073e80
jmp 0x1400999d4
cmp r8d, 4
jle 0x1400999d4
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 0x1400999d4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140073c20
mov esi, eax
test eax, eax
je 0x1400999b3
mov edx, 5
mov rcx, rbx
call fcn.14009a4a0
mov eax, esi
jmp 0x14009987a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140082700
mov rcx, r14
call fcn.1400829e0
test eax, eax
je 0x140099878
mov edx, 5
mov rcx, rbx
call fcn.14009a4a0
mov eax, Ordinal_45
jmp 0x14009987a
Function at 0x1400ac770
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 0x1400ac7b2
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 0x1400ac7f9
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 0x1400ac852
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 0x1400ac810
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ac893
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400bf0d2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400bf0d3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ac860
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 0x1400ad7b4
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14049914d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14049915d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140499145
lea eax, [rcx + 1]
jmp 0x14049916b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14049917e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140499164
sub eax, 3
jb 0x14049919e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1404991ed
sar eax, 1
movsxd rbp, eax
jb 0x1404991d4
jmp 0x1404991ac
add ebx, ebx
jne 0x1404991aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404991d4
inc ecx
add ebx, ebx
jne 0x1404991ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404991d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1404991cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1404991bc
add ecx, 2
jmp 0x1404991d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140499102
jmp 0x14049914d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1fa200
mov dl, 0x54
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14049923d
cmp rsi, rcx
jae 0x140499245
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140499224
cmp al, 0x8f
ja 0x140499224
cmp byte [rsi - 2], 0xf
je 0x14049922a
sub al, 0xe8
cmp al, 1
ja 0x14049920e
cmp rsi, rcx
jae 0x140499245
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140499214
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140499245
lodsb al, byte [rsi]
jmp 0x140499224
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x475000]
mov eax, dword [rdi]
or eax, eax
je 0x1404992ae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4a7358]
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 0x140499252
jns 0x140499287
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140499291
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 0x1404992a8
mov qword [rbx], rax
add rbx, 8
jmp 0x140499272
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 0x1404992f2
cmp al, 0xef
ja 0x1404992da
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1404992ba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1404992c9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1404992c9
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 + 0x24f]
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 0x140499346
sub rsp, 0xffffffffffffff80
jmp 0x1401d7774
Function at 0x14065c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14065c1df
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 0x14065c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065c06f
add dl, dl
jne 0x14065c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065c0f6
xor eax, eax
add dl, dl
jne 0x14065c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065c1ad
add dl, dl
jne 0x14065c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14065c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065c07e
mov eax, 1
add dl, dl
jne 0x14065c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065c0fb
sub eax, ebx
mov ebx, 1
jne 0x14065c14c
mov ecx, 1
add dl, dl
jne 0x14065c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14065c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065c15d
cmp eax, 0x7d00
jae 0x14065c19b
cmp eax, 0x500
jb 0x14065c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065c07e
cmp eax, 0x7f
ja 0x14065c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14065c1d2
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 0x14065c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180006a2e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x78
mov eax, 0x60
mov rax, qword gs:[rax]
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x180007acb
xor r13d, r13d
mov rdx, qword [rbx + 0x60]
mov eax, r13d
movzx ebp, word [rdx]
test ebp, ebp
je 0x180006b5f
add rdx, 0x10
movzx esi, word [rdx - 0x10]
cmp esi, 0x41
jl 0x180006a86
cmp esi, 0x5a
lea ebp, [rsi + 0x20]
cmovle esi, ebp
movzx ebp, si
movzx edi, word [rdx - 0xe]
add eax, ebp
test edi, edi
je 0x180006b5f
cmp edi, 0x41
jl 0x180006aa8
cmp edi, 0x5a
lea ebp, [rdi + 0x20]
movzx esi, bp
cmovle edi, esi
add eax, edi
movzx edi, word [rdx - 0xc]
test edi, edi
je 0x180006b5f
cmp edi, 0x41
jl 0x180006ac7
cmp edi, 0x5a
lea ebp, [rdi + 0x20]
movzx esi, bp
cmovle edi, esi
add eax, edi
movzx edi, word [rdx - 0xa]
test edi, edi
je 0x180006b5f
cmp edi, 0x41
jl 0x180006ae6
cmp edi, 0x5a
lea ebp, [rdi + 0x20]
movzx esi, bp
cmovle edi, esi
add eax, edi
movzx edi, word [rdx - 8]
test edi, edi
je 0x180006b5f
cmp edi, 0x41
jl 0x180006b01
cmp edi, 0x5a
lea ebp, [rdi + 0x20]
movzx esi, bp
cmovle edi, esi
add eax, edi
movzx edi, word [rdx - 6]
test edi, edi
je 0x180006b5f
cmp edi, 0x41
jl 0x180006b1c
cmp edi, 0x5a
lea ebp, [rdi + 0x20]
movzx esi, bp
cmovle edi, esi
add eax, edi
movzx edi, word [rdx - 4]
test edi, edi
je 0x180006b5f
cmp edi, 0x41
jl 0x180006b37
cmp edi, 0x5a
lea ebp, [rdi + 0x20]
movzx esi, bp
cmovle edi, esi
add eax, edi
movzx edi, word [rdx - 2]
test edi, edi
je 0x180006b5f
cmp edi, 0x41
jl 0x180006b52
cmp edi, 0x5a
lea ebp, [rdi + 0x20]
movzx esi, bp
cmovle edi, esi
movzx ebp, word [rdx]
add eax, edi
test ebp, ebp
jne 0x180006a70
and eax, 0x7fffffff
cmp eax, 0x450
je 0x180007ac2
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x180006a5e
xor edi, edi
movsxd rdx, dword [rdi + 0x3c]
mov r10d, r13d
add rdx, rdi
mov r8d, dword [0x1801460c5]
mov esi, dword [0x1801460d5]
mov ebp, dword [0x18014610d]
mov eax, dword [rdx + rbp*8 + 0x88]
mov edx, dword [rax + rdi + 0x20]
mov ecx, dword [rax + rdi + 0x1c]
add rdx, rdi
mov ebp, dword [rax + rdi + 0x24]
add rcx, rdi
mov ebx, dword [rax + rdi + 0x18]
add rbp, rdi
test ebx, ebx
jbe 0x180006ca4
mov qword [rsp + 0x40], rcx
mov rdi, qword [rbx + 0x30]
jmp 0x180006b7d
xor r13d, r13d
jmp 0x180006b7b
Function at 0x180007a00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop rax
movzx eax, word [rax + rbx*2]
mov rcx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x48]
mov ebx, dword [rcx + rax*4]
mov r12, qword [rsp + 0x40]
add rbx, rdi
je 0x1800076d9
jmp 0x1800076e1

Function at 0x18000e760
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rdx
movzx r9d, cx
movabs rax, 0x79baa6bb6398b6f7
shr ecx, 0x10
mul r8
mov rax, r8
mov rbx, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0xc
imul rax, rax, 0x15b0
sub r8, rax
test r10, r10
jne 0x18000e7a8
lea eax, [r10 + 1]
mov rbx, qword [rsp + 8]
ret
test rbx, rbx
je 0x18000e87c
xor edx, edx
cmp r8, 7
jbe 0x18000e82a
lea r11d, [rdx + 7]
nop dword [rax]
movzx eax, byte [r10]
add r11d, 8
add r9d, eax
add edx, 8
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
add r10, 8
add ecx, r9d
mov eax, r11d
cmp rax, r8
jb 0x18000e7c0
mov eax, edx
cmp rax, r8
jae 0x18000e847
movzx eax, byte [r10]
inc edx
add r9d, eax
inc r10
add ecx, r9d
mov eax, edx
cmp rax, r8
jb 0x18000e831
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
sub rbx, r8
mov r8d, 0x15b0
jne 0x18000e7b1
mov rbx, qword [rsp + 8]
shl ecx, 0x10
lea eax, [r9 + rcx]
ret

Function at 0x18000e890
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
mov r10, rdx
test rdx, rdx
jne 0x18000e89e
xor eax, eax
ret
not ecx
test r8, r8
je 0x18000e8e4
lea r11, [0x1800fdbc0]
nop dword [rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
mov eax, ecx
shr ecx, 4
xor rax, r8
shr r8, 4
and eax, 0xf
mov edx, dword [r11 + rax*4]
xor edx, ecx
mov eax, edx
shr edx, 4
and eax, 0xf
xor rax, r8
mov ecx, dword [r11 + rax*4]
xor ecx, edx
sub r9, 1
jne 0x18000e8b0
not ecx
mov eax, ecx
ret
Function at 0x180015750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rcx
mov r8, qword [rcx + 0xd8]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x40]
add rcx, 0xd8
call fcn.18001a9f0
nop
mov rcx, qword [rdi + 0xd8]
call fcn.1800af3bc
nop
lea rcx, [rdi + 0xb0]
call fcn.18001a060
nop
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x1800157c7
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
test rax, rax
je 0x1800157c7
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea rcx, [rdi + 0x88]
call fcn.18001a060
nop
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x1800157fb
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
test rax, rax
je 0x1800157fb
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea rcx, [rdi + 0x60]
call fcn.18001a060
nop
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x18001582c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
test rax, rax
je 0x18001582c
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea rcx, [rdi + 0x40]
call fcn.1800077c0
nop
lea rcx, [rdi + 0x20]
call fcn.1800077c0
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.1800077c0
Function at 0x180039520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
lea rax, vtable.SAS::ConditionalTask.0
mov rbx, rcx
mov qword [rcx], rax
mov rdx, qword [rcx + 0x78]
test rdx, rdx
je 0x180039563
mov r8, qword [rcx + 0x88]
sub r8, rdx
sar r8, 5
call fcn.18000b9c0
xor eax, eax
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x88], rax
lea rcx, [rbx + 0x60]
call fcn.180004d70
lea rcx, [rbx + 0x48]
call fcn.180004d70
lea rax, vtable.SAS::TaskBase.0
lea rcx, [rbx + 0x10]
mov qword [rbx], rax
add rsp, 0x20
pop rbx
jmp fcn.1800077c0
Function at 0x18003acc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rcx
lea rax, vtable.SAS::Context.0
mov qword [rcx], rax
call fcn.18003b3d0
nop
mov rbx, qword [rdi + 0x3a8]
test rbx, rbx
je 0x18003ad20
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18003ad20
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18003ad20
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rdi + 0x388]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18003ad43
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rdi + 0x388], 0xffffffffffffffff
mov rbx, qword [rdi + 0x380]
test rbx, rbx
je 0x18003ad7a
lea rcx, [rbx + 0x38]
call fcn.1800077c0
nop
lea rcx, [rbx + 0x18]
call fcn.1800077c0
nop
mov rcx, rbx
call fcn.180004d70
nop
mov edx, 0x90
mov rcx, rbx
call fcn.1800ae8f4
nop
mov rcx, qword [rdi + 0x378]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18003ad9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rdi + 0x378], 0xffffffffffffffff
mov rbx, qword [rdi + 0x370]
test rbx, rbx
je 0x18003adf8
lea rcx, [rbx + 0xa0]
call fcn.1800077c0
nop
lea rcx, [rbx + 0x80]
call fcn.1800077c0
nop
lea rcx, [rbx + 0x60]
call fcn.1800077c0
nop
lea rcx, [rbx + 0x40]
call fcn.1800077c0
nop
lea rcx, [rbx + 0x20]
call fcn.1800077c0
nop
mov rcx, rbx
call fcn.1800077c0
nop
mov edx, 0xc8
mov rcx, rbx
call fcn.1800ae8f4
nop
mov rbx, qword [rdi + 0x368]
test rbx, rbx
je 0x18003ae47
lea rcx, [rbx + 0x88]
call fcn.1800077c0
nop
lea rcx, [rbx + 0x68]
call fcn.1800077c0
nop
lea rcx, [rbx + 0x48]
call fcn.1800077c0
nop
lea rcx, [rbx + 0x28]
call fcn.1800077c0
nop
lea rcx, [rbx + 8]
call fcn.1800077c0
nop
mov edx, 0xa8
mov rcx, rbx
call fcn.1800ae8f4
nop
mov r8, qword [rdi + 0x358]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x358]
call fcn.180055d40
nop
mov rcx, qword [rdi + 0x358]
call fcn.1800af3bc
nop
lea rcx, [rdi + 0x268]
call fcn.180066d60
nop
lea rcx, [rdi + 0x178]
call fcn.180066d60
nop
lea rcx, [rdi + 0x158]
call fcn.1800077c0
nop
lea rcx, [rdi + 0x138]
call fcn.1800077c0
nop
mov rbx, qword [rdi + 0x130]
test rbx, rbx
je 0x18003aeca
mov rcx, rbx
call fcn.18006f4e0
nop
mov edx, 0x98
mov rcx, rbx
call fcn.1800ae8f4
nop
lea rcx, [rdi + 0x110]
call fcn.1800077c0
nop
lea rcx, [rdi + 0xf0]
call fcn.1800077c0
nop
lea rcx, [rdi + 0xd0]
call fcn.1800077c0
nop
lea rcx, [rdi + 0xb0]
call fcn.1800077c0
nop
lea rcx, [rdi + 0x90]
call fcn.1800077c0
nop
lea rcx, [rdi + 0x70]
call fcn.1800077c0
nop
lea rcx, [rdi + 0x50]
call fcn.1800077c0
nop
lea rcx, [rdi + 0x30]
call fcn.1800077c0
nop
lea rcx, [rdi + 0x10]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.1800077c0