joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402555b9
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1402557aa
push rbx
mov eax, reloc.WLDAP32.dll_Ordinal_208
call fcn.14012b0b0
sub rsp, rax
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xe8], rbp
mov rbx, rdx
mov qword [rsp + 0xf0], rsi
lea rbp, [r8 - 1]
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xc8], r14
lea r14, [rcx + 0xc]
shr rbp, 3
mov qword [rsp + 0xc0], r15
inc rbp
lea r15, [rcx + 0x14]
nop word [rax + rax]
movzx eax, byte [rbx + 1]
mov rcx, r14
movzx edi, byte [rbx]
movzx esi, byte [rbx + 4]
lea rbx, [rbx + 8]
shl eax, 8
or edi, eax
movzx eax, byte [rbx - 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbx - 5]
shl eax, 0x18
or edi, eax
movzx eax, byte [rbx - 3]
shl eax, 8
or esi, eax
mov dword [rsp + 0x20], edi
movzx eax, byte [rbx - 2]
shl eax, 0x10
or esi, eax
mov dword [rsp + 0x28], edi
movzx eax, byte [rbx - 1]
and byte [r14], 0xdf
and byte [r15], 0xbf
or byte [r14], 0x40
or byte [r15], 0x20
shl eax, 0x18
or esi, eax
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x2c], esi
call fcn.1401c1230
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1401c0f80
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.14020c0a0
mov rcx, r15
call fcn.1401c1230
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.1401c0f80
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14020c0a0
mov r8d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
xor r8d, edi
xor edi, dword [rsp + 0x28]
xor edx, esi
xor esi, dword [rsp + 0x2c]
mov eax, edi
mov byte [r14], dil
shr eax, 8
mov byte [r14 + 1], al
mov eax, edi
shr eax, 0x10
mov byte [r14 + 2], al
mov eax, edx
shr eax, 8
shr edi, 0x18
mov byte [r14 + 3], dil
mov byte [r14 + 4], dl
mov byte [r14 + 5], al
mov eax, edx
shr eax, 0x10
mov byte [r14 + 6], al
mov eax, r8d
shr eax, 8
shr edx, 0x18
mov byte [r14 + 7], dl
mov byte [r15], r8b
mov byte [r15 + 1], al
mov eax, r8d
shr eax, 0x10
mov byte [r15 + 2], al
shr r8d, 0x18
mov byte [r15 + 3], r8b
mov byte [r15 + 4], sil
mov eax, esi
shr eax, 8
mov byte [r15 + 5], al
mov eax, esi
shr eax, 0x10
shr esi, 0x18
mov byte [r15 + 6], al
mov byte [r15 + 7], sil
sub rbp, 1
jne 0x140255620
mov r15, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0xd0
pop rbx
ret
Function at 0x14025ceb0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
mov eax, 0x48
call fcn.14012b0b0
sub rsp, rax
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rdx]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov rbp, rcx
mov eax, dword [rsp + 0x80]
test eax, eax
jle 0x14025cfc2
mov qword [rsp + 0x70], rbx
sub rdi, r9
mov qword [rsp + 0x40], rsi
lea rbx, [r9 + 2]
mov esi, eax
nop
lea r8, [rsp + 0x28]
mov rcx, rbp
lea rdx, [rsp + 0x20]
call fcn.14025d2a0
movzx ecx, byte [rdi + rbx - 2]
lea rbx, [rbx + 8]
movzx eax, byte [rsp + 0x28]
xor ecx, eax
movzx eax, byte [rsp + 0x29]
mov byte [rbx - 0xa], cl
mov byte [rsp + 0x20], cl
movzx ecx, byte [rdi + rbx - 9]
xor ecx, eax
movzx eax, byte [rsp + 0x2a]
mov byte [rbx - 9], cl
mov byte [rsp + 0x21], cl
movzx ecx, byte [rdi + rbx - 8]
xor ecx, eax
movzx eax, byte [rsp + 0x2b]
mov byte [rbx - 8], cl
mov byte [rsp + 0x22], cl
movzx ecx, byte [rdi + rbx - 7]
xor ecx, eax
movzx eax, byte [rsp + 0x2c]
mov byte [rbx - 7], cl
mov byte [rsp + 0x23], cl
movzx ecx, byte [rdi + rbx - 6]
xor ecx, eax
movzx eax, byte [rsp + 0x2d]
mov byte [rbx - 6], cl
mov byte [rsp + 0x24], cl
movzx ecx, byte [rdi + rbx - 5]
xor ecx, eax
movzx eax, byte [rsp + 0x2e]
mov byte [rbx - 5], cl
mov byte [rsp + 0x25], cl
movzx ecx, byte [rdi + rbx - 4]
xor ecx, eax
movzx eax, byte [rsp + 0x2f]
mov byte [rbx - 4], cl
mov byte [rsp + 0x26], cl
movzx ecx, byte [rdi + rbx - 3]
xor ecx, eax
mov byte [rbx - 3], cl
mov byte [rsp + 0x27], cl
sub rsi, 1
jne 0x14025cf00
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x48
pop rdi
pop rbp
ret
Function at 0x140264e80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r13
sub rsp, 0x28
cmp dword [0x14045c160], 0
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov r13, rcx
jne 0x140264ea8
call fcn.140265020
cmp rdi, 0x1e
jbe 0x140264ebb
or eax, 0xffffffff
add rsp, 0x28
pop r13
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x50], rbx
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x68], r14
mov rcx, rbp
call fcn.14027b2c0
lea rdx, [0x140000000]
cmp byte [rdi + rdx + 0x45c6f6], 0
jne 0x140264ef2
mov rcx, rdi
call fcn.1402650b0
lea rdx, [0x140000000]
lea rax, [rdi - 2]
xor ebx, ebx
imul r14, rax, 0x1f
lea rax, [0x14045c370]
add r14, rax
test r13, r13
je 0x140265006
mov qword [rsp + 0x58], r12
lea r12, [rbp + 1]
mov qword [rsp + 0x20], r15
nop dword [rax]
movzx ecx, byte [rbx + rsi]
movzx eax, byte [rbp]
xor rcx, rax
movzx esi, byte [rcx + rdx + 0x45c270]
cmp sil, 0xff
je 0x140264f99
cmp rdi, 1
jbe 0x140264f99
lea r9, [rdi - 1]
movzx r11d, sil
mov rcx, r12
lea r10, [rdi - 1]
add r9, r14
lea r12, [0x140000000]
nop dword [rax + rax]
movzx r8d, byte [r9]
lea r9, [r9 - 1]
add r8d, r11d
lea rcx, [rcx + 1]
mov eax, 0x80808081
mul r8d
shr edx, 7
imul eax, edx, 0xff
sub r8d, eax
movzx eax, byte [r8 + r12 + 0x45c170]
xor byte [rcx - 1], al
sub r10, 1
jne 0x140264f60
lea r12, [rbp + 1]
lea r8, [rdi - 1]
mov rdx, r12
mov rcx, rbp
call fcn.140278ed0
cmp sil, 0xff
je 0x140264fdf
movzx ecx, byte [r14]
movzx eax, sil
add ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
imul eax, edx, 0xff
lea rdx, [0x140000000]
sub ecx, eax
movzx eax, byte [rcx + rdx + 0x45c170]
mov byte [rdi + rbp - 1], al
jmp 0x140264feb
mov byte [rdi + rbp - 1], 0
lea rdx, [0x140000000]
mov rsi, qword [rsp + 0x60]
inc rbx
cmp rbx, r13
jb 0x140264f20
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x58]
mov r14, qword [rsp + 0x68]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402650b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp], 1
lea rbx, [0x140000000]
mov r11, rcx
mov r8d, r9d
test rcx, rcx
je 0x14026518d
mov qword [rsp + 0xa8], rdi
movabs rdi, 0x8080808080808081
nop dword [rax]
mov dword [rsp + r8*4 + 4], 1
mov r10, r8
test r8, r8
je 0x14026514b
movsxd rax, dword [rsp + r10*4]
movzx ecx, byte [rax + rbx + 0x45c270]
mov rax, rdi
add rcx, r8
mul rcx
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
movzx eax, byte [rcx + rbx + 0x45c170]
xor eax, dword [rsp + r10*4 - 4]
mov dword [rsp + r10*4], eax
sub r10, 1
jne 0x140265111
movsxd rax, dword [rsp]
movzx ecx, byte [rax + rbx + 0x45c270]
mov rax, rdi
add rcx, r8
inc r8
mul rcx
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
movzx eax, byte [rcx + rbx + 0x45c170]
mov dword [rsp], eax
cmp r8, r11
jb 0x140265100
mov rdi, qword [rsp + 0xa8]
lea rax, [r11 - 2]
imul rcx, rax, 0x1f
lea rdx, [rbx + 0x45c370]
add rdx, rcx
nop
movsxd rax, dword [rsp + r9*4]
movzx eax, byte [rax + rbx + 0x45c270]
mov byte [rdx + r9], al
inc r9
cmp r9, r11
jbe 0x1402651a0
mov byte [r11 + rbx + 0x45c6f6], 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x90
pop rbx
ret

