joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
fmul dword [rdi - 0x4847e902]
sbb ebx, esi
xchg ecx, eax
and edx, dword [rdx]
mov dh, al
jp 0x14001ad8a
rol dword [rsi + 0x5b52dd37], 1
invalid
xor r9b, byte [r13 - 0x7ffbb151]
invalid
Function at 0x140006750
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
mov rax, qword gs:[0x60]
mov r12d, ecx
mov qword [rsp + 0x18], rbp
mov rdx, qword [rax + 0x18]
mov r13, qword [rdx + 0x20]
mov rsi, r13
nop
mov rbx, qword [rsi + 0x20]
lea rax, [rsi - 0x10]
mov rsi, qword [rsi]
test rbx, rbx
je 0x140006830
movsxd rax, dword [rbx + 0x3c]
mov ecx, dword [rax + rbx + 0x88]
test ecx, ecx
je 0x140006830
mov edx, dword [rbx + rcx + 0xc]
lea rbp, [rbx + rcx]
xor r9d, r9d
add rdx, rbx
movzx eax, byte [rdx]
test al, al
je 0x1400067dc
nop dword [rax]
ror r9d, 9
movsx ecx, al
cmp al, 0x61
jl 0x1400067ce
sub ecx, 0x20
movzx eax, byte [rdx + 1]
inc rdx
add r9d, ecx
test al, al
jne 0x1400067c0
mov r11d, dword [rbp + 0x20]
mov edi, dword [rbp + 0x18]
xor r10d, r10d
add r11, rbx
test edi, edi
je 0x140006830
nop dword [rax]
mov r8d, dword [r11]
xor edx, edx
add r8, rbx
movzx eax, byte [r8]
test al, al
je 0x14000681b
ror edx, 9
movsx ecx, al
cmp al, 0x61
jl 0x14000680d
sub ecx, 0x20
movzx eax, byte [r8 + 1]
inc r8
add edx, ecx
test al, al
jne 0x140006800
lea eax, [rdx + r9]
cmp r12d, eax
je 0x140006854
inc r10d
add r11, 4
cmp r10d, edi
jb 0x1400067f0
cmp rsi, r13
jne 0x140006780
xor eax, eax
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r13
pop r12
ret
mov eax, dword [rbp + 0x24]
lea rcx, [rbx + rax]
mov eax, dword [rbp + 0x1c]
movzx r8d, word [rcx + r10*2]
lea rcx, [rbx + rax]
mov eax, dword [rcx + r8*4]
add rax, rbx
jmp 0x14000683b

Function at 0x140006870
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
lea rdx, [0x140023289]
lea rcx, [0x14002b444]
mov r8d, 0x4b
call fcn.140006720
lea rdx, [0x1400232a9]
lea rcx, [0x14002b444]
mov r8d, 0x43
mov ebx, eax
call fcn.140006720
lea ecx, [rax + rbx]
call fcn.140006750
xor edx, edx
mov r8, rsi
lea ecx, [rdx + 1]
mov rbx, rax
call qword [0x14002b4b8]
mov qword [rdi], rax
test rax, rax
je 0x1400068f4
mov rcx, rax
call rbx
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140006958
lea edx, [rax - 1]
mov r8, rsi
xor ecx, ecx
call qword [0x14002b488]
mov qword [rdi], rax
test rax, rax
jne 0x14000692a
mov eax, 2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000695f
mov rcx, qword [rdi]
call rbx
mov qword [rdi], 0
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x120
jmp 0x140006935
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140009530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 8
xor r9d, r9d
mov r11, rcx
mov r10d, r9d
test r8d, r8d
je 0x1400095d1
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
mov edi, r8d
inc r9d
and r9d, 0x800000ff
jge 0x14000956b
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd r8, r9d
movzx ebx, byte [r8 + r11]
add r10d, ebx
and r10d, 0x800000ff
jge 0x14000958c
dec r10d
or r10d, 0xffffff00
inc r10d
movsxd rcx, r10d
movzx eax, byte [rcx + r11]
mov byte [r8 + r11], al
mov byte [rcx + r11], bl
movzx ecx, byte [r8 + r11]
add ecx, ebx
and ecx, 0x800000ff
jge 0x1400095b5
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd rax, ecx
inc rdx
movzx ecx, byte [rax + r11]
xor byte [rdx - 1], cl
dec rdi
jne 0x140009552
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
add rsp, 8
ret

Function at 0x1400095e0
Capabilities:
Encode data using xor

Disassembly:
or r8d, 0xffffffff
mov r9, rcx
test edx, edx
jle 0x140009620
mov r10d, edx
lea r11, [0x14002b7e0]
nop word [rax + rax]
movzx edx, byte [r9]
movzx eax, r8b
mov ecx, r8d
xor rdx, rax
shr ecx, 8
inc r9
mov r8d, dword [r11 + rdx*4]
xor r8d, ecx
dec r10
jne 0x140009600
mov eax, r8d
ret
Function at 0x14000b510
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140028030]
xor rax, rsp
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x28]
mov dword [rbp - 0x28], 0x41534e44
mov dword [rbp - 0x24], 0x442e4950
mov word [rbp - 0x20], 0x4c4c
mov byte [rbp - 0x1e], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14000b5b7
cmp qword [0x14002bc78], 0
mov dword [rbp - 0x18], 0x51736e44
mov dword [rbp - 0x14], 0x79726575
mov word [rbp - 0x10], 0x415f
mov byte [rbp - 0xe], 0
jne 0x14000b58b
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002bc78], rax
cmp qword [0x14002bc80], 0
mov dword [rbp - 0x30], 0x46736e44
mov dword [rbp - 0x2c], 0x656572
jne 0x14000b5b7
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002bc80], rax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000e440
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
Function at 0x14000bee0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax - 0x10], r12
mov ebx, 1
mov qword [rax - 0x18], r13
xor r13d, r13d
cmp dword [0x14002bc8c], ebx
mov esi, r8d
mov rbp, rdx
mov r12, rcx
jb 0x14000bfc1
mov qword [rax - 8], rdi
nop dword [rax]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r8, [0x14000bcd0]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x4c], ebx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14000bf9e
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14002b458]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x14002b454]
lea rcx, [0x14002b458]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14002b480]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc ebx
cmp ebx, dword [0x14002bc8c]
jbe 0x14000bf20
mov rdi, qword [rsp + 0x60]
cmp dword [0x14002b454], 0
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov dword [rsp + 0x88], r13d
mov r13, qword [rsp + 0x50]
je 0x14000c069
nop dword [rax]
mov rcx, qword [0x14002b480]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x14002b458]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x14002b480]
lea r8, [rsp + 0x88]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea rcx, [0x14002b458]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x14000c05e
mov eax, dword [rsp + 0x88]
inc eax
cmp eax, 0xa
je 0x14000c069
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x14002b454], 0
jne 0x14000bff0
jmp 0x14000c069
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x14002b480]
mov rbx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000c080
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x68
ret
Function at 0x14000e110
Capabilities:
Parse pe header

Disassembly:
push r12
sub rsp, 0x20
mov eax, 0x5a4d
mov r12, rcx
cmp word [rcx], ax
je 0x14000e12c
xor eax, eax
add rsp, 0x20
pop r12
ret
mov qword [rsp + 0x40], rsi
movsxd rsi, dword [rcx + 0x3c]
add rsi, rcx
cmp dword [rsi], 0x4550
je 0x14000e14e
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r12
ret
mov edx, dword [rsi + 0x50]
mov rcx, qword [rsi + 0x30]
mov r9d, 4
mov r8d, 0x2000
mov qword [rsp + 0x38], rbp
call qword [0x14002b510]
mov rbp, rax
test rax, rax
jne 0x14000e1a2
mov edx, dword [rsi + 0x50]
lea r9d, [rax + 4]
xor ecx, ecx
mov r8d, 0x2000
call qword [0x14002b510]
mov rbp, rax
test rax, rax
jne 0x14000e1a2
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r12
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [0x14002b518]
mov r8d, 0x1000
mov rcx, rbp
mov rdi, rax
mov qword [rax + 8], rbp
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov edx, dword [rsi + 0x50]
lea r9d, [rax + 4]
call qword [0x14002b510]
mov edx, dword [rsi + 0x54]
mov r9d, 4
mov r8d, 0x1000
mov rcx, rbp
call qword [0x14002b510]
mov r8d, dword [rsi + 0x54]
mov rdx, r12
add r8d, dword [r12 + 0x3c]
mov rcx, rax
mov rbx, rax
call qword [0x14002b6c8]
movsxd rax, dword [r12 + 0x3c]
mov r8, rdi
add rax, rbx
mov rdx, rsi
mov rcx, r12
mov qword [rdi], rax
mov qword [rax + 0x30], rbp
call fcn.14000dce0
mov rbx, qword [rsp + 0x30]
mov rdx, rbp
sub rdx, qword [rsi + 0x30]
je 0x14000e24b
mov rcx, rdi
call fcn.14000dee0
mov rcx, rdi
call fcn.14000df90
test eax, eax
je 0x14000e28b
mov rcx, rdi
call fcn.14000ddd0
mov r11, qword [rdi]
mov eax, dword [r11 + 0x28]
test eax, eax
je 0x14000e286
add rax, rbp
je 0x14000e28b
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 1]
call rax
test eax, eax
je 0x14000e28b
mov dword [rdi + 0x1c], 1
mov rax, rdi
jmp 0x14000e295
mov rcx, rdi
call fcn.14000e370
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r12
ret
Function at 0x14000f59f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140028030]
jne 0x14000e45a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000e456
repz ret
ror rcx, 0x10
jmp 0x14000f4f8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14002a340]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14002a438]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000f57d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14002a340]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000f59f
mov rax, qword [rsp + 0x88]
mov qword [0x14002a438], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002a3d8], rax
mov rax, qword [0x14002a438]
mov qword [0x14002a2b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002a3c0], rax
mov dword [0x14002a2a0], 0xc0000409
mov dword [0x14002a2a4], 1
mov rax, qword [0x140028030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140028038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14002a338], eax
mov ecx, 1
call fcn.14001487c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400203c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14002a338], 0
jne 0x14000f626
mov ecx, 1
call fcn.14001487c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140011d88
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140011bf8
Function at 0x140016fd8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140028030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140012798
xor ebx, ebx
cmp qword [0x14002b398], rbx
mov rdi, rax
jne 0x1400170eb
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400171c2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400171c2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002b398], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002b3a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14002b3a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14002b3b8], rax
test rax, rax
je 0x1400170e2
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14002b3b0], rax
jmp 0x1400170f2
mov rax, qword [0x14002b3b0]
jmp 0x1400170f9
mov rax, qword [0x14002b3b0]
mov r11, qword [0x14002b3b8]
cmp rax, rdi
je 0x140017160
cmp r11, rdi
je 0x140017160
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14002b3b8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140017160
test rax, rax
je 0x140017160
call rsi
test rax, rax
je 0x14001715a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001715a
test byte [rsp + 0x40], 1
jne 0x140017160
bts ebp, 0x15
jmp 0x1400171a0
mov rcx, qword [0x14002b3a0]
cmp rcx, rdi
je 0x1400171a0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400171a0
call rax
mov rbx, rax
test rax, rax
je 0x1400171a0
mov rcx, qword [0x14002b3a8]
cmp rcx, rdi
je 0x1400171a0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400171a0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14002b398]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400171c2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400171c4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000e440
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180002770
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180002792
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18000280c
mov rdi, r14
mov rcx, rbx
call fcn.180003bf0
test rax, rax
jle 0x1800027e4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180020fc0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1800027fc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180002804
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800027a6
sub r14, rdi
jmp 0x1800028ef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180002823
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180002825
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180002857
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180020fc0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800028ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180002892
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1800028cd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18000e1b4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1800028ec
cmp rbp, rax
ja 0x1800028a0
test rbp, rbp
je 0x1800028ec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18000e1b4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x180013a50
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180013a66
mov al, 1
jmp 0x180013ac6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180013a77
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180013ac4
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001d920
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180013ac4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180013ac4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180013ac4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180013ac6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800150d4
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.180006500
sub rsp, rax
mov rax, qword [0x180033080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180013554
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180015123
mov rax, rbp
jmp 0x18001522b
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 + 0x35170]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180014d10
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x35170]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180015227
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 0x180015227
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180014d10
test rax, rax
js 0x180015227
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180015227
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180015219
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180015219
cmp byte [rcx], 0xd
jne 0x1800151ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18001520e
cmp byte [rcx + 1], 0xa
jne 0x18001520e
inc rcx
jmp 0x18001520e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x334a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800151e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18001522b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180005c90
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 0x1800154a8
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, [0x180035170]
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 0x1800154ff
cmp word [rdx], r13w
jne 0x1800154ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180015504
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180015629
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001564a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18001553d
mov rdx, r9
mov word [rbx], cx
jmp 0x180015564
cmp r9, r8
jae 0x180015574
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 0x18001551e
jmp 0x180015629
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 0x18001561e
cmp dword [rsp + 0x80], esi
je 0x18001561e
lea r8, [0x180035170]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800155f6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800155c6
mov word [rbx], r13w
jmp 0x180015626
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 0x1800155d3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180015626
cmp word [rsp + 0x70], r13w
jne 0x180015603
cmp rbx, r14
je 0x1800155c0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180014d18
cmp word [rsp + 0x70], r13w
je 0x180015629
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, [0x180035170]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180015623
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180015629