joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14000b0ab
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000b0ab
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000b0c6
cmp eax, 0x42
jne 0x14000b0ab
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000b176
cmp byte [r9 + r11], 0x5f
jne 0x14000b176
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000b1de
mov rcx, rsi
xor edx, edx
call fcn.140006ae0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140006ae0
test al, al
jne 0x14000b271
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000b102
lea rdx, [0x140132b6b]
mov r8d, 1
call fcn.140002e10
test al, al
jne 0x14000b271
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000b0ba
xor r14d, r14d
lea rbx, [0x140132f36]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000b134
cmp byte [rax + rcx], 0x45
je 0x14000b293
sub r14, 1
jb 0x14000b159
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000b159
mov r8d, 2
mov rdx, rbx
call fcn.140002e10
test al, al
jne 0x14000b271
mov rcx, rsi
call fcn.14000b2b0
test al, al
jne 0x14000b271
mov rax, qword [rsi]
test rax, rax
jne 0x14000b120
jmp 0x14000b0ba
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000b238
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000b1d2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000b1bc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000b1ab
add dl, 0xa9
jmp 0x14000b1ba
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000b238
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000b238
movzx edx, bl
add rax, rdx
jae 0x14000b180
jmp 0x14000b238
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000b238
cmp rax, rcx
jae 0x14000b235
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000b28b
cmp qword [rsi + 0x20], 0
je 0x14000b29f
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14000b050
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000b0bc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000b279
lea rax, [0x140132f01]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140002e10
test al, al
je 0x14000b279
mov dil, 2
jmp 0x14000b0ba
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000b0ba
mov dil, 1
xor r8d, r8d
jmp 0x14000b23a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000b0ba
xor edi, edi
jmp 0x14000b0ba
Function at 0x14000f8f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000f969
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x14000f9a0
test eax, eax
js 0x14000f97a
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000f993
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xa8], 0
lea rax, str._rustc_90c541806f23a127002de5b4038be731ba1458calibrarycore_src_strpattern.rs
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
lea rax, [0x140003170]
mov qword [rsp + 0x70], rax
lea rax, [0x140133ee8]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x78]
call fcn.14000d980
mov rcx, rax
call fcn.14000dae0
mov ecx, 7
int 0x29
ud2
Function at 0x140012d60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140012d90
test ecx, ecx
jne 0x140012de0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140012d9c
test ecx, ecx
jne 0x140012de0
mov rcx, rdi
call fcn.140012c40
movzx eax, al
test bpl, bpl
jne 0x140012de7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140012dd3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140012f58]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140012dd3.2
xor eax, eax
test bpl, bpl
je 0x140012dac
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140012f39
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140012e1a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140012e99
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140012e60
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140012e7b
inc rax
dec rdi
cmp rax, 1
jne 0x140012e40
jmp 0x140012e99
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140012e7b
cmp ebx, 0x5c
je 0x140012e7b
inc rax
dec rdi
cmp rax, 1
jne 0x140012e60
jmp 0x140012e99
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140012f47
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140012ec3
mov al, 9
cmp rdx, 2
je 0x140012ec7
cmp rdx, 1
jne 0x140012ed7
cmp byte [r8], 0x2e
jne 0x140012ed7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140012ed7
mov al, 0xa
jmp 0x140012ed7
cmp byte [r8], 0x2e
jne 0x140012ed7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140012dd3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140012dd3.2
mov ecx, 2
jmp case.0x140012dd3.2
lea r8, str.library_std_srcpath.rs
call fcn.140028b20
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140028b20
ud2
Function at 0x14001f7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.14001f670
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x14001f7f3
mov rbx, qword [rbp - 0x30]
mov r14, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001f86c
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x14001f861
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x14001f859
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rdi, qword [rbp - 0x18]
je 0x14001f847
mov r8, qword [rdi]
cmp qword [rax + 0x10], 0x11
jb 0x14001f838
mov r8, qword [r8 - 8]
mov rcx, qword [0x14013c178]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14013c178]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsi + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x14001f861
mov rcx, qword [0x14013c178]
xor edx, edx
mov r8, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x1400220f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140028040
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov rsi, rdx
mov r15, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfb8], rdx
lea rbx, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea r13, [0x140018770]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0xfc0]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400222f8
mov r14, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rbx, [rbp + 0xfc0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r15
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 0
je 0x1400221c1
cmp dword [rbp + 0xfec], 0
jne 0x14002230d
mov eax, dword [rbp + 0xff0]
test rax, rax
je 0x14002230d
cmp eax, 0x1000
ja 0x140022354
xor r15d, r15d
nop word cs:[rax + rax]
cmp r15, rax
ja 0x140022339
lea rdx, [r15 + rbp]
add rdx, 0xffffffffffffffb0
mov r12, rax
mov r8d, eax
sub r8d, r15d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov rcx, rsi
mov r9, rbx
call rdi
test eax, eax
je 0x140022300
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 0
je 0x140022270
cmp dword [rbp + 0xfec], 0
jne 0x140022306
mov eax, dword [rbp + 0xff0]
add r15, rax
mov rax, r12
cmp r15, r12
jne 0x140022210
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
mov qword [rsp + 0x20], r13
mov r15, qword [rbp + 0xfe0]
mov rcx, r15
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400221c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002230d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15, qword [rbp + 0xfe0]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r15
mov qword [rbp + 0xfe0], rax
mov rdx, rax
call fcn.140028d30
jmp 0x14002236f
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfe0], rax
mov rcx, rax
call fcn.140028b30
ud2
Function at 0x140022410
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14002244f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140014380]
mov qword [rbp - 0x28], rax
lea rax, [0x140135a18]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140028a60
ud2

Function at 0x140028584
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400285ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400285ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400285ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400285ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400285ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400285d0
xor al, al
add rsp, 0x28
ret
Function at 0x140001af0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x278
mov rbx, rcx
or rsi, 0xffffffffffffffff
nop dword [rax]
nop word [rax + rax]
add rsi, 1
cmp word [rbx + rsi*2], 0
jne 0x140001b10
lea rdx, [rbx + rsi*2]
lea r8, [0x14001a3fa]
xor ecx, ecx
nop dword [rax + rax]
mov ax, word [r8 + rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x140001b30
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov word [rbx + rsi*2], 0
cmp rdi, 0xffffffffffffffff
je 0x140001c8c
xor r12d, r12d
lea rdx, [rsp + 0x4c]
lea r8, [0x14001a3f6]
xor ecx, ecx
mov ax, word [rdx + rcx]
cmp ax, word [r8 + rcx]
jne 0x140001b8c
add rcx, 2
test ax, ax
jne 0x140001b74
xor eax, eax
jmp 0x140001b91
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140001c3e
lea rdx, [rsp + 0x4c]
lea r8, [0x14001a3f0]
xor ecx, ecx
mov ax, word [rdx + rcx]
cmp ax, word [r8 + rcx]
jne 0x140001bbf
add rcx, 2
test ax, ax
jne 0x140001ba7
xor eax, eax
jmp 0x140001bc4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140001c3e
lea rdx, [rbx + rsi*2]
lea r8, [rsp + 0x4c]
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov ax, word [r8 + rcx]
mov word [rdx + rcx], ax
add rcx, 2
test ax, ax
jne 0x140001be0
test dword [rsp + 0x20], 0x10
je 0x140001c18
mov rcx, rbx
lea rdx, [0x14001a542]
call fcn.14000e5c0
mov rcx, rbx
call fcn.140001af0
mov r12d, eax
jmp 0x140001c39
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140001c39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test r12d, r12d
jne 0x140001c66
mov rcx, rdi
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001b66
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp r12d, 0x12
jne 0x140001c66
xor r12d, r12d
mov word [rbx + rsi*2], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test r12d, r12d
jne 0x140001c87
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140001c94
mov eax, r12d
jmp 0x140001c9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001c9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
add rsp, 0x278
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002790
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
mov eax, 0x1048
call fcn.14000cd50
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov dword [rsi], 0
mov qword [rbx], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
lea rcx, [0x140023220]
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp r12, 0xffffffffffffffff
je 0x140002968
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000296c
cmp word [rsp + 0x40], 0x5a4d
jne 0x140002979
mov eax, dword [rsp + 0x7c]
movsxd rdx, eax
cmp rdx, 0xef8
jae 0x140002979
movsxd rax, eax
lea rax, [rsp + rax + 0x40]
cmp dword [rax], 0x4550
jne 0x140002979
lea rdx, [rax + 0x108]
lea rcx, [rsp + 0x1040]
cmp rdx, rcx
jae 0x140002979
cmp word [rax + 6], 0
jbe 0x1400028ac
xor ecx, ecx
xor r8d, r8d
cmp dword [rdx + 0x14], ecx
ja 0x140002886
mov r9d, ecx
jmp 0x140002897
mov r10d, dword [rdx + 0x14]
mov r11d, r10d
add r11d, dword [rdx + 0x10]
mov dword [rsi], r11d
mov r9d, r10d
mov ecx, r9d
add rdx, 0x28
add r8d, 1
movzx r9d, word [rax + 6]
cmp r8d, r9d
jl 0x14000287c
mov eax, dword [rsi]
lea edx, [eax + 2]
mov rcx, r12
xor r8, r8
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140002979
mov qword [rsp + 0x1040], 0
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x1040]
mov r8d, 8
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000296c
mov rax, qword [rsp + 0x1040]
mov qword [rbx], rax
cmp dword [rsp + 0x3c], 8
jb 0x14000296c
mov qword [rsp + 0x1040], 0
mov qword [rsp + 0x20], 0
mov rcx, r12
lea rdx, [rsp + 0x1040]
mov r8d, 8
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000296c
mov rax, qword [rsp + 0x1040]
mov qword [rdi], rax
cmp dword [rsp + 0x3c], 8
jb 0x14000296c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002984
xor eax, eax
jmp 0x140002984
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140002984
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x1048
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400034e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea rax, [0x140023fe0]
xor edx, edx
nop dword [rax]
mov ecx, edx
shr ecx, 1
mov r8d, edx
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov ecx, r8d
shr ecx, 1
and r8d, 1
neg r8d
and r8d, 0xedb88320
xor ecx, r8d
mov r8d, ecx
shr r8d, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor r8d, ecx
mov dword [rax], r8d
add rax, 4
add edx, 1
cmp edx, 0x100
jb 0x1400034f0
lea rax, [0x1400243e0]
lea rdx, [0x1400243e0]
nop
mov ecx, dword [rdx - 0x400]
lea r8, [0x140023fe0]
mov r9d, ecx
and r9d, 0xff
mov r8d, dword [r8 + r9*4]
shr ecx, 8
xor r8d, ecx
mov dword [rax], r8d
add rax, 4
add rdx, 4
lea rcx, [0x140025fe0]
cmp rdx, rcx
jb 0x1400035c0
lea rax, [0x140007320]
mov qword [0x140026000], rax
lea rax, [0x140007320]
mov qword [0x140025fe0], rax
lea rax, [0x140007400]
mov qword [0x140026020], rax
call fcn.140007620
test eax, eax
jne 0x140003639
lea rax, [0x140007400]
mov qword [0x140025fe0], rax
add rsp, 0x28
ret

Function at 0x1400037b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r12, qword [rdi]
test r12, r12
je 0x140003826
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x1400037e2
mov r8d, 0x400000
jmp 0x1400037e5
mov r8d, r12d
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx]
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x2c]
mov edx, edx
add rsi, rdx
sub r12, rdx
add qword [rdi], rdx
test eax, eax
je 0x14000382a
cmp dword [rsp + 0x2c], 0
je 0x140003826
test r12, r12
jne 0x1400037d1
xor eax, eax
jmp 0x140003830
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140003840
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r12, qword [rdi]
test r12, r12
je 0x1400038b6
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x140003872
mov r8d, 0x400000
jmp 0x140003875
mov r8d, r12d
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx]
mov rdx, rsi
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x2c]
mov edx, edx
add rsi, rdx
sub r12, rdx
add qword [rdi], rdx
test eax, eax
je 0x1400038ba
cmp dword [rsp + 0x2c], 0
je 0x1400038b6
test r12, r12
jne 0x140003861
xor eax, eax
jmp 0x1400038c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003960
Capabilities:
Get file size

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rbx, rdx
mov rcx, qword [rcx]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x140003988
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000399a
mov eax, dword [rsp + 0x24]
shl rax, 0x20
mov edx, esi
add rax, rdx
mov qword [rbx], rax
xor eax, eax
add rsp, 0x28
pop rsi
pop rbx
ret

Function at 0x140003aa0
Capabilities:
Timestomp file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, r8
mov rdi, qword [rcx]
cmp rdi, 0xffffffffffffffff
je 0x140003af6
mov rcx, rdi
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140003af6
mov eax, dword [rbx]
mov dword [rsp + 0x24], eax
mov eax, dword [rsi]
mov dword [rsp + 0x20], eax
mov rcx, rdi
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400071e0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0xa60
mov rbx, rcx
lea rcx, [rsp + 0x648]
mov edx, 0x208
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x208
ja 0x140007237
lea rcx, [rsp + 0x648]
call fcn.140016af0
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x2c]
mov edx, 0x30e
lea r8, str._ls_ls
lea r9, [rsp + 0x648]
call fcn.14000eaa0
jmp 0x14000724a
lea rcx, [rsp + 0x2c]
mov rdx, rbx
mov r8d, 0x30e
call fcn.14000ecf0
lea rcx, [rsp + 0x2c]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add rsp, 0xa60
pop rbx
ret