joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015580
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14007a040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r9d
mov rbx, rdx
test r8b, r8b
jne 0x140015672
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140012280
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.140012280
mov dword [rsp + 0xa0], edi
mov ecx, 0x48
call fcn.1400354e4
mov rbx, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140012280
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.140012280
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14001ab80]
xor edx, edx
xor ecx, ecx
call fcn.1400408f8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400156b5
lea rcx, [rsp + 0x60]
call fcn.1400156e0
cmp dword [rsp + 0x38], 0
je 0x1400156c8
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140034c14
test eax, eax
jne 0x1400156c8
jmp 0x140015694
cmp qword [rdx + 0x18], 7
jbe 0x14001567c
mov rbx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x140015686
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140035490
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.140034b78
nop
mov ecx, 1
call fcn.140034b78
int3

Function at 0x1400157a0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14007a040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140015810
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002950
mov dword [rsp + 0x30], 1
mov r8d, SafeArrayDestroy
lea rdx, [0x14006d8c0]
mov rcx, rbx
call fcn.1400034f0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140035490
add rsp, 0x260
pop rbx
ret
Function at 0x140019210
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140019254
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140019240
ret
Function at 0x14001e330
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14001e413
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001e413
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14001e431
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001e403
cmp word [rax], 0x5c
jne 0x14001e3fc
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14001e3fc
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001e3e7
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14001e3f9
test r8b, 0x10
jne 0x14001e3fc
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14001e3fc
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001a510
test edi, edi
jne 0x14001e360
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14001a500
int3
Function at 0x14002a700
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x14007a040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor esi, esi
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0xe0]
test rcx, rcx
je 0x14002a74c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbx + 0xa0]
xor edx, edx
mov ecx, 0xc3a
call qword [0x14007d1e0]
mov qword [rbx + 0xe0], rax
lea rcx, [rbx + 0x60]
call fcn.140032290
mov dword [rbp - 0x29], esi
mov dword [rbp - 0x39], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14002a7eb
lea rdx, [rbp - 0x39]
mov rcx, qword [rbx + 0xe0]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14002a7eb
mov eax, dword [rbp - 0x39]
cmp dword [rbp - 0x29], eax
je 0x14002a7eb
lea r8, [0x14007d400]
cmp qword [0x14007d418], 7
cmova r8, qword [0x14007d400]
lea rdx, [0x14007d640]
cmp qword [0x14007d658], 7
cmova rdx, qword [0x14007d640]
xor ecx, ecx
lea r9d, [rcx + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x14002a8aa
cmp qword [rbx + 0xe0], rsi
jne 0x14002a8a8
lea rdx, [0x14007d5e0]
lea rcx, [rbp - 9]
call fcn.140012280
lea rdx, [0x14007d400]
lea rcx, [rbp + 0x17]
call fcn.140012280
mov dword [rbp + 0x37], 0x10
mov ecx, 0x48
call fcn.1400354e4
mov rbx, rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 9]
mov rcx, rax
call fcn.140012280
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x17]
call fcn.140012280
mov ecx, dword [rbp + 0x37]
mov dword [rbx + 0x40], ecx
mov qword [rbp - 0x29], rbx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x14001ab80]
xor edx, edx
xor ecx, ecx
call fcn.1400408f8
mov qword [rbp - 0x19], rax
test rax, rax
je 0x14002a8cf
lea rcx, [rbp - 9]
call fcn.1400156e0
cmp dword [rbp - 0x11], 0
je 0x14002a8dd
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x29]
call fcn.140034c14
test eax, eax
jne 0x14002a8dd
jmp 0x14002a8aa
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140035490
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dword [rbp - 0x11], esi
mov ecx, 6
call fcn.140034b78
nop
mov ecx, 1
call fcn.140034b78
int3
Function at 0x140032710
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14007a040]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x14007d1f8]
mov rbx, rax
test rax, rax
jne 0x14003289d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14002b0f0
nop
lea r8, [0x14007d620]
cmp qword [0x14007d638], 7
cmova r8, qword [0x14007d620]
mov r9, qword [0x14007d630]
mov rcx, rax
call fcn.140006d00
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x14007d400]
cmp qword [0x14007d418], 7
cmova r8, qword [0x14007d400]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140032845
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032840
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400328e6
call fcn.1400354b0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x140032899
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032894
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400328e0
call fcn.1400354b0
xor al, al
jmp 0x1400328bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140035490
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14003c3ac
nop
call fcn.14003c3ac
nop
int3
Function at 0x1400328f0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14007a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
lea r14, [r15 - 1]
cmp qword [rdx + 0x10], r15
jne 0x140032946
lea r8, [rcx + 0x60]
cmp rdx, r8
je 0x140032946
mov rdx, r8
cmp qword [r8 + 0x18], 7
jbe 0x14003293a
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, rdi
call fcn.1400023a0
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140032953
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140032a11
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14003296f
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, r14
je 0x140032a11
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140032a07
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140035760
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140057e00
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400329ff
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.1400354b0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140032a4c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140032a47
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140032a80
mov rcx, r8
call fcn.1400354b0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140035490
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14003c3ac
int3
Function at 0x14003628c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400362d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400362d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400362d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400362d6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400362d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400362d8
xor al, al
add rsp, 0x28
ret

Function at 0x14004046c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400402ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400402ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400402ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400402ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400402ff
cmp dword [rcx + 0x84], 0xe
jbe 0x1400402ff
cmp dword [rcx + 0xf8], 0
je 0x1400402ff
mov ecx, ebx
call fcn.1400403a0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140040190
cmp dword [rbp + 0x20], 0
je 0x14004034c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140040354
int3
xor r8d, r8d
xor edx, edx
jmp 0x140040298
Function at 0x140057a80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140057aa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140057aa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800025bc
Capabilities:
Capture screenshot
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r13, rcx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r15, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
mov rcx, r15
mov eax, 0x12c
mov r8d, eax
mov edx, eax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, r14
mov r12, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rbp + 0x7f], rax
xor edi, edi
lea rsi, [0x1800f5ac0]
mov ecx, dword [rsi]
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
and dword [rbp - 0x19], 0
lea rdx, [rbp - 0x19]
mov dword [rbp - 0x15], edi
mov r8, rax
add edi, 0x32
mov dword [rbp - 0x11], 0x12c
mov rcx, r14
mov dword [rbp - 0xd], edi
mov rbx, rax
call qword [sym.imp.USER32.dll_FillRect]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, 0x12c
lea rsi, [rsi + 4]
cmp edi, ebx
jl 0x180002624
xor eax, eax
mov dword [rbp - 9], 0x28
mov edx, 0x41eb0
mov dword [rbp - 5], ebx
mov dword [rbp - 1], ebx
mov qword [rbp + 3], 0x180001
lea ecx, [rax + 0x42]
mov qword [rbp + 0xb], rax
mov qword [rbp + 0x13], rax
mov dword [rbp + 0x1b], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
and dword [rsp + 0x30], 0
mov r9d, ebx
mov rdi, rax
xor r8d, r8d
lea rax, [rbp - 9]
mov rdx, r12
mov qword [rsp + 0x28], rax
mov rcx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.GDI32.dll_GetDIBits]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x6f]
xor r8d, r8d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
and dword [rbp + 0x77], 0
lea r9, [rbp + 0x77]
and qword [rsp + 0x20], 0
lea rdx, [rbp - 0x29]
mov rbx, rax
mov dword [rbp - 0x1f], 0x36
mov eax, 0x4d42
mov dword [rbp - 0x27], 0x41ee6
mov rcx, rbx
mov word [rbp - 0x29], ax
mov r8d, 0xe
call qword [sym.imp.KERNEL32.dll_WriteFile]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x77]
mov r8d, 0x28
lea rdx, [rbp - 9]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x77]
mov r8d, 0x41eb0
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x7f]
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r15
mov rcx, r13
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180017618
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [rcx]
mov ebx, 0x270
mov ecx, dword [r9]
cmp ecx, ebx
jne 0x180017683
lea r8, [r9 + 8]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x180017646
mov ecx, dword [r9]
jmp 0x180017751
cmp ecx, 0x4e0
jb 0x180017751
lea rbx, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [rbx]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx + 0x630]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x1800176a9
lea rbx, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [rbx]
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx - 0xd50]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x1800176ea
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0x18006273c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180062752
mov al, 1
jmp 0x1800627b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180062763
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800627b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.18006ce5c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800627b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800627b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800627b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800627b2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180068008
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180050ca0
sub rsp, rax
mov rax, qword [0x180077080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18006261c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180068057
mov rax, rbp
jmp 0x18006815f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xdebd0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180068f54
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xdebd0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18006815b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006815b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180068f54
test rax, rax
js 0x18006815b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18006815b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18006814d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18006814d
cmp byte [rcx], 0xd
jne 0x180068133
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180068142
cmp byte [rcx + 1], 0xa
jne 0x180068142
inc rcx
jmp 0x180068142
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x774b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180068115
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18006815f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180050ac0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800682f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800debd0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18006834b
cmp word [rdx], r13w
jne 0x18006834b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180068350
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180068475
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180068496
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180068389
mov rdx, r9
mov word [rbx], cx
jmp 0x1800683b0
cmp r9, r8
jae 0x1800683c0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18006836a
jmp 0x180068475
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006846a
cmp dword [rsp + 0x80], esi
je 0x18006846a
lea r8, [0x1800debd0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180068442
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180068412
mov word [rbx], r13w
jmp 0x180068472
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18006841f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180068472
cmp word [rsp + 0x70], r13w
jne 0x18006844f
cmp rbx, r14
je 0x18006840c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180068f5c
cmp word [rsp + 0x70], r13w
je 0x180068475
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800debd0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18006846f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180068475