joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004c90
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140004d30
jmp 0x140004d1f
jae 0x140004df0
cmp r8, 0x201
jae 0x140004d30
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140004d88
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140004d5f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001e770
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140004db1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004e58
mov r8d, r14d
cmp r15, r8
jne 0x140004d10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004e85
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140004d1f
jmp 0x140004d30
cmp rsi, r8
jb 0x140004e9f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400071a0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140004e41
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140002610
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140004e29
jmp 0x140004e41
lea rcx, str.internal_error:_entered_unreachable_code_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14001efd0
jmp 0x140004eb4
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001f420
ud2
Function at 0x14000dca0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140022328]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000dce4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14000dd43
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14000dd52
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14000dd8a
cmp eax, 0x103
je 0x14000dd94
test eax, eax
js 0x14000dd6f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14000dd8a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140022388]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140006e60
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140002fb0
mov ecx, 7
int 0x29
ud2

Function at 0x14000de00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140022328]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000de44
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000deaa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000dee1
test eax, eax
js 0x14000debb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000ded4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140022388]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140006e60
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140002fb0
mov ecx, 7
int 0x29
ud2
Function at 0x14001c7e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001c85a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001c850
cmp r11, r10
ja 0x14001c8e5
cmp r10, rdx
ja 0x14001c8f7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001c852
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001c830
jmp 0x14001c8c7
ja 0x14001c85a
mov r11, r10
cmp rax, r8
jne 0x14001c802
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001c8cb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001c8a0
mov r8, r10
sub ecx, r9d
jns 0x14001c8be
jmp 0x14001c8cd
cmp r10, rdx
je 0x14001c8d9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001c8cd
xor al, 1
cmp r8, rdx
jne 0x14001c880
jmp 0x14001c8cd
xor eax, eax
jmp 0x14001c8cd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001ee70
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001f4a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001f420
int3

Function at 0x14001de90
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r8, qword [rcx]
mov r9d, dword [rcx + 0x68]
mov rbp, rcx
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec r9
mov r11d, dword [rax + r8 + 0x20]
lea rbx, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [rbx + 0x10]
not r9
or r11, r15
and r9, r11
test eax, eax
jne 0x180001dd3
mov ecx, dword [rbx + 0x24]
test cl, 0x40
je 0x180001dcb
mov eax, dword [r8 + 0x20]
jmp 0x180001dd3
test cl, cl
jns 0x180001dd3
mov eax, dword [r8 + 0x24]
mov edx, dword [rbx + 0x24]
mov edi, 1
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r13
mov r10d, eax
mov r14d, edi
lea rsi, [0x18001c058]
cmp di, word [r8 + 6]
jae 0x180001f35
add rbx, 0x4c
mov esi, dword [rbp + 0x68]
mov r12d, dword [rbx - 0x1c]
mov eax, dword [rbx - 0x14]
or r12, r15
lea rdi, [rsi - 1]
not rdi
and rdi, r12
test eax, eax
jne 0x180001e31
mov ecx, dword [rbx]
test cl, 0x40
je 0x180001e29
mov eax, dword [r8 + 0x20]
jmp 0x180001e31
test cl, cl
jns 0x180001e31
mov eax, dword [r8 + 0x24]
mov r13d, eax
cmp r9, rdi
je 0x180001eef
lea rax, [r10 + r11]
cmp rax, rdi
ja 0x180001eef
test r10, r10
je 0x180001ee2
bt edx, 0x19
jae 0x180001e95
cmp r11, r9
jne 0x180001ee2
cmp dword [r8 + 0x38], esi
je 0x180001e75
xor edx, edx
mov rax, r10
div rsi
test rdx, rdx
jne 0x180001ee2
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
mov edx, dword [rbx]
mov r11, r12
mov r9, rdi
mov r10, r13
jmp 0x180001f10
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
bt edx, 0x1a
lea rcx, [rax + rcx*2]
lea rax, [0x18001c058]
mov r8d, dword [rax + rcx*4]
jae 0x180001ecd
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call 0x180155f80
int3
mov edx, dword [rbx]
mov r11, r12
mov r9, rdi
mov r10, r13
jmp 0x180001f10
mov eax, dword [rbx]
bt eax, 0x19
jae 0x180001f01
bt edx, 0x19
jae 0x180001f01
or edx, eax
jmp 0x180001f07
or edx, eax
btr edx, 0x19
mov r10, r13
sub r10, r11
add r10, r12
mov r8, qword [rbp]
inc r14d
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp r14d, eax
jl 0x180001e01
mov edi, 1
lea rsi, [0x18001c058]
test r10, r10
je 0x180001fa4
bt edx, 0x19
jae 0x180001f5e
cmp r11, r9
jne 0x180001fa4
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
jmp 0x180001fa4
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
bt edx, 0x1a
lea rcx, [rax + rcx*2]
mov r8d, dword [rsi + rcx*4]
jae 0x180001f8f
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call 0x1801fb38f
int3
mov eax, edi
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18001c030]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r13, rdx
xor r14d, r14d
mov dword [0x18001c6c4], r14d
mov dword [rsp + 0x20], r14d
mov ecx, 0x64000
call fcn.180014486
mov rdi, rax
mov byte [rsp + 0x30], 0x49
mov byte [rsp + 0x31], 0x50
mov byte [rsp + 0x32], 0x48
mov byte [rsp + 0x33], 0x4c
mov byte [rsp + 0x34], 0x50
mov byte [rsp + 0x35], 0x41
mov byte [rsp + 0x36], 0x50
mov byte [rsp + 0x37], 0x49
mov byte [rsp + 0x38], r14b
mov byte [rsp + 0x40], 0x47
mov byte [rsp + 0x41], 0x65
mov byte [rsp + 0x42], 0x74
mov byte [rsp + 0x43], 0x54
mov byte [rsp + 0x44], 0x63
mov byte [rsp + 0x45], 0x70
mov byte [rsp + 0x46], 0x54
mov byte [rsp + 0x47], 0x61
mov byte [rsp + 0x48], 0x62
mov byte [rsp + 0x49], 0x6c
mov byte [rsp + 0x4a], 0x65
mov byte [rsp + 0x4b], r14b
lea rcx, [rsp + 0x30]
call fcn.1801c387f
int3

Function at 0x1800043d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
mov r11, rdx
mov rbx, rcx
test r8d, r8d
je 0x18000441c
mov r10, rdx
nop word [rax + rax]
mov eax, 0x51eb851f
inc r10
mul r9d
mov al, 0x64
shr edx, 5
imul dl
mov cl, al
movzx eax, r9b
inc r9d
sub al, cl
add al, byte [r10 - 1]
xor al, 0xb2
mov byte [r10 - 1], al
cmp r9d, r8d
jb 0x1800043f0
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x20]
xor r9d, r9d
mov rdx, r11
call qword [rax + 0x50]
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rbx
ret

Function at 0x180004440
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
mov esi, r8d
mov rbp, rdx
mov r12, rcx
mov ebx, edi
test r8d, r8d
jle 0x180004496
nop dword [rax]
mov rax, qword [r12 + 8]
mov rcx, qword [r12 + 0x20]
mov r8d, esi
movsxd rdx, ebx
sub r8d, ebx
xor r9d, r9d
add rdx, rbp
call qword [rax + 0x58]
test eax, eax
jle 0x1800044e3
add ebx, eax
cmp ebx, esi
jl 0x180004470
test esi, esi
je 0x1800044c6
nop word [rax + rax]
movzx ecx, byte [rbp]
mov eax, 0x51eb851f
inc rbp
xor cl, 0xb2
mul edi
shr edx, 5
mov al, 0x64
imul dl
add al, cl
sub al, dil
inc edi
mov byte [rbp - 1], al
cmp edi, esi
jb 0x1800044a0
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
xor al, al
jmp 0x1800044c8
Function at 0x180004fd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rsi
sub rsp, 0x80
mov rax, qword [0x18001c030]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r8, qword [rdx]
lea rax, [0x180004b10]
mov byte [rsp + 0x60], 0x54
mov qword [r11 - 0x60], rax
lea rax, [fcn.180004e50]
add r8, 0x88
mov qword [r11 - 0x58], rax
lea rax, [0x180004e00]
mov byte [rsp + 0x61], 0x72
mov qword [r11 - 0x50], rax
lea rax, [0x180004d30]
mov byte [rsp + 0x62], 0x61
mov qword [r11 - 0x48], rax
lea rax, [0x180004fc0]
mov byte [rsp + 0x63], 0x6e
mov byte [rsp + 0x64], 0x73
mov byte [rsp + 0x65], 0x66
mov byte [rsp + 0x66], 0x69
mov qword [r11 - 0x40], rax
mov byte [rsp + 0x67], 0x6c
mov byte [rsp + 0x68], 0x65
mov byte [rsp + 0x69], 0
mov qword [r11 - 0x30], rcx
cmp dword [r8 + 4], 0
mov rsi, rcx
jne 0x18000507f
mov ecx, 0x7f
push rdx
call 0x1800f0be4
jmp 0x18000515e
lea rcx, [rsp + 0x60]
call fcn.1800026b0
mov rbx, rax
test rax, rax
je 0x18000515e
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0xa0], rdi
mov dword [rsp + 0x20], 0xfffffffe
call rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov dword [rsp + 0x20], 0
call fcn.180004e50
mov ecx, 0x18
mov rdi, rax
call 0x18012e5c7
int3
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180014460
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rsi
ret
Function at 0x140028cd0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140028d9c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140028d9c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140028db5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140028d8c
cmp byte [rax], 0x5c
jne 0x140028d86
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140028d86
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140028d72
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140028d83
test r8b, 0x10
jne 0x140028d86
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140028d86
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140024820
test edi, edi
jne 0x140028cf0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140024810
int3
Function at 0x14002b650
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14002b681
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14002b6fb
mov rdi, r14
mov rcx, rbx
call fcn.14001fab0
test rax, rax
jle 0x14002b6d3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14009f9d0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14002b6eb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14002b6f3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14002b695
sub r14, rdi
jmp 0x14002b7df
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14002b712
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002b714
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002b746
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14009f9d0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14002b7dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002b781
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14002b7bd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14008a340
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14002b7dc
cmp rbp, rax
ja 0x14002b790
test rbp, rbp
je 0x14002b7dc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14008a340
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140030200
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400e5c10], 0
jne 0x1400302f2
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x1400c8fa8]
mov qword [rsp + 0x48], rbx
lea rcx, [0x1400c8f98]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x1400e5c10]
test eax, eax
js 0x1400302b5
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x1400c8f88]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x1400302a6
mov rcx, qword [rsp + 0x40]
lea r8, [0x1400c8f78]
mov r9, rdi
lea rdx, [0x1400c8f68]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x14003029b
mov rcx, qword [0x1400e5c10]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x1400302f2
cmp qword [0x1400e5c10], 0
jne 0x1400302f2
lea r9, [0x1400c8f78]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400c8f68]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x1400302ff
mov rcx, qword [0x1400e5c10]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x1400c88b8]
lea rdx, [0x1400c88d0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x140031970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x34], eax
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x1400319bc
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140031a0a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140031a05
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031a29
mov rcx, r8
call fcn.140078070
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14007f15c
int3

Function at 0x140031a30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x10]
mov rdx, rbx
add r8d, r8d
cmp qword [rbx + 0x18], 7
jbe 0x140031a85
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140031ad4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140031acf
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140031af3
mov rcx, r8
call fcn.140078070
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14007f15c
int3