joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019ea0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cx
mov r8d, ebx
mov eax, ebx
cmp ebx, 0x11c
ja 0x140019f81
je 0x140019f79
sub eax, 0x1d
cmp eax, 0x36
ja case.0x140019fa6.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x1a07c]
mov ecx, dword [rdx + rax*4 + 0x1a030]
add rcx, rdx
jmp rcx
mov al, 0xa0
add rsp, 0x20
pop rbx
ret
mov al, 0xa2
add rsp, 0x20
pop rbx
ret
mov al, 0xa4
add rsp, 0x20
pop rbx
ret
mov al, 0x6a
add rsp, 0x20
pop rbx
ret
mov al, 0x6d
add rsp, 0x20
pop rbx
ret
mov al, 0x6b
add rsp, 0x20
pop rbx
ret
mov al, 0x2e
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
add rsp, 0x20
pop rbx
ret
mov al, 0x2d
add rsp, 0x20
pop rbx
ret
mov al, 0x26
add rsp, 0x20
pop rbx
ret
mov al, 0x28
add rsp, 0x20
pop rbx
ret
mov al, 0x25
add rsp, 0x20
pop rbx
ret
mov al, 0x27
add rsp, 0x20
pop rbx
ret
mov al, 0x24
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, 0x21
add rsp, 0x20
pop rbx
ret
mov al, SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_SafeArrayGetLBound
add rsp, 0x20
pop rbx
ret
mov al, 0xd
add rsp, 0x20
pop rbx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x140019fa6.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x1a0dc]
mov ecx, dword [rdx + rax*4 + 0x1a0b4]
add rcx, rdx
jmp rcx
mov al, 0xa1
add rsp, 0x20
pop rbx
ret
mov al, 0xa3
add rsp, 0x20
pop rbx
ret
mov al, 0xa5
add rsp, 0x20
pop rbx
ret
mov al, 0x5b
add rsp, 0x20
pop rbx
ret
mov al, 0x5c
add rsp, 0x20
pop rbx
ret
mov al, 0x90
add rsp, 0x20
pop rbx
ret
mov al, 0x6f
add rsp, 0x20
pop rbx
ret
mov al, 0x5d
add rsp, 0x20
pop rbx
ret
mov al, 0x2c
add rsp, 0x20
pop rbx
ret
mov eax, 0x100
test ax, bx
je 0x14001a013
movzx ecx, r8b
mov edx, 1
or ecx, 0xe000
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x14001a027
movzx ecx, bl
mov edx, 1
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_MapVirtualKeyW]
add rsp, 0x20
pop rbx
ret
Function at 0x14001bb60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r10d, r8d
mov r9, rdx
lea rbx, [0x1400cf5d0]
not ecx
cmp r8d, 8
jb 0x14001bc58
mov r11d, r10d
shr r11, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x14001bb90
test r10d, r10d
je 0x14001bc80
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x14001bc60
mov rbx, qword [rsp + 8]
not ecx
mov eax, ecx
ret

Function at 0x14001c080
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
test byte [rcx], 1
mov r10, rdx
mov esi, r8d
mov rdi, rcx
jne 0x14001c0e9
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
xor ebx, ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001c0d3
mov dword [rdi + 0x10], 7
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ebx, dword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x20]
mov rdx, qword [rdi + 0x18]
lea rax, [rcx + rsi]
cmp rax, rdx
jbe 0x14001c0fe
mov esi, edx
sub esi, ecx
mov rdx, qword [rdi + 8]
add rdx, rcx
mov r8d, esi
mov rcx, r10
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
add qword [rdi + 0x20], rbx
mov eax, esi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001c130
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
cmp dword [rcx + 0x10], 0
mov rdi, rcx
jne 0x14001c1ed
test byte [rcx], 1
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x38], rsi
mov esi, 2
jne 0x14001c188
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x58]
xor ebx, ebx
lea rdx, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001c182
mov dword [rdi + 0x10], 7
jmp 0x14001c1c8
mov ebx, dword [rsp + 0x58]
jmp 0x14001c1c8
mov qword [rsp + 0x30], r14
mov r14, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
lea rax, [r14 + 2]
cmp rax, rcx
jbe 0x14001c1a3
mov esi, ecx
sub esi, r14d
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x50]
add rdx, r14
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbx + r14]
mov r14, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov ebx, esi
mov rsi, qword [rsp + 0x38]
test ebx, ebx
mov rbx, qword [rsp + 0x60]
je 0x14001c1ed
movzx eax, byte [rsp + 0x51]
movzx ecx, byte [rsp + 0x50]
shl ax, 8
or ax, cx
add rsp, 0x40
pop rdi
ret
movzx eax, word [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14001c200
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
mov rdi, rcx
mov dword [rsp + 0x50], ebx
cmp dword [rcx + 0x10], ebx
jne 0x14001c2d3
test byte [rcx], 1
mov qword [rsp + 0x60], rsi
lea esi, [rbx + 4]
jne 0x14001c255
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x58]
mov r8d, esi
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001c24f
mov dword [rdi + 0x10], 7
jmp 0x14001c295
mov ebx, dword [rsp + 0x58]
jmp 0x14001c295
mov qword [rsp + 0x30], r14
mov r14, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
lea rax, [r14 + 4]
cmp rax, rcx
jbe 0x14001c270
mov esi, ecx
sub esi, r14d
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x50]
add rdx, r14
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbx + r14]
mov r14, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov ebx, esi
mov rsi, qword [rsp + 0x60]
test ebx, ebx
je 0x14001c2c8
movzx ecx, byte [rsp + 0x52]
movzx eax, byte [rsp + 0x53]
shl eax, 8
or eax, ecx
movzx ecx, byte [rsp + 0x51]
shl eax, 8
or eax, ecx
movzx ecx, byte [rsp + 0x50]
shl eax, 8
or eax, ecx
add rsp, 0x38
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x38
pop rdi
pop rbx
ret
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x14001c2e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
mov rdi, rcx
mov qword [rsp + 0x58], rbx
cmp dword [rcx + 0x10], ebx
jne 0x14001c3eb
test byte [rcx], 1
mov qword [rsp + 0x60], rsi
lea esi, [rbx + 8]
jne 0x14001c336
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001c330
mov dword [rdi + 0x10], 7
jmp 0x14001c376
mov ebx, dword [rsp + 0x50]
jmp 0x14001c376
mov qword [rsp + 0x30], r14
mov r14, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
lea rax, [r14 + 8]
cmp rax, rcx
jbe 0x14001c351
mov esi, ecx
sub esi, r14d
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x58]
add rdx, r14
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbx + r14]
mov r14, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov ebx, esi
mov rsi, qword [rsp + 0x60]
test ebx, ebx
je 0x14001c3df
movzx eax, byte [rsp + 0x5e]
movzx ecx, byte [rsp + 0x5a]
movzx edx, byte [rsp + 0x5f]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x5d]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x5c]
shl rdx, 8
or rdx, rax
movzx eax, byte [rsp + 0x5b]
shl rdx, 8
or rax, rdx
shl rax, 8
or rax, rcx
movzx ecx, byte [rsp + 0x59]
shl rax, 8
or rax, rcx
movzx ecx, byte [rsp + 0x58]
shl rax, 8
or rax, rcx
add rsp, 0x38
pop rdi
pop rbx
ret
mov rax, qword [rsp + 0x58]
add rsp, 0x38
pop rdi
pop rbx
ret
mov rax, rbx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x14001d670
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
movzx eax, byte [rcx]
mov edi, edx
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 1
test al, al
je 0x14001d6b2
cmp byte [rcx + 1], 0x3a
jne 0x14001d6b2
movzx eax, byte [rcx + 2]
add rcx, 2
movzx edx, al
cmp al, 0x5c
jne 0x14001d6bd
movzx edx, byte [rcx + 1]
lea rbx, [rcx + 1]
cmovne rbx, rcx
test dl, dl
je 0x14001d716
movzx eax, byte [rbx]
test al, al
je 0x14001d6df
cmp al, 0x5c
je 0x14001d72b
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x14001d6d0
xor ebx, ebx
test edi, edi
je 0x14001d716
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14001d704
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001d730
test rbx, rbx
je 0x14001d716
mov byte [rbx], 0x5c
inc rbx
movzx eax, byte [rbx]
test al, al
jne 0x14001d6d0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov byte [rbx], 0
jmp 0x14001d6e5
test rbx, rbx
je 0x14001d738
mov byte [rbx], 0x5c
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14001d750
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
movzx eax, word [rcx]
xor ebp, ebp
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
mov edi, edx
mov qword [rsp + 0x28], rbp
mov rsi, rcx
mov dword [rsp + 0x30], 1
test ax, ax
je 0x14001d797
cmp word [rcx + 2], 0x3a
jne 0x14001d797
movzx eax, word [rcx + 4]
add rcx, 4
movzx edx, ax
cmp ax, 0x5c
jne 0x14001d7a4
movzx edx, word [rcx + 2]
lea rbx, [rcx + 2]
mov qword [rsp + 0x50], r14
cmovne rbx, rcx
test dx, dx
je 0x14001d812
movzx eax, word [rbx]
mov r14d, 0x5c
test ax, ax
je 0x14001d7d7
cmp ax, r14w
je 0x14001d831
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x14001d7c4
mov rbx, rbp
test edi, edi
je 0x14001d812
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001d7fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001d836
test rbx, rbx
je 0x14001d812
mov word [rbx], r14w
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x14001d7c4
mov eax, 1
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov word [rbx], bp
jmp 0x14001d7de
test rbx, rbx
je 0x14001d83f
mov word [rbx], r14w
xor eax, eax
jmp 0x14001d817
Function at 0x14001d850
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, rdx
mov edi, 1
mov edx, edi
mov r14d, r9d
mov rbp, r8
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14001da89
cmp qword [rbx + 0x38], 0xffffffffffffffff
je 0x14001da89
mov qword [rsp + 0x70], r15
xor r15d, r15d
mov dword [rbx + 0x10], r15d
test dil, r14b
je 0x14001d91c
cmp word [rbx + 0x80], r15w
jne 0x14001d8c5
mov rdx, rbp
mov rcx, rbx
call fcn.14001cb20
cmp dword [rbx + 0x10], r15d
jne 0x14001da79
mov word [rbx + 0x80], di
mov r8, qword [rbp + 0x28]
mov rdx, rsi
mov rcx, rbx
call fcn.14001ce30
mov qword [rbp + 0x28], rax
cmp dword [rbx + 0x10], r15d
jne 0x14001d907
cmp qword [rbx + 0xf8], r15
je 0x14001d907
mov eax, 5
mov r15, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov rcx, rbx
mov word [rbx + 0x80], r15w
call fcn.14001c9c0
mov eax, dword [rbx + 0x10]
jmp 0x14001d8ec
test byte [rbp + 8], 0x10
je 0x14001d94a
test r14b, 2
je 0x14001d946
mov edx, edi
mov rcx, rsi
test r14d, r14d
jns 0x14001d939
call fcn.14001d750
jmp 0x14001d93e
call fcn.14001d670
test eax, eax
je 0x14001da76
xor eax, eax
jmp 0x14001d8ec
cmp r14d, 4
je 0x14001d9a6
xor edx, edx
mov rcx, rsi
test r14d, r14d
jns 0x14001d961
call fcn.14001d750
jmp 0x14001d966
call fcn.14001d670
test eax, eax
je 0x14001da76
mov eax, dword [rbp + 8]
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
test r14d, r14d
jns 0x14001d99d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x14001d9a3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x14001da76
mov rdx, rbp
mov rcx, rbx
call fcn.14001cb20
cmp dword [rbx + 0x10], r15d
jne 0x14001da57
cmp qword [rbx + 0x58], r15
jne 0x14001d9e8
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x14001d9e8
mov dword [rbx + 0x10], 2
cmp dword [rbx + 0x10], r15d
jne 0x14001da57
nop
mov rdx, qword [rbx + 0x58]
mov r8d, 0x4000
mov rcx, rbx
call fcn.14001ce30
mov rdi, rax
test eax, eax
je 0x14001da3c
mov rdx, qword [rbx + 0x58]
lea r9, [rsp + 0x40]
mov r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001da35
cmp dword [rsp + 0x40], edi
jne 0x14001da35
cmp dword [rbx + 0x10], r15d
je 0x14001d9f0
jmp 0x14001da3c
mov dword [rbx + 0x10], 3
cmp dword [rbx + 0x10], r15d
jne 0x14001da57
lea r9, [rbp + 0x1c]
mov rcx, rsi
lea r8, [rbp + 0xc]
lea rdx, [rbp + 0x14]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp r14d, 4
je 0x14001da79
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.14001c9c0
mov eax, dword [rbx + 0x10]
jmp 0x14001d8ec
mov dword [rbx + 0x10], edi
mov rcx, rbx
call fcn.14001c9c0
mov eax, dword [rbx + 0x10]
jmp 0x14001d8ec
mov eax, 9
jmp 0x14001d8f1
Function at 0x14001e240
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x78
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x88]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x14001e26f
mov eax, 1
add rsp, 0x78
pop rsi
pop rbx
ret
mov r8d, dword [rsp + 0x38]
mov r9d, r8d
and r9d, 1
mov qword [rsp + 0x70], rdi
mov eax, r8d
mov ecx, r9d
or ecx, 2
and al, 2
mov eax, r8d
cmove ecx, r9d
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, r8d
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, 0x81000000
mov edi, eax
or edi, 0x20
and r8b, 0x20
cmove edi, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, edx
or edi, eax
test r9d, r9d
jne 0x14001e2d0
bts edi, 0x17
mov rcx, qword [rbx + 0x88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rbx + 0x70], rax
cmp rax, 0x28
jbe 0x14001e411
cmp qword [rbx + 0x20], 0
jne 0x14001e411
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 2
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [rsp + 0x90], ax
jne 0x14001e3fc
mov edx, dword [rsp + 0xa8]
lea ecx, [rdx + 0x34]
cmp qword [rbx + 0x70], rcx
jbe 0x14001e3fc
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x88]
lea r9, [rsp + 0xa0]
mov r8d, 4
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x30]
cmp eax, 0x5a4d
je 0x14001e3f8
add eax, 0xffffbab4
cmp eax, 4
ja 0x14001e3fc
mov ecx, reloc.OLEAUT32.dll_SafeArrayUnlock
bt ecx, eax
jae 0x14001e3fc
bts edi, 0x16
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x44]
movabs r9, 0xd6bf94d5e57a42bd
movabs r8, 0xfe624e212ac18000
mov dword [rsi + 0x10], edi
add rcx, r8
mov rax, r9
imul rcx
add rdx, rcx
mov rcx, qword [rsp + 0x4c]
sar rdx, 0x17
add rcx, r8
add r8, qword [rsp + 0x3c]
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r9
mov dword [rsi], edx
imul rcx
mov rax, r9
add rdx, rcx
sar rdx, 0x17
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
lea rcx, [rsp + 0x4c]
mov dword [rsi + 4], edx
imul r8
add rdx, r8
lea r8, [rsp + 0xa0]
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rsi + 8], edx
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [rsp + 0xa0]
movzx ecx, word [rsp + 0x90]
mov rdi, qword [rsp + 0x70]
shl ecx, 0x10
or ecx, eax
mov dword [rsi + 0xc], ecx
xor eax, eax
add rsp, 0x78
pop rsi
pop rbx
ret
Function at 0x140020f80
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx], 0
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
jge 0x140020fe8
mov edx, 0x8b1f
call fcn.1400219a0
mov edx, 0x808
mov rcx, rbx
call fcn.1400219a0
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.1400219a0
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.1400219a0
mov edx, 0xb02
mov rcx, rbx
call fcn.1400219a0
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
inc r8d
jmp 0x140021144
mov edx, 0x4034b50
call fcn.1400219a0
mov edx, 0x403
mov rcx, rbx
call fcn.1400219a0
mov edx, 0x2d
mov rcx, rbx
call fcn.1400219a0
movzx edx, word [rdi + 0x30]
mov rcx, rbx
call fcn.1400219a0
movzx edx, word [rdi + 2]
mov rcx, rbx
call fcn.1400219a0
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.1400219a0
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.1400219a0
mov edx, dword [rdi + 8]
mov rcx, rbx
call fcn.1400219a0
movzx edx, word [rdi + 0xa]
mov rcx, rbx
call fcn.1400219a0
mov edx, 0xffffffff
mov rcx, rbx
call fcn.1400219a0
mov edx, 0xffffffff
mov rcx, rbx
call fcn.1400219a0
mov edx, 0xffffffff
mov rcx, rbx
call fcn.1400219a0
mov edx, 0xffffffff
mov rcx, rbx
call fcn.1400219a0
mov edx, dword [rdi + 0x20]
mov rcx, rbx
call fcn.1400219a0
mov edx, dword [rdi + 0x24]
mov rcx, rbx
add edx, 0x14
call fcn.1400219a0
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
mov rcx, rbx
call fcn.140021b40
mov edx, 1
mov rcx, rbx
call fcn.1400219a0
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
call fcn.1400219a0
mov edx, dword [rdi + 0x18]
mov rcx, rbx
call fcn.1400219a0
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x10
call fcn.1400219a0
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x20
call fcn.1400219a0
movzx edx, word [rdi + 0x1e]
mov rcx, rbx
call fcn.1400219a0
mov edx, dword [rdi + 0x10]
mov rcx, rbx
call fcn.1400219a0
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x10
call fcn.1400219a0
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x20
call fcn.1400219a0
movzx edx, word [rdi + 0x16]
mov rcx, rbx
call fcn.1400219a0
mov r8d, dword [rdi + 0x24]
test r8d, r8d
je 0x14002114c
mov rdx, qword [rdi + 0x40]
mov rcx, rbx
call fcn.140021b40
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140021860
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x140021876
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x1400cf5d0]
not ecx
cmp r10d, 8
jb 0x140021968
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x1400218a0
test r10d, r10d
je 0x140021990
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x140021970
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x1400219a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x38
cmp dword [rcx + 0x28], 0
mov rbx, rcx
movsxd rsi, edx
jne 0x140021b32
mov eax, dword [rcx]
mov qword [rsp + 0x58], rdi
mov edi, esi
shr edi, 8
mov byte [rsp + 0x50], sil
mov byte [rsp + 0x51], dil
test al, 0x10
je 0x140021ab5
mov edx, dword [rcx + 0x48]
mov r8d, dword [rcx + 0x50]
mov qword [rsp + 0x30], r14
mov r10d, r8d
lea r14, [0x1400cf5d0]
movsx rax, sil
xor rax, rdx
and r10d, 0xfffd
movzx ecx, al
or r10d, 2
shr edx, 8
mov r9d, dword [r14 + rcx*4]
xor r9d, edx
movzx ecx, r8b
mov edx, r9d
movzx eax, r9b
add eax, dword [rbx + 0x4c]
imul eax, eax, 0x8088405
shr r8d, 8
inc eax
mov dword [rbx + 0x4c], eax
shr rax, 0x18
xor rcx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
mov r11d, dword [r14 + rcx*4]
xor r11d, r8d
mov dword [rbx + 0x50], r11d
and r11d, 0xfffd
shr eax, 8
or r11d, 2
xor al, sil
mov byte [rsp + 0x50], al
movsx rax, dil
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [r14 + rcx*4]
xor eax, edx
mov edx, dword [rbx + 0x50]
mov dword [rbx + 0x48], eax
movzx eax, al
add eax, dword [rbx + 0x4c]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rbx + 0x4c], eax
movzx eax, dl
shr rcx, 0x18
xor rcx, rax
shr edx, 8
mov eax, dword [r14 + rcx*4]
mov r14, qword [rsp + 0x30]
xor eax, edx
mov dword [rbx + 0x50], eax
mov eax, r11d
xor eax, 1
imul eax, r11d
shr eax, 8
xor al, dil
mov byte [rsp + 0x51], al
mov eax, dword [rbx]
mov rdi, qword [rsp + 0x58]
test al, 1
je 0x140021aee
mov rdx, qword [rbx + 0x38]
lea rax, [rdx + 2]
cmp rax, qword [rbx + 0x40]
jb 0x140021ada
mov dword [rbx + 0x28], reloc.WSOCK32.dll_inet_ntoa
add rsp, 0x38
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
movzx eax, word [rsp + 0x50]
mov word [rdx + rcx], ax
add qword [rbx + 0x38], 2
jmp 0x140021b23
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x60]
mov r8d, 2
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140021b1c
cmp dword [rsp + 0x60], 2
je 0x140021b23
mov dword [rbx + 0x28], 3
test dword [rbx], 0x40000000
je 0x140021b32
mov dword [rbx + 0x28], reloc.OLEAUT32.dll_SafeArrayLock
add rsp, 0x38
pop rsi
pop rbx
ret