joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x70], 0
jne 0x405a48
xor eax, eax
jmp 0x405b4f
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x405ab2
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x405b4d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call fcn.004059bb
movzx eax, al
test eax, eax
je 0x405b48
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x405b4f
jmp 0x405aa8
xor eax, eax
add rsp, 0x68
ret

Function at 0x405b60
Capabilities:
Get file size
Read file on windows

Disassembly:
add byte [rax], al
lea rax, [0x00445dff]
mov qword [rsp + 0x48], rax
xor edx, edx
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
call fcn.004058cb
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x4c]
mov rcx, qword [rsp + 0xd0]
and al, 0xd0
add byte [rax], al
add al, ch
xchg ecx, eax
invalid
invalid
dec dword [rax - 0x77]
test byte [rax + rbx*8], ah
add byte [rax], al
add byte [rax], al
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 4]
call qword [rsp + 0xd8]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x80]
mov rcx, qword [rsp + 0x108]
call fcn.00405a2b
invalid
invalid
dec dword [rax - 0x77]
test byte [rax + rdx*4], ah
add byte [rax], al
add byte [rax - 0x75], cl
and al, 0x48
Function at 0x405c00
Capabilities:
Get file size
Read file on windows

Disassembly:
dec dword [rax - 0x77]
test byte [rax + rdx*4], ah
add byte [rax], al
add byte [rax - 0x75], cl
and al, 0x48
mov rdx, qword [rax + 0x54]
mov rcx, qword [rsp + 0xd0]
call fcn.00405a2b
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xc0], 0
lea rdx, [rsp + 0xc0]
xor ecx, ecx
call fcn.004058cb
mov bh, 0xfc
invalid
dec dword [rax - 0x77]
test byte [rax + rcx*2], ah
add dword [rax], eax
add byte [rax - 0x75], cl
and al, 0x48
mov eax, dword [rax + 0x40]
mov eax, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x40]
mov eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.0040572b
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xc0]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x405c9d
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0xc0]
movzx eax, word [r8 + rax*2]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
jmp 0x405c5c
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x6c]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x405cd6
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
jmp 0x405cb6
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x405d15
mov eax, dword [rsp + 0x50]
xor ecx, ecx
mov rdx, qword [rsp + 0x80]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x50], eax
jmp 0x405cde
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0xf0]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x405d68
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0xf0]
movsx ax, byte [rcx + rax]
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x80]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
jmp 0x405d1d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0xffffffffffffffff
jne 0x405dd1
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x1c]
xor ecx, ecx
call qword [rsp + 0x90]
xor ecx, ecx
call qword [rsp + 0x98]
xor edx, edx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.kernel32.dll_GetFileSize]
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x44]
mov eax, eax
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
Function at 0x405c40
Capabilities:
Get file size
Read file on windows

Disassembly:
dec dword [rax - 0x77]
test byte [rax + rdx*4], ah
add byte [rax], al
add byte [rax - 0x75], cl
and al, 0x48
mov rdx, qword [rax + 0x54]
mov rcx, qword [rsp + 0xd0]
call fcn.00405a2b
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xc0], 0
lea rdx, [rsp + 0xc0]
xor ecx, ecx
call fcn.004058cb
mov bh, 0xfc
invalid
dec dword [rax - 0x77]
test byte [rax + rcx*2], ah
add dword [rax], eax
add byte [rax - 0x75], cl
and al, 0x48
mov eax, dword [rax + 0x40]
mov eax, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x40]
mov eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.0040572b
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xc0]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x405c9d
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0xc0]
movzx eax, word [r8 + rax*2]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
jmp 0x405c5c
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x6c]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x405cd6
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
jmp 0x405cb6
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x405d15
mov eax, dword [rsp + 0x50]
xor ecx, ecx
mov rdx, qword [rsp + 0x80]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x50], eax
jmp 0x405cde
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0xf0]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x405d68
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0xf0]
movsx ax, byte [rcx + rax]
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x80]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
jmp 0x405d1d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0xffffffffffffffff
jne 0x405dd1
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x1c]
xor ecx, ecx
call qword [rsp + 0x90]
xor ecx, ecx
call qword [rsp + 0x98]
xor edx, edx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.kernel32.dll_GetFileSize]
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x44]
mov eax, eax
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
Function at 0x405ce0
Capabilities:
Get file size
Read file on windows

Disassembly:
dec dword [rax - 0x77]
test byte [rax + rdx*4], ah
add byte [rax], al
add byte [rax - 0x75], cl
and al, 0x48
mov rdx, qword [rax + 0x54]
mov rcx, qword [rsp + 0xd0]
call fcn.00405a2b
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xc0], 0
lea rdx, [rsp + 0xc0]
xor ecx, ecx
call fcn.004058cb
mov bh, 0xfc
invalid
dec dword [rax - 0x77]
test byte [rax + rcx*2], ah
add dword [rax], eax
add byte [rax - 0x75], cl
and al, 0x48
mov eax, dword [rax + 0x40]
mov eax, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x40]
mov eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.0040572b
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xc0]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x405c9d
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0xc0]
movzx eax, word [r8 + rax*2]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
jmp 0x405c5c
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x6c]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x405cd6
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
jmp 0x405cb6
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x405d15
mov eax, dword [rsp + 0x50]
xor ecx, ecx
mov rdx, qword [rsp + 0x80]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x50], eax
jmp 0x405cde
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0xf0]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x405d68
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0xf0]
movsx ax, byte [rcx + rax]
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x80]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
jmp 0x405d1d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0xffffffffffffffff
jne 0x405dd1
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x1c]
xor ecx, ecx
call qword [rsp + 0x90]
xor ecx, ecx
call qword [rsp + 0x98]
xor edx, edx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.kernel32.dll_GetFileSize]
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x44]
mov eax, eax
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
Function at 0x405dd0
Capabilities:
Read file on windows

Disassembly:
dec dword [rax - 0x77]
test byte [rax + rdx*4], ah
add byte [rax], al
add byte [rax - 0x75], cl
and al, 0x48
mov rdx, qword [rax + 0x54]
mov rcx, qword [rsp + 0xd0]
call fcn.00405a2b
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xc0], 0
lea rdx, [rsp + 0xc0]
xor ecx, ecx
call fcn.004058cb
mov bh, 0xfc
invalid
dec dword [rax - 0x77]
test byte [rax + rcx*2], ah
add dword [rax], eax
add byte [rax - 0x75], cl
and al, 0x48
mov eax, dword [rax + 0x40]
mov eax, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x40]
mov eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.0040572b
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xc0]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x405c9d
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0xc0]
movzx eax, word [r8 + rax*2]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
jmp 0x405c5c
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x6c]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x405cd6
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
jmp 0x405cb6
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x80]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x405d15
mov eax, dword [rsp + 0x50]
xor ecx, ecx
mov rdx, qword [rsp + 0x80]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x50], eax
jmp 0x405cde
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0xf0]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x405d68
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0xf0]
movsx ax, byte [rcx + rax]
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x80]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
jmp 0x405d1d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0xffffffffffffffff
jne 0x405dd1
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x1c]
xor ecx, ecx
call qword [rsp + 0x90]
xor ecx, ecx
call qword [rsp + 0x98]
xor edx, edx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.kernel32.dll_GetFileSize]
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x44]
mov eax, eax
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
Function at 0x405e00
Capabilities:
Read file on windows

Disassembly:
xor ecx, ecx
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.kernel32.dll_ReadFile]
push rsp
mov eax, 0xc0850004
jne 0x405e69
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x1c]
xor ecx, ecx
call qword [rsp + 0x90]
xor ecx, ecx
call qword [rsp + 0x98]
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x48]
mov eax, eax
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
and al, 0x40
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0xb4], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x74], 0
jmp 0x405f01
mov eax, dword [rsp + 0x74]
inc eax
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0xb4]
cmp dword [rsp + 0x74], eax
jae 0x405f25
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
add eax, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
jmp 0x405ee9
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x94]
Function at 0x405e10
Capabilities:
Read file on windows

Disassembly:
xor ecx, ecx
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.kernel32.dll_ReadFile]
push rsp
mov eax, 0xc0850004
jne 0x405e69
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x1c]
xor ecx, ecx
call qword [rsp + 0x90]
xor ecx, ecx
call qword [rsp + 0x98]
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x48]
mov eax, eax
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
and al, 0x40
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0xb4], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x74], 0
jmp 0x405f01
mov eax, dword [rsp + 0x74]
inc eax
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0xb4]
cmp dword [rsp + 0x74], eax
jae 0x405f25
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
add eax, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
jmp 0x405ee9
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x94]
Function at 0x401d28
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x401dcc
jmp 0x401d52
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x401d34
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x401dc7
jmp 0x401d78
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x401d5a
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, str.cw
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x401d6c
jmp 0x401d46
leave
ret

Function at 0x40309b
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x40314a
jmp 0x4030d0
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x4030b2
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x403145
jmp 0x4030f6
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x4030d8
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, [0x00adb383]
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x4030ea
jmp 0x4030c4
leave
ret

Function at 0x4030a6
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x40314a
jmp 0x4030d0
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x4030b2
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x403145
jmp 0x4030f6
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x4030d8
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, [0x00adb383]
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x4030ea
jmp 0x4030c4
leave
ret
Function at 0x140002770
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov r12, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x1400027c9
cmp byte [r12 + rbx - 1], 0xa
je 0x1400027a4
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x140004220], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov r9, rax
mov r8, rbx
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x20
pop rbx
pop r12
pop rbp
ret

Function at 0x140002830
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r13
push r12
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
lea rax, [rbp - 8]
mov qword [rsp + 0x20], r8
mov r12, r8
lea r9, [rbp - 4]
mov dword [rbp - 8], 0x1fe
xor r8d, r8d
mov qword [rsp + 0x28], rax
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov r13d, eax
test eax, eax
jne 0x140002871
cmp dword [rbp - 4], 1
je 0x140002880
mov eax, r13d
add rsp, 0x48
pop rbx
pop r12
pop r13
pop rbp
ret
cmp word [r12], 0
je 0x1400028f0
mov rax, r12
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x140002890
sub rax, r12
sar rax, 1
inc eax
cdqe
add rax, rax
xor ecx, ecx
mov rbx, qword [sym.imp.ucrtbase.dll_wcschr]
mov word [r12 + rax], cx
jmp 0x1400028c9
xor edx, edx
lea r12, [rax + 2]
mov word [rax], dx
mov edx, 0x2c
mov rcx, r12
call rbx
test rax, rax
jne 0x1400028c0
mov eax, r13d
add rsp, 0x48
pop rbx
pop r12
pop r13
pop rbp
ret
mov eax, 2
jmp 0x1400028a7
Function at 0x140002ca0
Capabilities:
Check if process is running under wine

Disassembly:
push rbp
push r13
push r12
push rbx
sub rsp, 0x238
lea rbp, [rsp + 0x80]
lea rdx, str.SoftwareWineWineBrowser
mov r12, rcx
lea r8, [rbp - 0x58]
mov rcx, 0xffffffff80000001
call qword [sym.imp.advapi32.dll_RegOpenKeyW]
lea r13, [rbp - 0x50]
test eax, eax
je 0x140002d60
mov rax, qword [0x1400055d0]
movdqa xmm0, xmmword [str.xdg_open]
movdqa xmm1, xmmword [0x140005570]
movdqa xmm2, xmmword [0x140005580]
mov qword [rbp + 0x20], rax
mov eax, dword [0x1400055d8]
movdqa xmm3, xmmword [0x140005590]
movdqa xmm4, xmmword [0x1400055a0]
movaps xmmword [rbp - 0x50], xmm0
movdqa xmm5, xmmword [0x1400055b0]
movdqa xmm0, xmmword [0x1400055c0]
mov dword [rbp + 0x28], eax
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x30], xmm2
movaps xmmword [rbp - 0x20], xmm3
movaps xmmword [rbp - 0x10], xmm4
movaps xmmword [rbp], xmm5
movaps xmmword [rbp + 0x10], xmm0
mov rdx, r12
mov rcx, r13
call sym.launch_app
add rsp, 0x238
pop rbx
pop r12
pop r13
pop rbp
ret
mov rcx, qword [rbp - 0x58]
mov r8, r13
lea rdx, str.Browsers
call sym.get_commands.constprop.0
mov rcx, qword [rbp - 0x58]
mov ebx, eax
call qword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
je 0x140002d44
jmp 0x140002cdc

Function at 0x140002d90
Capabilities:
Check if process is running under wine

Disassembly:
push rbp
push r13
push r12
push rbx
sub rsp, 0x238
lea rbp, [rsp + 0x80]
lea rdx, str.SoftwareWineWineBrowser
mov r12, rcx
lea r8, [rbp - 0x58]
mov rcx, 0xffffffff80000001
call qword [sym.imp.advapi32.dll_RegOpenKeyW]
lea r13, [rbp - 0x50]
test eax, eax
je 0x140002e60
mov eax, dword [0x140005660]
movdqa xmm0, xmmword [str._usr_bin_open]
movdqa xmm1, xmmword [0x1400055f0]
movdqa xmm2, xmmword [0x140005600]
mov dword [rbp + 0x30], eax
movzx eax, word [0x140005664]
movdqa xmm3, xmmword [str.mozilla_thunderbird]
movdqa xmm4, xmmword [0x140005620]
movaps xmmword [rbp - 0x50], xmm0
movdqa xmm5, xmmword [0x140005630]
movdqa xmm0, xmmword [0x140005640]
movaps xmmword [rbp - 0x40], xmm1
mov word [rbp + 0x34], ax
movdqa xmm1, xmmword [str.evolution]
movaps xmmword [rbp - 0x30], xmm2
movaps xmmword [rbp - 0x20], xmm3
movaps xmmword [rbp - 0x10], xmm4
movaps xmmword [rbp], xmm5
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp + 0x20], xmm1
mov rdx, r12
mov rcx, r13
call sym.launch_app
add rsp, 0x238
pop rbx
pop r12
pop r13
pop rbp
ret
mov rcx, qword [rbp - 0x58]
mov r8, r13
lea rdx, str.Mailers
call sym.get_commands.constprop.0
mov rcx, qword [rbp - 0x58]
mov ebx, eax
call qword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
je 0x140002e40
jmp 0x140002dcc