joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140085d00
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140085d00
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140085d21
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140085d41
cmp byte [r14 + 0x68], 0
jne 0x140085ddb
or edi, 0x20000000
test dil, 8
jne 0x140085df0
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x140085d5f
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x140085d70
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
je 0x140085d83
lea rcx, [r14 + 0x30]
call fcn.140061da0
mov r15, rax
cmp byte [r14], 0
je 0x140085dd7
add r14, 8
mov rcx, r14
call fcn.140061da0
mov edx, 1
test ebx, ebx
jne 0x140085e10
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
mov r9, rax
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x140085de6
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140085d95
or edi, 0x80000000
jmp 0x140085d41
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140085dc2
cmp byte [r14 + 0x88], 0
je 0x140085e05
or edi, 0x40000000
jmp 0x140085d4b
or edi, 0x10000000
jmp 0x140085d4b
cmp ebx, 4
jne 0x140085e1c
mov edx, 6
jmp 0x140085d9e
lea ecx, [rbx - 2]
cmp ecx, 2
jae 0x140085e2e
mov edx, 7
jmp 0x140085d9e
cmp ebx, 1
jne 0x140085e3d
mov edx, 4
jmp 0x140085d9e
xor edx, edx
jmp 0x140085d9e

Function at 0x140085e50
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140085e88
cmp byte [r15 + 0x68], 0
jne 0x140085f28
or edi, 0x20000000
test dil, 8
jne 0x140085f3d
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x140085ea6
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x140085eb7
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
je 0x140085eca
lea rcx, [r15 + 0x30]
call fcn.140061da0
mov r14, rax
cmp byte [r15], 0
jne 0x140085f17
xor r9d, r9d
cmp ebx, 4
jne 0x140085f5d
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x140085f33
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add r15, 8
mov rcx, r15
call fcn.140061da0
mov r9, rax
jmp 0x140085ed3
or edi, 0x80000000
jmp 0x140085e88
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140085f02
cmp byte [r15 + 0x88], 0
je 0x140085f52
or edi, 0x40000000
jmp 0x140085e92
or edi, 0x10000000
jmp 0x140085e92
mov edx, 1
test ebx, ebx
je 0x140085ee1
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140085f7c
mov edx, 7
jmp 0x140085ee1
cmp ebx, 1
jne 0x140085f8b
mov edx, 4
jmp 0x140085ee1
xor edx, edx
jmp 0x140085ee1
Function at 0x1400877a0
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [0x14015cb80]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov r8d, 6
call fcn.140087370
xor edi, edi
test eax, eax
je 0x14008782d
lea rcx, [rsp + 0x20]
call fcn.14004b360
movzx r15d, byte [0x140173ced]
cmp rax, r15
jne 0x140087848
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14004b350
lea r14, [0x140173ce0]
test r15b, r15b
je 0x140087823
lea rdx, [0x140173ce4]
mov rcx, rax
mov r8, rbx
call fcn.1400a5610
test eax, eax
jne 0x140087848
mov eax, dword [r14]
mov dword [rsi], eax
mov edi, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a3c70
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [rsp + 0x20]
call fcn.14004b360
movzx r15d, byte [0x140173dcd]
cmp rax, r15
jne 0x14008788e
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14004b350
lea r14, [0x140173dc0]
test r15b, r15b
je 0x140087823
lea rdx, [0x140173dc4]
mov rcx, rax
mov r8, rbx
call fcn.1400a5610
test eax, eax
je 0x140087823
lea rcx, [rsp + 0x20]
call fcn.14004b360
movzx r15d, byte [0x140173ead]
cmp rax, r15
jne 0x1400878dc
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14004b350
lea r14, [0x140173ea0]
test r15b, r15b
je 0x140087823
lea rdx, [0x140173ea4]
mov rcx, rax
mov r8, rbx
call fcn.1400a5610
test eax, eax
je 0x140087823
lea rcx, [rsp + 0x20]
call fcn.14004b360
movzx r15d, byte [0x140173f8d]
cmp rax, r15
jne 0x14008792a
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14004b350
lea r14, [0x140173f80]
test r15b, r15b
je 0x140087823
lea rdx, [0x140173f84]
mov rcx, rax
mov r8, rbx
call fcn.1400a5610
test eax, eax
je 0x140087823
lea rcx, [rsp + 0x20]
call fcn.14004b360
movzx r15d, byte [0x140174075]
cmp rax, r15
jne 0x14008782d
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14004b350
lea r14, [0x140174068]
test r15b, r15b
je 0x140087823
lea rdx, [0x14017406c]
mov rcx, rax
mov r8, rbx
call fcn.1400a5610
test eax, eax
je 0x140087823
jmp 0x14008782d
Function at 0x14008cff0
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 [0x140188028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14008cfc0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1401a1a60]
lea rdx, [0x14008cf50]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14008d100
cmp dword [0x1401a1a68], 0
jne 0x14008d0f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1401a1a6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14008d09c
mov ecx, 1
mov edx, 0x28
call fcn.140030ac0
test rax, rax
je 0x14008d0f0
mov r14, rax
mov ecx, dword [0x1401a1a6c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14008d0e8
lea r15, [0x1401a1a70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1401a1a80]
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.1400a3c70
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.140030a20
mov rcx, rsi
mov rax, rdi
call qword [0x1401b0008]
xor esi, esi
jmp 0x14008d0cc
call fcn.1400bc130
int3

Function at 0x14008db20
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14008db5c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14008db66
add rdi, rbx
sub rsi, rbx
jne 0x14008db3a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400bc130
int3
Function at 0x140090380
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x1400904a2
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x1400904d8
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
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 0x1400904e0
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
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
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x1400904e4
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x1400904ea
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x1400903dc
xor eax, eax
jmp 0x140090471
mov dl, byte [r8 + 0x19]
jmp 0x1400904d1
cmp byte [r8 + 0x1a], 0
je 0x1400904d5
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x1400904d5
cmp ecx, 0x666f736f
jne 0x1400904d5
cmp edx, 0x76482074
jne 0x1400904d5
mov byte [r8 + 0x19], 1
jmp 0x1400904d5
Function at 0x140095db0
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x170
mov rsi, rcx
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x168], rax
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdi, [rsp + 0x140]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm1
and byte [rdi], 0xf8
mov al, byte [rdi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rdi + 0x1f], al
lea r14, [rsp + 0xa0]
mov r8d, 0xa0
mov rcx, r14
mov dl, 0xaa
call fcn.1400a5dc0
lea r8, [0x140174fe0]
mov rcx, r14
mov rdx, rdi
call fcn.140056460
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [r14 + 0x50]
mov rdx, qword [r14 + 0x28]
mov r10, qword [r14 + 0x30]
lea r11, [rdx + rax]
mov rcx, qword [r14 + 0x58]
lea r15, [r10 + rcx]
mov r8, qword [r14 + 0x60]
mov r12, qword [r14 + 0x38]
lea r13, [r12 + r8]
mov r9, qword [r14 + 0x68]
lea rbx, [rsp + 0x78]
mov qword [rbx], r11
mov r11, qword [r14 + 0x40]
mov qword [rbx + 8], r15
lea r15, [r11 + r9]
mov qword [rbx + 0x10], r13
mov r13, qword [r14 + 0x70]
mov r14, qword [r14 + 0x48]
mov qword [rbx + 0x18], r15
lea r15, [r14 + r13]
mov qword [rbx + 0x20], r15
movabs r15, 0xffffffffffffe
add rax, r15
sub rax, rdx
add rcx, r15
sub rcx, r10
add r8, r15
sub r8, r12
add r9, r15
sub r9, r11
add r13, r15
add rax, 0xffffffffffffffdc
sub r13, r14
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], r9
mov qword [rdx + 0x20], r13
movaps xmm0, xmmword [0x14015cb80]
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1400985f0
mov rcx, rdi
mov rdx, rbx
mov r8, rdi
call fcn.140057f90
mov rcx, rsi
mov rdx, rdi
call fcn.1400930a0
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400a3c70
nop
add rsp, 0x170
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14009b710
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
cmp qword [0x1401a3598], 0
jne 0x14009b745
lea rcx, str.advapi32.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x1401a3598], rax
test rsi, rsi
je 0x14009b772
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14009b77c
add rdi, rbx
sub rsi, rbx
jne 0x14009b750
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x14009e110
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14009e1aa
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14009e194
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14009e171
mov qword [rsi], rdi
call fcn.1400341c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x14009e1ae
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400341c0
mov rcx, qword [rsi]
call fcn.14002fd10
mov qword [rsi], 0
jmp 0x14009e15f
mov byte [rsi + 8], 0
int3
Function at 0x1400a10e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x1400a1127
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400a1141
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400a111f
mov qword [rsi], rdi
call fcn.1400341c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x1400a1157
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400341c0
mov rcx, qword [rsi]
call fcn.14002fd10
mov qword [rsi], 0
jmp 0x1400a110d
int3
Function at 0x1400a2ff8
Capabilities:
Parse pe header

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

Function at 0x1400a347c
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 0x1400a34f4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400a34f4
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 0x1400a34f4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400a34e8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400a3506
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400a34d6
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 0x1400a34f6

Function at 0x1400b61b8
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 0x1400b61ef
call fcn.1400b94cc
mov dword [rax], 0x16
call fcn.1400bae5c
xor eax, eax
jmp 0x1400b627d
mov rdx, r9
mov rcx, r8
call fcn.1400b62a0
mov rbx, rax
test rax, rax
je 0x1400b627a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400b6310]
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 0x1400b6267
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b950c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400b624e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400b625d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140030a20
jmp 0x1400b627a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400b6277
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 0x1400b63e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400b652c
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 0x1400b659b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b659b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b659b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b659b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b659b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b659b
cmp dword [rcx + 0xf8], 0
je 0x1400b659b
mov ecx, ebx
call fcn.1400b6464
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.1400b66c0
nop
cmp dword [rbp + 0x20], 0
je 0x1400b65e9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400b64f8
int3
Function at 0x1400b686c
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.1400cd9a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400cd9a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b69bc
cmp rax, 0xffffffffffffffff
je 0x1400b69bc
xor edi, edi
test rbp, rbp
jle 0x1400b6967
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140030c00
mov rbx, rax
test rax, rax
jne 0x1400b68f4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b695d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400bc208
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.1400bfe7c
cmp eax, 0xffffffff
je 0x1400b693d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b6904
mov edx, r15d
mov ecx, r14d
call fcn.1400bc208
jmp 0x1400b695d
cmp byte [rsi + 0x38], dil
je 0x1400b6954
cmp dword [rsi + 0x34], 5
jne 0x1400b6954
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400b695d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140030a20
jmp 0x1400b69d0
jns 0x1400b69d0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400cd9a8
cmp rax, 0xffffffffffffffff
jne 0x1400b6988
cmp byte [rsi + 0x30], dil
je 0x1400b69d0
mov edi, dword [rsi + 0x2c]
jmp 0x1400b69d0
mov ecx, r14d
call fcn.1400ba17c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b69d0
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 0x1400b69d0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b69c9
mov eax, dword [rsi + 0x2c]
jmp 0x1400b69ce
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400cd9a8
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 0x1400b9cb0
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.1400a3c10
sub rsp, rax
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400b9884
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400b9cff
mov rax, rbp
jmp 0x1400b9e07
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 + 0x198cc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400cda4c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x198cc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400b9e03
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 0x1400b9e03
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400cda4c
test rax, rax
js 0x1400b9e03
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400b9e03
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400b9df5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400b9df5
cmp byte [rcx], 0xd
jne 0x1400b9ddb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400b9dea
cmp byte [rcx + 1], 0xa
jne 0x1400b9dea
inc rcx
jmp 0x1400b9dea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x188310]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400b9dbd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400b9e07
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400a3c70
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 0x1400bbde4
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, [0x140198cc0]
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 0x1400bbe3b
cmp word [rdx], r13w
jne 0x1400bbe3b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400bbe40
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400bbf65
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400bbf86
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400bbe79
mov rdx, r9
mov word [rbx], cx
jmp 0x1400bbea0
cmp r9, r8
jae 0x1400bbeb0
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 0x1400bbe5a
jmp 0x1400bbf65
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 0x1400bbf5a
cmp dword [rsp + 0x80], esi
je 0x1400bbf5a
lea r8, [0x140198cc0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400bbf32
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400bbf02
mov word [rbx], r13w
jmp 0x1400bbf62
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 0x1400bbf0f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400bbf62
cmp word [rsp + 0x70], r13w
jne 0x1400bbf3f
cmp rbx, r14
je 0x1400bbefc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400cd9a8
cmp word [rsp + 0x70], r13w
je 0x1400bbf65
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, [0x140198cc0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400bbf5f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400bbf65