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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400044ad
xor eax, eax
jmp 0x140004619
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400044e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400044e7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004619
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000460c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000452a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004555
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004611
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400045c4
sub eax, 1
je 0x1400045c4
cmp eax, 2
jne 0x14000460c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004611
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400045f2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000460c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004611
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005900
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400049c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004a93
cmp byte [rcx + 0x71], 0
je 0x140004a93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004a8f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004a54
sub eax, 1
je 0x140004a58
cmp eax, 2
jne 0x140004a8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005900
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004a86
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140004a8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004a3c
xor al, al
jmp 0x140004a3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005900
add rsp, 0x60
pop rbx
ret
Function at 0x140015540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14001556d
xor al, al
jmp 0x1400156cf
mov rax, qword [0x1400356c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400356c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400356d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400356d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400356e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400356e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400356f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400356f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140035700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400156c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140015619
mov r11d, 2
jmp 0x14001563d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140015633
mov r11d, 1
jmp 0x14001563d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400156e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140015682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14001569a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400156aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400156b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140015600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400156ca
Function at 0x140001480
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
movzx ebx, cl
mov qword [rbp + 0x2f], 0xffffffffffffffff
mov dword [rbp + 0x27], 0x10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x2f]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400014dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400015b0
test bl, bl
je 0x140001514
lea r8, [rbp + 0x47]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400015e5
mov dword [rbp + 0x37], 1
mov rax, qword [rbp + 0x47]
mov qword [rbp + 0x3b], rax
mov dword [rbp + 0x43], 2
jmp 0x14000151f
movups xmm0, xmmword [0x140430520]
movups xmmword [rbp + 0x37], xmm0
lea rax, [rbp + 0x27]
mov qword [rsp + 0x28], rax
lea rax, [0x140430520]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rbp + 0x37]
xor edx, edx
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14000157b
mov rcx, qword [rbp + 0x2f]
cmp rcx, 0xffffffffffffffff
je 0x14000155e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140002570
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rbp
ret
lea rdx, [0x1400044d8]
lea rcx, [rbp - 0x39]
call fcn.140001bd0
nop
mov r8d, 0x4c
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.140001240
lea rdx, [0x140005560]
lea rcx, [rbp - 0x19]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, [0x140004458]
lea rcx, [rbp - 0x39]
call fcn.140001bd0
nop
mov r8d, 0x39
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.140001240
lea rdx, [0x140005560]
lea rcx, [rbp - 0x19]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.LookupPrivilegeValue
lea rcx, [rbp - 0x39]
call fcn.140001bd0
nop
mov r8d, 0x3e
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.140001240
lea rdx, [0x140005560]
lea rcx, [rbp - 0x19]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140001620
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2e0
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 0x12]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
mov qword [rsp + 0x80], rax
cmp rax, 0xffffffffffffffff
je 0x140001785
mov dword [rsp + 0x90], 0x238
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000174c
nop dword [rax]
lea rcx, [rsp + 0xbc]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400016a0
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400016b7
mov r9, qword [rbx]
mov r10, qword [rbx + 0x10]
mov r8, r10
cmp rax, r10
cmovb r8, rax
lea rdx, [rsp + 0xbc]
test r8, r8
je 0x1400016f4
lea rcx, [rsp + 0xbc]
sub r9, rcx
nop dword [rax]
movzx ecx, word [rdx]
cmp word [r9 + rdx], cx
jne 0x1400016fb
add rdx, 2
sub r8, 1
jne 0x1400016e0
cmp r10, rax
jb 0x1400016fb
jbe 0x140001715
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14000171c
jmp 0x140001690
mov esi, dword [rsp + 0x98]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140002570
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdx, str.Process32First
lea rcx, [rsp + 0x20]
call fcn.140001bd0
nop
mov r8d, 0x5b
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140001240
lea rdx, [0x140005560]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, [0x140004508]
lea rcx, [rsp + 0x20]
call fcn.140001bd0
nop
mov r8d, 0x56
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140001240
lea rdx, [0x140005560]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x100007750
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x40
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x20], r8d
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x58]
xor ebx, ebx
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x58], rbx
call sub.ntdll.dll_ZwAllocateVirtualMemory
test eax, eax
mov dword [0x100018d20], eax
cmovns rbx, qword [rsp + 0x58]
mov rax, rbx
add rsp, 0x40
pop rbx
ret

Function at 0x100007950
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x80
xor r13d, r13d
mov rdi, r9
mov rsi, r8
mov r12, rdx
mov dword [rax + 0x20], 2
mov ebp, r13d
test r9, r9
je 0x100007989
mov byte [r8], bpl
call fcn.100007890
mov rcx, r12
mov rbx, rax
call fcn.100007890
lea r8, [rsp + 0x50]
mov r12, rax
lea rax, [rsp + 0xb8]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0x20019
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x68], 0x40
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
call qword [sym.imp.ntdll.dll_ZwCreateKey]
mov dword [0x100018d20], eax
test eax, eax
jns 0x100007a03
mov dword [rdi], r13d
xor eax, eax
jmp 0x100007aa1
mov rcx, qword [0x100018d28]
xor edx, edx
mov r8d, 0x2000
call sub.ntdll.dll_RtlAllocateHeap
mov rcx, qword [rsp + 0x48]
mov r8d, 2
mov rbx, rax
lea rax, [rsp + 0x40]
mov rdx, r12
mov qword [rsp + 0x28], rax
mov r9, rbx
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov dword [0x100018d20], eax
test eax, eax
js 0x100007a83
mov ecx, dword [rbx + 8]
mov eax, dword [rdi]
mov ebp, 1
cmp ecx, eax
ja 0x100007a73
mov r8, rcx
lea rdx, [rbx + 0xc]
mov rcx, rsi
call sub.ntdll.dll_memcpy
mov r11d, dword [rbx + 8]
mov dword [rdi], r11d
jmp 0x100007a83
mov r8, rax
xor edx, edx
mov rcx, rsi
call sub.ntdll.dll_memset
mov dword [rdi], r13d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwClose]
mov rcx, qword [0x100018d28]
mov r8, rbx
xor edx, edx
call sub.ntdll.dll_RtlFreeHeap
mov eax, ebp
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x100007ad0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x80
mov ebp, r9d
mov rsi, r8
mov rdi, rdx
mov ebx, 1
call fcn.100007890
xor r12d, r12d
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x68], 0x40
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
call qword [sym.imp.ntdll.dll_ZwCreateKey]
mov dword [0x100018d20], eax
test eax, eax
jns 0x100007b61
xor eax, eax
jmp 0x100007bbf
mov rcx, rdi
call fcn.100007890
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r11, rax
xor eax, eax
mov r9d, ebp
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea edx, [rcx + rcx]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x28], edx
mov rdx, r11
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov rcx, qword [rsp + 0x48]
test eax, eax
mov dword [0x100018d20], eax
cmovs ebx, r12d
call qword [sym.imp.ntdll.dll_ZwFlushKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwClose]
mov eax, ebx
lea r11, [rsp + 0x80]
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 0x100007d50
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rdx
test rdx, rdx
jne 0x100007d66
xor eax, eax
add rsp, 0x60
pop rbx
ret
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntdll.dll_ZwQueryInformationFile]
mov dword [0x100018d20], eax
test eax, eax
js 0x100007d95
cmp dword [rsp + 0x30], 0
jge 0x100007da0
xor eax, eax
mov qword [rbx], rax
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x48]
mov eax, 1
mov qword [rbx], rcx
add rsp, 0x60
pop rbx
ret

Function at 0x100007dc0
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
test rdx, rdx
jne 0x100007dd6
xor eax, eax
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
mov r9d, 8
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntdll.dll_ZwQueryInformationFile]
mov dword [0x100018d20], eax
test eax, eax
js 0x100007e05
cmp dword [rsp + 0x30], 0
jge 0x100007e10
xor eax, eax
mov qword [rbx], rax
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rsp + 0x58]
mov eax, 1
mov qword [rbx], rcx
add rsp, 0x40
pop rbx
ret

