joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1416d6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1416d61df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1416d6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416d606f
add dl, dl
jne 0x1416d6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416d60f6
xor eax, eax
add dl, dl
jne 0x1416d60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416d61ad
add dl, dl
jne 0x1416d60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416d60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416d60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416d60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416d60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1416d607e
mov eax, 1
add dl, dl
jne 0x1416d6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416d6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416d60fb
sub eax, ebx
mov ebx, 1
jne 0x1416d614c
mov ecx, 1
add dl, dl
jne 0x1416d612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416d613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416d6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416d607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1416d6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416d6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416d615d
cmp eax, 0x7d00
jae 0x1416d619b
cmp eax, 0x500
jb 0x1416d6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416d607e
cmp eax, 0x7f
ja 0x1416d619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416d607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416d61d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1416d607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140085920
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov dword [rsp + 8], 0xffffffff
mov dword [rsp + 0xc], 0
jmp 0x140085952
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0xc], eax
jae 0x1400859fa
mov eax, dword [rsp + 0xc]
mov rcx, qword [rsp]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 8]
xor eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 8]
shr eax, 8
mov dword [rsp + 8], eax
mov dword [rsp + 0x14], 0
jmp 0x140085996
mov eax, dword [rsp + 0x14]
inc eax
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 8
jge 0x1400859e5
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x1400859b2
mov dword [rsp + 0x1c], 1
jmp 0x1400859ba
mov dword [rsp + 0x1c], 0
movzx eax, byte [rsp + 0x1c]
mov byte [rsp + 0x18], al
mov eax, dword [rsp + 0x10]
shr eax, 1
mov dword [rsp + 0x10], eax
movzx eax, byte [rsp + 0x18]
test eax, eax
je 0x1400859e3
mov eax, dword [rsp + 0x10]
xor eax, 0xedb88320
mov dword [rsp + 0x10], eax
jmp 0x14008598c
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
jmp 0x140085948
mov eax, dword [rsp + 8]
not eax
add rsp, 0x28
ret

Function at 0x140085ff0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process filename

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
mov eax, 0x6b
mov word [rsp + 0x20], ax
mov eax, 0x65
mov word [rsp + 0x22], ax
mov eax, 0x72
mov word [rsp + 0x24], ax
mov eax, 0x6e
mov word [rsp + 0x26], ax
mov eax, 0x65
mov word [rsp + 0x28], ax
mov eax, 0x6c
mov word [rsp + 0x2a], ax
mov eax, 0x33
mov word [rsp + 0x2c], ax
mov eax, 0x32
mov word [rsp + 0x2e], ax
mov eax, 0x2e
mov word [rsp + 0x30], ax
mov eax, 0x64
mov word [rsp + 0x32], ax
mov eax, 0x6c
mov word [rsp + 0x34], ax
mov eax, 0x6c
mov word [rsp + 0x36], ax
xor eax, eax
mov word [rsp + 0x38], ax
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x60]
call fcn.140085a10
test eax, eax
jne 0x1400860c3
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
jmp 0x1400860ec
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x30], 0
je 0x1400860ec
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x50], rax
jne 0x14008609c
mov rax, qword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x140006850
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140028010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor esi, esi
mov dword [rsp + 0x28], 5
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea r8, str.https:__ezcheats.ru_chity_cs_2_
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [rsi + 0x20]
call qword [sym.imp.SDL3.dll_SDL_Init]
test eax, eax
js 0x1400069e6
mov edx, 0x280
lea rcx, [0x140024ad8]
mov r9d, 0x40000010
mov r8d, 0x1e0
call qword [sym.imp.SDL3.dll_SDL_CreateWindow]
mov rdi, rax
test rax, rax
je 0x1400069e6
mov rcx, rax
mov qword [rsp + 0xe0], rbx
call qword [sym.imp.SDL3.dll_SDL_GetDisplayForWindow]
mov ecx, eax
call qword [sym.imp.SDL3.dll_SDL_GetCurrentDisplayMode]
mov rcx, rdi
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
call qword [sym.imp.SDL3.dll_SDL_SetWindowSize]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SDL3.dll_SDL_SetWindowPosition]
lea edx, [rsi + 1]
mov rcx, rdi
call qword [sym.imp.SDL3.dll_SDL_SetWindowAlwaysOnTop]
movss xmm1, dword [0x140024afc]
mov rcx, rdi
call qword [sym.imp.SDL3.dll_SDL_SetWindowOpacity]
mov rcx, rdi
call qword [sym.imp.SDL3.dll_SDL_GetWindowSurface]
mov qword [0x140029da8], rax
mov ebx, esi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SDL3.dll_SDL_PollEvent]
test eax, eax
je 0x140006962
cmp dword [rsp + 0x40], 0x100
je 0x14000695d
lea rcx, [rsp + 0x40]
call qword [sym.imp.SDL3.dll_SDL_PollEvent]
test eax, eax
jne 0x140006942
jmp 0x140006962
mov ebx, 1
call fcn.140001170
test eax, eax
je 0x140006972
call fcn.140004370
jmp 0x1400069ac
xor eax, eax
mov dword [0x140029da0], esi
mov qword [rsp + 0x30], rax
movsd xmm0, qword [rsp + 0x30]
movsd qword [0x140029d80], xmm0
mov dword [0x140029d88], esi
mov dword [0x140029d90], esi
mov qword [0x140029d98], rsi
mov dword [0x140029d8c], esi
mov dword [0x140029d7c], esi
mov rcx, rdi
call qword [sym.imp.SDL3.dll_SDL_UpdateWindowSurface]
mov rcx, qword [0x140029da8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SDL3.dll_SDL_FillSurfaceRect]
test ebx, ebx
je 0x140006933
mov rbx, qword [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.SDL3.dll_SDL_DestroyWindow]
call qword [sym.imp.SDL3.dll_SDL_Quit]
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140006a20
mov rsi, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret

Function at 0x140007568
Capabilities:
Parse pe header

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

Function at 0x14000da8c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d87c
Function at 0x140012d6c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140012d9c
xor eax, eax
jmp 0x140012e5f
mov rbp, rbx
cmp word [rax], si
je 0x140012dc1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140012da8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140012da4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140012cbc
movsxd r14, eax
test eax, eax
jne 0x140012dff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140012d95
mov rcx, r14
call fcn.14000f56c
mov rdi, rax
test rax, rax
jne 0x140012e18
xor ecx, ecx
call fcn.14000e8f8
jmp 0x140012df4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140012cbc
test eax, eax
jne 0x140012e49
mov rcx, rdi
call fcn.14000e8f8
jmp 0x140012e53
xor ecx, ecx
call fcn.14000e8f8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001815c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], 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.140011dc0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400181e6
cmp byte [rbp - 0x21], r15b
je 0x1400181e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001821c
call fcn.14000eb4c
test eax, eax
jne 0x140018208
cmp byte [rbp - 0x21], r15b
je 0x140018200
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001821c
cmp byte [rbp - 0x21], r15b
je 0x140018219
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001139c
test eax, eax
jne 0x1400182bc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140011dc0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001825b
cmp byte [rbp - 0x21], r15b
je 0x140018290
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140018290
call fcn.14000eb4c
test eax, eax
jne 0x14001827c
cmp byte [rbp - 0x21], r15b
je 0x140018275
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140018290
cmp byte [rbp - 0x21], r15b
je 0x14001828d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001139c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400182bc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400182bf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400182cd
mov rcx, rdi
call fcn.14000e8f8
cmp byte [rbp + 0x3f], r15b
je 0x1400182dc
mov rcx, qword [rbp + 0x27]
call fcn.14000e8f8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001a900
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001a928
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001a928
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140028820
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x30
call fcn.1400473e0
sub rsp, rax
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
call sub.libcrypto_1_1_x64.dll_BIO_s_connect
mov rcx, rax
call sub.libcrypto_1_1_x64.dll_BIO_new
mov rsi, rax
test rax, rax
je 0x14002890f
xor r8d, r8d
mov r9, rbp
mov rcx, rax
lea edx, [r8 + 0x64]
call sub.libcrypto_1_1_x64.dll_BIO_ctrl
xor r9d, r9d
mov edx, 0x9b
mov rcx, rsi
lea r8d, [r9 + 0x10]
call sub.libcrypto_1_1_x64.dll_BIO_ctrl
test rdi, rdi
jne 0x140028897
mov rcx, rbx
call sub.libssl_1_1_x64.dll_SSL_new
mov rbx, rax
jmp 0x1400288a2
mov rcx, rdi
mov rbx, rdi
call sub.libssl_1_1_x64.dll_SSL_set_connect_state
mov r8, rsi
mov rdx, rsi
mov rcx, rbx
call sub.libssl_1_1_x64.dll_SSL_set_bio
mov rcx, rbx
call sub.libssl_1_1_x64.dll_SSL_connect
test eax, eax
jg 0x140028926
mov rcx, qword [0x1400827b8]
lea rdx, str.ERROR_n
call sub.libcrypto_1_1_x64.dll_BIO_printf
mov ecx, dword [0x140081c38]
test ecx, ecx
je 0x1400288f6
call sub.libcrypto_1_1_x64.dll_X509_verify_cert_error_string
mov rcx, qword [0x1400827b8]
lea rdx, str.verify_error:_s_n
mov r8, rax
call sub.libcrypto_1_1_x64.dll_BIO_printf
jmp 0x140028902
mov rcx, qword [0x1400827b8]
call sub.libcrypto_1_1_x64.dll_ERR_print_errors
test rdi, rdi
jne 0x14002890f
mov rcx, rbx
call sub.libssl_1_1_x64.dll_SSL_free
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
mov dword [rsp + 0x58], 1
call sub.libssl_1_1_x64.dll_SSL_get_fd
test eax, eax
js 0x14002895b
movsxd rcx, eax
lea r9, [rsp + 0x58]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rbx
jmp 0x140028911
Function at 0x14002bfb0
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
mov eax, 0x48
call fcn.1400473e0
sub rsp, rax
movaps xmmword [rsp + 0x30], xmm6
test ecx, ecx
jne 0x14002c064
xor eax, eax
lea r8, [0x14002cd30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov edx, 0x1000
mov dword [rsp + 0x20], eax
xor ecx, ecx
mov dword [0x1400829cc], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400829d0], rax
test rax, rax
jne 0x14002c02e
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400827b8]
lea rdx, str.unable_to_CreateThread___lu_
mov r8d, eax
mov ebx, eax
call sub.libcrypto_1_1_x64.dll_BIO_printf
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x1400829cc]
test eax, eax
jne 0x14002c04a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1400829cc]
test eax, eax
je 0x14002c038
mov edx, dword [0x14008116c]
xor ecx, ecx
call fcn.14003cb60
movaps xmm6, xmm0
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov edx, dword [0x14008116c]
call fcn.14003cb60
mov eax, dword [0x1400829c0]
movaps xmm6, xmm0
test eax, eax
je 0x14002c08b
mov rcx, qword [0x1400829d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400829d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x14002c980
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x40
call fcn.1400473e0
sub rsp, rax
movaps xmmword [rsp + 0x30], xmm6
movaps xmm6, xmm3
movsxd rsi, edx
mov edi, r8d
cmp r8d, 0xffffffff
jne 0x14002c9c4
mov rcx, qword [0x1400827b8]
lea rdx, str.EVP_error__n
call sub.libcrypto_1_1_x64.dll_BIO_puts
lea ecx, [rdi + 2]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x1400829c4], 0
lea rax, str.R:_d:_s:_f_n
mov qword [rsp + 0x50], rbx
lea rdx, str._d__ss_in__.2fs_n
movsxd rbx, ecx
cmovne rdx, rax
mov rcx, qword [0x1400827b8]
mov qword [rsp + 0x58], r14
lea r14, [0x140000000]
movsd qword [rsp + 0x20], xmm6
mov r9, qword [r14 + rbx*8 + 0x81760]
call sub.libcrypto_1_1_x64.dll_BIO_printf
mov rax, qword [0x140081750]
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movd xmm1, dword [rax + rsi*4]
lea rax, [rbx + rbx*2]
mov rbx, qword [rsp + 0x50]
lea rcx, [rsi + rax*2]
mov rsi, qword [rsp + 0x60]
divsd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movsd qword [r14 + rcx*8 + 0x829e0], xmm1
mov r14, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14003c360
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x430
call fcn.1400473e0
sub rsp, rax
mov rax, qword [0x1400826b8]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov edi, edx
mov r8d, 5
lea rdx, str.pass:
mov rbx, rcx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14003c3bc
lea rcx, [rbx + 5]
mov r8d, 0x17b
lea rdx, str.apps_apps.c
call sub.libcrypto_1_1_x64.dll_CRYPTO_strdup
jmp 0x14003c549
mov r8d, 4
lea rdx, str.env:
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14003c40f
lea rcx, [rbx + 4]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14003c3f5
lea r8, [rbx + 4]
lea rdx, str.Cant_read_environment_variable__s_n
jmp 0x14003c53b
mov r8d, 0x182
lea rdx, str.apps_apps.c
mov rcx, rax
call sub.libcrypto_1_1_x64.dll_CRYPTO_strdup
jmp 0x14003c549
test edi, edi
je 0x14003c423
mov rax, qword [0x140083bb8]
test rax, rax
jne 0x14003c4b7
mov r8d, 5
lea rdx, str.file:
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14003c469
lea rdx, [0x14004d27c]
lea rcx, [rbx + 5]
call sub.libcrypto_1_1_x64.dll_BIO_new_file
mov qword [0x140083bb8], rax
test rax, rax
jne 0x14003c4b7
lea r8, [rbx + 5]
lea rdx, str.Cant_open_file__s_n
jmp 0x14003c53b
xor ecx, ecx
lea rdx, str.stdin
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14003c531
cmp rcx, 6
jne 0x14003c472
mov ecx, 0x8001
call fcn.14003d800
mov qword [0x140083bb8], rax
test rax, rax
jne 0x14003c4b7
mov rcx, qword [0x1400827b8]
lea rdx, str.Cant_open_BIO_for_stdin_n
call sub.libcrypto_1_1_x64.dll_BIO_printf
jmp 0x14003c547
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.libcrypto_1_1_x64.dll_BIO_gets
mov ebx, eax
cmp edi, 1
je 0x14003c4e8
mov rcx, qword [0x140083bb8]
call sub.libcrypto_1_1_x64.dll_BIO_free_all
mov qword [0x140083bb8], 0
test ebx, ebx
jg 0x14003c501
mov rcx, qword [0x1400827b8]
lea rdx, str.Error_reading_password_from_BIO_n
call sub.libcrypto_1_1_x64.dll_BIO_printf
jmp 0x14003c547
mov edx, 0xa
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14003c518
mov byte [rax], 0
mov r8d, 0x1ba
lea rdx, str.apps_apps.c
lea rcx, [rsp + 0x20]
call sub.libcrypto_1_1_x64.dll_CRYPTO_strdup
jmp 0x14003c549
mov r8, rbx
lea rdx, str.Invalid_password_argument___s__n
mov rcx, qword [0x1400827b8]
call sub.libcrypto_1_1_x64.dll_BIO_printf
xor eax, eax
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400474c0
mov rbx, qword [rsp + 0x448]
add rsp, 0x430
pop rdi
ret
Function at 0x14003c570
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x250
call fcn.1400473e0
sub rsp, rax
mov rax, qword [0x1400826b8]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
mov rsi, rcx
mov eax, ebx
mov rdx, rcx
cmp byte [rcx], al
je 0x14003c5b8
cmp eax, 0x80000000
jae 0x14003c5b8
inc rdx
inc eax
cmp byte [rdx], bl
jne 0x14003c5a8
btr eax, 0x1f
lea r9d, [rax + 1]
mov edi, r9d
cmp rdi, 0x104
ja 0x14003c6ba
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 0x104
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14003c6a2
test rdi, rdi
je 0x14003c6a2
cmp rdi, 0x20
jb 0x14003c68c
lea rax, [rsi - 1]
add rax, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + rdi*2 + 0x2e]
cmp rdx, rax
ja 0x14003c625
cmp rcx, rsi
jae 0x14003c68c
mov rax, rdi
and rax, 0xffffffffffffffe0
nop dword [rax]
movq xmm0, qword [rsi + rbx]
movq xmm1, qword [rsi + rbx + 8]
punpcklbw xmm0, xmm0
punpcklbw xmm1, xmm1
psraw xmm0, 8
movdqu xmmword [rsp + rbx*2 + 0x30], xmm0
movq xmm0, qword [rsi + rbx + 0x10]
psraw xmm1, 8
movdqu xmmword [rsp + rbx*2 + 0x40], xmm1
movq xmm1, qword [rsi + rbx + 0x18]
punpcklbw xmm0, xmm0
punpcklbw xmm1, xmm1
psraw xmm0, 8
movdqu xmmword [rsp + rbx*2 + 0x50], xmm0
psraw xmm1, 8
movdqu xmmword [rsp + rbx*2 + 0x60], xmm1
add rbx, 0x20
cmp rbx, rax
jb 0x14003c630
cmp rbx, rdi
jae 0x14003c6a2
movsx eax, byte [rsi + rbx]
mov word [rsp + rbx*2 + 0x30], ax
inc rbx
cmp rbx, rdi
jb 0x14003c691
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003c6ba
shr eax, 4
and eax, 1
jmp 0x14003c6bf
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400474c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14003ca10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x30
call fcn.1400473e0
sub rsp, rax
movsxd rbx, ecx
mov rdi, rdx
mov rcx, rbx
lea rdx, str.apps_apps.c
mov r8d, 0x3b6
call sub.libcrypto_1_1_x64.dll_CRYPTO_malloc
test rax, rax
jne 0x14003ca7e
call fcn.14003ab70
mov rcx, qword [0x1400827b8]
lea rdx, str._s:_Could_not_allocate__d_bytes_for__s_n
mov r8, rax
mov qword [rsp + 0x20], rdi
mov r9d, ebx
call sub.libcrypto_1_1_x64.dll_BIO_printf
mov rcx, qword [0x1400827b8]
call sub.libcrypto_1_1_x64.dll_ERR_print_errors
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret