joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003fc04
Capabilities:
Timestomp file

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x2f]
sub rsp, 0xa8
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r11d, dword [rbp + 0x77]
mov rsi, rcx
shr r11d, 4
mov rdi, rdx
mov edx, dword [rbp + 0x77]
mov ecx, r9d
and r11b, 1
mov ebx, r8d
call fcn.14003f9b8
mov ecx, ebx
mov r10d, eax
call fcn.14003f9e8
mov byte [rsp + 0x30], r11b
lea rcx, [rbp - 0x29]
mov r9d, eax
mov dword [rsp + 0x28], 0x80
lea r8, [rbp - 0x39]
mov dword [rsp + 0x20], r10d
mov rdx, rdi
call fcn.14003fdc8
cmp dword [rbp - 0x29], 0
je 0x14003fcba
movaps xmm0, xmmword [rbp - 0x29]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
movdqa xmmword [rbp - 0x29], xmm0
call fcn.140020ed8
or byte [rsi + 8], 1
mov rcx, rax
mov rax, qword [rax]
and qword [rcx], 0
mov qword [rsi], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x14003fd55
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x14003fd55
test byte [rbp + 0x77], 0x20
mov rdi, qword [rbp - 0x39]
je 0x14003fd4e
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x14003fcfa
xor r9d, r9d
lea r8, [rbp - 0x39]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x14003fd4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea rcx, [rbp - 9]
call fcn.14002c20c
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x19], xmm0
call fcn.140020ed8
or byte [rsi + 8], 1
mov rcx, qword [rax]
and qword [rax], 0
mov qword [rsi], rcx
mov rcx, qword [rax]
test rcx, rcx
je 0x14003fd55
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
jmp 0x14003fd55
and byte [rsi + 8], 0xfe
mov qword [rsi], rdi
mov rax, rsi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140115e10
add rsp, 0xa8
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400400bc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x60
and dword [rax + 0x18], 0
mov r10, r8
mov eax, 0xffffffff
mov qword [rsp + 0x20], r9
cmp qword [r8 + 8], rax
lea r9, [rsp + 0x80]
mov r11, rdx
mov rbx, rcx
cmovb eax, dword [r8 + 8]
mov rcx, r11
mov rdx, qword [r10]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140040154
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140040154
cmp eax, 0x26
je 0x140040154
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14002c20c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x40], xmm0
call fcn.140020ed8
mov edx, 1
or byte [rbx + 8], dl
mov rcx, qword [rax]
and qword [rax], 0
mov qword [rbx], rcx
mov rcx, qword [rax]
test rcx, rcx
je 0x140040162
mov rax, qword [rcx]
call qword [rax]
jmp 0x140040162
mov eax, dword [rsp + 0x80]
and byte [rbx + 8], 0xfe
mov qword [rbx], rax
mov rax, rbx
add rsp, 0x60
pop rbx
ret
Function at 0x140041ebc
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rbp + 0x50], rax
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov rbx, rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], 0x80
mov r9d, 0x104
lea r8, [rsp + 0x30]
call fcn.14004260c
cmp dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x30]
je 0x140041f24
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rbx], xmm0
jmp 0x140041f51
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x140041f40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14002c20c
jmp 0x140041f4c
and dword [rbx], 0
call fcn.140004f44
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
cmp rcx, rax
je 0x140041f60
call fcn.14011c590
mov rax, rbx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140115e10
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rbp
ret
Function at 0x1400420b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r12d, r12d
lea rax, [rbp - 0x68]
cmp byte [rdx + 0x21], 1
mov rsi, rcx
mov ecx, 0x80
mov qword [rbp - 0x80], rax
lea rax, [rbp + 0x38]
mov qword [rbp - 0x78], r12
mov rdi, r8
mov qword [rbp + 0x20], rax
mov r15b, r9b
mov qword [rbp - 0x70], rcx
mov r8, rdx
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], rcx
jne 0x14004214a
movzx edx, byte [rdx + 0x20]
sub edx, 1
je 0x140042131
sub edx, 2
je 0x140042131
sub edx, 1
je 0x140042131
cmp edx, 1
jne 0x14004214a
lea rdx, [rsp + 0x40]
mov rcx, r8
call fcn.140022378
mov rbx, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
jmp 0x140042168
lea rdx, [rbp - 0x80]
mov rcx, r8
call fcn.14002d000
mov r14, qword [rbp - 0x80]
mov rbx, qword [rbp - 0x78]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rbx
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.14003ee3c
test al, al
je 0x1400421b4
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov dword [rdi + 0x18], 6
mov qword [rdi + 0x1c], 0xffff
mov qword [rdi + 0x24], r12
mov dword [rdi + 0x2c], r12d
mov dword [rsi], r12d
call fcn.140004f44
mov qword [rsi + 8], rax
jmp 0x14004226c
mov r9d, 0x104
mov word [rsp + 0x70], 0x105
lea r8, [rbp + 0x20]
mov qword [rsp + 0x50], r14
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], rbx
lea rcx, [rsp + 0x40]
call fcn.14004260c
mov rcx, qword [rbp + 0x20]
cmp dword [rsp + 0x40], r12d
je 0x1400421f4
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rsi], xmm0
jmp 0x140042270
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp eax, 0xffffffff
jne 0x140042212
mov r8, rdi
mov rcx, rsi
or rdx, 0xffffffffffffffff
call fcn.14003e440
jmp 0x14004226c
mov eax, 0x2000000
test r15b, r15b
jne 0x140042228
bt ecx, 0xa
mov ecx, 0x2200000
cmovb eax, ecx
mov rcx, qword [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor edx, edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r8, rdi
mov rcx, rsi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140042207
mov rdx, rax
call fcn.14003e440
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x38]
cmp rcx, rax
je 0x14004227e
call fcn.14011c590
mov rcx, qword [rbp - 0x80]
lea rax, [rbp - 0x68]
cmp rcx, rax
je 0x140042290
call fcn.14011c590
mov rax, rsi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140115e10
add rsp, 0x250
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140044480
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
movups xmm0, xmmword [rdx]
mov rbx, rcx
mov qword [rsp + 0x60], 0x80
lea rax, [rsp + 0x68]
xor esi, esi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x20], xmm0
call fcn.14003c44c
cmp dword [rax], esi
je 0x1400444f8
mov byte [rbx], sil
mov byte [rbx + 0x20], sil
jmp 0x14004465c
lea rax, [rbp + 0x1a8]
mov r14d, 0x104
mov qword [rbp + 0x190], rax
mov ecx, r14d
mov rax, rsi
mov qword [rbp + 0x1a0], rcx
mov qword [rbp + 0x198], rax
mov edi, r14d
cmp rdi, rax
je 0x140044552
jb 0x14004454b
cmp rcx, rdi
jae 0x14004454b
mov r9d, 2
lea rdx, [rbp + 0x1a8]
mov r8, rdi
lea rcx, [rbp + 0x190]
call fcn.14001e624
mov qword [rbp + 0x198], rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rbp + 0x198]
mov rdx, qword [rbp + 0x190]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x140044586
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14004459b
mov rax, qword [rbp + 0x198]
cmp rdi, rax
jbe 0x1400445a7
mov rcx, qword [rbp + 0x1a0]
jmp 0x140044523
mov byte [rbx], sil
mov byte [rbx + 0x20], sil
jmp 0x140044644
mov rdx, qword [rbp + 0x190]
lea rax, [rbp + 0x88]
lea r9, [rbp + 0x70]
mov qword [rbp + 0x70], rax
mov r8, rdi
mov qword [rbp + 0x198], rdi
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], r14
call fcn.14003c424
cmp dword [rax], esi
je 0x1400445e9
mov byte [rbx], sil
mov byte [rbx + 0x20], sil
jmp 0x14004462f
mov rdx, qword [rbp + 0x70]
lea rcx, [rsp + 0x30]
mov edi, 0xf
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
call fcn.14000a45c
movups xmm1, xmmword [rsp + 0x40]
mov qword [rsp + 0x40], rsi
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x48], rdi
mov byte [rsp + 0x30], sil
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov byte [rbx + 0x20], 1
mov rcx, qword [rbp + 0x70]
lea rax, [rbp + 0x88]
cmp rcx, rax
je 0x140044644
call fcn.14011c590
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x1a8]
cmp rcx, rax
je 0x14004465c
call fcn.14011c590
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x140044670
call fcn.14011c590
mov rax, rbx
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140115e10
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400448b8
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140044928
mov rbx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140044918
mov edi, dword [rsp + 0x40]
test rbx, rbx
je 0x140044914
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
jmp 0x14004492d
test rbx, rbx
je 0x140044928
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call fcn.140044850
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140048390
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx + 8]
mov r8, qword [rcx]
add rax, 0x3f
mov r9, qword [rdx]
mov rcx, rax
shr rcx, 6
cmp rax, 0x40
jb 0x1400483be
sub r9, r8
mov rax, qword [r9 + r8]
xor qword [r8], rax
lea r8, [r8 + 8]
sub rcx, 1
jne 0x1400483ad
ret
Function at 0x140070254
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rdx
mov dword [rbp - 0x19], 0x140013
xor eax, eax
mov dword [rbp - 0x15], 0x160015
mov edx, 0x2a
mov dword [rbp - 0x11], 0x190018
lea r9, [rbp - 0x29]
mov dword [rbp - 0xd], 0x1c001a
mov qword [rbx], rax
lea r8, [rbp - 0x21]
mov qword [rbx + 8], rax
mov rcx, rbx
mov qword [rbx + 0x10], rax
lea rax, [rbp + 0x3b]
mov qword [rbp - 0x29], rax
lea rax, [rbp - 0x19]
mov qword [rbp - 0x21], rax
mov dword [rbp - 9], 0x1e001d
mov dword [rbp - 5], 0x20001f
mov dword [rbp - 1], 0x220021
mov dword [rbp + 3], 0x240023
mov dword [rbp + 7], 0x260025
mov dword [rbp + 0xb], 0x290028
mov dword [rbp + 0xf], 0x2b002a
mov dword [rbp + 0x13], 0x2d002c
mov dword [rbp + 0x17], 0x2f002e
mov dword [rbp + 0x1b], 0x310030
mov dword [rbp + 0x1f], 0x340033
mov dword [rbp + 0x23], 0x360035
mov dword [rbp + 0x27], 0x380037
mov dword [rbp + 0x2b], 0x3a0039
mov dword [rbp + 0x2f], 0x3c003b
mov dword [rbp + 0x33], 0x3f003e
mov dword [rbp + 0x37], 0x410040
call fcn.140067564
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140115e10
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rbp
ret

Function at 0x14008136c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r8d, r8d
movzx eax, byte [r8 + rdx]
movabs r9, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r9
cmp r8, 8
jb 0x140081347
mov rax, rcx
ret
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x140081344
Function at 0x1400b8fd8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx + 0x3a0]
xor edi, edi
mov ebx, dword [rcx + 0x3a8]
shl rbx, 4
add rbx, rsi
cmp rsi, rbx
je 0x1400b9067
mov ebp, 0x9e3779b9
movsxd rax, dword [rsi]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.14008136c
mov rdx, rax
mov rcx, rdi
shr rcx, 2
mov rax, rdi
shl rax, 6
add rax, rdx
add rax, rbp
add rcx, rax
xor rdi, rcx
lea rcx, [rsi + 8]
call fcn.14008136c
mov rcx, rdi
mov rdx, rdi
shl rcx, 6
add rsi, 0x10
add rcx, rax
shr rdx, 2
add rcx, rbp
add rdx, rcx
xor rdi, rdx
cmp rsi, rbx
jne 0x1400b900c
mov rbx, qword [rsp + 0x38]
mov rax, rdi
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dd324
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rdx], 0
mov rsi, rdx
and dword [rdx + 4], 0
mov rdi, rcx
mov bl, byte [rcx + 0x1f4]
lea rdx, [rsp + 0x20]
mov al, bl
or al, 0x20
mov byte [rcx + 0x1f4], al
call fcn.1400d5938
xor bl, byte [rdi + 0x1f4]
mov eax, dword [rsp + 0x20]
and bl, 0x20
xor byte [rdi + 0x1f4], bl
cmp word [rsp + 0x30], 2
mov dword [rsi], eax
je 0x1400dd3af
mov bl, byte [rdi + 0x1f4]
lea rdx, [rsp + 0x20]
mov al, bl
mov rcx, rdi
or al, 0x20
mov byte [rdi + 0x1f4], al
call fcn.1400d5938
xor bl, byte [rdi + 0x1f4]
and bl, 0x20
xor byte [rdi + 0x1f4], bl
cmp word [rsp + 0x30], 2
jne 0x1400dd377
mov eax, dword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov dword [rsi + 4], eax
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140116998
Capabilities:
Parse pe header

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

Function at 0x14011e724
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14011e583
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011e583
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011e583
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011e583
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011e583
cmp dword [rcx + 0x84], 0xe
jbe 0x14011e583
cmp dword [rcx + 0xf8], 0
je 0x14011e583
mov ecx, ebx
call fcn.14011e640
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14011e410
nop
cmp dword [rbp + 0x20], 0
je 0x14011e5d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14011e5dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14011e514
Function at 0x140122b70
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401217cc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401217cc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140122cc0
cmp rax, 0xffffffffffffffff
je 0x140122cc0
xor edi, edi
test rbp, rbp
jle 0x140122c6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14012c8a8
mov rbx, rax
test rax, rax
jne 0x140122bf8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140122c61
mov edx, 0x8000
mov ecx, r14d
call fcn.1401231a4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14012b284
cmp eax, 0xffffffff
je 0x140122c41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140122c08
mov edx, r15d
mov ecx, r14d
call fcn.1401231a4
jmp 0x140122c61
cmp byte [rsi + 0x38], dil
je 0x140122c58
cmp dword [rsi + 0x34], 5
jne 0x140122c58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140122c61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14012c86c
jmp 0x140122cd4
jns 0x140122cd4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401217cc
cmp rax, 0xffffffffffffffff
jne 0x140122c8c
cmp byte [rsi + 0x30], dil
je 0x140122cd4
mov edi, dword [rsi + 0x2c]
jmp 0x140122cd4
mov ecx, r14d
call fcn.14012111c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140122cd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140122cd4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140122ccd
mov eax, dword [rsi + 0x2c]
jmp 0x140122cd2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401217cc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140129e94
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14021a8f0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140129ef2
cmp word [rdx], r12w
jne 0x140129ef2
or byte [rax + r8*8 + 0x38], cl
jmp 0x140129ef8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14012a053
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14012a02e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140129f31
mov rcx, r9
jmp 0x140129f54
cmp r9, rdx
jae 0x140129f6b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140129f15
jmp 0x14012a053
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14012a028
cmp dword [rsp + 0x80], edi
je 0x14012a028
mov rdx, r14
lea r11, [0x14021a8f0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14012a001
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140129fd4
mov word [rbx], r12w
jmp 0x14012a04f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140129fdd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14012a04f
cmp word [rsp + 0x70], r12w
jne 0x14012a00e
cmp rbx, rsi
je 0x140129fce
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1401217cc
cmp word [rsp + 0x70], r12w
je 0x14012a053
mov word [rbx], r13w
jmp 0x14012a04f
lea r11, [0x14021a8f0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14012a04b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14012a053
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14012d964
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14012d996
call fcn.14011edc8
mov dword [rax], 0x16
call fcn.14011c4f8
jmp 0x14012dab5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14012dab5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14012dab5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14012d9c5
lock or dword [rcx + 0x14], 0x10
jmp 0x14012dab5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14012d9d9
call fcn.14012e3e4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140123008
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14012a340
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14012daa3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14012da6e
mov rcx, rsi
call fcn.140123008
cmp eax, edi
je 0x14012da59
mov rcx, rsi
call fcn.140123008
cmp eax, 0xfffffffe
je 0x14012da59
mov rcx, rsi
call fcn.140123008
movsxd rbx, eax
lea r14, [0x14021a8f0]
mov rcx, rsi
sar rbx, 6
call fcn.140123008
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14012da60
lea rdx, [0x140214770]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14012da6e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14012da92
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14012da92
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14012da92
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14012dab8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14012dde0
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.140115db0
sub rsp, rax
mov rax, qword [0x1402142b0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140123008
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14012de2f
mov rax, rbp
jmp 0x14012df37
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x21a8f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401217c4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x21a8f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14012df33
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 0x14012df33
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401217c4
test rax, rax
js 0x14012df33
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14012df33
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14012df25
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14012df25
cmp byte [rcx], 0xd
jne 0x14012df0b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14012df1a
cmp byte [rcx + 1], 0xa
jne 0x14012df1a
inc rcx
jmp 0x14012df1a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2144f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14012deed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14012df37
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140115e10
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret