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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14013f080]
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 0x14009dc05
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 0x14009dc66
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140078490
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.1400b0c80
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 0x14009dd21
sub ecx, 1
je 0x14009dd94
sub ecx, 1
je 0x14009dcd0
cmp ecx, 1
je 0x14009dcb3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400c36f8]
call fcn.140078490
jmp 0x14009dd94
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14009d8a0
test eax, eax
je 0x14009dd94
jmp 0x14009dc3a
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 0x14009dd94
sub rax, rsi
cmp rax, rbp
jae 0x14009dd94
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140078610
jmp 0x14009dd94
cmp r8d, 4
jle 0x14009dd94
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 0x14009dd94
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400783b0
mov esi, eax
test eax, eax
je 0x14009dd73
mov edx, 5
mov rcx, rbx
call fcn.14009e860
mov eax, esi
jmp 0x14009dc3a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140086c90
mov rcx, r14
call fcn.140086f70
test eax, eax
je 0x14009dc38
mov edx, 5
mov rcx, rbx
call fcn.14009e860
mov eax, Ordinal_45
jmp 0x14009dc3a
Function at 0x1400b0b30
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 0x1400b0b72
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 0x1400b0bb9
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 0x1400b0c12
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 0x1400b0bd0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b0c53
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c3472]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c3473]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b0c20
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 0x1400b1b8c
Capabilities:
Parse pe header

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

Disassembly:
push rsi
sub rsp, 0x70
mov qword [rsp + 0x50], rcx
mov rcx, rdx
mov qword [rsp + 0x48], rdx
call fcn.1400017e0
xor r8d, r8d
mov ecx, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
and al, 0x38

Function at 0x140001574
Capabilities:
Encode data using xor

Disassembly:
xor r8, 0x3bb432f0
mov qword [rsp + 0x88], r8
mov r8, qword [sym.imp.KERNEL32.dll_QueryIdleProcessorCycleTime]
lea r11, [rsp + 0x7c]
lea rsi, [rsp + 0x88]
mov qword [rsp + 0x50], rcx
mov rcx, r11
mov qword [rsp + 0x48], rdx
mov rdx, rsi
mov dword [rsp + 0x44], eax
call r8
call rax
mov dword [rsp + 0x40], eax
call fcn.1400013a0
cmp eax, 0
je 0x14000156e
jmp 0x140001609
call fcn.140001050
cmp eax, 0
clc
add byte [rdi], cl
invalid
lea eax, [rax]
add byte [rax], al

Function at 0x1400024b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0xb8
lea rdx, [0x1400040ab]
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0xb4], 0x201c9f1d
mov r8w, word [rsp + 0xae]
mov r9w, r8w
sub r9w, 0x8886
mov word [rsp + 0xae], r9w
mov qword [rsp + 0xa0], 0x7f92b344
mov r10d, dword [rsp + 0xb4]
mov r11d, r10d
add r11d, 0xdfe360f1
mov word [rsp + 0x3e], r8w
mov r8d, r11d
mov dword [rsp + 0x38], r10d
mov qword [rsp + 0x30], rax
call sym.UxTheme.dll_Ordinal_26
xor r8d, r8d
mov eax, r8d
mov r8d, dword [rsp + 0x38]
imul r10d, r8d, 0x753812d8
adc bh, byte [rax]
jne 0x14000257c
mov dword [rsp + 0xb0], edx
Function at 0x100401830
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [str.tput]
mov rsi, rcx
call sub.msys_2.0.dll___getreent
mov r8, rbx
lea rdx, str.Usage:__s__options___command__n
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
test rsi, rsi
je 0x1004018e8
lea rbx, str._nOptions:_n___S__________read_commands_from_standard_input_n___T_TERM_____use_this_instead_of__TERM_n___V__________print_curses_version_n___x__________do_not_try_to_clear_scrollback_n_nCommands:_n__clear_______clear_the_screen_n__init________initialize_the_terminal_n__reset_______reinitialize_the_terminal_n__capname_____unlike_clear_init_reset__print_value_for_capability__capname__n
jmp 0x10040189a
cmp byte [rbx + 1], 0x20
jne 0x1004018b3
cmp byte [rbx + 2], 0x2d
jne 0x1004018b3
movsx edx, byte [rbx + 3]
mov rcx, rsi
call sub.msys_2.0.dll_strchr
mov rcx, rbx
test rax, rax
je 0x1004018d8
cmp byte [rcx + 1], 0
lea rbx, [rcx + 1]
je 0x1004018c4
call sub.msys_2.0.dll___getreent
movzx ecx, byte [rbx]
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
movzx eax, byte [rbx]
cmp eax, 0x20
je 0x100401870
cmp eax, 0xa
jne 0x1004018d0
cmp byte [rbx + 1], 0xa
jne 0x1004018d0
cmp byte [rbx + 2], 0x43
jne 0x1004018d0
mov ecx, 2
call sub.msys_2.0.dll_exit
nop
mov rcx, rbx
jmp 0x100401890
mov edx, 0xa
call sub.msys_2.0.dll_strchr
lea rcx, [rax + 1]
jmp 0x100401890
call sub.msys_2.0.dll___getreent
mov r8d, 0x176
mov edx, 1
lea rcx, str._nOptions:_n___S__________read_commands_from_standard_input_n___T_TERM_____use_this_instead_of__TERM_n___V__________print_curses_version_n___x__________do_not_try_to_clear_scrollback_n_nCommands:_n__clear_______clear_the_screen_n__init________initialize_the_terminal_n__reset_______reinitialize_the_terminal_n__capname_____unlike_clear_init_reset__print_value_for_capability__capname__n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
jmp 0x1004018c4

Function at 0x1004019d0
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
call sub.msys_2.0.dll___errno
mov ebx, dword [rax]
mov ecx, ebx
call sub.msys_2.0.dll_strerror
mov rdi, rax
mov rax, qword [0x100405410]
mov rbp, qword [rax]
call sub.msys_2.0.dll___getreent
mov r9, rsi
lea rdx, [0x100405270]
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], rdi
mov r8, rbp
call sub.msys_2.0.dll_fprintf
call fcn.1004029c0
mov rdx, qword [0x100409018]
mov ecx, 0xa
call sub.msys_2.0.dll_fputc
mov rcx, qword [0x100409018]
call fcn.100402b50
lea ecx, [rbx + 4]
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x100401a50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x420
mov r14, rcx
test rcx, rcx
je 0x100401af0
lea rdx, [0x10040527c]
call sub.msys_2.0.dll_fopen
mov r12, rax
test rax, rax
je 0x100401af5
xor r13d, r13d
lea rsi, [rsp + 0x20]
jmp 0x100401ab2
mov r9, qword [0x100409018]
mov r8, rbx
mov edx, 1
mov rcx, rsi
mov r13d, 1
call sub.msys_2.0.dll_fwrite
cmp rax, rbx
jne 0x100401af5
mov r9, r12
mov r8d, 0x400
mov edx, 1
mov rcx, rsi
call sub.msys_2.0.dll_fread
mov rbx, rax
test rax, rax
jne 0x100401a90
mov rcx, r12
call sub.msys_2.0.dll_fclose
mov eax, r13d
add rsp, 0x420
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor r13d, r13d
jmp 0x100401ad8
mov rcx, r14
call fcn.1004019d0
nop
nop

Function at 0x100401b00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movsxd r9, r9d
mov rdi, r8
mov r8d, dword [rsp + 0x70]
movzx ebx, byte [r9 + rdx + 0x11]
movzx eax, byte [r9 + rcx + 0x11]
mov ebp, ebx
cmp ebx, eax
jne 0x100401b38
cmp eax, r8d
jne 0x100401b38
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp ebx, eax
lea rsi, [0x10040527e]
lea rax, str.set_to
cmovne rsi, rax
call sub.msys_2.0.dll___getreent
mov r8, rdi
lea rdx, str._s__s
mov rcx, qword [rax + 0x18]
mov r9, rsi
call sub.msys_2.0.dll_fprintf
test ebx, ebx
je 0x100401bc8
cmp ebx, 0x7f
je 0x100401c40
mov rax, qword [sym.imp.msys_ncursesw6.dll_cur_term]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x1b8]
test rax, rax
je 0x100401b93
cmp bpl, byte [rax]
je 0x100401c10
cmp ebx, 0x1f
ja 0x100401bf0
call sub.msys_2.0.dll___getreent
mov ebx, ebp
lea rdx, str.control__c___c_._n
xor ebx, 0x40
mov rcx, qword [rax + 0x18]
movzx ebx, bl
mov r9d, ebx
mov r8d, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov r8d, 7
mov edx, 1
lea rcx, str.undef._n
mov r9, qword [rax + 0x18]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fwrite
call sub.msys_2.0.dll___getreent
mov r8d, ebx
lea rdx, str._c._n
mov rcx, qword [rax + 0x18]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fprintf
cmp byte [rax + 1], 0
jne 0x100401b93
call sub.msys_2.0.dll___getreent
mov r8d, 0xb
mov edx, 1
lea rcx, str.backspace._n
mov r9, qword [rax + 0x18]
jmp 0x100401be3
call sub.msys_2.0.dll___getreent
mov r8d, 8
mov edx, 1
lea rcx, str.delete._n
mov r9, qword [rax + 0x18]
jmp 0x100401be3
Function at 0x100402840
Capabilities:
Terminate process

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
mov dword [0x10040906c], 2
mov r12, rcx
mov ebx, edx
mov rdx, rcx
mov ecx, 2
call sub.msys_2.0.dll_tcgetattr
test eax, eax
js 0x1004028b0
movdqu xmm0, xmmword [r12]
mov byte [0x100409020], 1
movaps xmmword [0x100409040], xmm0
movdqu xmm1, xmmword [r12 + 0x10]
movaps xmmword [0x100409050], xmm1
mov rax, qword [r12 + 0x20]
mov qword [0x100409060], rax
mov eax, dword [r12 + 0x28]
mov dword [0x100409068], eax
mov eax, dword [0x10040906c]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov rdx, r12
mov ecx, 1
mov dword [0x10040906c], 1
call sub.msys_2.0.dll_tcgetattr
test eax, eax
jns 0x100402868
mov dword [0x10040906c], 0
xor ecx, ecx
mov rdx, r12
call sub.msys_2.0.dll_tcgetattr
test eax, eax
jns 0x100402868
test bl, bl
je 0x100402970
lea rcx, str._dev_tty
mov edx, 2
call sub.msys_2.0.dll_open
mov dword [0x10040906c], eax
mov ecx, eax
test eax, eax
jns 0x100402990
call sub.msys_2.0.dll___errno
mov ebx, dword [rax]
mov ecx, ebx
call sub.msys_2.0.dll_strerror
mov r12, rax
mov rax, qword [0x100405410]
mov rsi, qword [rax]
call sub.msys_2.0.dll___getreent
lea r9, str.terminal_attributes
lea rdx, str._s:__s:__s_n
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], r12
mov r8, rsi
call sub.msys_2.0.dll_fprintf
cmp byte [0x100409020], 0
jne 0x1004029a5
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
lea ecx, [rbx + 4]
call sub.msys_2.0.dll_exit
nop
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x10]
call sub.msys_2.0.dll_fileno
mov dword [0x10040906c], eax
jmp 0x1004028a7
mov rdx, r12
call sub.msys_2.0.dll_tcgetattr
test eax, eax
jns 0x1004028a1
jmp 0x10040290c
mov ecx, dword [0x10040906c]
lea r8, [0x100409040]
mov edx, 3
call fcn.100402d00
jmp 0x100402954
Function at 0x180013a90
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180013aed
lea rbx, [0x1802f1e60]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180013ad4
cmp r10, 2
jb 0x180013ad4
cmp byte [r9], r8b
jne 0x180013ad4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180013ab0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180013b2f
lea rbx, [0x1802f1e60]
cmp r8b, 0x23
jne 0x180013b13
cmp byte [r9], r8b
jne 0x180013b13
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180013b00
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180013c90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180013caa
mov qword [r8], 0
lea rdx, [0x1802f9640]
call fcn.180013b40
mov rbx, rax
test rax, rax
jne 0x180013cca
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180013da1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180013da1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180013da1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180013da1
cmp rdi, 0xffffffffffffffff
je 0x180013da1
mov rax, qword [0x180365770]
test rax, rax
je 0x180013d3e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180013da1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180013d8e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180365770]
test rax, rax
je 0x180013d83
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180013daa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180013d9c
mov qword [r14], rdi
mov rax, rsi
jmp 0x180013dac
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180013f80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x180014197
mov qword [r11 + 0x18], rbp
lea rbp, [0x180000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x180013fde
cmp r8, rsi
jae 0x180014174
movzx edx, byte [r8]
test dl, dl
je 0x180014174
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x2f9810]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x180014012
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x18001402b
movzx r13d, byte [rax]
jmp 0x18001402e
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x18001403d
movzx r12d, byte [rax]
jmp 0x180014040
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x18001404f
movzx r15d, byte [rax]
jmp 0x180014052
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x2f9848]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x180000000]
mov ecx, dword [r10 + rax + 0x2f97f8]
shr r11d, 2
shr ebp, cl
mov ecx, pe_nt_image_headers64
cmp ebp, dword [r10 + rax + 0x2f97e0]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x180000000]
mov ecx, dword [r10 + rcx + 0x2f9830]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x180014156
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x180000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x180013fd0
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x1800141ad
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1800141c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x180000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x180014200
cmp rax, rdi
jae 0x180014378
movzx r8d, byte [rax]
test r8b, r8b
je 0x180014378
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0x2f9810]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x180014236
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x18001424e
movzx r15d, byte [rcx]
jmp 0x180014251
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x180014260
movzx r14d, byte [rcx]
jmp 0x180014263
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x180014271
movzx ebp, byte [rcx]
jmp 0x180014274
xor bpl, bpl
lea r10, [r9*4]
movzx ecx, sil
mov r9d, dword [r10 + r13 + 0x2f9848]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r11d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r11d
shr r11d, 2
and ecx, 0x3f
or r11d, edx
shl r9d, 6
shr r11d, 2
or r9d, ecx
mov ecx, dword [r10 + r13 + 0x2f97f8]
or r11d, r8d
shr r9d, cl
shr r11d, 2
mov edx, r9d
cmp r9d, dword [r10 + r13 + 0x2f97e0]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r11d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r11d, r8d
mov ecx, pe_nt_image_headers64
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r10 + r13 + 0x2f9830]
or r11d, edx
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x18001436a
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x1800141f2
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x180016ec0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r10, [0x1802f1e60]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dl
movzx r8d, bl
shr ebx, 8
xor r8, rax
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r10 + r8*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r10 + rcx*4]
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x3f20], ebx
jne 0x180016f4b
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.18002a2b0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180016f60
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0xf8]
lea r9, [0x1802f1e60]
movss xmm2, dword [rcx + 0x110]
movss xmm3, dword [rcx + 0x114]
movsxd rcx, dword [rcx + 0xf0]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret