joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400790c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140079249
test rdx, rdx
je 0x140079249
mov r9d, dword [rdx + 4]
mov r11d, dword [rcx + 4]
mov qword [rsp + 0x30], rsi
mov esi, r9d
or esi, r11d
bt esi, 0xa
jae 0x140079134
and r9d, r11d
bt r9d, 0xa
jae 0x14007923f
mov eax, dword [rdx + 8]
cmp dword [rcx + 8], eax
jne 0x14007923f
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx r8d, byte [rcx]
cmp r8b, byte [rdx]
je 0x14007917c
cmp r8b, 0x5f
jne 0x140079154
mov rcx, qword [rcx + 0x10]
mov r8d, ebp
call fcn.1400790c0
cmp eax, 2
jl 0x140079175
cmp byte [rbx], 0x5f
jne 0x14007923f
mov rdx, qword [rbx + 0x10]
mov r8d, ebp
mov rcx, rdi
call fcn.1400790c0
cmp eax, 2
jge 0x14007923f
mov eax, 1
jmp 0x14007911f
lea eax, [r8 + 0x66]
test al, 0xfd
je 0x1400791bc
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400791bc
mov r10, qword [rdx + 8]
sub r10, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r10]
sub edx, ecx
jne 0x1400791a7
inc rax
test ecx, ecx
jne 0x140079194
test edx, edx
je 0x1400791bc
xor ecx, ecx
cmp r8b, 0x5f
setne cl
lea eax, [rcx + 1]
jmp 0x14007911f
xor r9d, r11d
test r9b, 0x10
jne 0x14007923f
bt esi, 0xe
jb 0x14007911d
bt esi, 0xb
jb 0x14007923f
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rdi + 0x10]
mov r8d, ebp
call fcn.1400790c0
test eax, eax
jne 0x14007923f
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rdi + 0x18]
mov r8d, ebp
call fcn.1400790c0
test eax, eax
jne 0x14007923f
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rdi + 0x20]
mov r8d, ebp
call fcn.140079270
test eax, eax
jne 0x14007923f
bt esi, 0xd
jb 0x14007911d
movzx eax, word [rbx + 0x30]
cmp word [rdi + 0x30], ax
jne 0x14007923f
mov ecx, dword [rdi + 0x2c]
mov eax, dword [rbx + 0x2c]
cmp ecx, eax
je 0x14007911d
cmp ecx, ebp
jne 0x14007923f
test eax, eax
js 0x14007911d
mov eax, 2
jmp 0x14007911f
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
xor ecx, ecx
cmp rdx, rdi
mov eax, 2
cmove eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x14007a820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r12
push r15
sub rsp, 0x30
mov r12d, r8d
movsxd r15, edx
mov rbx, rcx
call fcn.14009d090
mov rsi, rax
test rax, rax
je 0x14007a9ea
movzx eax, byte [rbx + 0x1f]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r14
test al, al
jne 0x14007a868
inc dword [rbx + 0x54]
mov r14d, dword [rbx + 0x54]
jmp 0x14007a875
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r14d, dword [rbx + rax*4 + 0x24]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x14007a885
inc dword [rbx + 0x54]
mov ebp, dword [rbx + 0x54]
jmp 0x14007a891
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0x24]
mov r9d, r14d
mov r8d, r15d
mov edx, 0x32
mov rcx, rsi
mov dword [rsp + 0x20], 2
call fcn.1400608a0
mov ecx, r15d
mov r8d, 1
shl r8d, cl
or dword [rsi + 0x94], r8d
cmp r15d, 1
je 0x14007a8e5
mov rax, qword [rsi]
mov rdx, r15
mov rcx, qword [rax + 0x20]
shl rdx, 5
mov rax, qword [rdx + rcx + 8]
cmp byte [rax + 0x11], 0
je 0x14007a8e5
or dword [rsi + 0x98], r8d
xor edi, edi
mov r9d, ebp
mov r8d, r12d
lea edx, [rdi + 0x19]
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.1400608a0
lea edx, [rdi + 0x53]
xor r9d, r9d
mov r8d, ebp
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.1400608a0
mov r12d, eax
mov rax, qword [rsi + 8]
test rax, rax
je 0x14007a92b
movsxd rcx, dword [rsi + 0x3c]
lea rdx, [rcx + rcx*2]
mov byte [rax + rdx*8 - 0x15], 0x88
mov r9d, 2
mov r8d, r15d
mov rcx, rsi
lea edx, [r9 + 0x31]
mov dword [rsp + 0x20], ebp
call fcn.1400608a0
mov edx, dword [rsi + 0x3c]
cmp edx, r12d
jbe 0x14007a958
mov rax, qword [rsi + 8]
lea rcx, [r12 + r12*2]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
test r14d, r14d
je 0x14007a9a2
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x14007a9a2
mov ecx, edi
lea rax, [rbx + 0x88]
nop dword [rax + rax]
cmp dword [rax + 0xc], r14d
je 0x14007a99e
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14007a980
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], r14d
inc byte [rbx + 0x1f]
jmp 0x14007a9a2
mov byte [rax + 6], 1
mov r14, qword [rsp + 0x60]
test ebp, ebp
je 0x14007a9e0
movzx ecx, byte [rbx + 0x1f]
cmp cl, 8
jae 0x14007a9e0
lea rax, [rbx + 0x88]
nop dword [rax + rax]
cmp dword [rax + 0xc], ebp
je 0x14007a9dc
inc edi
add rax, 0x14
cmp edi, 0xa
jl 0x14007a9c0
movzx eax, cl
mov dword [rbx + rax*4 + 0x24], ebp
inc byte [rbx + 0x1f]
jmp 0x14007a9e0
mov byte [rax + 6], 1
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r12
pop rsi
ret
Function at 0x14007dfb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r10d, r10d
mov r14, r8
mov rsi, rdx
mov rbp, rcx
mov rbx, rdx
test rdx, rdx
je 0x14007dff1
cmp byte [rdx], r10b
je 0x14007dfe9
inc rbx
cmp byte [rbx], r10b
jne 0x14007dfe1
sub ebx, edx
and ebx, 0x3fffffff
mov r15d, dword [rcx + 0x28]
xor edi, edi
test r15d, r15d
jle 0x14007e11e
mov qword [rsp + 0x40], r12
lea r12, [0x140138ef0]
nop dword [rax]
mov r9d, edi
cmp edi, 2
jge 0x14007e01c
xor r9d, 1
test r14, r14
je 0x14007e075
mov rcx, qword [rbp + 0x20]
movsxd rdx, r9d
mov rax, r14
shl rdx, 5
mov r8, qword [rdx + rcx]
movzx edx, byte [r14]
test dl, dl
je 0x14007e060
nop dword [rax + rax]
movzx ecx, byte [r8]
movzx edx, dl
movzx ecx, byte [rcx + r12]
cmp byte [rdx + r12], cl
jne 0x14007e060
movzx edx, byte [rax + 1]
inc rax
inc r8
test dl, dl
jne 0x14007e040
movzx ecx, byte [r8]
movzx edx, byte [rcx + r12]
movzx ecx, byte [rax]
movzx eax, byte [rcx + r12]
cmp eax, edx
jne 0x14007e0f2
mov rax, qword [rbp + 0x20]
movsxd rcx, r9d
shl rcx, 5
mov r10, qword [rcx + rax + 0x18]
cmp qword [r10 + 0x18], 0
je 0x14007e0cb
xor r8d, r8d
mov edx, ebx
mov r9, rsi
test ebx, ebx
jle 0x14007e0c0
nop dword [rax + rax]
movzx eax, byte [r9]
dec edx
lea r9, [r9 + 1]
movzx ecx, byte [rax + r12]
lea eax, [r8*8]
xor ecx, eax
xor r8d, ecx
test edx, edx
jg 0x14007e0a0
xor edx, edx
mov eax, r8d
div dword [r10 + 8]
jmp 0x14007e0cd
xor edx, edx
mov r9d, edx
lea rcx, [r10 + 8]
mov r8d, ebx
mov rdx, rsi
call fcn.140044bf0
test rax, rax
je 0x14007e0ef
mov r10, qword [rax + 0x10]
test r10, r10
jne 0x14007e0fd
jmp 0x14007e0f2
xor r10d, r10d
inc edi
cmp edi, r15d
jl 0x14007e010
mov r12, qword [rsp + 0x40]
mov rax, r10
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rax, r10
jmp 0x14007e105
Function at 0x14007e280
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r9d, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rdx
test rdx, rdx
je 0x14007e2b8
cmp byte [rdx], r9b
je 0x14007e2b0
inc rbx
cmp byte [rbx], r9b
jne 0x14007e2a8
sub ebx, edx
and ebx, 0x3fffffff
mov ebp, dword [rcx + 0x28]
xor edi, edi
test ebp, ebp
jle 0x14007e3dc
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r15
mov r15, qword [rcx + 0x20]
lea r12, [0x140138ef0]
nop word [rax + rax]
mov eax, edi
cmp edi, 2
jge 0x14007e2ea
xor eax, 1
movsxd r8, eax
shl r8, 5
mov r10, qword [r8 + r15 + 0x18]
test r14, r14
je 0x14007e345
movzx edx, byte [r14]
mov r8, qword [r8 + r15]
mov rax, r14
test dl, dl
je 0x14007e330
nop word [rax + rax]
movzx ecx, byte [r8]
movzx edx, dl
movzx ecx, byte [rcx + r12]
cmp byte [rdx + r12], cl
jne 0x14007e330
movzx edx, byte [rax + 1]
inc rax
inc r8
test dl, dl
jne 0x14007e310
movzx ecx, byte [r8]
movzx edx, byte [rcx + r12]
movzx ecx, byte [rax]
movzx eax, byte [rcx + r12]
cmp eax, edx
jne 0x14007e3b2
cmp qword [r10 + 0x30], 0
je 0x14007e38b
xor r8d, r8d
mov edx, ebx
mov r9, rsi
test ebx, ebx
jle 0x14007e380
nop dword [rax + rax]
movzx eax, byte [r9]
dec edx
lea r9, [r9 + 1]
movzx ecx, byte [rax + r12]
lea eax, [r8*8]
xor ecx, eax
xor r8d, ecx
test edx, edx
jg 0x14007e360
xor edx, edx
mov eax, r8d
div dword [r10 + 0x20]
jmp 0x14007e38d
xor edx, edx
mov r9d, edx
lea rcx, [r10 + 0x20]
mov r8d, ebx
mov rdx, rsi
call fcn.140044bf0
test rax, rax
je 0x14007e3af
mov r9, qword [rax + 0x10]
test r9, r9
jne 0x14007e3bc
jmp 0x14007e3b2
xor r9d, r9d
inc edi
cmp edi, ebp
jl 0x14007e2e0
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rax, r9
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rax, r9
jmp 0x14007e3c9
Function at 0x14008cc30
Capabilities:
Encode data using xor

Disassembly:
mov rdx, qword [rcx]
mov rax, rdx
test rdx, rdx
je 0x14008cc4f
cmp byte [rdx], 0
je 0x14008cc48
inc rax
cmp byte [rax], 0
jne 0x14008cc40
sub eax, edx
and eax, 0x3fffffff
mov rcx, qword [rcx + 0x70]
mov r8d, eax
add rcx, 0x50
jmp fcn.140044cc0
Function at 0x1400be0d0
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400be14a
mov eax, dword [0x140184200]
test al, 1
jne 0x1400be129
or eax, 1
mov dword [0x140184200], eax
call fcn.14003bda0
lea rcx, [0x140123810]
call fcn.1400dd8d0
nop
lea r8, str.OPM_db_session_is_already_initialized_in_opd_openSession
lea rdx, [0x14013d788]
lea rcx, [0x140184130]
call fcn.14003cff0
xor eax, eax
jmp 0x1400be2bb
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
cmp qword [rdx + 0x18], 0x10
jb 0x1400be16b
mov rcx, qword [rdx]
jmp 0x1400be16e
mov rcx, rdx
lea rdx, [rsp + 0x28]
call fcn.1400355a0
test al, al
jne 0x1400be1c5
mov eax, dword [0x140184200]
test al, 1
jne 0x1400be1a1
or eax, 1
mov dword [0x140184200], eax
call fcn.14003bda0
lea rcx, [0x140123810]
call fcn.1400dd8d0
nop
lea r8, str.Failed_in_converting_opm_db_path_from_string_to_wide
lea rdx, [0x14013d788]
lea rcx, [0x140184130]
call fcn.14003cff0
mov edi, 0xc
jmp 0x1400be2a7
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400be238
lea rdi, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdi, qword [rsp + 0x28]
mov eax, dword [0x140184200]
test al, 1
jne 0x1400be216
or eax, 1
mov dword [0x140184200], eax
call fcn.14003bda0
lea rcx, [0x140123810]
call fcn.1400dd8d0
nop
mov r9, rdi
lea r8, str.File__s_does_not_exist
lea rdx, str.Utilities
lea rcx, [0x140184130]
call fcn.14003ce50
mov r8b, 1
jmp 0x1400be243
mov rcx, rbx
call fcn.1400c3480
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.1400be2e0
mov edi, eax
test eax, eax
jne 0x1400be270
mov rcx, rsi
call fcn.1400c1830
mov edi, eax
test eax, eax
je 0x1400be2a7
xor edx, edx
mov rcx, qword [rsi]
call fcn.1400ba4c0
test eax, eax
jne 0x1400be2a7
mov rcx, rbx
call fcn.140035870
test al, al
je 0x1400be2a7
call fcn.14003c140
lea r8, str.Deleted_opm.db_file_with_incorrect_permissions_now_recreating_one_with_default_permissions
lea rdx, [0x14013d788]
mov rcx, rax
call fcn.14003cff0
mov r8b, 1
mov rdx, rbx
mov rcx, rsi
call fcn.1400be2e0
mov edi, eax
cmp qword [rsp + 0x40], 8
jb 0x1400be2b9
mov rcx, qword [rsp + 0x28]
call fcn.1400400f0
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400dc400
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400c33b0
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x100
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1400c343f
mov eax, dword [0x140184200]
test al, 1
jne 0x1400c3418
or eax, 1
mov dword [0x140184200], eax
call fcn.14003bda0
lea rcx, [0x140123810]
call fcn.1400dd8d0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str._Failed_in_getting_user_name_error:_d
lea rdx, [0x14013d788]
lea rcx, [0x140184130]
call fcn.14003d0c0
xor al, al
jmp 0x1400c3467
cmp word [rsp + 0x30], 0
jne 0x1400c344b
xor eax, eax
jmp 0x1400c3455
lea rcx, [rsp + 0x30]
call fcn.1400ded00
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140010250
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400dc400
add rsp, 0x250
pop rbx
ret
Function at 0x1400c9530
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
xor r11d, r11d
lea rdi, [0x140000000]
nop
movzx r10d, byte [r11 + rdi + 0x13cab0]
inc r11
mov ecx, r10d
lea r9d, [r10 + r10]
mov r8d, r10d
shr r8d, 7
mov eax, r9d
shl eax, 0x18
imul edx, r8d, 0x1b000000
xor edx, eax
mov eax, r10d
shl eax, 8
or ecx, eax
mov eax, r9d
shl ecx, 8
or ecx, edx
imul edx, r8d, 0x11b
xor rdx, rax
xor rdx, r10
or rdx, rcx
shl rdx, 0x20
or rdx, rcx
mov qword [rdi + r11*8 + 0x182bb8], rdx
cmp r11, 0x100
jl 0x1400c9540
mov rdi, qword [rsp + 8]
mov qword [0x1401833c8], 0
mov qword [0x1401833c0], 0
mov byte [0x140182981], 1
ret

Function at 0x1400c95d0
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 r14
push r15
xor r14d, r14d
lea r15, [0x140000000]
nop dword [rax]
nop word [rax + rax]
movzx r9d, byte [r14 + r15 + 0x13c9b0]
inc r14
lea ecx, [r9 + r9]
mov r8d, r9d
mov r11d, r9d
xor ecx, r9d
shr r8d, 6
shr r11d, 7
lea r10d, [rcx + rcx]
lea ecx, [rcx*4]
mov edx, r8d
imul eax, r11d, 0x1b000000
xor ecx, r9d
and r8d, 1
xor r10d, r9d
shl ecx, 8
and edx, 2
add r10d, r10d
shl r10d, 0x18
mov esi, r9d
xor r10d, eax
shr esi, 5
mov ebp, esi
mov ebx, esi
and esi, 1
and ebx, 2
and ebp, 4
imul eax, esi, 0x1b000000
xor r10d, eax
imul eax, ebx, 0x1b000000
xor r10d, eax
imul eax, r8d, 0x1b000000
xor r10d, eax
imul eax, edx, 0x1b000000
imul edx, edx, 0x11b00
xor r10d, eax
imul eax, ebp, 0x1b000000
xor r10d, eax
imul eax, esi, 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, r8d, 0x11b00
xor ecx, eax
imul eax, ebp, 0x11b00
xor edx, ecx
lea ecx, [r9*8]
xor ecx, r9d
xor edx, eax
shl ecx, 0x10
or edx, r10d
imul eax, esi, 0x11b0000
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, ebp, 0x11b0000
xor ecx, eax
lea eax, [r9*4]
or edx, ecx
xor eax, r9d
lea r8d, [rax + rax]
imul ecx, r11d, 0x11b
xor r8, rcx
imul ecx, esi, 0x11b
xor r8, rcx
imul ecx, ebx, 0x11b
xor r8, rcx
imul ecx, ebp, 0x11b
xor r8, rcx
xor r8, r9
or r8, rdx
shl r8, 0x20
or r8, rdx
or r8, r9
mov qword [r15 + r14*8 + 0x183878], r8
cmp r14, 0x100
jl 0x1400c9600
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov byte [0x140182982], 1
pop r15
pop r14
ret
Function at 0x1400ceb60
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
xor eax, eax
lea rdx, [rcx + 0x68]
mov word [rsp + 0x30], 0
cmp qword [rdx + 0x18], 8
mov qword [rsp + 0x38], rax
jb 0x1400ceb80
mov rdx, qword [rdx]
lea r8, str.rb__ccsUTF_8
lea rcx, [rsp + 0x38]
call fcn.1400e40b4
mov r9, qword [rsp + 0x38]
test r9, r9
je 0x1400cebea
mov qword [rsp + 0x20], rbx
mov ebx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rbx + 1]
mov edx, ebx
call fcn.1400e3348
mov rcx, qword [rsp + 0x38]
call fcn.1400de254
movzx ecx, byte [rsp + 0x30]
movzx eax, byte [rsp + 0x31]
cmp cl, 0xff
jne 0x1400cebd2
cmp al, 0xfe
je 0x1400cebdd
cmp al, 0xff
jne 0x1400cebdb
cmp cl, 0xfe
je 0x1400cebdd
xor ebx, ebx
movzx eax, bl
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret

Function at 0x1400cec00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
cmp dword [rcx + 0xc8], 1
mov rsi, rdx
mov rdi, rcx
jne 0x1400cec3f
call fcn.1400ceb60
test al, al
jne 0x1400cec3f
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400cec37
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbp
mov rcx, rdi
call fcn.1400cfd70
lea rbx, [rdi + 0x68]
cmp qword [rbx + 0x18], 8
jb 0x1400cec4f
mov rcx, qword [rbx]
jmp 0x1400cec52
mov rcx, rbx
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x1400ced1c
cmp qword [rbx + 0x18], 8
jb 0x1400cec90
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x1400cecd2
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
cmp dword [rdi + 0xc8], 1
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x68]
jne 0x1400cecfc
mov ecx, 0xfeff
mov r8d, 2
lea rdx, [rsp + 0x60]
mov word [rsp + 0x60], cx
jmp 0x1400ced13
mov word [rsp + 0x60], 0xbbef
mov byte [rsp + 0x62], 0xbf
mov r8d, 3
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400cf470
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
or rbx, 0xffffffffffffffff
nop
cmp word [rdx + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x1400cf490
mov rcx, qword [rcx + 0x90]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsi + 0x90]
xor ebp, ebp
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x90]
lea r9, [rsp + 0x40]
lea r8d, [rbp + 4]
lea rdx, [0x140137d04]
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400cf520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1400cf540
mov rcx, qword [rcx + 0x90]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsi + 0x90]
xor ebp, ebp
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x90]
lea r9, [rsp + 0x40]
lea r8d, [rbp + 2]
lea rdx, [0x14013d4e4]
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400d5210
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x2060
call fcn.1400e3500
sub rsp, rax
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rsp + 0x2050], rax
xor ebx, ebx
cmp qword [rcx + 0x18], 8
mov rsi, rdx
mov edi, ebx
jb 0x1400d5248
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0xc0000000
lea r8d, [r9 + 3]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp qword [rsi + 0x18], 8
mov rbp, rax
jb 0x1400d527c
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d52c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400d532a
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x1000
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d5301
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400d5309
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [rsp + 0x40], 0x1000
je 0x1400d52c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
sete al
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.1400dc400
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2060
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d5350
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140176810]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
lea rbx, [rcx + 0x68]
xor dil, dil
cmp qword [rbx + 0x18], 8
jb 0x1400d5398
mov rcx, qword [rbx]
jmp 0x1400d539b
mov rcx, rbx
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r15 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d53d5
xor al, al
jmp 0x1400d54e1
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rbp, qword [rsp + 0x40]
test eax, eax
je 0x1400d53ef
mov dil, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x1400d54dd
cmp rbp, 0xa00000
jl 0x1400d54dd
mov rcx, qword [rsi + 0x90]
test rcx, rcx
je 0x1400d5420
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400104e4
nop
lea rcx, [rsp + 0x50]
call fcn.1400d55b0
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400d5210
test al, al
je 0x1400d54b4
cmp qword [rbx + 0x18], 8
jb 0x1400d546e
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 5
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 0x90], rax
test rax, rax
je 0x1400d54b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x90], r15
mov rax, qword [rsi]
lea rdx, [rsi + 0x90]
mov rcx, rsi
call qword [rax]
movzx ebx, al
cmp qword [rsp + 0x68], 8
jb 0x1400d54d8
mov rcx, qword [rsp + 0x50]
call fcn.1400400f0
movzx eax, bl
jmp 0x1400d54e1
movzx eax, dil
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400dc400
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x1400d5510
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rdx
mov rdi, rcx
jne 0x1400d556e
cmp qword [rdx + 0x18], 8
jb 0x1400d5532
mov r8, qword [rdx]
jmp 0x1400d5535
mov r8, rdx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
jne 0x1400d556e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400d556e
cmp qword [rbx + 0x18], 8
jb 0x1400d555e
mov r8, qword [rbx]
jmp 0x1400d5561
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rdi], rax
cmp qword [rdi], 0
setne dil
cmp qword [rbx + 0x18], 8
jb 0x1400d5585
mov rcx, qword [rbx]
call fcn.1400400f0
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
mov rbx, qword [rsp + 0x40]
movzx eax, dil
add rsp, 0x20
pop rdi
ret