joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035b58
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x14003d140
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [0x1400bf008]
xor rax, rbp
mov qword [rbp + 0x128], rax
lea rcx, [0x1400c90b6]
call fcn.140036d19
mov byte [rbp + 8], 0x60
mov byte [rbp + 9], 0x3d
mov byte [rbp + 0xa], 0xeb
mov byte [rbp + 0xb], 0x10
mov byte [rbp + 0xc], 0x15
mov byte [rbp + 0xd], 0xca
mov byte [rbp + 0xe], 0x71
mov byte [rbp + 0xf], 0xbe
mov byte [rbp + 0x10], 0x2b
mov byte [rbp + 0x11], 0x73
mov byte [rbp + 0x12], 0xae
mov byte [rbp + 0x13], 0xf0
mov byte [rbp + 0x14], 0x85
mov byte [rbp + 0x15], 0x7d
mov byte [rbp + 0x16], 0x77
mov byte [rbp + 0x17], 0x81
mov byte [rbp + 0x18], 0x1f
mov byte [rbp + 0x19], 0x35
mov byte [rbp + 0x1a], 0x2c
mov byte [rbp + 0x1b], 7
mov byte [rbp + 0x1c], 0x3b
mov byte [rbp + 0x1d], 0x61
mov byte [rbp + 0x1e], 8
mov byte [rbp + 0x1f], 0xd7
mov byte [rbp + 0x20], 0x2d
mov byte [rbp + 0x21], 0x98
mov byte [rbp + 0x22], 0x10
mov byte [rbp + 0x23], 0xa3
mov byte [rbp + 0x24], 9
mov byte [rbp + 0x25], 0x14
mov byte [rbp + 0x26], 0xdf
mov byte [rbp + 0x27], 0xf4
mov byte [rbp + 0x48], 0
mov byte [rbp + 0x49], 1
mov byte [rbp + 0x4a], 2
mov byte [rbp + 0x4b], 3
mov byte [rbp + 0x4c], 4
mov byte [rbp + 0x4d], 5
mov byte [rbp + 0x4e], 6
mov byte [rbp + 0x4f], 7
mov byte [rbp + 0x50], 8
mov byte [rbp + 0x51], 9
mov byte [rbp + 0x52], 0xa
mov byte [rbp + 0x53], 0xb
mov byte [rbp + 0x54], 0xc
mov byte [rbp + 0x55], 0xd
mov byte [rbp + 0x56], 0xe
mov byte [rbp + 0x57], 0xf
lea r8, [rbp + 0x48]
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x150]
call fcn.140036c33
mov r8d, 8
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x150]
call fcn.140036e5e
mov eax, 1
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400a94f0]
call fcn.140036544
mov eax, edi
mov rcx, qword [rbp + 0x128]
xor rcx, rbp
call fcn.14003563a
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140035f1d
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140079a30
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140079a4a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400369ef
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400363f5
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14007b178
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400ad590]
mov ecx, 5
lea r8, [0x1400ad588]
lea rdx, str.FlsGetValue
call fcn.14007a770
mov ecx, ebx
test rax, rax
je 0x14007b1b2
add rsp, 0x20
pop rbx
jmp qword [0x1400ca020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1400367e2
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14007b1d0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400ad5a0]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x1400ad598]
call fcn.14007a770
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14007b210
call qword [0x1400ca020]
jmp 0x14007b216
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140036ac6
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14004db7c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400abb08]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400abb00]
call fcn.14004d5f4
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14004dbbc
call qword [0x1400ca020]
jmp 0x14004dbc2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140036b52
Capabilities:
Set environment variable

Disassembly:
jmp 0x140095d28
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003518a
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140095db2
cmp byte [rbp - 0x21], r15b
je 0x140095dad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, ebx
jmp 0x140095de8
call fcn.140036f2b
test eax, eax
jne 0x140095dd4
cmp byte [rbp - 0x21], r15b
je 0x140095dcc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, 1
jmp 0x140095de8
cmp byte [rbp - 0x21], r15b
je 0x140095de5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, rsi
call fcn.140034f82
test eax, eax
jne 0x140095e80
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003518a
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140095e23
cmp byte [rbp - 0x21], r15b
je 0x140095e58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140095e58
call fcn.140036f2b
test eax, eax
jne 0x140095e44
cmp byte [rbp - 0x21], r15b
je 0x140095e3d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140095e58
cmp byte [rbp - 0x21], r15b
je 0x140095e55
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r8d, ebx
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140034f82
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140095e80
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140095e83
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140095e91
mov rcx, rdi
call fcn.14003415e
cmp byte [rbp + 0x3f], r15b
je 0x140095ea0
mov rcx, qword [rbp + 0x27]
call fcn.14003415e
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140036c38
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400730b0
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140072e7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140072e7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140072e7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140072e7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140072e7b
cmp dword [rcx + 0x84], 0xe
jbe 0x140072e7b
cmp dword [rcx + 0xf8], 0
je 0x140072e7b
mov ecx, ebx
call fcn.14007300c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140072b84
cmp dword [rbp + 0x20], 0
je 0x140072ec8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140072f00
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140072e14

Function at 0x14003a9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400c900e]
call fcn.140036d19
mov byte [rbp + 4], 0
jmp 0x14003aa17
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x14003aa9c
mov byte [rbp + 0x24], 0
jmp 0x14003aa2f
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x14003aa97
movzx eax, byte [rbp + 4]
mov rcx, qword [rbp + 0x128]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 0x120]
shl edx, 2
movzx r8d, byte [rbp + 4]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rbp + 0x24]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rbp + 0x130]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 4]
mov r8, qword [rbp + 0x128]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x14003aa26
jmp 0x14003aa0e
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14003c130
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400c900e]
call fcn.140036d19
mov byte [rbp + 4], 0
jmp 0x14003c15e
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x14003c1bd
mov byte [rbp + 0x24], 0
jmp 0x14003c176
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x14003c1bb
movzx eax, byte [rbp + 0x24]
mov rcx, qword [rbp + 0x120]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 4]
movzx eax, byte [rax + rcx]
lea rcx, [0x1400a9020]
movzx edx, byte [rbp + 0x24]
mov r8, qword [rbp + 0x120]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rbp + 4]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x14003c16d
jmp 0x14003c155
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14003cf70
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400c900e]
call fcn.140036d19
mov byte [rbp + 4], 0
jmp 0x14003cf9e
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x14003cffd
mov byte [rbp + 0x24], 0
jmp 0x14003cfb6
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x14003cffb
movzx eax, byte [rbp + 0x24]
mov rcx, qword [rbp + 0x120]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 4]
movzx eax, byte [rax + rcx]
lea rcx, str.cw
movzx edx, byte [rbp + 0x24]
mov r8, qword [rbp + 0x120]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rbp + 4]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x14003cfad
jmp 0x14003cf95
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400017ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001838
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001830
cmp dword [rcx + 0x3c], edx
jl 0x140001830
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001830
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001838
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001960
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001988
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140001988
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400019f4
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140003040]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp qword [0x140003020], 0
mov rax, qword [0x140003008]
movups xmm0, xmmword [rax - 0x10]
movdqu xmmword [rsp + 0x30], xmm0
je 0x140001a2c
mov ecx, 5
int 0x29
xorps xmm0, xmm0
lea r9, [0x140003020]
lea r8, [section..data]
lea rdx, [0x140001010]
lea rcx, [rsp + 0x30]
movdqu xmmword [0x140003028], xmm0
call qword [sym.imp.ADVAPI32.dll_EventRegister]
nop dword [rax + rax]
test eax, eax
jne 0x140001a82
mov r8, qword [0x140003008]
lea edx, [rax + 2]
mov rcx, qword [0x140003020]
movzx r9d, word [r8]
call qword [sym.imp.ADVAPI32.dll_EventSetInformation]
nop dword [rax + rax]
cmp dword [section..data], 5
jbe 0x140001af5
movabs rcx, 0x2000000000000
test qword [0x140003010], rcx
je 0x140001af5
mov rax, qword [0x140003018]
and rax, rcx
cmp rax, qword [0x140003018]
jne 0x140001af5
and dword [rsp + 0x6c], 0
lea rax, str.CalculatorStarted
mov qword [rsp + 0x60], rax
lea rdx, [0x140002489]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x68], 0x12
mov qword [rsp + 0x28], rax
lea rcx, [section..data]
xor r9d, r9d
mov dword [rsp + 0x20], 3
xor r8d, r8d
call fcn.140001098
mov dword [rsp + 0x28], 1
lea r8, str.ms_calculator:
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001140
add rsp, 0x88
ret
Function at 0x140001ec6
Capabilities:
Set environment variable

Disassembly:
push rsi
sub rsp, 0x150
mov rax, qword [0x14005b7f8]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov r8d, 2
xor ecx, ecx
movabs r9, 0xcccccccccccccccd
lea r10, [0x14005a044]
mov rax, rcx
mul r9
mov rsi, rdx
mov rax, r8
mul r9
shr rdx, 2
lea eax, [rdx + rdx*4]
add eax, 0xfffffffe
cmp eax, ecx
je 0x140001f45
shr rsi, 2
lea rax, [rsi + rsi*4]
cmp eax, ecx
je 0x140001f3b
mov eax, dword [0x14005a044]
add eax, ecx
imul eax, eax, 0x143fd
add eax, 0xd622
bt eax, 0x10
jb 0x140001f45
mov al, byte [rcx + r10 + 0xe]
mov byte [rcx + r10 + 4], al
inc rcx
inc r8
cmp rcx, 0xa
jne 0x140001ef9
mov ecx, 2
xor esi, esi
mov r8d, 0xcccccccd
lea r10, [0x14005a05c]
mov rax, rcx
mul r9
shr rdx, 2
lea eax, [rdx + rdx*4]
add eax, 0xfffffffe
cmp eax, esi
je 0x140001faf
mov eax, esi
imul rax, r8
shr rax, 0x22
lea eax, [rax + rax*4]
neg eax
add eax, esi
je 0x140001fa5
mov eax, dword [0x14005a05c]
add eax, esi
imul eax, eax, 0x143fd
add eax, 0xd622
bt eax, 0x10
jb 0x140001faf
mov al, byte [rsi + r10 + 0x13]
mov byte [rsi + r10 + 4], al
inc rsi
inc rcx
cmp rsi, 0xf
jne 0x140001f65
lea rcx, str._E__E_A_LE__II
lea rdx, [0x14003b485]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rsi, [rsp + 0x40]
mov r8d, 0x104
mov rcx, rsi
xor edx, edx
call fcn.140008110
mov rcx, rsi
call fcn.140001e0c
mov rcx, rsi
xor edx, edx
call qword [0x140060708]
test eax, eax
je 0x1400020d8
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x40]
mov edx, 0xc0000000
mov r8d, 3
xor r9d, r9d
call qword [0x140060600]
cmp rax, 0xffffffffffffffff
je 0x1400020d8
mov rsi, rax
mov edx, 0x280000
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call qword [0x1400605f0]
mov qword [0x140060788], rax
mov qword [rsp + 0x20], 0
lea r9, [0x140060790]
mov rcx, rsi
mov rdx, rax
mov r8d, 0x280000
call qword [0x140060610]
test eax, eax
je 0x1400020cd
mov dword [0x14005f080], 1
mov r8d, dword [0x140060790]
mov rdx, qword [0x140060788]
mov rcx, qword [0x14005b780]
lea rax, [0x140060794]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
call qword [0x1400605d8]
call fcn.14000109c
call qword [0x140060788]
mov ecx, 0x29
jmp 0x1400020d2
mov ecx, 0x2a
call qword [0x140060640]
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.140017f30
nop
add rsp, 0x150
pop rsi
ret
Function at 0x140002744
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140002778
mov rcx, rbx
mov rdx, r14
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_64
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400027bd
test rsi, rsi
jle 0x1400027bd
mov rax, qword [rbx + 0x50]
mov edi, dword [rax]
test edi, edi
jle 0x1400027bd
cmp rdi, rsi
cmovae rdi, rsi
mov rcx, r14
mov r8, rdi
call fcn.140008230
add r14, rdi
mov r15, rsi
sub r15, rdi
mov rax, qword [rbx + 0x50]
sub dword [rax], edi
mov rax, qword [rbx + 0x38]
add qword [rax], rdi
jmp 0x1400027c0
mov r15, rsi
test r15, r15
jle 0x1400027f1
cmp qword [rbx + 0x80], 0
je 0x1400027f1
mov rcx, rbx
call fcn.14000221c
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call fcn.14001ef08
sub r15, rax
sub rsi, r15
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r8
mov rdi, r8
test r8, r8
jle 0x140002dfa
mov r15, rdx
mov rbx, rcx
mov rdi, r14
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002dde
mov rax, qword [rbx + 0x50]
mov esi, dword [rax]
test esi, esi
jle 0x140002dde
cmp rdi, rsi
cmovb rsi, rdi
mov rcx, r15
mov r8, rsi
call fcn.140008230
add r15, rsi
sub rdi, rsi
mov rax, qword [rbx + 0x50]
sub dword [rax], esi
mov rax, qword [rbx + 0x38]
add qword [rax], rsi
jmp 0x140002df5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140002dfa
mov byte [r15], al
inc r15
dec rdi
test rdi, rdi
jg 0x140002da1
sub r14, rdi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140027664
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 0x1400274c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400274c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400274c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400274c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400274c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400274c3
cmp dword [rcx + 0xf8], 0
je 0x1400274c3
mov ecx, ebx
call fcn.140027580
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.140027350
nop
cmp dword [rbp + 0x20], 0
je 0x140027511
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002751c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140027454
Function at 0x14002cc3c
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 0x14002cc6e
call fcn.14001fbfc
mov dword [rax], 0x16
call fcn.14001df90
jmp 0x14002cd8d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002cd8d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002cd8d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002cc9d
lock or dword [rcx + 0x14], 0x10
jmp 0x14002cd8d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002ccb1
call fcn.14002cbd0
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002b5c8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002d254
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002cd7b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002cd46
mov rcx, rsi
call fcn.14002b5c8
cmp eax, edi
je 0x14002cd31
mov rcx, rsi
call fcn.14002b5c8
cmp eax, 0xfffffffe
je 0x14002cd31
mov rcx, rsi
call fcn.14002b5c8
movsxd rbx, eax
lea r14, [0x1400631f0]
mov rcx, rsi
sar rbx, 6
call fcn.14002b5c8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002cd38
lea rdx, [0x14005e6b0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002cd46
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002cd6a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002cd6a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002cd6a
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 0x14002cd90
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 0x14002cda8
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, [0x1400631f0]
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 0x14002ce06
cmp word [rdx], r12w
jne 0x14002ce06
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002ce0c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002cf67
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002cf42
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002ce45
mov rcx, r9
jmp 0x14002ce68
cmp r9, rdx
jae 0x14002ce7f
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 0x14002ce29
jmp 0x14002cf67
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 0x14002cf3c
cmp dword [rsp + 0x80], edi
je 0x14002cf3c
mov rdx, r14
lea r11, [0x1400631f0]
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 0x14002cf15
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002cee8
mov word [rbx], r12w
jmp 0x14002cf63
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 0x14002cef1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002cf63
cmp word [rsp + 0x70], r12w
jne 0x14002cf22
cmp rbx, rsi
je 0x14002cee2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002da34
cmp word [rsp + 0x70], r12w
je 0x14002cf67
mov word [rbx], r13w
jmp 0x14002cf63
lea r11, [0x1400631f0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002cf5f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002cf67
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