Function at 0x100007e30
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x60
lea rax, [rsp + 0x50]
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x28], rdx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
mov dword [0x100018d20], eax
mov qword [rdx], rcx
cmp dword [0x100018d20], ebx
jl 0x100007e89
cmp dword [rsp + 0x50], ebx
setge bl
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0x100007ea0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x1a0
mov qword [rax + 0x20], r9
mov qword [rsp + 0x40], 0
lea rax, [rax + 0x20]
mov qword [rsp + 0x38], rax
mov ebx, r8d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rdx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rdi, rcx
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [0x100018d20], eax
test eax, eax
js 0x100007f49
cmp dword [rsp + 0x50], 0
jl 0x100007f49
mov rcx, qword [rsp + 0x58]
cmp rcx, rbx
je 0x100007f35
mov r9, rcx
lea rdx, [0x1000011e8]
lea rcx, [rsp + 0x70]
mov r8d, ebx
call sub.ntdll.dll_sprintf
lea rcx, [rsp + 0x70]
call fcn.100007890
mov rcx, rax
call sub.ntdll.dll_NtDisplayString
mov rcx, qword [rsp + 0x58]
mov rax, rcx
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x1a0
pop rdi
ret
mov r9, qword [rsp + 0x58]
lea rdx, [0x1000011c8]
lea rcx, [rsp + 0x70]
mov r8d, eax
call sub.ntdll.dll_sprintf
lea rcx, [rsp + 0x70]
call fcn.100007890
mov rcx, rax
call sub.ntdll.dll_NtDisplayString
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtFlushBuffersFile]
mov rbx, qword [rsp + 0x1b0]
mov dword [0x100018d20], eax
xor eax, eax
add rsp, 0x1a0
pop rdi
ret
Function at 0x10000d1a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x160
cmp dword [rsp + 0x1a8], 0x20
mov ebx, r9d
movsxd rsi, r8d
mov r13, rdx
mov rdi, rcx
lea r14, [rsp + 0x20]
lea rbp, [rsp + 0x50]
jne 0x10000d1f4
mov rcx, qword [rsp + 0x1a0]
lea r8, [rsp + 0x60]
mov edx, 0x20
call fcn.1000115e0
jmp 0x10000d20b
mov rcx, qword [rsp + 0x1a0]
lea r8, [rsp + 0x60]
mov edx, 0x10
call fcn.1000115e0
xor eax, eax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
xor dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.10000e410
xor dword [rsp + 0x20], ebx
cmp esi, 0x10
jae 0x10000d26a
test esi, esi
je 0x10000d378
lea rdx, [rsp + 0x20]
mov ecx, esi
sub rdx, rdi
sub r13, rdi
nop dword [rax]
movzx eax, byte [rdx + rdi]
inc rdi
xor al, byte [rdi - 1]
sub rcx, 1
mov byte [r13 + rdi - 1], al
jne 0x10000d250
jmp 0x10000d378
mov qword [rsp + 0x180], r12
mov r12, rsi
nop word [rax + rax]
mov rax, qword [rdi]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov qword [rbp], rax
mov rax, qword [rdi + 8]
mov rcx, rbp
add rdi, 0x10
mov ebx, 0x10
add esi, 0xfffffff0
mov qword [rbp + 8], rax
sub r12, 0x10
call fcn.10000e410
lea r11d, [rsi - 1]
cmp r11d, 0xe
ja 0x10000d32d
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
mov ebx, esi
call sub.ntdll.dll_memcpy
mov r8d, 0x10
lea rcx, [r12 + rbp]
lea rdx, [rsp + r12 + 0x30]
sub r8d, esi
add rdi, rbx
call sub.ntdll.dll_memcpy
test esi, esi
je 0x10000d313
lea rax, [rsp + 0x30]
mov rdx, rbp
lea rcx, [rsp + 0x30]
sub rdx, rax
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
xor al, byte [rcx - 1]
sub rbx, 1
mov byte [rcx + 0xf], al
jne 0x10000d300
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.10000e410
lea ebx, [rsi + 0x10]
xor esi, esi
xor r12d, r12d
mov eax, dword [r14]
lea rdx, [rsp + 0x30]
mov r8, rbx
xor dword [rsp + 0x30], eax
mov eax, dword [r14 + 4]
mov rcx, r13
xor dword [rsp + 0x34], eax
mov eax, dword [r14 + 8]
xor dword [rsp + 0x38], eax
mov eax, dword [r14 + 0xc]
xor dword [rsp + 0x3c], eax
call sub.ntdll.dll_memcpy
mov rax, r14
add r13, rbx
mov r14, rbp
mov rbp, rax
test esi, esi
jne 0x10000d280
mov r12, qword [rsp + 0x180]
lea r11, [rsp + 0x160]
xor eax, eax
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret
Function at 0x100011cb0
Capabilities:
Compute adler32 checksum

Disassembly:
mov r10d, r8d
mov r11d, edx
movzx r9d, r8w
shr r10d, 0x10
test rcx, rcx
jne 0x100011cc7
mov eax, r8d
ret
test edx, edx
je 0x100011cc3
nop dword [rax + rax]
mov edx, 0x15b0
cmp r11d, edx
cmovb edx, r11d
sub r11d, edx
cmp edx, 0x10
jl 0x100011dad
mov r8d, edx
shr r8, 4
mov eax, r8d
neg eax
shl eax, 4
add edx, eax
nop dword [rax]
movzx eax, byte [rcx]
add rcx, 0x10
add r9d, eax
movzx eax, byte [rcx - 0xf]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 0xe]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 0xd]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 0xc]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 0xb]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 0xa]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 9]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 8]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 7]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 6]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 5]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 4]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 3]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 2]
add r10d, r9d
add r9d, eax
movzx eax, byte [rcx - 1]
add r10d, r9d
add r9d, eax
add r10d, r9d
sub r8, 1
jne 0x100011d00
test edx, edx
je 0x100011dc2
movzx eax, byte [rcx]
inc rcx
add r9d, eax
add r10d, r9d
sub edx, 1
jne 0x100011db1
mov eax, 0x80078071
mul r9d
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
mul r10d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r10d, edx
test r11d, r11d
jne 0x100011cd0
shl r10d, 0x10
or r10d, r9d
mov eax, r10d
ret

Function at 0x100012100
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
xor r14d, r14d
mov r12, rdx
mov ebx, r14d
mov rbp, r14
cmp dword [0x100018b20], ebx
jbe 0x100012207
mov rdi, r14
lea r13, [0x100000000]
nop dword [rax]
mov rcx, qword [rdi + r13 + 0x15140]
call qword [sym.imp.ntdll.dll_NtClearEvent]
mov rdx, qword [rdi + r13 + 0x15140]
mov rcx, qword [rdi + r13 + 0x150f0]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0xa0]
xor r9d, r9d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0xc
xor r8d, r8d
mov qword [rsp + 0x28], r12
mov dword [rsp + 0xa4], r14d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xa0], r14d
call qword [sym.imp.ntdll.dll_ZwReadFile]
cmp qword [rsp + 0x90], r14
lea rcx, [rsp + 0x90]
mov esi, eax
cmove rcx, rbp
mov rbp, rcx
cmp eax, 0x103
jne 0x1000121f1
mov eax, ebx
mov r8, rbp
mov dl, 1
lea rcx, [r13 + rax*8 + 0x15140]
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test eax, eax
je 0x100012225
mov rcx, qword [rdi + r13 + 0x150f0]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtCancelIoFile]
test esi, esi
je 0x100012225
inc ebx
add rdi, 8
cmp ebx, dword [0x100018b20]
jb 0x100012140
mov eax, 0x102
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, esi
jmp 0x10001220c