joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402028
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401eec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401f75
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401ed0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40205d
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402040
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401f6e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401fd0
add dword [0x00408624], 1
cmp edi, 8
jae 0x401fa3
test dil, 4
jne 0x402014
test edi, edi
je 0x401f98
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40202f
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 0x401f98
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 0x401fbc
jmp 0x401f98
add rsi, qword [0x00408628]
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 0x401f6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401f98
xor esi, esi
jmp 0x401ef7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401f98
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4027b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402804
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 0x4027fb
test rsi, rsi
je 0x4027fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4027e0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402a40
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402a50
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402a60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402aa1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402a98
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402aa3
add rax, 0x28
cmp rax, r9
jne 0x402a84
xor eax, eax
ret

Function at 0x402b40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004054e0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402bad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402bad
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 0x402bad
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 0x402ba4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402baf
add rax, 0x28
cmp rax, r9
jne 0x402b90
xor eax, eax
add rsp, 0x28
ret

Function at 0x402cb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004054e0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402cd0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402cc8
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 0x402d2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402d24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402d34
add rax, 0x28
cmp rax, r9
jne 0x402d10
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402d50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004054e0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402dbe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402dbe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402dbe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402dbe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402db5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402dc5
add rcx, 0x28
cmp rcx, rax
jne 0x402da0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402dd8
jmp 0x402dbe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402de6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402dbe
test r9d, r9d
jg 0x402dd0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403060
Capabilities:
Write file on windows

Disassembly:
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001123f
Capabilities:
Terminate process

Disassembly:
jmp 0x140013ea0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112d5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x1400126b0
push rbp
push rsi
push rdi
sub rsp, 0x2d0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0x2a8], rax
lea rcx, [0x1400250f3]
call fcn.1400113e8
call fcn.1400113c5
lea rax, [rbp + 0x10]
lea rcx, [0x14001c060]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x118
rep movsb byte [rdi], byte [rsi]
mov byte [rbp + 0x168], 0x56
mov byte [rbp + 0x169], 0x69
mov byte [rbp + 0x16a], 0x72
mov byte [rbp + 0x16b], 0x74
mov byte [rbp + 0x16c], 0x75
mov byte [rbp + 0x16d], 0x61
mov byte [rbp + 0x16e], 0x6c
mov byte [rbp + 0x16f], 0x41
mov byte [rbp + 0x170], 0x6c
mov byte [rbp + 0x171], 0x6c
mov byte [rbp + 0x172], 0x6f
mov byte [rbp + 0x173], 0x63
mov byte [rbp + 0x174], 0
lea rax, [rbp + 0x198]
lea rcx, str.kernel32.dll
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1a
rep movsb byte [rdi], byte [rsi]
lea rcx, [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rbp + 0x168]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x148], rax
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x118
xor ecx, ecx
call qword [rbp + 0x148]
mov qword [rbp + 0x1d8], rax
mov r8d, 0x118
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x1d8]
call fcn.140011203
call qword [rbp + 0x1d8]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bf80]
call fcn.140011370
mov eax, edi
mov rcx, qword [rbp + 0x2a8]
xor rcx, rbp
call fcn.1400111fe
lea rsp, [rbp + 0x2b0]
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400112df
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400151f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015210
xor al, al
jmp 0x140015291
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015223
xor al, al
jmp 0x140015291
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001524d
xor al, al
jmp 0x140015291
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015261
xor al, al
jmp 0x140015291
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015273
xor al, al
jmp 0x140015291
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001528f
xor al, al
jmp 0x140015291
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113c5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x1400121e0
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x1400250f3]
call fcn.1400113e8
mov byte [rbp + 4], 0x48
mov byte [rbp + 5], 0x33
mov byte [rbp + 6], 0xc0
mov byte [rbp + 7], 0xc3
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0x68], rax
mov byte [rbp + 0x88], 0x45
mov byte [rbp + 0x89], 0x74
mov byte [rbp + 0x8a], 0x77
mov byte [rbp + 0x8b], 0x45
mov byte [rbp + 0x8c], 0x76
mov byte [rbp + 0x8d], 0x65
mov byte [rbp + 0x8e], 0x6e
mov byte [rbp + 0x8f], 0x74
mov byte [rbp + 0x90], 0x57
mov byte [rbp + 0x91], 0x72
mov byte [rbp + 0x92], 0x69
mov byte [rbp + 0x93], 0x74
mov byte [rbp + 0x94], 0x65
mov byte [rbp + 0x95], 0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rbp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xb8], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1400122f2
lea rdx, str.error
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
jmp 0x14001230d
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
lea rcx, str.NTDLL.DLL_START_ADDRESS:__08x
call fcn.1400111e5
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtProtectVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x140012343
lea rdx, str.error
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
jmp 0x14001236e
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtProtectVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
lea rcx, str._nNtProtectVirtualMemory_ADDRESS:__08x
call fcn.1400111e5
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtProtectVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd8]
mov qword [0x14001f170], rax
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0xb8]
mov rcx, qword [rbp + 0x68]
call qword [0x14001f170]
mov r8d, 4
lea rdx, [rbp + 4]
mov rcx, qword [rbp + 0xb8]
call fcn.140011203
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x24]
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0xb8]
mov rcx, qword [rbp + 0x68]
call qword [0x14001f170]
mov r8, qword [rbp + 0x48]
mov rdx, qword [rbp + 0xb8]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea rcx, [rbp - 0x30]
lea rdx, [0x14001bdb0]
call fcn.140011370
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.1400111fe
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x180034770
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
lea ebp, [r9 - 7]
mov r14, r8
cmp r9d, ebp
jbe case.0x1800347d6.2
mov r12d, dword [rsp + 0xd8]
lea edi, [r9 - 0x6e]
movzx r15d, byte [rsp + 0xd8]
lea r13, [0x180000000]
mov esi, dword [rsp + 0xd8]
cmp edi, 7
ja case.0x1800347d6.1
mov ecx, dword [r13 + rdi*4 + 0x3492c]
add rcx, r13
jmp rcx
lea r9, [rsp + 0x30]
mov r8d, r12d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call sub.ADVAPI32.dll_LsaOpenPolicy
cmp qword [rsp + 0x30], 0
jne 0x1800347ff
xor r15b, r15b
jmp case.0x1800347d6.1
test r15b, r15b
je case.0x1800347d6.1
mov ebx, 0x13
nop dword [rax]
cmp ebx, 0x13
je 0x180034851
cmp ebx, 0xbf
je 0x180034831
cmp ebx, 0x16b
jne 0x180034871
mov rcx, qword [rsp + 0x30]
call sub.ADVAPI32.dll_LsaClose
jmp 0x180034871
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180034840
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180034871
call sub.ADVAPI32.dll_LsaFreeMemory
jmp 0x180034871
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov edx, esi
call sub.ADVAPI32.dll_LsaLookupNames
add ebx, 0xac
cmp ebx, 0x217
jb 0x180034810
jmp case.0x1800347d6.1
xor r12d, r12d
mov qword [rsp + 0x30], r12
jmp case.0x1800347d6.1
cmp qword [r14 + 0x10], 4
mov dword [rsp + 0x58], 0x30
jae case.0x1800347d6.1
mov byte [rsp + 0xd8], 0
mov eax, dword [rsp + 0xd8]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xorps xmm1, xmm1
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov r15b, 1
mov esi, 1
movups xmmword [rsp + 0x58], xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
jmp case.0x1800347d6.1
cmp qword [r14 + 0x18], 0x10
mov rax, r14
jb 0x1800348fe
mov rax, qword [r14]
cmp dword [rax], 0xffffffff
sete byte [rsp + 0xd8]
dec edi
lea eax, [rdi + 0x6e]
cmp eax, ebp
ja 0x1800347c2
jmp case.0x1800347d6.2
cmp dword [r14], 0xbab107
jne 0x180034927
mov eax, dword [r14 + 0x58]
jmp 0x1800348ac
xor eax, eax
jmp 0x1800348ac
Function at 0x180034950
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
imul ebp, r8d, 0x1a9
mov r15, r9
mov esi, r8d
mov rdi, rcx
mov ebx, r8d
cmp r8d, ebp
ja 0x180034ab4
mov r12, qword [rsp + 0xa0]
xor r13d, r13d
mov r14, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x38]
cmp ebx, 0x23
je 0x180034a49
cmp ebx, 0x41
je 0x180034a20
cmp ebx, 0xd0
je 0x1800349f3
cmp ebx, 0x45e0
je 0x1800349cc
cmp ebx, 0x8af0
je 0x180034ab4
jmp 0x180034a05
mov rax, qword [rdi]
cmp rdx, rax
jne 0x180034a13
mov ecx, dword [r12]
mov r8d, eax
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
movsxd rdx, eax
cmp rdx, qword [rdi]
jne 0x180034a13
mov dword [rsp + 0x30], r13d
jmp 0x180034a05
mov r8d, dword [rdi]
mov rdx, r14
mov ecx, dword [r15]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rdx, eax
imul eax, esi, 0x55
add ebx, eax
cmp ebx, ebp
jbe 0x1800349a0
jmp 0x180034ab4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [rax]
jmp 0x180034ab8
xor r8d, r8d
mov dword [rsp + 0x80], r13d
lea rax, [rsp + 0x80]
mov r9, r12
mov rdx, r15
mov qword [rsp + 0x20], rax
lea ecx, [r8 + 0x76]
call fcn.18006c8c0
jmp 0x180034ab8
xor r9d, r9d
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x38]
mov rdx, r12
mov ecx, 0xd3
call fcn.180037a20
test al, al
jne 0x180034a6e
mov byte [rsp + 0x30], r13b
jmp 0x180034ab4
mov rax, qword [rsp + 0x90]
lea r9, [rsp + 0x80]
mov r8d, 0x3b
mov rdx, r15
movzx ecx, word [rax]
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x38]
mov word [rsp + 0x80], cx
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call fcn.18004b6a0
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180048900
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov esi, dword [rsp + 0xc0]
mov r12, r9
mov ebx, dword [rsp + 0xc0]
mov r14, rcx
lea r13d, [rsi + 0x57c]
cmp esi, r13d
jae 0x180048a42
mov ebp, dword [rsp + 0xc0]
nop dword [rax]
cmp esi, 0x18f
ja 0x180048a96
je 0x180048a8a
cmp esi, 0x11a
ja 0x180048a30
je 0x180048a25
mov eax, esi
sub eax, 0x30
je 0x1800489e8
sub eax, 0x75
je 0x1800489dc
cmp eax, 0x6e
jne 0x180048b6c
mov eax, dword [r8]
lea r9, [rsp + 0xc0]
mov dword [rsp + 0xc0], eax
lea r8, [rsp + 0x40]
mov eax, dword [r14]
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x40], eax
mov rax, qword [r12]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x10b
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 0x7f2bb708
call fcn.1800883c0
mov rbx, rax
jmp 0x180048b5c
mov eax, ebp
sar eax, 0xb
xor ebp, eax
jmp 0x180048b6c
movzx eax, byte [r14]
xor ecx, ecx
test al, al
je 0x180048a1d
nop dword [rax]
nop word [rax + rax]
movsx eax, al
inc r14
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
sar eax, 6
xor ecx, eax
movzx eax, byte [r14]
test al, al
jne 0x180048a00
lea ebp, [rcx + rcx*8]
jmp 0x180048b6c
imul ebp, ebp, 0x8001
jmp 0x180048b6c
mov eax, esi
sub eax, 0x124
je 0x180048a5c
cmp eax, 0x64
jne 0x180048b6c
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r9, [rsp + 0xc0]
mov dword [rsp + 0xc0], 8
mov r8d, 0x28
lea rdx, [rsp + 0x48]
xor ecx, ecx
call fcn.1800a5750
test eax, eax
jne 0x180048a44
jmp 0x180048b5c
mov ebx, dword [r12 + 0x10]
and ebx, ebp
jmp 0x180048b6c
mov eax, esi
sub eax, 0x199
je 0x180048ad1
sub eax, 0x6b
je 0x180048a42
sub eax, 0xa
je 0x180048abf
sub eax, 0x75
je 0x180048ab8
cmp eax, 0x75
je 0x180048a42
jmp 0x180048b6c
xor ebx, ebx
jmp 0x180048b6c
mov rcx, qword [r12]
mov rax, qword [rsp + 0x48]
mov qword [rcx + 0x50], rax
jmp 0x180048b6c
mov rax, qword [r12]
lea r9, [rsp + 0xc0]
mov rdx, qword [rsp + 0x48]
mov r8d, 0x28
mov rcx, qword [rax + 0x30]
sub rcx, qword [rax + 0x20]
shr rcx, 3
inc ecx
mov dword [rsp + 0xc0], ecx
xor ecx, ecx
call fcn.1800a5750
mov r15d, eax
test eax, eax
je 0x180048b5c
mov edi, 0xbc
mov ecx, edi
sub ecx, 0xbc
je 0x180048b27
cmp ecx, 1
jne 0x180048b52
mov eax, r15d
jmp 0x180048a44
xor eax, eax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], 0xc7
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.180059440
inc edi
cmp edi, 0xbe
jb 0x180048b10
mov rdx, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xb0]
add esi, 0x75
cmp esi, r13d
jb 0x180048950
jmp 0x180048a42
Function at 0x18004cf90
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov rax, qword [0x1800dbea8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
lea esi, [rcx + 6]
mov r12, r9
mov r14, r8
mov r15, rdx
cmp ecx, esi
jae case.0x18004cff4.2
lea ebx, [rcx - 0x7a]
lea r13, [0x180000000]
nop dword [rax + rax]
cmp ebx, 0xc
ja case.0x18004cff4.3
mov ecx, dword [r13 + rbx*4 + 0x4d1b4]
add rcx, r13
jmp rcx
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r12
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004d17f
mov qword [rsp + 0x38], 0
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 1]
lea rax, [rbp - 1]
mov dword [rsp + 0x28], 0x20
mov r9d, 0x20
mov qword [rsp + 0x20], rax
mov edx, 0x74004
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18004d076
mov rax, qword [rbp + 7]
jmp 0x18004d0dc
mov qword [rsp + 0x38], 0
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x19]
lea rax, [rbp - 0x19]
mov dword [rsp + 0x28], 0x18
mov r9d, 0x18
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18004d0c7
mov eax, dword [rbp - 0xd]
imul eax, dword [rbp - 9]
imul eax, dword [rbp - 5]
imul rax, qword [rbp - 0x19]
jmp 0x18004d0dc
lea rdx, [rbp - 0x21]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18004d0e7
mov rax, qword [rbp - 0x21]
movsxd rcx, dword [r14]
cqo
idiv rcx
mov dword [r15], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x18004cff4.3
mov eax, dword [r15]
lea r9, [rbp - 0x29]
mov dword [rbp - 0x31], eax
lea rdx, [rbp - 0x31]
mov eax, dword [r14]
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x49], eax
mov r8d, 0x106
mov rax, qword [r12]
mov qword [rbp - 0x29], rax
call fcn.18005a750
jmp case.0x18004cff4.3
mov eax, dword [r14]
lea r8, [rbp - 0x49]
mov rcx, qword [r12 + 8]
mov edx, 0xa4
mov dword [rbp - 0x49], eax
mov qword [rbp - 0x29], 0
call fcn.1800535e0
mov dword [rbp - 0x49], eax
lea r9, [rbp - 0x29]
mov rax, qword [r12 + 8]
lea rcx, [rbp - 0x49]
mov r8d, 0x47
mov qword [rsp + 0x20], rax
mov rdx, r14
call fcn.18006ddd0
mov qword [rbp - 0x41], rax
jmp case.0x18004cff4.3
mov dword [rbp - 0x41], 0
inc ebx
lea eax, [rbx + 0x7a]
cmp eax, esi
jb 0x18004cfe0
jmp case.0x18004cff4.2
mov dword [rbp - 0x41], 9
mov rax, qword [rbp - 0x41]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1800c0ae0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret