joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400310a8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140031121
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140031121
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x140031121
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140031115
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140031133
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031103
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140031123

Function at 0x140032cdc
Capabilities:
Parse pe header

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

Function at 0x14003af74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003acd8

Function at 0x140044e90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140044eb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140044eb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400027a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x1400027be
mov qword [r8], r14
lea rdx, [0x140054cb0]
call fcn.140002600
mov rbx, rax
test rax, rax
jne 0x1400027e3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14000290f
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000290f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000290f
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000290f
cmp rdi, 0xffffffffffffffff
je 0x14000290f
mov rcx, rdi
call fcn.1400072e0
mov rbp, rax
test rax, rax
je 0x14000290f
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 0x1400028fc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1400626e8]
test r8, r8
je 0x1400028f1
movsx rdx, word [r8 + 0x2750]
lea rcx, [r8 + 0x2754]
mov r9d, dword [r8 + 0x12b0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400028e6
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x2750], cx
movsx rax, cx
lea rcx, [r8 + 0x2754]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x274c]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002918
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14000290a
mov qword [rsi], rdi
mov rax, rbp
jmp 0x14000291a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400111f0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x10], rax
movss xmm0, dword [rdx]
lea r8, [rsp]
movss xmm1, dword [rdx + 4]
lea r9, [0x1400551b0]
movss xmm2, dword [rcx + 0x128]
movss xmm3, dword [rcx + 0x12c]
subss xmm0, xmm2
mov rax, qword [rcx + 0x110]
subss xmm1, xmm3
movsxd rcx, dword [rcx + 0x108]
movss dword [rsp], xmm0
movss xmm0, dword [rdx + 8]
movss dword [rsp + 4], xmm1
subss xmm0, xmm2
movss xmm1, dword [rdx + 0xc]
mov edx, dword [rax + rcx*4 - 4]
subss xmm1, xmm3
not edx
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
nop dword [rax]
movzx eax, byte [r8]
inc r8
movzx ecx, dl
xor rcx, rax
shr edx, 8
lea rax, [rsp + 0x10]
xor edx, dword [r9 + rcx*4]
cmp r8, rax
jb 0x140011270
not edx
mov eax, edx
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.140051eb0
add rsp, 0x28
ret

Function at 0x140011360
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x1400626e8]
lea rdx, [rsp + 0x20]
movsxd r8, ecx
lea r10, [0x1400551b0]
mov dword [rsp + 0x20], r8d
mov r9, qword [rax + 0x1368]
lea rdi, [r9 + 0x108]
movsxd rax, dword [rdi]
mov rbx, qword [rdi + 8]
mov ebx, dword [rbx + rax*4 - 4]
not ebx
nop
movzx eax, byte [rdx]
inc rdx
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [rsp + 0x24]
xor ebx, dword [r10 + rcx*4]
cmp rdx, rax
jb 0x1400113b0
mov rax, qword [r9]
not ebx
cmp dword [rax + 0x13c0], ebx
jne 0x1400113e6
mov edx, 4
mov ecx, ebx
call fcn.14001deb0
mov ecx, dword [rdi + 4]
mov r8d, dword [rdi]
cmp r8d, ecx
jne 0x14001141a
inc r8d
test ecx, ecx
je 0x140011403
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140011408
mov eax, 8
cmp eax, r8d
mov rcx, rdi
cmovg r8d, eax
mov edx, r8d
call fcn.14001f2e0
movsxd rcx, dword [rdi]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*4], ebx
inc dword [rdi]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140051eb0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001c690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x2628], 0
lea rbx, [rcx + 0x2630]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001c733
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ecx, ecx
jns 0x14001c6e6
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.14001ed90
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140002f90
mov eax, dword [rbx]
lea rcx, [0x1400626e0]
mov r9, qword [rdi + 0x2628]
test eax, eax
lea edx, [rax - 1]
mov rax, qword [rdi + 0x2638]
cmove edx, r14d
test rax, rax
movsxd r8, edx
mov edx, 1
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001c73b
mov rcx, rbx
call fcn.140002f90
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001cad0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x1400626e8]
xor ebp, ebp
cmp byte [rbx + 0x2568], bpl
jne 0x14001cbaf
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001cba8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.1400027a0
mov rsi, rax
test rax, rax
je 0x14001cba8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001cb34
mov rcx, rax
call fcn.14001cd00
mov r8, qword [0x1400626e8]
test r8, r8
je 0x14001cb9f
movsx rdx, word [r8 + 0x2750]
lea rcx, [r8 + 0x2754]
mov r9d, dword [r8 + 0x12b0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001cb94
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x2750], cx
movsx rax, cx
lea rcx, [r8 + 0x2754]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x274c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x2568], 1
movss xmm0, dword [rbx + 0x256c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001cc3e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x256c], xmm0
jb 0x14001cc3e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001cc31
mov rax, qword [0x1400626e8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x256c], ebp
call fcn.14001cf50
lea rdx, [0x140054cb4]
mov rcx, rdi
mov rsi, rax
call fcn.140002600
mov rdi, rax
test rax, rax
je 0x14001cc38
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001cc38
mov byte [rbx + 0xbc], 1
mov dword [rbx + 0x256c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140031b40
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x70
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, qword [0x1400626e8]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140031d5e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140031d5e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x1400626e8]
xor ebx, ebx
mov rsi, rax
test r8, r8
je 0x140031c14
movsx rdx, word [r8 + 0x2750]
lea rax, [r8 + 0x2754]
mov r9d, dword [r8 + 0x12b0]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140031c09
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x2750], cx
movsx rax, cx
lea rax, [rax*8 + 0x2754]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x2748]
test rsi, rsi
je 0x140031c31
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
jmp 0x140031c34
mov rsi, rbx
or dword [rdi + 0xc], 6
lea rax, [0x140059588]
mov qword [rdi + 0x90], rax
xor ecx, ecx
mov qword [rdi + 0xa0], rsi
mov qword [rsi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x28], 9
mov rdi, qword [rdi + 0xa0]
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rdi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140031c9b
mov dword [rdi + 0x2c], ebx
mov rax, qword [0x1400626e8]
mov rcx, qword [rax + 0x1e98]
mov rax, qword [rsi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rsi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140031d1e
inc rbx
cmp rbx, 5
jl 0x140031d00
jmp 0x140031d4a
lea rdx, str.XInputGetCapabilities
mov qword [rsi + 0x38], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rdi
mov qword [rsi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
mov rsi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x140031d60
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140051eb0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140052974
Capabilities:
Parse pe header

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

Disassembly:
call fcn.140ef91df
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 0x140ef9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef906f
add dl, dl
jne 0x140ef9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef90f6
xor eax, eax
add dl, dl
jne 0x140ef90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef91ad
add dl, dl
jne 0x140ef90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ef90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ef907e
mov eax, 1
add dl, dl
jne 0x140ef9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef90fb
sub eax, ebx
mov ebx, 1
jne 0x140ef914c
mov ecx, 1
add dl, dl
jne 0x140ef912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ef913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ef9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ef9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef915d
cmp eax, 0x7d00
jae 0x140ef919b
cmp eax, 0x500
jb 0x140ef9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef907e
cmp eax, 0x7f
ja 0x140ef919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ef91d2
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 0x140ef907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x1400017e0
Capabilities:
Parse pe header

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

Disassembly:
mov rax, qword [rcx + 0x1e8]
mov r10, r8
movsxd r9, dword [rcx + 0x1e0]
mov r11, rdx
mov rcx, r11
mov r8d, dword [rax + r9*4 - 4]
mov eax, r10d
sub eax, edx
neg r10
sbb edx, edx
and edx, eax
jmp fcn.140009ab8

Function at 0x140009748
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r15, r9d
mov rsi, r8
test r8, r8
je 0x14000976f
and qword [r8], 0
call fcn.140009884
mov rbx, rax
test rax, rax
je 0x140009868
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000985f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000985f
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000985f
mov rax, qword [0x140079d70]
mov rbp, rdi
test rax, rax
je 0x1400097d7
inc dword [rax + 0x3c8]
mov rdx, qword [0x140079d80]
lea rcx, [r15 + rdi]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14000985f
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbp
je 0x140009836
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140079d70]
test rax, rax
je 0x140009824
dec dword [rax + 0x3c8]
mov rdx, qword [0x140079d80]
mov rcx, rdi
call qword [0x140078008]
jmp 0x140009868
test r15d, r15d
jle 0x140009849
lea rcx, [rdi + rbp]
mov r8, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14000985a
mov qword [rsi], rbp
mov rax, rdi
jmp 0x14000986a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140009ab8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x140079da4], 0
lea rsi, [0x140079da0]
mov ebx, r8d
mov edi, edx
mov r10, rcx
jne 0x140009b1f
xor r9d, r9d
mov r11, rsi
mov r8d, r9d
mov edx, 8
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdx, 1
jne 0x140009aed
mov dword [r11], r8d
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x140009ae5
not ebx
mov edx, ebx
test edi, edi
jle 0x140009b41
movzx eax, byte [r10]
inc r10
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
sub edi, 1
jne 0x140009b27
jmp 0x140009b7b
mov r8b, byte [r10]
inc r10
test r8b, r8b
je 0x140009b7b
mov r9b, 0x23
cmp r8b, r9b
jne 0x140009b60
cmp byte [r10], r9b
jne 0x140009b60
cmp byte [r10 + 1], r9b
cmove edx, ebx
movzx ecx, dl
movzx eax, r8b
mov r8b, byte [r10]
xor rcx, rax
shr edx, 8
inc r10
xor edx, dword [rsi + rcx*4]
test r8b, r8b
jne 0x140009b4f
mov rbx, qword [rsp + 8]
not edx
mov rsi, qword [rsp + 0x10]
mov eax, edx
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14000fafc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140079d70]
mov rbx, rcx
and dword [rax + 0x2d9c], 0
test rcx, rcx
je 0x14000fb65
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14000fb70
lea rdx, [0x14004b9a4]
mov rcx, rbx
mov rdi, rax
call fcn.140009884
mov rbx, rax
test rax, rax
je 0x14000fb65
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ebe8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
xor r14d, r14d
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rsi, rdx
movsxd rdi, r9d
mov rbp, rcx
test r9d, r9d
jle 0x14001edd9
lea rbx, [r8 + 0x20]
xor r13d, r13d
lea r8d, [r14 + 1]
mov r11d, pe_nt_image_headers64
xorps xmm7, xmm7
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001ec8a
movsxd r10, dword [rsi + 0x24]
mov r9, qword [rsi + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
mov r8d, 1
movd xmm0, eax
jmp 0x14001ecac
movsxd rdx, dword [rsi + 0x1c]
mov rax, qword [rsi + 8]
xorps xmm6, xmmword [0x14004bb30]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov al, byte [rbp + 0x20]
xor r15d, r15d
cvtdq2ps xmm0, xmm0
mov byte [rbx], al
mov al, byte [rbp + 0x24]
mov byte [rbx + 1], al
divss xmm6, xmm0
cmp dword [rbx - 0x10], r15d
jle 0x14001edcc
mov rcx, qword [rsp + 0xe0]
mov rax, r13
shl rax, 4
add rcx, 6
xor r12d, r12d
add rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001ecfa
mov edx, dword [rbx - 0x1c]
add edx, r15d
jmp 0x14001ecfe
mov edx, dword [rax + r12]
mov rcx, rsi
call fcn.14001e34c
mov edx, eax
xorps xmm3, xmm3
mov eax, dword [rbp + 0x24]
xorps xmm2, xmm2
mov rcx, rsi
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
mulss xmm3, xmm6
mulss xmm2, xmm6
movss dword [rsp + 0x20], xmm7
call fcn.14001e784
mov rcx, qword [rsp + 0x60]
mov r8d, 1
movzx eax, word [rbp + 0x20]
add r14d, r8d
sub ax, word [rsp + 0xd8]
add r13, r8
add ax, word [rbp + 0x1c]
add r15d, r8d
add ax, word [rsp + 0x50]
add r12, 4
sub ax, r8w
mov word [rcx - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x54]
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x58]
sub ax, r8w
mov word [rcx], ax
add rcx, 0x10
mov qword [rsp + 0x60], rcx
cmp r15d, dword [rbx - 0x10]
jl 0x14001ece9
mov r11d, pe_nt_image_headers64
add rbx, 0x28
sub rdi, r8
jne 0x14001ec38
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov eax, r14d
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret