joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011930
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10d, r10d
lea rbx, [0x140000000]
mov r11d, r10d
nop dword [rax]
nop word [rax + rax]
mov eax, r10d
mov r9d, 0x2a0
nop dword [rax]
mov ecx, eax
shr ecx, 1
mov edx, ecx
xor edx, 0x82f63b78
and al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov r8d, eax
xor r8d, 0x82f63b78
and dl, 1
cmove r8d, eax
mov ecx, r8d
shr ecx, 1
mov eax, ecx
xor eax, 0x82f63b78
and r8b, 1
cmove eax, ecx
sub r9, 1
jne 0x140011960
lea r8, [rbx + 0x6ebd0]
mov r9d, 4
add r8, r11
nop
mov ecx, eax
lea r8, [r8 - 0x400]
shr ecx, 1
mov edx, ecx
xor edx, 0x82f63b78
and al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0x82f63b78
and dl, 1
cmove eax, ecx
mov dword [r8 + 0x400], eax
sub r9, 1
jne 0x1400119b0
mov r9d, 0x52a0
nop dword [rax]
mov ecx, eax
shr ecx, 1
mov edx, ecx
xor edx, 0x82f63b78
and al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov r8d, eax
xor r8d, 0x82f63b78
and dl, 1
cmove r8d, eax
mov ecx, r8d
shr ecx, 1
mov eax, ecx
xor eax, 0x82f63b78
and r8b, 1
cmove eax, ecx
sub r9, 1
jne 0x140011a60
lea r8, [rbx + 0x6dbd0]
mov r9d, 4
add r8, r11
nop
mov ecx, eax
lea r8, [r8 - 0x400]
shr ecx, 1
mov edx, ecx
xor edx, 0x82f63b78
and al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0x82f63b78
and dl, 1
cmove eax, ecx
mov dword [r8 + 0x400], eax
sub r9, 1
jne 0x140011ab0
inc r10d
add r11, 4
cmp r10d, 0x100
jl 0x140011950
mov rbx, qword [rsp + 8]
ret

Function at 0x1400173d0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
lea rbx, [rcx + 0x10]
mov rdi, rcx
mov qword [rsp + 0x40], rbx
xor esi, esi
mov rcx, rbx
mov qword [rbx], rsi
xor r8d, r8d
mov qword [rbx + 8], rsi
xor edx, edx
call fcn.1400174e0
mov qword [rbx], rax
lea r9d, [rsi + 0x18]
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov qword [rdi + 0x30], rsi
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov qword [rdi + 8], rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140017530
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rdx
mov esi, 0x947000
mov edx, dword [rcx + 0x30]
xor r9d, r9d
mov rbx, rcx
mov edi, r8d
mov rcx, qword [rcx + 8]
lea eax, [rdx + r8]
cmp eax, esi
jb 0x14001766a
sub esi, edx
mov qword [rsp + 0x60], r12
mov r8d, esi
mov qword [rsp + 0x58], r14
mov rdx, rbp
mov qword [rsp + 0x50], r15
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rbx + 8]
lea r14, [rbx + 8]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0x10
lea r8, [rsp + 0x38]
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [r14]
test rcx, rcx
je 0x1400175cb
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [r14], 0
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov r15, qword [rbx + 0x10]
lea r9, [rsp + 0x38]
mov rdx, r15
lea rcx, [rbx + 0x10]
mov r12, qword [r15 + 8]
mov r8, r12
call fcn.1400173a0
mov rdx, rax
movabs rcx, 0x7fffffffffffffe
mov rax, qword [rbx + 0x18]
sub rcx, rax
cmp rcx, 1
jb 0x140017678
inc rax
sub edi, esi
mov qword [rbx + 0x18], rax
mov r8d, edi
mov qword [r15 + 8], rdx
mov rcx, rbx
mov qword [r12], rdx
inc dword [rbx + 0x34]
mov edx, esi
add rdx, rbp
mov dword [rbx + 0x30], 0
call fcn.140017530
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140041820
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add dword [rbx + 0x30], edi
jmp 0x140017654
lea rcx, str.list_T__too_long
call fcn.140040d8c
int3
Function at 0x1400176e0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rcx + 0x30], 0
mov rdi, rcx
jbe 0x140017781
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x30], 0x10
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rsi, qword [rdi + 0x10]
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rdi + 0x10]
mov r14, qword [rsi + 8]
mov r8, r14
call fcn.1400173a0
mov rdx, rax
movabs rcx, 0x7fffffffffffffe
mov rax, qword [rdi + 0x18]
sub rcx, rax
cmp rcx, 1
jb 0x140017847
inc rax
mov qword [rdi + 0x18], rax
mov qword [rsi + 8], rdx
mov qword [r14], rdx
inc dword [rdi + 0x34]
cmp dword [rdi + 0x34], 1
jne 0x14001779b
mov rax, qword [rdi + 0x10]
mov rax, qword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rdi + 0x20], xmm0
jmp 0x140017824
mov rcx, qword [rdi + 8]
lea rsi, [rdi + 8]
test rcx, rcx
je 0x1400177b5
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsi], 0
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rax, qword [rdi + 0x10]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400177fd
nop word [rax + rax]
mov rcx, qword [rsi]
lea rdx, [rbx + 0x10]
xor r9d, r9d
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rbx, qword [rbx]
cmp rbx, qword [rdi + 0x10]
jne 0x1400177e0
mov rcx, qword [rsi]
lea r8, [rdi + 0x20]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0x10
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140041820
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
lea rcx, str.list_T__too_long
call fcn.140040d8c
int3

Function at 0x140017870
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
mov rdi, rcx
xor esi, esi
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rdi + 0x10]
mov qword [rax + 8], rax
mov qword [rdi + 0x18], rsi
cmp rcx, qword [rdi + 0x10]
je 0x1400178b6
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.140040e00
mov rcx, rbx
cmp rbx, qword [rdi + 0x10]
jne 0x1400178a0
mov rcx, qword [rdi + 8]
lea rbx, [rdi + 8]
test rcx, rcx
je 0x1400178cc
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbx], rsi
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rbx, qword [rsp + 0x40]
mov qword [rdi + 0x30], rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140019940
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov esi, edx
mov rcx, qword [rcx + 0x120]
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rdi + 0x118]
mov edx, esi
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rdi + 0xf8]
mov edx, esi
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rdi + 0x100]
mov edx, esi
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rdi + 0x108]
mov edx, esi
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rdi + 0x110]
mov edx, esi
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rdi + 0x1b0]
xor ebx, ebx
test esi, esi
sete bl
mov edx, ebx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0x1b8]
mov edx, ebx
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x140081810], 0
jne case.default.0x140019a01
mov rcx, qword [rdi + 0x1c8]
mov edx, esi
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rdi + 0x128]
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_EnableWindow]

Function at 0x140019a10
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x20038
call fcn.1400417b0
sub rsp, rax
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rsp + 0x20020], rax
mov edx, 0x7fff
lea rcx, [rsp + 0x20]
call fcn.14001e660
test eax, eax
je 0x140019ae0
xor r9d, r9d
mov qword [rsp + 0x20030], rbx
lea r8, str.RapidCrcMainWindow
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
test rax, rax
je 0x140019abb
nop word [rax + rax]
mov r8d, 0x7fff
lea rdx, [rsp + 0x10020]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x10020]
call fcn.140042ee0
test rax, rax
jne 0x140019adb
xor r9d, r9d
lea r8, str.RapidCrcMainWindow
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
test rax, rax
jne 0x140019a70
mov rbx, qword [rsp + 0x20030]
mov rcx, qword [rsp + 0x20020]
xor rcx, rsp
call fcn.140041820
add rsp, 0x20038
ret
mov rax, rbx
jmp 0x140019abb
xor eax, eax
mov rcx, qword [rsp + 0x20020]
xor rcx, rsp
call fcn.140041820
add rsp, 0x20038
ret
Function at 0x14001e090
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, 0xffffffff
mov dword [rsp + 0x48], 0
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x48]
mov rdi, rcx
lea r8d, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x50]
cmp edx, 3
jb 0x14001e11f
mov eax, dword [rsp + 0x48]
cmp eax, 0xbfbbef
jne 0x14001e0ed
mov ebx, 2
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor r8d, r8d
mov r9d, 1
mov rcx, rdi
cmp ax, 0xfeff
jne 0x14001e117
xor ebx, ebx
lea edx, [rbx - 1]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
neg edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14001e240
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
mov ecx, 0x80000
call fcn.140041878
lea r9, [rsp + 0x40]
mov dword [rsp + 0x44], 1
mov r8d, 0x80000
mov qword [rsp + 0x20], 0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x40]
test edx, edx
jne 0x14001e2a8
mov rcx, rbx
call fcn.140040e00
xor eax, eax
jmp 0x14001e343
neg edx
mov r9d, 1
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsp + 0x40]
xor ecx, ecx
mov dword [rsp + 0x48], eax
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rax, [rsp + 0x50]
lea r9, [0x140058088]
mov qword [rsp + 0x20], rax
lea rcx, [0x140058078]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x44]
mov qword [rsp + 0x30], rdx
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov r9, rbx
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x48]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
lea edx, [r8 + 2]
call qword [rax + 0xb0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rbx
call fcn.140040e00
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140041820
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14001e4d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov esi, r8d
mov r15, r9
mov r14, rdx
mov rbp, rcx
cmp r8d, 1
jbe 0x14001e59d
xor r12d, r12d
mov r8d, esi
cmp dword [rsp + 0xa0], r12d
mov edi, r12d
mov rcx, r14
setne dil
xor edx, edx
inc edi
call fcn.140042d50
mov word [rsp + 0x80], r12w
mov ebx, r12d
sub esi, 1
je 0x14001e59d
mov r13d, 0xfeff
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r12
mov r8d, edi
lea rdx, [rsp + 0x80]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001e59d
cmp dword [rsp + 0x30], r12d
je 0x14001e641
movzx ecx, word [rsp + 0x80]
cmp cx, 0xa
je 0x14001e5d0
cmp cx, 0xd
je 0x14001e5d0
cmp cx, r13w
je 0x14001e590
mov eax, ebx
inc ebx
mov word [r14 + rax*2], cx
mov word [rsp + 0x80], r12w
cmp ebx, esi
jb 0x14001e540
mov rax, qword [rsp + 0x90]
mov dword [rax], 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r12
mov r8d, edi
lea rdx, [rsp + 0x80]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001e59d
cmp dword [rsp + 0x30], r12d
jbe 0x14001e623
movzx eax, word [rsp + 0x80]
cmp ax, 0xa
je 0x14001e5d0
cmp ax, 0xd
je 0x14001e5d0
neg edi
mov r9d, 1
mov edx, edi
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, qword [rsp + 0x90]
mov dword [rax], r12d
mov rax, qword [rsp + 0x98]
mov dword [r15], ebx
mov dword [rax], r12d
jmp 0x14001e5ab
mov rax, qword [rsp + 0x90]
mov dword [rax], r12d
mov rax, qword [rsp + 0x98]
mov dword [r15], ebx
jmp 0x14001e5a5

Function at 0x14001e660
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r9, qword [0x140083398]
mov rbx, rcx
movsxd rdi, edx
test r9, r9
jne 0x14001e713
mov rdx, rcx
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14001e6ff
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x40], eax
test eax, eax
je 0x14001e6ff
mov ecx, eax
call fcn.14004564c
mov qword [0x140083390], rax
test rax, rax
je 0x14001e6ff
mov r8d, dword [rsp + 0x40]
mov r9, rax
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, qword [0x140083390]
test eax, eax
je 0x14001e6fa
lea r9, [rsp + 0x48]
lea r8, [0x140083398]
lea rdx, str.StringFileInfo040704b0FileVersion
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14001e70c
mov rcx, qword [0x140083390]
call fcn.140045644
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r9, qword [0x140083398]
mov rdx, rdi
lea r8, str.RapidCRC_Unicode__s
mov rcx, rbx
call fcn.14000a100
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1400215a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400215bd
test al, 0x10
jne 0x1400215bd
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x140021ba0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1400417b0
sub rsp, rax
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, word [0x140055908]
mov rdi, rdx
mov rbx, rcx
mov word [rsp + 0x70], ax
xor edx, edx
lea rcx, [rsp + 0x72]
mov r8d, 0x10008
call fcn.140042d50
mov r9d, 0x8005
lea rax, [rsp + 0x70]
mov r10d, r9d
lea r8, [rsp + 0x70]
sub rbx, rax
lea rax, [r10 + 0x7fff7ff9]
test rax, rax
je 0x140021c28
movzx eax, word [rbx + r8]
test ax, ax
je 0x140021c28
mov word [r8], ax
add r8, 2
sub r10, 1
jne 0x140021c04
test r10, r10
lea rax, [r8 - 2]
mov rcx, r9
cmovne rax, r8
xor esi, esi
mov word [rax], si
lea rax, [rsp + 0x70]
cmp word [rax], si
je 0x140021c4f
add rax, 2
sub rcx, 1
jne 0x140021c40
mov rax, r9
mov rdx, rsi
sub rax, rcx
test rcx, rcx
cmovne rdx, rax
je 0x140021cb0
lea rcx, [rsp + 0x70]
lea rcx, [rcx + rdx*2]
sub r9, rdx
je 0x140021ca2
lea rax, [rdx + 0x7fff7ffa]
add rax, r9
lea r8, str.:CRC32
sub r8, rcx
test rax, rax
je 0x140021ca2
movzx edx, word [r8 + rcx]
test dx, dx
je 0x140021ca2
mov word [rcx], dx
dec rax
add rcx, 2
sub r9, 1
jne 0x140021c83
test r9, r9
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0x70]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140021d10
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov r8d, 8
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140021d14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140021d47
lea r8, [rsp + 0x48]
mov edx, 9
lea rcx, [rsp + 0x58]
call fcn.14001f8f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 8
lea rcx, [rsp + 0x58]
call fcn.14001e740
mov dword [rdi], eax
mov eax, 1
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140041820
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140022220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002223d
test al, 0x10
je 0x14002223d
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140022c00
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push rbx
push rbp
push rsi
push r14
mov eax, 0x20048
call fcn.1400417b0
sub rsp, rax
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rsp + 0x20030], rax
mov r14, rdx
mov rsi, rcx
lea rdx, [rsp + 0x10030]
mov ecx, 0x7fff
mov ebp, r8d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, qword [rsi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140022cdd
mov qword [rsp + 0x20040], rdi
nop dword [rax + rax]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140022cbc
test al, 0x10
je 0x140022cbc
cmp byte [0x14006f030], 0
je 0x140022ca4
mov r9, qword [rbx + 0x68]
lea r8, str.Getting_Fileinfo...__s
mov edx, 0x7fff
lea rcx, [rsp + 0x30]
call fcn.14000a100
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov r9d, ebp
lea rcx, [rsp + 0x20]
mov r8, rbx
mov rdx, rsi
call fcn.140021190
mov rbx, qword [rax]
jmp 0x140022cd0
mov rcx, qword [rbx + 0x68]
test ebp, ebp
je 0x140022d08
call fcn.14001e130
test eax, eax
je 0x140022d11
mov rbx, qword [rbx]
cmp rbx, qword [rsi]
jne 0x140022c60
mov rdi, qword [rsp + 0x20040]
lea rcx, [rsp + 0x10030]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [rsp + 0x20030]
xor rcx, rsp
call fcn.140041820
add rsp, 0x20048
pop r14
pop rsi
pop rbp
pop rbx
ret
call fcn.14001df70
test eax, eax
je 0x140022ccd
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
lea rcx, [rbx + 0x10]
dec qword [rsi + 8]
call fcn.140006670
mov edx, 0x98
mov rcx, rbx
call fcn.140040e00
mov rbx, rdi
jmp 0x140022cd0
Function at 0x140022d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea r15, [rcx + 0x3c]
xor r12d, r12d
mov rsi, rcx
test r15, r15
je 0x140022da9
mov r14d, 0x7fff
mov rax, r15
mov edx, r14d
cmp word [rax], r12w
je 0x140022d97
add rax, 2
sub rdx, 1
jne 0x140022d87
test rdx, rdx
je 0x140022da1
sub r14, rdx
jmp 0x140022da4
mov r14, r12
test rdx, rdx
jne 0x140022dac
mov r14, r12
mov qword [rcx + 0x10], r12
mov rax, qword [rcx]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140022ef7
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0xa0], rdi
nop
mov rdi, qword [rbx + 0x68]
test r14, r14
je 0x140022df0
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
lea rax, [r14 + r14]
je 0x140022df5
mov eax, 8
add rax, rdi
mov qword [rbx + 0x70], rax
mov ecx, dword [rbx + 0x24]
call fcn.14001e7b0
test eax, eax
jne 0x140022edb
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x28]
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x140022e46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x24], eax
jmp 0x140022e62
mov eax, dword [rsp + 0x48]
mov edx, dword [rsp + 0x44]
shl rdx, 0x20
or rdx, rax
mov rax, qword [rsp + 0x3c]
mov qword [rbx + 0x1c], rax
mov qword [rbx + 0x10], rdx
cmp dword [rbx + 0x24], r12d
jne 0x140022edb
mov rax, qword [rbx + 0x10]
add qword [rsi + 0x10], rax
cmp dword [rsi + 0x34], 0x14
jne 0x140022edb
lea rcx, [rbx + 0x10]
call fcn.140021dd0
test eax, eax
jne 0x140022edb
mov rdi, qword [rbx + 0x68]
lea rcx, [rbx + 0x88]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r12d
call fcn.140017900
mov rcx, rdi
lea rdx, [rax + 0x40]
call fcn.140021ba0
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x88]
test eax, eax
je 0x140022ecf
call fcn.140017900
mov dword [rax + 0x88], 3
jmp 0x140022edb
call fcn.140017900
mov dword [rax + 0x88], r12d
mov rbx, qword [rbx]
cmp rbx, qword [rsi]
jne 0x140022dd0
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140041820
add rsp, 0x60
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret