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

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x18004d9c0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x180028b38
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x180028b96
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x180028bc3
test eax, eax
js 0x180028ba2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x180028bb9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.180024030
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.18001f280
mov ecx, 7
int 0x29
ud2

Function at 0x180029600
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x180071be1]
mov ecx, 0x10
mov edx, 8
call fcn.180002f30
test rax, rax
je 0x1800296eb
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1800297a0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1800296dd
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
test rax, rax
je 0x18002969a
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800296b4
mov r8, qword [rax + 0x10]
call fcn.180002f40
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x20]
call fcn.180002f40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.180040a40
ud2
Function at 0x18003ab90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x18003ac1a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x18003ac10
cmp r11, r10
ja 0x18003ac96
cmp r10, rdx
ja 0x18003aca8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x18003ac12
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x18003abf0
jmp 0x18003ac77
ja 0x18003ac1a
mov r11, r10
cmp rax, r8
jne 0x18003abb7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x18003ac7b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x18003ac50
mov r8, r10
sub ecx, r9d
jns 0x18003ac6e
jmp 0x18003ac7d
cmp r10, rdx
je 0x18003ac8a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x18003ac7d
xor al, 1
cmp r8, rdx
jne 0x18003ac30
jmp 0x18003ac7d
xor eax, eax
jmp 0x18003ac7d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.180040ad0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.180041070
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.180041000
int3
Function at 0x180001f24
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13b0
call fcn.18005c240
sub rsp, rax
mov rbx, rcx
xor ecx, ecx
call fcn.18006ba80
or dword [rsp + 0x13a4], 0xffffffff
mov r8d, 1
mov edx, r8d
mov dword [rsp + 0x24], eax
mov r9d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, edx
mov dword [rsp + rdx*4 + 0x24], ecx
mov eax, ecx
add rdx, r8
cmp rdx, r9
jb 0x180001f58
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r9d
lea rcx, [rsp + 0x13c0]
mov dword [rsp + 0x13c0], r8d
mov dword [rsp + 0x13c4], 6
call fcn.18000e1e0
mov dword [rbx + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, dword [rbx + 0x30]
sub edx, 1
je 0x180002052
sub edx, 1
je 0x180002038
sub edx, 1
je 0x18000201b
sub edx, 1
je 0x180002001
sub edx, 1
je 0x180001fe4
cmp edx, 1
jne 0x18000206c
mov ecx, 0x21f0
call fcn.18005bc3c
mov qword [rbx + 0x28], rax
jmp 0x18000206c
xor ecx, ecx
mov edx, 0x21f0
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x20], rax
jmp 0x18000206c
mov edx, 8
mov r8d, 0x21f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x18], rax
jmp 0x18000206c
xor ecx, ecx
mov edx, 0x21f0
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x10], rax
jmp 0x18000206c
mov edx, 8
mov r8d, 0x21f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], rax
jmp 0x18000206c
xor ecx, ecx
mov edx, 0x21f0
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx], rax
mov rax, rbx
add rsp, 0x13b0
pop rbx
ret
Function at 0x180002114
Capabilities:
Hide graphical window

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
xor edx, edx
mov rbx, rcx
lea rcx, [rbp + 7]
lea r8d, [rdx + 0x48]
call fcn.180083f80
lea rax, [0x180002318]
mov qword [rbp + 0x1f], rbx
lea rdi, str.BrainStorm
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 7]
mov qword [rbp + 0x47], rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
and qword [rsp + 0x58], 0
lea r8, str.Brain_Storm
mov qword [rsp + 0x50], rbx
mov eax, 0xf0
and qword [rsp + 0x48], 0
mov r9d, 0xcf0000
and qword [rsp + 0x40], 0
mov rdx, rdi
mov dword [rsp + 0x38], eax
xor ecx, ecx
mov dword [rsp + 0x30], eax
mov eax, 0x80000000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x180106d18], rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x180106d18]
call qword [sym.imp.USER32.dll_UpdateWindow]
lea r13, [0x180106cd0]
mov ecx, 1
mov rax, r13
lea r8, [0x180106d10]
mov edx, 4
mov dword [rax], ecx
inc ecx
add rax, 4
sub rdx, 1
jne 0x1800021ef
cmp rax, r8
jl 0x1800021ea
and dword [0x180106d0c], edx
xor ecx, ecx
mov dword [0x180106d38], 3
mov dword [0x180106cc8], 3
call fcn.18006ba80
mov rcx, rax
call fcn.18006a258
mov esi, 0x3e8
mov ebx, dword [0x180106d38]
mov edi, dword [0x180106cc8]
call fcn.18006a22c
and eax, 0x80000003
jge 0x18000224f
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x18000226e
sub eax, 1
je 0x18000226a
sub eax, 1
je 0x180002266
cmp eax, 1
jne 0x180002270
inc ebx
jmp 0x180002270
dec ebx
jmp 0x180002270
inc edi
jmp 0x180002270
dec edi
cmp ebx, 3
ja 0x1800022b6
cmp edi, 3
ja 0x1800022b6
movsxd rcx, dword [0x180106d38]
movsxd rax, dword [0x180106cc8]
mov dword [0x180106d38], ebx
mov dword [0x180106cc8], edi
lea r8, [rax + rcx*4]
movsxd rcx, ebx
movsxd rax, edi
lea rdx, [rax + rcx*4]
mov eax, dword [r13 + r8*4]
mov ecx, dword [r13 + rdx*4]
mov dword [r13 + rdx*4], eax
mov dword [r13 + r8*4], ecx
sub rsi, 1
jne 0x180002230
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
jmp 0x1800022e5
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1800022d1
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r13, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
add rsp, 0x28
jmp 0x180002114
Function at 0x180006574
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor edx, edx
mov rdi, rcx
lea rcx, [rbp + 7]
lea r8d, [rdx + 0x48]
call fcn.180083f80
mov rax, qword [sym.imp.USER32.dll_DefWindowProcW]
lea rbx, str.ConvClass
lea rcx, [rbp + 7]
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x47], rbx
call qword [sym.imp.USER32.dll_RegisterClassA]
and qword [rsp + 0x58], 0
lea r8, str.Currency_Converter
mov qword [rsp + 0x50], rdi
mov eax, 0x80000000
and qword [rsp + 0x48], 0
mov r9d, 0xcf0000
and qword [rsp + 0x40], 0
mov rdx, rbx
mov dword [rsp + 0x38], 0x12c
xor ecx, ecx
mov dword [rsp + 0x30], 0x190
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
and qword [rsp + 0x58], 0
lea r8, [0x1800933e5]
mov qword [rsp + 0x50], rdi
lea rdx, str.EDIT
and qword [rsp + 0x48], 0
mov r9d, 0x50802000
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov dword [rsp + 0x38], 0x1e
mov rbx, rax
mov dword [rsp + 0x30], 0x64
mov dword [rsp + 0x28], 0x32
mov dword [rsp + 0x20], 0x32
call qword [sym.imp.USER32.dll_CreateWindowExA]
and qword [rsp + 0x58], 0
lea r8, str.Convert_to_Euro
mov qword [rsp + 0x50], rdi
lea rdx, str.BUTTON
and qword [rsp + 0x48], 0
mov r9d, 0x50000001
mov qword [rsp + 0x40], rbx
xor ecx, ecx
mov dword [rsp + 0x38], 0x1e
mov dword [rsp + 0x30], 0x96
mov dword [rsp + 0x28], 0x32
mov dword [rsp + 0x20], 0xa0
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
and qword [rsp + 0x58], 0
lea r8, [0x1800933e5]
mov qword [rsp + 0x50], rdi
lea rdx, str.EDIT
and qword [rsp + 0x48], 0
mov r9d, 0x50800804
mov qword [rsp + 0x40], rbx
xor ecx, ecx
mov dword [rsp + 0x38], 0x96
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x32
call qword [sym.imp.USER32.dll_CreateWindowExA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
jmp 0x180006742
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x18000672e
mov eax, dword [rbp - 0x19]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
add rsp, 0x28
jmp 0x180006574
Function at 0x1800070f4
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
lea rcx, [rbp + 7]
mov rbx, rax
lea r8d, [rdx + 0x48]
call fcn.180083f80
lea rax, [0x180004d18]
mov qword [rbp + 0x1f], rbx
lea rdi, str.BritishFlag
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 7]
mov qword [rbp + 0x47], rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
and qword [rsp + 0x58], 0
lea r8, str.British_Flag
mov qword [rsp + 0x50], rbx
mov eax, 0x80000000
and qword [rsp + 0x48], 0
mov r9d, 0xcf0000
and qword [rsp + 0x40], 0
mov rdx, rdi
mov dword [rsp + 0x38], 0xc8
xor ecx, ecx
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x180106d50], rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x180106d50]
call qword [sym.imp.USER32.dll_UpdateWindow]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
jmp 0x1800071dc
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1800071c8
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180009db8
Capabilities:
Delete file
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
xor edi, edi
mov ebx, edx
test edx, edx
je 0x180009dd7
mov eax, 0xf9e1c6dd
mov dword [0x180106cc4], eax
jmp 0x180009ddd
mov eax, dword [0x180106cc4]
cmp eax, 0xf0810c0b
jne 0x180009f4c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_TransmitCommChar]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_DdeInitializeW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumPropsExW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ShowWindowAsync]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_QueryMemoryResourceNotification]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_UnregisterPointerInputTargetEx]
mov qword [rsp + 0x40], rdi
lea r8, str.BHXdiTaAHBx9RdY9YMwJY
mov qword [rsp + 0x38], rdi
lea rcx, str.CHWTFR9nWq6HP4k6
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_LCMapStringEx]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ClipCursor]
xor ecx, ecx
call qword [sym.imp.USER32.dll_SwitchDesktop]
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor r8d, r8d
lea rdx, str.JrkY5db835BBJHqP65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetStringScripts]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
lock add dword [rdi], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteFileTransactedW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetMenuInfo]
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetTapeParameters]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ShowOwnedPopups]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetRawInputDeviceList]
cmp ebx, 1
jne 0x180009f7e
mov ecx, 0x17a
lea rax, [0x180009934]
mov dword [rsp + 0x58], ecx
add rax, rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
call fcn.18000e688
mov rbx, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x60
pop rdi
ret
Function at 0x180016734
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 0x18001679f
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 0x180016762
mov ecx, dword [r9]
jmp 0x18001686d
cmp ecx, 0x4e0
jb 0x18001686d
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 0x1800167c5
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 0x180016806
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 0x18006f89c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18006f8b2
mov al, 1
jmp 0x18006f912
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18006f8c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18006f910
mov ecx, dword [rcx + 0x18]
nop
call fcn.18007a7b4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18006f910
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18006f910
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18006f910
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18006f912
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800752bc
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.18005c240
sub rsp, rax
mov rax, qword [0x1800a80c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18006f77c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18007530b
mov rax, rbp
jmp 0x180075413
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 + 0x106550]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180076cdc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x106550]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18007540f
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 0x18007540f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180076cdc
test rax, rax
js 0x18007540f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18007540f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180075401
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180075401
cmp byte [rcx], 0xd
jne 0x1800753e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800753f6
cmp byte [rcx + 1], 0xa
jne 0x1800753f6
inc rcx
jmp 0x1800753f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa84d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800753c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180075413
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005c060
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 0x18007607c
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, [0x180106550]
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 0x1800760d3
cmp word [rdx], r13w
jne 0x1800760d3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800760d8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800761fd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18007621e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180076111
mov rdx, r9
mov word [rbx], cx
jmp 0x180076138
cmp r9, r8
jae 0x180076148
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 0x1800760f2
jmp 0x1800761fd
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 0x1800761f2
cmp dword [rsp + 0x80], esi
je 0x1800761f2
lea r8, [0x180106550]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800761ca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18007619a
mov word [rbx], r13w
jmp 0x1800761fa
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 0x1800761a7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800761fa
cmp word [rsp + 0x70], r13w
jne 0x1800761d7
cmp rbx, r14
je 0x180076194
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180076ce4
cmp word [rsp + 0x70], r13w
je 0x1800761fd
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, [0x180106550]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800761f7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800761fd