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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, rdx
mov edx, dword [rcx + 8]
mov r13d, r8d
mov rbp, rcx
lea eax, [r8 - 1]
cmp eax, 0x20
mov eax, 0x22
cmovbe r13d, eax
test edx, edx
je 0x4410e0
mov rax, qword [rcx]
xor ebx, ebx
mov rsi, qword [rax]
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov edi, eax
nop word cs:[rax + rax]
mov rdx, r12
mov rcx, rsi
add ebx, 1
call sub.msvcrt.dll_fputs
cmp dword [rbp + 8], ebx
jbe 0x441030
mov rax, qword [rbp]
mov r14d, ebx
mov rsi, qword [rax + r14*8]
mov rcx, rsi
call sub.msvcrt.dll_strlen
add edi, eax
test ebx, ebx
mov r15, rax
je 0x440fb0
test r13d, r13d
je 0x441011
cmp r13d, edi
jae 0x441011
mov r9, r12
mov r8d, 4
mov edx, 1
lea rcx, [0x004e5ca2]
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp]
lea edi, [r15 + 1]
mov rsi, qword [rax + r14*8]
jmp 0x440fb0
mov rdx, r12
mov ecx, 0x20
add edi, 1
call sub.msvcrt.dll_putc
mov rax, qword [rbp]
mov rsi, qword [rax + r14*8]
jmp 0x440fb0
add edi, 1
mov rdx, r12
mov ecx, 0x3a
call sub.msvcrt.dll_putc
mov eax, dword [rbp + 0x18]
test r13d, r13d
setne r14b
xor ebx, ebx
test eax, eax
jne 0x441088
jmp 0x4410c0
mov r9, r12
mov r8d, 4
mov edx, 1
lea rcx, [0x004e5ca2]
call sub.msvcrt.dll_fwrite
lea edi, [r15 + 1]
mov rax, qword [rbp + 0x10]
mov rdx, r12
add ebx, 1
mov rcx, qword [rax + rsi*8]
call sub.msvcrt.dll_fputs
cmp dword [rbp + 0x18], ebx
jbe 0x4410c0
mov rax, qword [rbp + 0x10]
mov esi, ebx
mov rcx, qword [rax + rsi*8]
call sub.msvcrt.dll_strlen
add edi, eax
mov r15, rax
cmp r13d, edi
jae 0x4410a6
test r14b, r14b
jne 0x441052
mov rdx, r12
mov ecx, 0x20
add edi, 1
call sub.msvcrt.dll_putc
jmp 0x441070
mov rdx, r12
mov ecx, 0xa
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_putc
mov edi, 1
jmp 0x441033
Function at 0x45a9b0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov ebp, edx
mov rdi, rcx
mov rdx, r8
mov ecx, ebp
xor r8d, r8d
mov rbx, r9
call fcn.004805c0
test rax, rax
js 0x45aa30
mov r9, qword [rsp + 0x78]
mov rcx, rdi
mov r8, r12
mov rdx, rbx
xor edi, edi
call fcn.00459400
test rax, rax
mov qword [rsi + 8], rax
je 0x45aa23
mov qword [rsi], rax
mov r8d, ebx
mov rdx, rax
mov ecx, ebp
mov qword [rsi + 0x10], rbx
call sub.msvcrt.dll__read_1
test eax, eax
js 0x45aa90
cdqe
mov edi, 1
cmp rax, rbx
jb 0x45aa60
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, qword [rsp + 0x78]
xor edi, edi
mov r8d, dword [rax]
lea rdx, [0x005b3080]
call r12
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
xor edi, edi
lea rdx, [0x005b308b]
call r12
mov rcx, qword [rsi + 8]
call sub.msvcrt.dll_free
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, qword [rsp + 0x78]
lea rdx, [0x005b3086]
mov r8d, dword [rax]
call r12
mov rcx, qword [rsi + 8]
call sub.msvcrt.dll_free
jmp 0x45aa23
Function at 0x469570
Capabilities:
Read file on windows

Disassembly:
push r13
mov eax, 0x1118
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0047f5f0
sub rsp, rax
mov ebp, 0x1000
movabs rax, 0xefcdab8967452301
mov qword [rsp + 0x20], rax
lea r12, [rsp + 0x20]
mov rdi, rcx
mov r13, rdx
mov dword [rsp + 0x38], 0
lea rsi, [rsp + 0xc0]
movabs rax, 0x1032547698badcfe
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
nop dword [rax]
xor ebx, ebx
mov r8, rbp
mov r9, rdi
mov edx, 1
lea rcx, [rsi + rbx]
sub r8, rbx
call sub.msvcrt.dll_fread
add rbx, rax
cmp rbx, 0xfff
ja 0x4695fa
test rax, rax
jne 0x4695d2
test rax, rax
je 0x469611
mov r8, r12
mov edx, 0x1000
mov rcx, rsi
call fcn.004689c0
jmp 0x4695d0
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
mov edi, eax
jne 0x469646
lea rbp, [rsp + 0x20]
test rbx, rbx
jne 0x46964d
mov rdx, r13
mov rcx, rbp
call fcn.00469220
mov eax, edi
add rsp, 0x1118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov edi, 1
jmp 0x469634
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call fcn.004692c0
jmp 0x469629
Function at 0x46b520
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x005c9340]
test rax, rax
je 0x46b540
add rsp, 0x28
pop rbx
pop rsi
ret
xor edx, edx
xor ecx, ecx
mov rsi, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rsi
test eax, eax
mov ebx, eax
jne 0x46b570
mov rax, qword [0x005c9340]
test rax, rax
je 0x46b5a0
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, eax
call fcn.00474400
mov ecx, ebx
mov qword [0x005c9340], rax
mov rdx, rax
call rsi
test eax, eax
jne 0x46b553
mov rcx, qword [0x005c9340]
call sub.msvcrt.dll_free
mov qword [0x005c9340], 0
lea rcx, [0x005b5560]
call fcn.00474530
mov qword [0x005c9340], rax
jmp 0x46b532

Function at 0x46c6f0
Capabilities:
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov edx, dword [rcx + 0x18]
test edx, edx
mov rbx, rcx
jle 0x46c70a
mov rax, qword [rcx + 0x80]
call qword [rax + 0x18]
mov edx, dword [rbx + 0x2c]
test edx, edx
jle 0x46c71e
mov rax, qword [rbx + 0x80]
mov rcx, rbx
call qword [rax + 0x18]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x46c72c
call sub.msvcrt.dll_fclose
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x46c73a
call sub.msvcrt.dll_fclose
cmp qword [rbx + 0x40], 0
je 0x46c7d0
mov edx, dword [rbx + 0x28]
test edx, edx
jne 0x46c7c0
mov rcx, qword [rbx + 0x38]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x40]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x48]
call sub.msvcrt.dll_free
mov eax, dword [rbx + 0x70]
test eax, eax
jle 0x46c79c
xor esi, esi
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rsi*8]
call sub.msvcrt.dll_remove
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rsi*8]
add rsi, 1
call sub.msvcrt.dll_free
cmp dword [rbx + 0x70], esi
jg 0x46c770
mov rcx, qword [rbx + 0x78]
call sub.msvcrt.dll_free
mov rax, qword [rbx + 0x80]
mov rax, qword [rax + 0x40]
test rax, rax
je 0x46c7b1
mov rcx, rbx
call rax
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x20]
call sub.msvcrt.dll_free
jmp 0x46c74c
and dword [rbx], 0xfffffffe
lea r9, [rsp + 0x24]
mov edx, 1
mov rcx, rbx
lea r8, [rsp + 0x28]
call fcn.0046b9f0
jmp 0x46c745
Function at 0x46d6f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, r8
xor r8d, r8d
mov edi, ecx
mov rbx, r9
call fcn.004805c0
mov rbp, qword [sym.imp.msvcrt.dll__errno]
test rax, rax
jns 0x46d72b
jmp 0x46d7b0
add rsi, rax
sub rbx, rax
test rbx, rbx
je 0x46d770
mov r8d, ebx
mov rdx, rsi
mov ecx, edi
call sub.msvcrt.dll__read_1
cdqe
test rax, rax
je 0x46d780
jg 0x46d720
call rbp
cmp dword [rax], 4
je 0x46d726
mov rax, qword [rsp + 0x70]
lea rcx, str.read
mov qword [rax], rcx
call rbp
mov rdi, qword [rsp + 0x78]
mov eax, dword [rax]
mov dword [rdi], eax
xor eax, eax
jmp 0x46d775
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
test rbx, rbx
je 0x46d770
mov rax, qword [rsp + 0x70]
lea rcx, str.file_too_short
mov qword [rax], rcx
mov rax, qword [rsp + 0x78]
mov dword [rax], 0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rax, qword [rsp + 0x70]
lea rdi, str.lseek
mov qword [rax], rdi
call qword [sym.imp.msvcrt.dll__errno]
mov rdi, qword [rsp + 0x78]
mov eax, dword [rax]
mov dword [rdi], eax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x47e690
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x005c9a04]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x47e818
mov rax, qword [0x005c9a08]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x47e6dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x47e765
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x47e6c0
mov rcx, rbx
call fcn.0047f330
test rax, rax
mov r12, rax
je 0x47e84d
mov rax, qword [0x005c9a08]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0047f460
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005c9a08]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x47e830
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x47e75e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x47e7c0
add dword [0x005c9a04], 1
cmp edi, 8
jae 0x47e793
test dil, 4
jne 0x47e804
test edi, edi
je 0x47e788
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x47e81f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x47e788
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x47e7ac
jmp 0x47e788
add rsi, qword [0x005c9a08]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x47e75e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00491a70
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x47e788
xor esi, esi
jmp 0x47e6e7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x47e788
mov rax, qword [0x005c9a08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00491a70
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00491a70
nop
nop dword [rax]

Function at 0x47efa0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x005c9ce0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005c9cc0]
test rbx, rbx
je 0x47eff4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x47efeb
test rsi, rsi
je 0x47efeb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x47efd0
lea rcx, [0x005c9ce0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x47f330
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x005b9070]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x47f39d
mov rcx, r8
call fcn.0047f210
test eax, eax
je 0x47f39d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x47f39d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x47f394
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x47f39f
add rax, 0x28
cmp rax, r9
jne 0x47f380
xor eax, eax
add rsp, 0x28
ret

Function at 0x47fee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x480070
cmp byte [rbx], 0
je 0x480031
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x480060
test al, 0x10
je 0x480031
lea rdi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
mov rbx, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rbx]
add rbx, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x47ff3e
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rbx + 2]
mov ecx, eax
cmove rbx, rdx
add cl, al
sbb rbx, 3
sub rbx, rdi
lea rcx, [rbx + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x480050
lea r9, [rax + 0x244]
mov rdx, rdi
lea rbp, [rbx + 1]
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rsi + 0x244], 0
mov r9, rax
jne 0x480010
add rbx, rax
mov eax, 0x2a
mov ecx, 0x20
lea rdx, [rsi + 0x130]
mov word [rbx], ax
xor eax, eax
mov qword [rsi + 0x238], 0xffffffffffffffff
mov rdi, rdx
mov dword [rsi + 0x240], 0
mov qword [rsi + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rsi
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx eax, byte [rsi + rbx + 0x243]
add rbx, r9
cmp al, 0x5c
je 0x47ffb5
cmp al, 0x2f
je 0x47ffb5
mov edx, 0x5c
mov word [rbx], dx
lea rbx, [r9 + rbp]
jmp 0x47ffb5
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 0x14
mov rax, rsi
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x47fff7
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 2
jmp 0x47fff7
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 0xe
jmp 0x47fff7

Function at 0x491a70
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.0048c230
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.0048c230
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1406919b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140691b37
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406919e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406919c7
add dl, dl
jne 0x1406919ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140691a4e
xor eax, eax
add dl, dl
jne 0x1406919fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140691b05
add dl, dl
jne 0x140691a0e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140691a1b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140691a28
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140691a35
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140691a42
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406919d6
mov eax, 1
add dl, dl
jne 0x140691a5e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140691a6b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140691a53
sub eax, ebx
mov ebx, 1
jne 0x140691aa4
mov ecx, 1
add dl, dl
jne 0x140691a86
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140691a93
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140691a7b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406919d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140691ac0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140691acd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140691ab5
cmp eax, 0x7d00
jae 0x140691af3
cmp eax, 0x500
jb 0x140691aee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406919d6
cmp eax, 0x7f
ja 0x140691af6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406919d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140691b2a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406919d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180010690
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x180010726
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x18001072d
mov r15, rsi
jmp 0x1800106eb
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.180053480
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x18001071e
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180010703
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x1800106c0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18001071e
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x1800106eb
sub rsi, r15
jmp 0x18001081a
xor esi, esi
jmp 0x18001081a
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180010780
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x180010780
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.180053480
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x180010791
jmp 0x180010817
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x180010817
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x1800107c0
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x1800107f3
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.180034a80
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x1800107c0
jmp 0x180010817
test r14, r14
je 0x180010814
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.180034a80
sub r14, rax
jmp 0x180010817
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x18001de20
Capabilities:
Get file size
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
cmp qword [rcx + 0x18], 8
jb 0x18001de36
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor ebx, ebx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x18001dee8
mov rsi, rax
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001def5
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov r9, rax
shr r9, 0x20
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
xor ebx, ebx
mov rcx, rsi
xor edx, edx
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test rax, rax
je 0x18001dedf
mov r14, rax
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov rcx, r14
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ebx, ebx
jmp 0x18001dedf

Function at 0x1800276c0
Capabilities:
Encode data using xor

Disassembly:
mov r8, qword [rcx + 0x10]
test r8, r8
je 0x1800277b8
cmp qword [rcx + 0x18], 0x10
jb 0x1800276d7
mov rcx, qword [rcx]
mov rax, r8
and rax, 3
je 0x180027727
xor r9d, r9d
nop word cs:[rax + rax]
movzx r10d, byte [rcx + r9]
add r10d, edx
mov r11d, r10d
shl r11d, 0xa
add r11d, r10d
mov edx, r11d
shr edx, 6
xor edx, r11d
inc r9
cmp rax, r9
jne 0x1800276f0
add rcx, r9
mov rax, r8
sub rax, r9
cmp r8, 4
jae 0x180027734
jmp 0x1800277b8
mov rax, r8
cmp r8, 4
jb 0x1800277b8
xor r8d, r8d
nop word [rax + rax]
movzx r9d, byte [rcx + r8]
add r9d, edx
mov edx, r9d
shl edx, 0xa
add edx, r9d
mov r9d, edx
shr r9d, 6
xor r9d, edx
movzx edx, byte [rcx + r8 + 1]
add edx, r9d
mov r9d, edx
shl r9d, 0xa
add r9d, edx
mov edx, r9d
shr edx, 6
xor edx, r9d
movzx r9d, byte [rcx + r8 + 2]
add r9d, edx
mov edx, r9d
shl edx, 0xa
add edx, r9d
mov r9d, edx
shr r9d, 6
xor r9d, edx
movzx edx, byte [rcx + r8 + 3]
add edx, r9d
mov r9d, edx
shl r9d, 0xa
add r9d, edx
mov edx, r9d
shr edx, 6
xor edx, r9d
add r8, 4
cmp rax, r8
jne 0x180027740
lea eax, [rdx + rdx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov eax, ecx
shl eax, 0xf
add eax, ecx
ret
Function at 0x180028390
Capabilities:
Encode data using base64

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
lea rax, [r8 + 2]
movabs rcx, 0xaaaaaaaaaaaaaaab
mul rcx
mov r15, rdx
add r15, rdx
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
and r15, 0xfffffffffffffffc
js 0x1800285fb
mov ebx, r9d
mov r14, r8
cmp r15, 0xf
ja 0x180028505
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov rcx, rsi
xor edx, edx
mov r8, r15
call fcn.180053b20
add r15, rsi
mov r12, r15
mov byte [r12], 0
cmp qword [rsi + 0x18], 0x10
mov rax, rsi
jb 0x18002841f
mov rax, qword [rsi]
mov rcx, qword [rbp + 0x70]
cmp r14, 3
jb 0x18002853e
lea r8, [r14 - 2]
xor edx, edx
nop word cs:[rax + rax]
movzx r9d, byte [rdi + rdx]
shr r9d, 2
movzx r9d, byte [rcx + r9]
mov byte [rax], r9b
movzx r9d, byte [rdi + rdx]
shl r9d, 4
and r9d, 0x30
movzx r10d, byte [rdi + rdx + 1]
shr r10d, 4
or r10d, r9d
movzx r9d, byte [rcx + r10]
mov byte [rax + 1], r9b
movzx r9d, byte [rdi + rdx + 1]
and r9d, 0xf
movzx r10d, byte [rdi + rdx + 2]
shr r10d, 6
lea r9d, [r10 + r9*4]
movzx r9d, byte [rcx + r9]
mov byte [rax + 2], r9b
movzx r9d, byte [rdi + rdx + 2]
and r9d, 0x3f
movzx r9d, byte [rcx + r9]
mov byte [rax + 3], r9b
add rax, 4
add rdx, 3
cmp rdx, r8
jb 0x180028440
cmp rdx, r14
jae 0x180028549
movzx r8d, byte [rdi + rdx]
shr r8d, 2
movzx r8d, byte [rcx + r8]
mov byte [rax], r8b
dec r14
movzx r8d, byte [rdi + rdx]
shl r8d, 4
and r8d, 0x30
cmp rdx, r14
jne 0x180028591
movzx ecx, byte [rcx + r8]
mov byte [rax + 1], cl
test bl, bl
je 0x1800285c4
mov byte [rax + 2], 0x3d
mov byte [rax + 3], 0x3d
jmp 0x1800285e7
mov rax, r15
or rax, 0xf
cmp rax, 0x17
mov r13d, 0x16
cmovae r13, rax
cmp r13, 0xfff
jb 0x180028552
lea rcx, [r13 + 0x28]
call fcn.18002aa38
mov r12, rax
add r12, 0x27
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
jmp 0x18002855e
xor edx, edx
cmp rdx, r14
jb 0x1800284be
test bl, bl
je 0x1800285c4
jmp 0x1800285e7
lea rcx, [r13 + 1]
call fcn.18002aa38
mov r12, rax
mov qword [rsi], r12
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r13
mov rcx, r12
xor edx, edx
mov r8, r15
call fcn.180053b20
add r12, r15
mov byte [r12], 0
cmp qword [rsi + 0x18], 0x10
mov rax, rsi
jae 0x18002841c
jmp 0x18002841f
movzx r9d, byte [rdx + rdi + 1]
shr r9d, 4
movzx r8d, r8b
or r8, r9
movzx r8d, byte [rcx + r8]
mov byte [rax + 1], r8b
movzx edx, byte [rdx + rdi + 1]
and edx, 0xf
movzx ecx, byte [rcx + rdx*4]
mov byte [rax + 2], cl
test bl, bl
je 0x1800285c4
mov byte [rax + 3], 0x3d
jmp 0x1800285e7
cmp qword [rsi + 0x18], 0x10
mov rdi, rsi
jb 0x1800285d1
mov rdi, qword [rsi]
mov rcx, rdi
call fcn.180033660
cmp qword [rsi + 0x10], rax
jb 0x180028600
mov qword [rsi + 0x10], rax
mov byte [rdi + rax], 0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.180006010
call fcn.18000dda0
int3