Function at 0x14026df60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rdi, r9
mov rbp, r8
mov r14, rdx
test rcx, rcx
jne 0x14026dfa6
lea r8, [0x1403feb68]
lea rdx, [0x1403feb78]
call fcn.14026d8f0
xor eax, eax
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
test rdi, rdi
jne 0x14026dfd5
lea r8, [0x1403feba8]
xor ecx, ecx
lea rdx, [0x1403febb8]
call fcn.14026d8f0
xor eax, eax
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rbx
xor r8d, r8d
lea rbx, [r9 + 8]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x38], rbx
mov rsi, r14
imul rsi, rbp
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rax
call sub.ntdll.dll_NtReadFile
mov ecx, eax
test eax, eax
js 0x14026e038
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call sub.ntdll.dll_NtWaitForSingleObject
test eax, eax
mov ecx, eax
cmovns ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x14026e067
mov rax, qword gs:[0x30]
lea r8, str.winx_fread
lea rdx, str.ERROR:__s:_cannot_read_from_a_file
mov dword [rax + 0x11e8], ecx
mov ecx, 1
call fcn.14026d8f0
xor eax, eax
jmp 0x14026e081
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x14026e079
add qword [rbx], rsi
mov rax, rbp
jmp 0x14026e081
add qword [rbx], rax
xor edx, edx
div r14
mov rbx, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsi, qword [rsp + 0x78]
mov rsp, r11
pop r14
ret
Function at 0x14026e200
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
jne 0x14026e23f
lea r8, [0x1403fee00]
lea rdx, [0x1403fee10]
call fcn.14026d8f0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x68
ret
mov rcx, qword [rcx]
lea r8, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea r9d, [rax + 0x18]
call sub.ntdll.dll_NtQueryInformationFile
test eax, eax
jns 0x14026e2ad
mov rcx, qword gs:[0x30]
lea r8, str.winx_fsize
lea rdx, str.ERROR:__s:_cannot_get_standard_file_information
mov dword [rcx + 0x11e8], eax
mov ecx, 1
call fcn.14026d8f0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x68
ret
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x68
ret

Function at 0x14026e670
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
test rcx, rcx
jne 0x14026e69a
lea r8, [0x1403fef00]
lea rdx, [0x1403fef18]
call fcn.14026d8f0
or eax, 0xffffffff
add rsp, 0x60
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x20]
call sub.ntdll.dll_RtlInitUnicodeString
lea rax, [rsp + 0x20]
mov dword [rsp + gethostbyname], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], 0
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 0x40
call sub.ntdll.dll_NtDeleteFile
test eax, eax
jns 0x14026e714
mov rcx, qword gs:[0x30]
lea r8, str.winx_delete_file
mov r9, rbx
lea rdx, str.ERROR:__s:_cannot_delete__ws
mov dword [rcx + 0x11e8], eax
mov ecx, 1
call fcn.14026d8f0
or eax, 0xffffffff
add rsp, 0x60
pop rbx
ret
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x14026eb70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rdi, r9
mov rbp, r8
mov r14, rdx
test rcx, rcx
jne 0x14026ebb6
lea r8, [0x1403fec20]
lea rdx, [0x1403fec38]
call fcn.14026d8f0
xor eax, eax
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
test rdi, rdi
jne 0x14026ebe5
lea r8, [0x1403fec68]
xor ecx, ecx
lea rdx, [0x1403fec80]
call fcn.14026d8f0
xor eax, eax
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rbx
xor r8d, r8d
lea rbx, [r9 + 0x10]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x38], rbx
mov rsi, r14
imul rsi, rbp
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rax
call sub.ntdll.dll_NtWriteFile
mov ecx, eax
test eax, eax
js 0x14026ec48
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call sub.ntdll.dll_NtWaitForSingleObject
test eax, eax
mov ecx, eax
cmovns ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x14026ec77
mov rax, qword gs:[0x30]
lea r8, str.winx_fwrite_helper
lea rdx, str.ERROR:__s:_cannot_write_to_a_file
mov dword [rax + 0x11e8], ecx
mov ecx, 1
call fcn.14026d8f0
xor eax, eax
jmp 0x14026ec91
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x14026ec89
add qword [rbx], rsi
mov rax, rbp
jmp 0x14026ec91
add qword [rbx], rax
xor edx, edx
div r14
mov rbx, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsi, qword [rsp + 0x78]
mov rsp, r11
pop r14
ret
Function at 0x140271db0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
test rcx, rcx
jne 0x140271dd4
lea r8, [0x1404408c8]
lea rdx, [0x1404408e0]
call fcn.14026d8f0
or eax, 0xffffffff
add rsp, 0x58
ret
xor r8d, r8d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r8
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x30], rcx
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r8
call sub.ntdll.dll_RtlCreateUserThread
test eax, eax
jns 0x140271e3b
mov rcx, qword gs:[0x30]
lea r8, str.winx_create_thread
lea rdx, str.ERROR:__s:_cannot_create_thread
mov dword [rcx + 0x11e8], eax
mov ecx, 1
call fcn.14026d8f0
or eax, 0xffffffff
add rsp, 0x58
ret
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140271e4a
call fcn.1402aa184
xor eax, eax
add rsp, 0x58
ret

Function at 0x140277770
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
mov eax, dword [r9 + 0x2c]
mov rsi, r9
imul rax, rcx
mov rcx, qword [r9 + 0x38]
xor r9d, r9d
mov qword [r11 - 0x28], 0
mov qword [r11 + 8], rax
lea rax, [r11 + 8]
mov qword [r11 - 0x30], rax
lea rax, [r11 - 0x18]
mov rcx, qword [rcx]
mov edi, r8d
xor r8d, r8d
mov qword [r11 - 0x38], rdi
mov qword [r11 - 0x40], rdx
xor edx, edx
mov qword [r11 - 0x48], rax
call sub.ntdll.dll_NtReadFile
mov ebx, eax
test eax, eax
js 0x1402777e6
mov rcx, qword [rsi + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx]
call sub.ntdll.dll_NtWaitForSingleObject
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x50]
test ebx, ebx
jne 0x140277820
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140277820
cmp rax, rdi
jbe 0x140277809
lea r8, [0x140441ed0]
lea rdx, [0x140441ee0]
jmp 0x140277819
jae 0x140277820
lea r8, str.read_sectors
lea rdx, [0x140441f18]
xor ecx, ecx
call fcn.14026d8f0
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140294784
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14029460f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14029460f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14029460f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14029460f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14029460f
cmp dword [rcx + 0x84], 0xe
jbe 0x14029460f
cmp dword [rcx + 0xf8], 0
je 0x14029460f
mov ecx, ebx
call fcn.1402946b0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14029448c
cmp dword [rbp + 0x20], 0
je 0x14029465c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140294664
int3
xor r8d, r8d
xor edx, edx
jmp 0x1402945a8

