joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ba4d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400ba570]
mov qword [rsp + 0x20], rax
lea rcx, [0x14017fd50]
lea rdx, [0x1400ba330]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400ba564
cmp dword [0x14017fd58], 0
je 0x1400ba521
xor esi, esi
jmp 0x1400ba54c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14017fd5c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400ba51d
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400fb950
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call fcn.14010f2a0
int3

Function at 0x1400ba5a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400ba570]
mov qword [rsp + 0x28], rax
lea rcx, [0x14017fd50]
lea rdx, [0x1400ba330]
lea r8, [rsp + 0x28]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400ba6b7
cmp dword [0x14017fd58], 0
je 0x1400ba60c
mov rcx, rsi
mov rax, rdi
call qword [0x140191008]
xor esi, esi
jmp 0x1400ba660
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14017fd5c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
je 0x1400ba67c
lea r15, [0x14017fd60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14017fd70]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400fb950
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
mov edx, 0x28
call fcn.1400621b0
test rax, rax
je 0x1400ba5fc
mov r14, rax
mov ecx, dword [0x14017fd5c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400ba630
mov rcx, r14
call fcn.140062120
jmp 0x1400ba5fc
call fcn.14010f2a0
int3

Function at 0x1400be090
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14017fda8], 0
jne 0x1400be0cd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400be0c0
mov dword [rdi], eax
mov dword [0x14017fdb0], eax
mov qword [0x14017fda8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400c9ab0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r12, r9
mov r13, r8
mov r15, rdx
mov rbp, rcx
mov r14, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x110]
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x90], rax
test rdi, rdi
jne 0x1400c9afe
call fcn.14008f770
mov rdi, rax
test r14, r14
cmove r14, rdi
mov rcx, rdi
call fcn.14008f470
mov rsi, rax
lea rax, [rax*2 + 2]
cmp rax, r15
jbe 0x1400c9b45
mov dword [rsp + 0x20], 0x62
lea r9, str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
xor edi, edi
mov ecx, 4
xor edx, edx
mov r8d, 0x7e
call fcn.1400bacd0
jmp 0x1400c9d34
lea rax, [rsi + rsi]
mov rbx, rax
not rbx
lea rcx, [r15 + rbx]
dec rcx
cmp rcx, r12
jae 0x1400c9b83
mov dword [rsp + 0x20], 0x68
lea r9, str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
xor edi, edi
mov ecx, 4
xor edx, edx
mov r8d, 0x72
call fcn.1400bacd0
jmp 0x1400c9d34
lea rcx, [r15 - 1]
or rax, 1
mov qword [rsp + 0x40], rcx
cmp rcx, rax
jae 0x1400c9b9f
mov dword [rsp + 0x20], 0x6d
jmp 0x1400c9b25
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
mov byte [rbp], 0
lea r8, [rsi + rbp]
inc r8
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], r8
xor r9d, r9d
call fcn.14008f480
xor ecx, ecx
mov edi, 0
test eax, eax
je 0x1400c9d2f
mov rdi, qword [rsp + 0x40]
sub rdi, r12
add rbx, rdi
mov rcx, qword [rsp + 0x38]
je 0x1400c9c0e
mov rax, qword [rsp + 0x38]
lea rcx, [rax + rsi]
xor edx, edx
mov r8, rbx
call fcn.14012e050
mov rcx, qword [rsp + 0x38]
lea rax, [rbp + 1]
mov qword [rsp + 0x48], rax
mov rax, rsi
not rax
add rdi, rcx
mov byte [rax + rdi], 1
test r12, r12
mov rbx, rcx
je 0x1400c9c46
add rbp, rsi
add rbp, r15
sub rbp, r12
sub rbp, rsi
mov rcx, rbp
mov rdx, r13
mov r8, r12
call fcn.14012d9b0
mov r13, qword [rsp + 0x48]
mov rcx, r13
mov rdx, rsi
call fcn.14008e380
test eax, eax
je 0x1400c9d27
mov r15, qword [rsp + 0x40]
sub r15, rsi
mov rcx, r15
call fcn.1400ae130
xor edi, edi
test rax, rax
je 0x1400c9d2d
mov r12, rax
mov qword [rsp + 0x20], r14
mov rcx, rax
mov rdx, r15
mov r8, r13
mov r9, rsi
call fcn.14009e190
test eax, eax
je 0x1400c9d22
cmp qword [rsp + 0x40], rsi
je 0x1400c9cc0
cmp r15, 1
mov rax, r15
adc rax, 0
xor ecx, ecx
nop
movzx edx, byte [r12 + rcx]
xor byte [rbx + rcx], dl
inc rcx
cmp rax, rcx
jne 0x1400c9cb0
movaps xmm0, xmmword [0x14013ab10]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x20], r14
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov r8, rbx
mov r9, r15
call fcn.14009e190
test eax, eax
je 0x1400c9d22
mov edi, 1
test rsi, rsi
je 0x1400c9d22
xor eax, eax
nop word cs:[rax + rax]
movzx ecx, byte [rsp + rax + 0x50]
xor byte [r13 + rax], cl
inc rax
cmp rsi, rax
jne 0x1400c9d10
mov rcx, r12
jmp 0x1400c9d2f
xor ecx, ecx
xor edi, edi
jmp 0x1400c9d2f
xor ecx, ecx
call fcn.1400ae2a0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400fb950
mov eax, edi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400d8bd0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
push rbx
mov r8, rcx
xor ebx, ebx
xor eax, eax
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x1400d8cf5
mov edi, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov esi, eax
mov r9d, ecx
mov r11d, edx
mov r10d, 0
cmp edi, 7
jb 0x1400d8c30
mov eax, 7
xor ecx, ecx
xchg rbx, rbx
cpuid
xchg rbx, rbx
mov r10d, ecx
and ebx, 0x20
shr ebx, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x1400d8cc7
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
jmp 0x1400d8cc9
xor eax, eax
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, bl
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x1400d8d2a
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
jne 0x1400d8d67
jmp 0x1400d8d33
movzx edx, byte [r8 + 0x19]
test dl, dl
jne 0x1400d8d67
cmp byte [r8 + 0x1a], 0
je 0x1400d8d67
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x1400d8d67
cmp ecx, 0x666f736f
jne 0x1400d8d67
cmp edx, 0x76482074
jne 0x1400d8d67
mov byte [r8 + 0x19], 1
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400d8e30
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x30], rax
test rdx, rdx
je 0x1400d8ed3
cmp dword [0x140185148], ecx
jg 0x1400d8ed3
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
movsxd r12, eax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add r12, rsi
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
cmp rsi, r12
jae 0x1400d8ec7
mov dword [rsp + 0x2c], 0
mov r8d, r12d
sub r8d, esi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rsi
mov r9, r14
call r15
test eax, eax
je 0x1400d8ec7
mov eax, dword [rsp + 0x2c]
add rsi, rax
test eax, eax
jne 0x1400d8e90
test edi, edi
je 0x1400d8ed3
cmp byte [r12 - 1], 0xa
jne 0x1400d8eef
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400fb950
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rsi, rax
xor eax, eax
lea rdi, [0x14013da11]
lea rbx, [rsp + 0x2c]
nop dword [rax + rax]
test rax, rax
jne 0x1400d8ed3
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, 1
mov r9, rbx
call r15
test eax, eax
je 0x1400d8ed3
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400d8f10
jmp 0x1400d8ed3
Function at 0x1400e03f0
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm6
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
movaps xmm6, xmmword [0x14013ab10]
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
lea r15, [rsp + 0xc0]
mov edx, 0x20
mov rcx, r8
mov r8, r15
call fcn.14008ff20
and byte [rsp + 0xc0], 0xf8
movzx eax, byte [rsp + 0xdf]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0xdf], al
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
lea r8, [0x140152200]
lea r14, [rsp + 0x20]
mov rcx, r14
mov rdx, r15
call fcn.1400de720
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x180], rax
movaps xmmword [rsp + 0x170], xmm6
movaps xmmword [rsp + 0x160], xmm6
mov qword [rsp + 0x150], rax
movaps xmmword [rsp + 0x140], xmm6
movaps xmmword [rsp + 0x130], xmm6
mov qword [rsp + 0x120], rax
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x1b0], rax
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x1a0], xmm1
movaps xmmword [rsp + 0x190], xmm0
lea r15, [rsp + 0x160]
lea rdx, [rsp + 0x190]
mov rcx, r15
call fcn.1400e5aa0
lea r12, [rsp + 0x130]
mov rcx, r12
mov rdx, r14
mov r8, r15
call fcn.1400e8490
lea rdx, [rsp + 0x48]
lea r14, [rsp + 0x100]
mov rcx, r14
mov r8, r15
call fcn.1400e8490
mov rcx, rdi
mov rdx, r14
call fcn.1400da820
movaps xmmword [rsp + 0x1a0], xmm6
movaps xmmword [rsp + 0x190], xmm6
lea rcx, [rsp + 0x190]
mov rdx, r12
call fcn.1400da820
movzx eax, byte [rsp + 0x190]
shl al, 7
xor byte [rdi + 0x1f], al
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm1
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.1400fb950
movaps xmm6, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400e4300
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
movaps xmmword [rsp + 0x180], xmm6
mov qword [rsp + 0x28], rcx
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x178], rax
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movaps xmmword [rsp + 0x150], xmm0
and byte [rsp + 0x150], 0xf8
movaps xmmword [rsp + 0x160], xmm1
movzx eax, byte [rsp + 0x16f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x16f], al
movaps xmm6, xmmword [0x14013ab10]
movaps xmmword [rsp + 0x140], xmm6
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x120], xmm6
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
lea r8, [0x140152200]
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x150]
call fcn.1400de720
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [rsp + 0x100]
mov r11, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xe0]
lea rdi, [r11 + rax]
mov rcx, qword [rsp + 0x108]
lea rbx, [rsi + rcx]
mov rdx, qword [rsp + 0x110]
mov r14, qword [rsp + 0xe8]
lea r15, [r14 + rdx]
mov r8, qword [rsp + 0x118]
mov r12, qword [rsp + 0xf0]
lea r13, [r12 + r8]
mov r9, qword [rsp + 0x120]
mov rbp, qword [rsp + 0xf8]
lea r10, [rbp + r9]
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r10
movabs r10, 0xffffffffffffe
add rax, r10
sub rax, r11
add rax, 0xffffffffffffffdc
add rcx, r10
sub rcx, rsi
add rdx, r10
sub rdx, r14
add r8, r10
sub r8, r12
add r9, r10
sub r9, rbp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], r9
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400e5aa0
lea rdx, [rsp + 0x88]
mov rcx, rdi
mov r8, rdi
call fcn.1400e8490
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call fcn.1400da820
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1400fb950
movaps xmm6, xmmword [rsp + 0x180]
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400f0e60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x1400f0e8b
xor ecx, ecx
lea r9, [0x1401533a0]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x1400f0e70
ret

Function at 0x1400fa4b8
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x1400fa4d3
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.1400f3a24
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1400fa581
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1400fa581
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x1400fa5ac
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x1400fa4c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x1400fa4c7
mov dword [rsi], 7
jmp 0x1400fa4c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400fa4c7

Function at 0x1400fae18
Capabilities:
Parse pe header

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

Function at 0x1400fb170
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400fb1e8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400fb1e8
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400fb1e8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400fb1dc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400fb1fa
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400fb1ca
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400fb1ea
Function at 0x140109278
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1401092af
call fcn.14010c5a4
mov dword [rax], 0x16
call fcn.14010df3c
xor eax, eax
jmp 0x14010933d
mov rdx, r9
mov rcx, r8
call fcn.140109360
mov rbx, rax
test rax, rax
je 0x14010933a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401093d0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140109327
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14010c5e4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14010930e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14010931d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140062120
jmp 0x14010933a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140109337
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1401094a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401095ec

Function at 0x1401095ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1401095ec
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 0x14010965b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14010965b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14010965b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14010965b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14010965b
cmp dword [rcx + 0x84], 0xe
jbe 0x14010965b
cmp dword [rcx + 0xf8], 0
je 0x14010965b
mov ecx, ebx
call fcn.140109524
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.140109780
nop
cmp dword [rbp + 0x20], 0
je 0x1401096a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401095b8
int3
Function at 0x14010992c
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.14011eec8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14011eec8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140109a7c
cmp rax, 0xffffffffffffffff
je 0x140109a7c
xor edi, edi
test rbp, rbp
jle 0x140109a27
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400621b0
mov rbx, rax
test rax, rax
jne 0x1401099b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140109a1d
mov edx, 0x8000
mov ecx, r14d
call fcn.14010f378
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.140112ee0
cmp eax, 0xffffffff
je 0x1401099fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401099c4
mov edx, r15d
mov ecx, r14d
call fcn.14010f378
jmp 0x140109a1d
cmp byte [rsi + 0x38], dil
je 0x140109a14
cmp dword [rsi + 0x34], 5
jne 0x140109a14
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140109a1d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140062120
jmp 0x140109a90
jns 0x140109a90
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14011eec8
cmp rax, 0xffffffffffffffff
jne 0x140109a48
cmp byte [rsi + 0x30], dil
je 0x140109a90
mov edi, dword [rsi + 0x2c]
jmp 0x140109a90
mov ecx, r14d
call fcn.14010d25c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140109a90
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 0x140109a90
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140109a89
mov eax, dword [rsi + 0x2c]
jmp 0x140109a8e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14011eec8
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 0x14010cd88
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.1400fb8f0
sub rsp, rax
mov rax, qword [0x140165040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14010c95c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14010cdd7
mov rax, rbp
jmp 0x14010cedf
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 + 0x174650]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14011ef6c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x174650]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14010cedb
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 0x14010cedb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14011ef6c
test rax, rax
js 0x14010cedb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14010cedb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14010cecd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14010cecd
cmp byte [rcx], 0xd
jne 0x14010ceb3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14010cec2
cmp byte [rcx + 1], 0xa
jne 0x14010cec2
inc rcx
jmp 0x14010cec2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x165370]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14010ce95
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14010cedf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400fb950
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret