joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100003dd8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x90
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8d, dword [0x10000b3a8]
xor ecx, ecx
test r8d, r8d
je 0x100003fe8
lea rsi, [0x10000b3ac]
lea r9, [0x10000b3a0]
mov rdx, rsi
mov eax, dword [rdx]
imul rax, rax, 0x2c
cmp dword [rax + r9 + 0x97c], 1
je 0x100003e4a
inc ecx
add rdx, 4
cmp ecx, r8d
jb 0x100003e29
jmp 0x100003fe8
lea rcx, [0x100009770]
call fcn.100003b74
or edi, 0xffffffff
mov ebx, eax
test eax, eax
jne 0x100003ec8
lea rcx, [0x100009770]
call fcn.100003afc
mov ebx, eax
test eax, eax
je 0x100003fed
mov rcx, qword [0x100009778]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
je 0x100003fed
lea rdx, [rsp + 0x40]
lea rcx, [0x100009770]
call fcn.100004acc
mov rcx, qword [0x100009778]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, qword [0x100009778]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
je 0x100003fed
mov r12d, dword [0x10000b3a8]
xor ebp, ebp
test r12d, r12d
je 0x100003fe8
lea rbx, [0x10000b3a0]
mov edi, dword [rsi]
imul rdi, rdi, 0x2c
cmp dword [rdi + rbx + 0x97c], 1
jne 0x100003fd9
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
mov eax, dword [rdi + rbx + 0x980]
mov r8d, 0x40
movdqu xmm0, xmmword [rdi + rbx + 0x96c]
mov dword [rsp + 0x58], eax
mov eax, dword [rdi + rbx + 0x984]
mov dword [rsp + 0x40], 2
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x5c], eax
mov eax, dword [rdi + rbx + 0x988]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x60], eax
mov eax, dword [rdi + rbx + 0x98c]
mov rdx, r8
mov dword [rsp + 0x64], eax
mov eax, dword [rdi + rbx + 0x990]
mov dword [rsp + 0x68], eax
mov eax, dword [rdi + rbx + 0x994]
mov dword [rsp + 0x6c], eax
xor al, al
mov byte [rsp + 0x44], al
add al, byte [rcx]
inc rcx
sub rdx, 1
jne 0x100003f92
and qword [rsp + 0x20], rdx
mov rcx, qword [0x100009778]
not al
inc al
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov byte [rsp + 0x44], al
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test eax, eax
je 0x100003fed
lea rbx, [0x10000b3a0]
mov dword [rdi + rbx + 0x97c], 2
inc ebp
add rsi, 4
cmp ebp, r12d
jb 0x100003f01
mov ebx, 1
lea rcx, [0x100009770]
call fcn.100003c28
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1000077a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x100004030
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, [0x100009770]
mov rsi, rdx
xor edi, edi
call fcn.100003b74
mov ebx, eax
test eax, eax
je 0x1000040fa
mov rcx, qword [0x100009778]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000040fa
lea ebx, [rdi + 0x40]
mov rcx, qword [0x100009778]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000040f2
cmp dword [rsp + 0x30], 0
je 0x1000040f2
cmp dword [rsp + 0x40], 2
jne 0x10000408c
xor al, al
lea rcx, [rsp + 0x40]
mov rdx, rbx
add al, byte [rcx]
inc rcx
sub rdx, 1
jne 0x1000040c8
test al, al
jne 0x10000408c
lea r8, [rsp + 0x40]
lea rcx, [0x100009770]
mov rdx, rsi
call fcn.100004134
mov edi, 1
jmp 0x10000408c
xor ebx, ebx
cmp edi, 1
sete bl
lea rcx, [0x100009770]
call fcn.100003c28
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1000077a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x10000429c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0x80], rax
and dword [rdx], 0
lea rcx, [0x100009770]
mov rdi, rdx
call fcn.100003b74
mov ebx, eax
test eax, eax
je 0x100004377
mov rcx, qword [0x100009778]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100004377
mov rcx, qword [0x100009778]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100004375
cmp eax, 1
jne 0x100004328
cmp dword [rsp + 0x30], 0x40
jne 0x100004375
lea rdx, [rsp + 0x40]
lea rcx, [0x100009770]
call fcn.100004924
mov ebx, eax
test eax, eax
je 0x100004377
inc dword [rdi]
mov rcx, qword [0x100009778]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000043a6
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1000043a6
cmp eax, 0x40
je 0x10000433f
xor ebx, ebx
lea rcx, [0x100009770]
call fcn.100003c28
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1000077a0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ebx, 1
jmp 0x100004377
Function at 0x1000043b4
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push r12
sub rsp, 0x90
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rsi, [0x100009770]
mov rcx, rsi
call fcn.100003b74
mov ebx, eax
test eax, eax
je 0x1000045b8
mov rcx, rsi
call fcn.100003c74
mov ebx, eax
test eax, eax
je 0x1000045b8
mov rcx, qword [0x100009778]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or r12d, 0xffffffff
cmp eax, r12d
je 0x1000045b8
mov rcx, qword [0x100009780]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r12d
je 0x1000045b8
mov ebp, 0x40
mov rcx, qword [0x100009778]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000044bc
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1000044bc
cmp eax, ebp
jne 0x1000044bc
mov eax, dword [rsp + 0x40]
cmp eax, 0x400
jb 0x100004495
cmp eax, 0xffff0000
jb 0x10000444e
cmp eax, r12d
ja 0x10000444e
cmp eax, 1
je 0x10000444e
mov rcx, qword [0x100009780]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10000444e
mov rcx, rsi
call fcn.100003c28
mov rcx, rsi
call fcn.100003d8c
mov rcx, rsi
call fcn.100003afc
mov ebx, eax
test eax, eax
je 0x1000045b8
mov rcx, rsi
call fcn.100003ce4
mov ebx, eax
test eax, eax
je 0x1000045b8
mov rcx, qword [0x100009778]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r12d
je 0x1000045b8
mov rcx, qword [0x100009780]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r12d
je 0x1000045b8
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.100004acc
mov rcx, qword [0x100009778]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x100009780]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100004589
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x100004589
cmp eax, ebp
je 0x100004539
cmp dword [0x100009788], 0
mov ebx, 1
je 0x1000045b8
cmp qword [0x100009780], 0xffffffffffffffff
je 0x1000045a9
mov rcx, rsi
call fcn.100003d8c
mov rcx, qword [0x100009798]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
mov rcx, rsi
call fcn.100003c28
mov rcx, rsi
call fcn.100003d8c
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1000077a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
Function at 0x1000045fc
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x90
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea r12, [0x100009770]
mov esi, edx
mov rcx, r12
call fcn.100003b74
mov ebx, eax
test eax, eax
je 0x100004811
mov rcx, r12
call fcn.100003c74
mov ebx, eax
test eax, eax
je 0x100004811
mov rcx, qword [0x100009778]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or r14d, 0xffffffff
cmp eax, r14d
je 0x100004811
mov rcx, qword [0x100009780]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r14d
je 0x100004811
lea r13d, [rdi + 0x40]
mov rcx, qword [0x100009778]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100004714
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x100004714
cmp eax, r13d
jne 0x100004714
mov eax, dword [rsp + 0x40]
cmp eax, 0x400
jb 0x1000046e5
cmp eax, 0xffff0000
jb 0x10000469d
cmp eax, r14d
ja 0x10000469d
cmp eax, 1
je 0x10000469d
cmp edi, esi
jb 0x100004710
mov rcx, qword [0x100009780]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10000469d
inc edi
jmp 0x10000469d
mov rcx, r12
call fcn.100003c28
mov rcx, r12
call fcn.100003d8c
mov rcx, r12
call fcn.100003afc
mov ebx, eax
test eax, eax
je 0x100004811
mov rcx, r12
call fcn.100003ce4
mov ebx, eax
test eax, eax
je 0x100004811
mov rcx, qword [0x100009778]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r14d
je 0x100004811
mov rcx, qword [0x100009780]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r14d
je 0x100004811
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.100004acc
mov rcx, qword [0x100009778]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x100009780]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000047e2
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1000047e2
cmp eax, r13d
je 0x100004791
cmp dword [0x100009788], 0
mov ebx, 1
je 0x100004811
cmp qword [0x100009780], 0xffffffffffffffff
je 0x100004802
mov rcx, r12
call fcn.100003d8c
mov rcx, qword [0x100009798]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
mov rcx, r12
call fcn.100003c28
mov rcx, r12
call fcn.100003d8c
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1000077a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1000074e8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100012520], rdi
je 0x100007536
cmp rax, rdi
jne 0x100007529
mov edi, 1
mov r12d, edi
jmp 0x10000753b
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000750d
mov edi, 1
mov eax, dword [0x100012518]
cmp eax, edi
jne 0x100007551
mov ecx, 0x1f
call fcn.1000a2000
jmp 0x1000075ae
mov eax, dword [0x100012518]
test eax, eax
jne 0x1000075a8
mov dword [0x100012518], edi
lea r13, [0x1000012d8]
lea rsi, [0x1000012c0]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x10000759a
test eax, eax
jne 0x10000759a
mov rcx, qword [rsi]
test rcx, rcx
je 0x10000758f
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x100007578
test eax, eax
je 0x1000075ae
mov eax, 0xff
jmp 0x100007680
mov dword [0x1000097f4], edi
mov eax, dword [0x100012518]
cmp eax, edi
jne 0x1000075d5
lea rdx, [0x1000012b8]
lea rcx, [0x100001288]
call sub.msvcrt.dll__initterm
mov dword [0x100012518], 2
test r12d, r12d
jne 0x1000075e3
xor eax, eax
xchg qword [0x100012520], rax
cmp qword [0x100012538], 0
je 0x10000760c
lea rcx, [0x100012538]
call fcn.10000798c
test eax, eax
je 0x10000760c
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100012538]
mov r8, qword [0x1000097d8]
mov rdx, qword [0x1000097e0]
mov ecx, dword [0x1000097d0]
call fcn.10000704c
mov dword [0x1000097f0], eax
cmp dword [0x1000097d4], 0
jne 0x10000763c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000097f4], 0
jne 0x100007651
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000097f0]
jmp 0x100007680
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100007aa0
add rsp, 0x28
jmp 0x1000074e8
Function at 0x1000077a0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100009110]
jne 0x1000077bb
rol rcx, 0x10
test cx, 0xffff
jne 0x1000077b7
ret 0
ror rcx, 0x10
jmp 0x100007b5c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000098b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1000099a8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100007be1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1000098b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x100007c03
mov rax, qword [rsp + 0x88]
mov qword [0x1000099a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100009948], rax
mov rax, qword [0x1000099a8]
mov qword [0x100009820], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100009930], rax
mov dword [0x100009810], 0xc0000409
mov dword [0x100009814], 1
mov rax, qword [0x100009110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100009118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001300]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1000079f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100007a45
cmp rcx, 0xffffffffffffffff
je 0x100007a45
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100007a3d
cmp dword [rcx + 0x3c], edx
jl 0x100007a3d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100007a3d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100007a45
mov rax, rdx
add rsp, 0x18
ret
Function at 0x414a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r8, qword [rcx + 0x80]
mov eax, edx
mov rbp, rcx
lea rdi, [rax + rax*8]
mov rsi, rax
shl rdi, 2
lea rax, [r8 + rdi]
movzx r9d, word [rax + 0xc]
movzx ecx, word [rax + 0xe]
cmp r9w, 0xff
ja 0x414bb0
movzx edx, cx
mov ebx, esi
sub ebx, edx
test ebx, ebx
jne 0x414c39
test esi, esi
movzx r9d, word [rax + 0xc]
je 0x414b77
sub esi, ecx
movzx edx, r9w
lea rcx, [rsi + rsi*8]
cmp edx, 0xff
lea r8, [r8 + rcx*4]
mov ecx, 7
ja 0x414b25
mov ecx, edx
movzx r10d, word [r8 + 0x12]
lea rdx, [rcx*8]
sub rdx, rcx
mov rcx, qword [str._r_r_r_r_r_r_r_r_r_r_r_r_r_r_a_a_a_a_a_a_a_n_n_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_v_v_t_t_t_t_t_t_t_f_f_f_f_f_f_f]
lea rdx, [rcx + rdx*2]
movzx ecx, byte [rdx + r10]
mov word [rax + 0x12], cx
mov r11, qword [r8 + 0x14]
cmp r9b, 1
mov r12, qword [r8 + 0x1c]
mov qword [rax + 0x14], r11
mov qword [rax + 0x1c], r12
je 0x414c60
jb 0x414b63
cmp r9b, 3
ja 0x414b63
mov ecx, dword [rax + 0x1c]
mov edx, dword [rax + 8]
mov dword [rax + 0x20], ecx
mov ecx, dword [rax + 0x18]
mov dword [rax + 0x1c], ecx
mov ecx, dword [rax + 0x14]
mov dword [rax + 0x14], edx
mov dword [rax + 0x18], ecx
mov r8, qword [rbp + 0x80]
lea rax, [r8 + rdi]
movzx r9d, word [rax + 0xc]
movzx ecx, word [rax + 0xe]
lea rdx, [rbx + rbx*8]
lea rdx, [r8 + rdx*4]
mov word [rdx + 0xe], cx
mov ecx, dword [rax + 4]
mov eax, dword [rax + 8]
mov word [rdx + 0xc], r9w
mov dword [rdx + 4], ecx
mov dword [rdx + 8], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r14
ret
movzx edx, word [rax + 0x10]
mov ebx, r9d
and r9w, 0xff
movzx ebx, bh
mov r14d, dword [rax + 4]
lea r12d, [rbx + rdx]
mov ebx, esi
mov r11d, edx
sub ebx, edx
mov edx, esi
sub ecx, r12d
sub edx, r12d
mov r10d, edx
add edx, 1
lea r10, [r10 + r10*8]
cmp ebx, edx
lea r10, [r8 + r10*4]
mov dword [r10 + 4], r14d
mov r14d, dword [rax + 8]
mov word [r10 + 0xc], r9w
mov word [r10 + 0xe], cx
mov dword [r10 + 8], r14d
jb 0x414c16
nop
mov ecx, edx
add edx, 1
lea rcx, [rcx + rcx*8]
cmp ebx, edx
mov dword [r8 + rcx*4 + 0xc], 0x10004
jae 0x414c00
mov r9d, 1
test ebx, ebx
mov word [rax + 0xe], r11w
movzx ecx, r11w
mov dword [rax + 4], 0
mov word [rax + 0xc], r9w
je 0x414adb
mov rcx, rbp
mov edx, ebx
call fcn.00414a90
mov r8, qword [rbp + 0x80]
lea rax, [r8 + rdi]
movzx ecx, word [rax + 0xe]
jmp 0x414adb
mov ecx, dword [rax + 4]
lea r8, [rax + 0x14]
mov rdx, qword [0x0042c070]
mov r9, qword [0x0042c090]
mov r10, qword [0x0042c080]
movzx edx, byte [rdx + rcx]
movzx r9d, byte [r9 + rcx]
movsx ecx, word [r10 + rcx*2]
xor edx, 1
add ecx, dword [r8 + r9*4]
movzx r9d, dl
cmp dl, 1
mov r8d, dword [r8 + r9*4]
jbe 0x414cd0
mov edx, dword [rax + 0x18]
mov dword [rax + 0x20], r8d
mov dword [rax + 0x1c], edx
mov edx, dword [rax + 0x14]
mov dword [rax + 0x18], edx
mov r8, qword [rbp + 0x80]
mov dword [rax + 0x14], ecx
lea rax, [r8 + rdi]
movzx r9d, word [rax + 0xc]
movzx ecx, word [rax + 0xe]
jmp 0x414b77
mov dword [rax + 0x18], r8d
jmp 0x414cae
Function at 0x415b20
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov esi, r8d
mov rcx, qword [rcx + 8]
mov edi, r9d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415b67
mov eax, dword [rsp + 0x3c]
cmp eax, esi
je 0x415b59
test dil, dil
jne 0x415b67
mov edx, eax
add qword [rbx + 0x10], rdx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [0x0042bff0]
lea rcx, [0x0042a29c]
xor r8d, r8d
mov edx, dword [rax]
call sub.msvcrt.dll_printf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word [rax + rax]
Function at 0x417e60
Capabilities:
Encode data using xor

Disassembly:
push r14
push rdi
push rsi
push rbx
cmp r8d, 0x1f
mov r14, rcx
jle 0x41807e
sub r8d, 0x20
mov ebx, dword [rcx]
mov r10d, r8d
mov rax, qword [0x0042be20]
shr r10d, 5
mov r9d, r10d
add r9, 1
shl r9, 5
add r9, rdx
nop
nop word cs:[rax + rax]
mov esi, dword [rdx + 4]
xor ebx, dword [rdx]
mov r11d, esi
movzx edi, sil
mov ecx, esi
shr r11d, 0x18
mov r11d, dword [rax + r11*4]
xor r11d, dword [rax + rdi*4 + 0xc00]
mov edi, esi
movzx esi, ch
shr edi, 0x10
movzx edi, dil
xor r11d, dword [rax + rdi*4 + 0x400]
xor r11d, dword [rax + rsi*4 + 0x800]
mov esi, ebx
shr esi, 0x18
xor r11d, dword [rax + rsi*4 + 0x1000]
movzx esi, bl
xor r11d, dword [rax + rsi*4 + 0x1c00]
mov esi, ebx
movzx ebx, bh
shr esi, 0x10
movzx esi, sil
xor r11d, dword [rax + rsi*4 + 0x1400]
xor r11d, dword [rax + rbx*4 + 0x1800]
mov dword [r14], r11d
mov esi, dword [rdx + 0xc]
mov ebx, r11d
xor ebx, dword [rdx + 8]
mov r11d, esi
movzx edi, sil
mov ecx, esi
shr r11d, 0x18
mov r11d, dword [rax + r11*4]
xor r11d, dword [rax + rdi*4 + 0xc00]
mov edi, esi
movzx esi, ch
shr edi, 0x10
movzx edi, dil
xor r11d, dword [rax + rdi*4 + 0x400]
xor r11d, dword [rax + rsi*4 + 0x800]
mov esi, ebx
shr esi, 0x18
xor r11d, dword [rax + rsi*4 + 0x1000]
movzx esi, bl
xor r11d, dword [rax + rsi*4 + 0x1c00]
mov esi, ebx
movzx ebx, bh
shr esi, 0x10
movzx esi, sil
xor r11d, dword [rax + rsi*4 + 0x1400]
xor r11d, dword [rax + rbx*4 + 0x1800]
mov dword [r14], r11d
mov esi, dword [rdx + 0x14]
mov ebx, r11d
xor ebx, dword [rdx + 0x10]
mov r11d, esi
movzx edi, sil
mov ecx, esi
shr r11d, 0x18
mov r11d, dword [rax + r11*4]
xor r11d, dword [rax + rdi*4 + 0xc00]
mov edi, esi
movzx esi, ch
shr edi, 0x10
movzx edi, dil
xor r11d, dword [rax + rdi*4 + 0x400]
xor r11d, dword [rax + rsi*4 + 0x800]
mov esi, ebx
shr esi, 0x18
xor r11d, dword [rax + rsi*4 + 0x1000]
movzx esi, bl
xor r11d, dword [rax + rsi*4 + 0x1c00]
mov esi, ebx
movzx ebx, bh
shr esi, 0x10
add rdx, 0x20
movzx esi, sil
xor r11d, dword [rax + rsi*4 + 0x1400]
xor r11d, dword [rax + rbx*4 + 0x1800]
mov dword [r14], r11d
mov esi, dword [rdx - 4]
xor r11d, dword [rdx - 8]
mov ebx, esi
movzx edi, sil
mov ecx, esi
shr ebx, 0x18
mov ebx, dword [rax + rbx*4]
xor ebx, dword [rax + rdi*4 + 0xc00]
mov edi, esi
movzx esi, ch
mov ecx, r11d
shr edi, 0x10
movzx edi, dil
xor ebx, dword [rax + rdi*4 + 0x400]
xor ebx, dword [rax + rsi*4 + 0x800]
mov esi, r11d
shr esi, 0x18
xor ebx, dword [rax + rsi*4 + 0x1000]
movzx esi, r11b
xor ebx, dword [rax + rsi*4 + 0x1c00]
mov esi, r11d
shr esi, 0x10
movzx esi, sil
xor ebx, dword [rax + rsi*4 + 0x1400]
movzx esi, ch
xor ebx, dword [rax + rsi*4 + 0x1800]
cmp rdx, r9
mov dword [r14], ebx
jne 0x417ea0
shl r10d, 5
sub r8d, r10d
test r8d, r8d
jle 0x4180c0
lea eax, [r8 - 1]
mov r9d, dword [r14]
lea r10, [rdx + rax + 1]
mov rax, qword [0x0042be20]
nop word cs:[rax + rax]
add rdx, 1
movzx r8d, byte [rdx - 1]
xor r8d, r9d
shr r9d, 8
movzx r8d, r8b
xor r9d, dword [rax + r8*4]
cmp rdx, r10
mov dword [r14], r9d
jne 0x4180a0
pop rbx
pop rsi
pop rdi
pop r14
ret
Function at 0x4184f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rax, qword [0x0042be10]
cmp byte [rax], 0
mov rbx, rcx
mov rbp, rdx
mov dword [rsp + 0x90], r8d
jne 0x41851a
mov byte [rax], 1
call fcn.0041b4f0
lea rdi, [rsp + 0x40]
mov r8d, 3
mov dword [rsp + 0x40], 0xffffffff
lea rsi, [rsp + 0x90]
mov rcx, rdi
mov rdx, rsi
call fcn.00417e60
mov r8d, dword [rsp + 0x90]
mov rcx, rdi
mov rdx, rbp
call fcn.00417e60
mov eax, dword [rsp + 0x40]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx + 8]
mov r8d, 3
mov rdx, rsi
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFile]
not eax
mov dword [rsp + 0x3c], eax
call rdi
test eax, eax
je 0x418602
cmp dword [rsp + 0x4c], 3
jne 0x418602
add qword [rbx + 0x10], 3
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
mov r8d, 4
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x48]
call rdi
test eax, eax
je 0x418602
cmp dword [rsp + 0x48], 4
jne 0x418602
mov esi, dword [rsp + 0x90]
lea r9, [rsp + 0x44]
mov rdx, rbp
mov qword [rsp + 0x20], 0
add qword [rbx + 0x10], 4
mov rcx, qword [rbx + 8]
mov r8d, esi
call rdi
test eax, eax
je 0x418602
cmp esi, dword [rsp + 0x44]
jne 0x418602
mov eax, dword [rsp + 0x90]
add qword [rbx + 0x10], rsi
add eax, 7
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00428990
nop
nop dword [rax + rax]