Function at 0x14029db90
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14029db6d
call fcn.140289aa0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140280880
or eax, 0xffffffff
jmp 0x14029db8a
sub dword [rcx + 0x10], 1
jns 0x14029db7c
add rsp, 0x28
jmp fcn.1402a0fcc
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14029db4c
Function at 0x1402a0374
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
movsxd r13, ecx
lea r10, [0x14045cf60]
mov rdi, r13
mov r15, r13
sar r15, 6
and edi, 0x3f
shl rdi, 6
mov r14, rdx
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
mov rcx, qword [rax + rdi + 0x28]
mov qword [rsp + 0x98], rcx
test r8, r8
je 0x1402a03cc
cmp word [rdx], r9w
jne 0x1402a03cc
or byte [rax + rdi + 0x38], 4
jmp 0x1402a03d1
and byte [rax + rdi + 0x38], 0xfb
lea r12, [rdx + r8*2]
mov rsi, rdx
mov rbx, rdx
cmp rdx, r12
jae 0x1402a0587
lea rbp, [rdx + 2]
mov edx, reloc.WS2_32.dll_listen
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x1402a0569
cmp ax, dx
je 0x1402a0413
mov word [rbx], ax
add rbx, 2
add rsi, 2
add rbp, 2
jmp 0x1402a04b4
cmp rbp, r12
jae 0x1402a0439
cmp word [rbp], r9w
jne 0x1402a0434
add rsi, 4
mov word [rbx], r9w
add rbp, 4
add rbx, 2
jmp 0x1402a04b4
mov word [rbx], dx
jmp 0x1402a0402
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, 2
lea rdx, [rsp + 0x80]
add rsi, 2
add rbp, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402a054d
cmp dword [rsp + 0x90], 0
je 0x1402a054d
lea r10, [0x14045cf60]
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
test byte [rax + rdi + 0x38], 0x48
je 0x1402a04fe
movzx eax, word [rsp + 0x80]
cmp ax, r9w
jne 0x1402a04c2
mov word [rbx], r9w
add rbx, 2
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [rsp + 0x98]
cmp rsi, r12
jb 0x1402a03ed
jmp 0x1402a0587
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x88], ax
mov word [rbx], cx
add rbx, 2
xor edx, edx
mov rcx, qword [r10 + r15*8]
mov al, byte [rsp + rdx + 0x88]
add rcx, rdi
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, 2
jl 0x1402a04d8
mov rax, qword [r10 + r15*8]
mov byte [rax + rdi + 0x3c], r9b
jmp 0x1402a04a7
cmp word [rsp + 0x80], r9w
jne 0x1402a050e
cmp rbx, r14
je 0x1402a049f
mov rdx, 0xfffffffffffffffe
mov ecx, r13d
lea r8d, [rdx + 3]
call fcn.140298594
mov r9d, 0xa
lea r10, [0x14045cf60]
cmp word [rsp + 0x80], r9w
je 0x1402a04a7
lea edx, [r9 + 3]
mov word [rbx], dx
add rbx, 2
jmp 0x1402a04ac
mov edx, reloc.WS2_32.dll_listen
lea r10, [0x14045cf60]
mov word [rbx], dx
add rbx, 2
lea r9d, [rdx - 3]
jmp 0x1402a04ac
mov rcx, qword [r10 + r15*8]
mov al, byte [rcx + rdi + 0x38]
test al, 0x40
jne 0x1402a057d
or al, 2
mov byte [rcx + rdi + 0x38], al
jmp 0x1402a0587
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, 2
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1402a0fcc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1402a0e68
call fcn.140289aa0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140280880
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402a0e50
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1402a0e50
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1402a0e9a
lock or dword [rax + 0x14], 0x10
jmp 0x1402a0e50
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1402a0eb7
mov rcx, qword [rbp + 0x10]
call fcn.1402a8654
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140299600
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1402a08a0
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1402a0f0e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1402a0e50
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1402a0f7d
mov rcx, qword [rbp + 0x10]
call fcn.140299600
cmp eax, 0xffffffff
je 0x1402a0f64
mov rcx, qword [rbp + 0x10]
call fcn.140299600
cmp eax, 0xfffffffe
je 0x1402a0f64
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140299600
movsxd rdi, eax
lea rsi, [0x14045cf60]
mov rcx, rbx
sar rdi, 6
call fcn.140299600
mov rdx, qword [rsi + rdi*8]
and eax, 0x3f
shl rax, 6
add rdx, rax
jmp 0x1402a0f6b
lea rdx, [0x140443670]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402a0f7d
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1402a0fb3
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1402a0faf
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1402a0faf
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1402a0e53
jmp 0x1402a0e20
Function at 0x1402aa330
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402aa350
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140289a30
or eax, 0xffffffff
jmp 0x1402aa352
xor eax, eax
add rsp, 0x28
ret
Function at 0x140007b50
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x18
xor eax, eax
cmp eax, 1
je 0x140007b84
movsx eax, byte [rsp + 0x28]
cmp eax, 0x41
jl 0x140007b84
movsx eax, byte [rsp + 0x28]
cmp eax, 0x5a
jg 0x140007b84
movsx eax, byte [rsp + 0x28]
or eax, 0x20
mov dword [rsp], eax
jmp 0x140007b8c
movsx eax, byte [rsp + 0x28]
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
add rsp, 0x18
ret

Function at 0x140009180
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.14000ad70
nop
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret