joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400760e0
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rbp
push r14
push r15
sub rsp, 0x28
mov r14, r9
mov ebx, r8d
mov r15, rdx
test r9, r9
je 0x1400762ce
xor ebp, ebp
mov dword [r9], ebp
test ebx, ebx
je 0x1400762ce
test rdx, rdx
je 0x1400762ce
lea ecx, [r8 + r8*4]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea ecx, [rdx + 4]
mov dword [r9], ecx
call fcn.14003be80
mov r10, rax
test rax, rax
je 0x1400762ce
mov qword [rsp + 0x58], rdi
mov eax, 0xaaaaaaab
mul ebx
mov qword [rsp + 0x20], r13
mov ecx, ebp
mov edi, edx
lea r13, [0x14028e250]
shr edi, 1
je 0x1400761f8
mov qword [rsp + 0x50], rsi
lea ebp, [rdi + rdi*2]
mov qword [rsp + 0x60], r12
lea ecx, [rdi*4]
mov r12d, edi
mov r11, r10
mov rsi, r15
nop dword [rax + rax]
movzx edx, byte [rsi]
lea r11, [r11 + 4]
movzx r8d, byte [rsi + 2]
mov eax, edx
movzx r9d, byte [rsi + 1]
lea rsi, [rsi + 3]
shr rax, 2
and edx, 3
shl edx, 4
movzx eax, byte [rax + r13]
mov byte [r11 - 4], al
mov eax, r9d
shr rax, 4
and r9d, 0xf
or rdx, rax
shl r9d, 2
movzx eax, byte [rdx + r13]
mov byte [r11 - 3], al
mov eax, r8d
shr rax, 6
and r8d, 0x3f
mov edx, r9d
or rdx, rax
movzx eax, byte [rdx + r13]
mov byte [r11 - 2], al
movzx eax, byte [r8 + r13]
mov byte [r11 - 1], al
sub r12, 1
jne 0x140076180
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
lea eax, [rdi + rdi*2]
mov rdi, qword [rsp + 0x58]
sub ebx, eax
sub ebx, 1
je 0x140076269
cmp ebx, 1
jne 0x1400762b0
movsxd rdx, ecx
inc ecx
movsxd rax, ebp
movzx r8d, byte [rax + r15]
movzx r9d, byte [rax + r15 + 1]
mov eax, r8d
shr rax, 2
and r8d, 3
shl r8d, 4
movzx eax, byte [rax + r13]
mov byte [rdx + r10], al
mov eax, r9d
shr rax, 4
and r9d, 0xf
or r8, rax
movsxd rdx, ecx
inc ecx
shl r9d, 2
movzx eax, byte [r8 + r13]
mov byte [rdx + r10], al
movzx eax, byte [r9 + r13]
movsxd rdx, ecx
mov byte [rdx + r10], al
jmp 0x1400762a4
movsxd rdx, ecx
inc ecx
movsxd rax, ebp
movzx r8d, byte [rax + r15]
mov eax, r8d
and r8d, 3
shr rax, 2
shl r8d, 4
movzx eax, byte [rax + r13]
mov byte [rdx + r10], al
movzx eax, byte [r8 + r13]
movsxd rdx, ecx
inc ecx
mov byte [rdx + r10], al
movsxd rax, ecx
mov byte [rax + r10], 0x3d
inc ecx
movsxd rax, ecx
inc ecx
mov byte [rax + r10], 0x3d
mov r13, qword [rsp + 0x20]
movsxd rax, ecx
mov byte [rax + r10], 0
mov rax, r10
mov dword [r14], ecx
add rsp, 0x28
pop r15
pop r14
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x28
pop r15
pop r14
pop rbp
pop rbx
ret
Function at 0x140078950
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rsi, r8
mov edi, edx
mov rbx, rcx
test rcx, rcx
je 0x140078b0e
test edx, edx
je 0x140078b0e
mov qword [rax + 8], r14
mov eax, 0x23
mov word [rbp + 0x4b], ax
mov r14d, 0x28
mov qword [rbp - 0x19], 0x250024
mov dword [rbp - 0x11], 0x270026
mov dword [rbp - 0xd], 0x290028
mov dword [rbp - 9], 0x10000
mov dword [rbp - 5], 0x30002
mov dword [rbp - 1], 0x50004
mov dword [rbp + 3], 0x70006
mov qword [rbp + 7], 0x90008
mov qword [rbp + 0xf], 0x2a0000
mov dword [rbp + 0x17], 0xa0000
mov dword [rbp + 0x1b], 0xc000b
mov dword [rbp + 0x1f], 0xe000d
mov dword [rbp + 0x23], 0x10000f
mov dword [rbp + 0x27], 0x120011
mov dword [rbp + 0x2b], 0x140013
mov dword [rbp + 0x2f], 0x160015
mov dword [rbp + 0x33], 0x180017
mov dword [rbp + 0x37], 0x1a0019
mov dword [rbp + 0x3b], 0x1c001b
mov dword [rbp + 0x3f], 0x1e001d
mov dword [rbp + 0x43], 0x20001f
mov dword [rbp + 0x47], 0x220021
cmp edx, 2
jb 0x140078b06
nop dword [rax]
movzx ecx, byte [rbx]
lea eax, [rcx - 0x28]
cmp edi, 3
jb 0x140078ac7
cmp ax, 0x32
jbe 0x140078a54
mov ecx, r14d
sub cx, r14w
movzx eax, cx
movzx ecx, byte [rbx + 1]
movzx r9d, word [rbp + rax*2 - 0x19]
lea eax, [rcx - 0x28]
cmp ax, 0x32
jbe 0x140078a71
mov ecx, r14d
sub cx, r14w
movzx eax, cx
movzx ecx, byte [rbx + 2]
movzx edx, word [rbp + rax*2 - 0x19]
lea eax, [rcx - 0x28]
cmp ax, 0x32
jbe 0x140078a8d
mov ecx, r14d
sub cx, r14w
movzx r8d, cx
imul ecx, r9d, 0x2b
add cx, dx
movzx eax, cx
mov rcx, rsi
imul edx, eax, 0x2b
add dx, word [rbp + r8*2 - 0x19]
call fcn.14003fe20
cmp edi, 3
jbe 0x140078b06
add edi, 0xfffffffd
add rbx, 3
cmp edi, 2
jae 0x140078a40
jmp 0x140078b06
cmp ax, 0x32
jbe 0x140078ad1
movzx ecx, r14w
sub cx, r14w
movzx eax, cx
movzx ecx, byte [rbx + 1]
movzx edx, word [rbp + rax*2 - 0x19]
lea eax, [rcx - 0x28]
cmp ax, 0x32
jbe 0x140078aed
mov ecx, r14d
movzx eax, dl
sub cx, r14w
movzx ecx, cx
imul edx, eax, 0x2b
add dl, byte [rbp + rcx*2 - 0x19]
mov rcx, rsi
call fcn.14003eaf0
mov r14, qword [rsp + 0xa0]
lea r11, [rsp + 0x90]
mov al, 1
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14007a050
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
mov r9, r8
lea r8, [0x14028dec0]
jmp 0x14007a060

Function at 0x14007a060
Capabilities:
Encode data using base64

Disassembly:
mov r11, rsp
push rbx
push rsi
push r12
push r15
sub rsp, 0x158
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, r9
mov r15, r8
mov esi, edx
mov r12, rcx
test edx, edx
je 0x14007a2cc
test rcx, rcx
je 0x14007a2cc
lea ecx, [rdx*4 + 8]
mov qword [r11 - 0x28], rbp
mov eax, 0xaaaaaaab
mov qword [r11 - 0x30], rdi
mul ecx
mov qword [r11 - 0x38], r14
mov ecx, edx
xor edx, edx
shr ecx, 1
lea eax, [rcx + rcx]
div esi
lea edx, [rcx + 3]
mov rcx, rbx
add edx, eax
call fcn.140033200
test al, al
je 0x14007a2c8
mov eax, 0xaaaaaaab
xor ebp, ebp
mul esi
xor r9d, r9d
xor edi, edi
mov r14d, edx
shr r14d, 1
je 0x14007a1cb
xor r10d, r10d
nop word [rax + rax]
movsx r8d, byte [rbp + r12]
add r9d, 4
inc ebp
mov eax, r8d
shr rax, 2
and r8d, 3
and eax, 0x3f
shl r8, 4
movsx edx, byte [rbp + r12]
inc ebp
movzx eax, byte [rax + r15]
mov byte [rsp + r10 + 0x20], al
mov eax, edx
movsx ecx, byte [rbp + r12]
and edx, 0xf
shr rax, 4
inc ebp
and eax, 0xf
shl rdx, 2
or r8, rax
movzx eax, byte [r8 + r15]
mov byte [rsp + r10 + 0x21], al
mov eax, ecx
shr rax, 6
and ecx, 0x3f
and eax, 3
or rdx, rax
movzx eax, byte [rdx + r15]
mov byte [rsp + r10 + 0x22], al
movzx eax, byte [rcx + r15]
mov byte [rsp + r10 + 0x23], al
add r10, 4
cmp r9d, 0x100
jl 0x14007a1a3
mov r8d, r9d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14002fa00
test al, al
je 0x14007a2c8
xor r9d, r9d
xor r10d, r10d
inc edi
cmp edi, r14d
jb 0x14007a100
test r9d, r9d
je 0x14007a1cb
mov r8d, r9d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14002fa00
test al, al
je 0x14007a2c8
lea eax, [r14 + r14*2]
mov cl, 1
sub esi, eax
sub esi, 1
je 0x14007a239
cmp esi, 1
jne 0x14007a28f
movzx esi, byte [rbp + r12]
lea eax, [rbp + 1]
movzx edi, byte [rax + r12]
mov edx, esi
shr rdx, 2
mov rcx, rbx
movzx edx, byte [rdx + r15]
call fcn.14002eb30
test al, al
je 0x14007a28d
and esi, 3
mov eax, edi
shr rax, 4
mov rcx, rbx
shl esi, 4
mov edx, esi
or rdx, rax
movzx edx, byte [rdx + r15]
call fcn.14002eb30
test al, al
je 0x14007a28d
and edi, 0xf
shl edi, 2
movzx edx, byte [rdi + r15]
jmp 0x14007a26f
movzx edi, byte [rbp + r12]
mov rcx, rbx
mov edx, edi
shr rdx, 2
movzx edx, byte [rdx + r15]
call fcn.14002eb30
test al, al
je 0x14007a28d
and edi, 3
mov rcx, rbx
shl edi, 4
movzx edx, byte [rdi + r15]
call fcn.14002eb30
test al, al
je 0x14007a28d
mov dl, 0x3d
mov rcx, rbx
call fcn.14002eb30
test al, al
je 0x14007a28d
mov dl, 0x3d
mov rcx, rbx
call fcn.14002eb30
test al, al
je 0x14007a28d
mov cl, 1
jmp 0x14007a28f
xor cl, cl
movzx eax, cl
mov rdi, qword [rsp + 0x148]
mov rbp, qword [rsp + 0x150]
mov r14, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x158
pop r15
pop r12
pop rsi
pop rbx
ret
xor al, al
jmp 0x14007a292
mov al, 1
jmp 0x14007a2aa
mov r9, r8
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
jmp 0x14007a060
Function at 0x14007a430
Capabilities:
Encode data using base64

Disassembly:
mov r11, rsp
push rbx
push rsi
push r12
push r15
sub rsp, 0x158
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, r9
mov r15, r8
mov esi, edx
mov r12, rcx
test edx, edx
je 0x14007a2cc
test rcx, rcx
je 0x14007a2cc
lea ecx, [rdx*4 + 8]
mov qword [r11 - 0x28], rbp
mov eax, 0xaaaaaaab
mov qword [r11 - 0x30], rdi
mul ecx
mov qword [r11 - 0x38], r14
mov ecx, edx
xor edx, edx
shr ecx, 1
lea eax, [rcx + rcx]
div esi
lea edx, [rcx + 3]
mov rcx, rbx
add edx, eax
call fcn.140033200
test al, al
je 0x14007a2c8
mov eax, 0xaaaaaaab
xor ebp, ebp
mul esi
xor r9d, r9d
xor edi, edi
mov r14d, edx
shr r14d, 1
je 0x14007a1cb
xor r10d, r10d
nop word [rax + rax]
movsx r8d, byte [rbp + r12]
add r9d, 4
inc ebp
mov eax, r8d
shr rax, 2
and r8d, 3
and eax, 0x3f
shl r8, 4
movsx edx, byte [rbp + r12]
inc ebp
movzx eax, byte [rax + r15]
mov byte [rsp + r10 + 0x20], al
mov eax, edx
movsx ecx, byte [rbp + r12]
and edx, 0xf
shr rax, 4
inc ebp
and eax, 0xf
shl rdx, 2
or r8, rax
movzx eax, byte [r8 + r15]
mov byte [rsp + r10 + 0x21], al
mov eax, ecx
shr rax, 6
and ecx, 0x3f
and eax, 3
or rdx, rax
movzx eax, byte [rdx + r15]
mov byte [rsp + r10 + 0x22], al
movzx eax, byte [rcx + r15]
mov byte [rsp + r10 + 0x23], al
add r10, 4
cmp r9d, 0x100
jl 0x14007a1a3
mov r8d, r9d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14002fa00
test al, al
je 0x14007a2c8
xor r9d, r9d
xor r10d, r10d
inc edi
cmp edi, r14d
jb 0x14007a100
test r9d, r9d
je 0x14007a1cb
mov r8d, r9d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14002fa00
test al, al
je 0x14007a2c8
lea eax, [r14 + r14*2]
mov cl, 1
sub esi, eax
sub esi, 1
je 0x14007a239
cmp esi, 1
jne 0x14007a28f
movzx esi, byte [rbp + r12]
lea eax, [rbp + 1]
movzx edi, byte [rax + r12]
mov edx, esi
shr rdx, 2
mov rcx, rbx
movzx edx, byte [rdx + r15]
call fcn.14002eb30
test al, al
je 0x14007a28d
and esi, 3
mov eax, edi
shr rax, 4
mov rcx, rbx
shl esi, 4
mov edx, esi
or rdx, rax
movzx edx, byte [rdx + r15]
call fcn.14002eb30
test al, al
je 0x14007a28d
and edi, 0xf
shl edi, 2
movzx edx, byte [rdi + r15]
jmp 0x14007a26f
movzx edi, byte [rbp + r12]
mov rcx, rbx
mov edx, edi
shr rdx, 2
movzx edx, byte [rdx + r15]
call fcn.14002eb30
test al, al
je 0x14007a28d
and edi, 3
mov rcx, rbx
shl edi, 4
movzx edx, byte [rdi + r15]
call fcn.14002eb30
test al, al
je 0x14007a28d
mov dl, 0x3d
mov rcx, rbx
call fcn.14002eb30
test al, al
je 0x14007a28d
mov dl, 0x3d
mov rcx, rbx
call fcn.14002eb30
test al, al
je 0x14007a28d
mov cl, 1
jmp 0x14007a28f
xor cl, cl
movzx eax, cl
mov rdi, qword [rsp + 0x148]
mov rbp, qword [rsp + 0x150]
mov r14, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x158
pop r15
pop r12
pop rsi
pop rbx
ret
xor al, al
jmp 0x14007a292
mov al, 1
jmp 0x14007a2aa
mov r9, r8
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
jmp 0x14007a060
Function at 0x14007c110
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
call fcn.14003ba30
lea rdx, str.____________
mov rcx, rsi
call fcn.14002e730
movsd xmm6, qword [0x14028e738]
xor ebx, ebx
movsd xmm7, qword [0x14028e740]
mov edx, dword [0x14035787c]
lea edi, [rbx + 0xc]
lea ebp, [rbx + 9]
mov byte [rsp + rbx + 0x20], gethostbyname
test edx, edx
jne 0x14007c183
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x1403460f0]
mov ecx, dword [0x1403460f4]
add eax, 0x204f
imul eax, edx
add ecx, 0x146bf
xor edx, edx
div ecx
mov dword [0x14035787c], edx
mov eax, edx
test edx, edx
jne 0x14007c1bb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov dword [0x14035787c], eax
and eax, 0xffffff
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, xmm6
mulsd xmm0, xmm7
cvttsd2si rax, xmm0
cmp eax, ebp
cmova eax, ebp
add al, 0x30
mov byte [rsp + rbx + 0x21], al
add rbx, 2
sub rdi, 1
jne 0x14007c172
lea r8d, [rdi + 0x18]
mov rcx, rsi
lea rdx, [rsp + 0x20]
call fcn.14002fa00
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402474e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
mov rsp, r11
pop rdi
ret

Function at 0x14007c240
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbx, rcx
call fcn.140030e50
cmp byte [0x140357881], 0
jne 0x14007c2c3
xor edx, edx
mov r8d, 0x200
lea rcx, [0x140357a50]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x100
lea rdx, [rsp + 0x20]
lea rcx, [0x140357a50]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x14007c2bc
movsd xmm0, qword [str.Win32]
movsd qword [0x140357a50], xmm0
movzx eax, word [0x14028e700]
mov word [0x140357a58], ax
mov byte [0x140357881], 1
xor edx, edx
mov r8d, 0x170
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
call fcn.140047680
nop
lea rdx, [0x140357a50]
lea rcx, [rsp + 0x30]
call fcn.140048360
lea rcx, [rsp + 0x30]
call fcn.14004acf0
mov rdx, rax
mov rcx, rbx
call fcn.14002e730
nop
lea rcx, [rsp + 0x30]
call fcn.1400476e0
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1402474e0
add rsp, 0x1b0
pop rbx
ret
Function at 0x14009e300
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x4c], r8d
mov rbx, rdx
mov rax, qword [rbp + 0x1d0]
mov qword [rsp + 0x58], rax
mov eax, dword [rbp + 0x1d8]
mov dword [rsp + 0x44], eax
mov eax, dword [rbp + 0x1e0]
mov dword [rsp + 0x40], eax
mov rax, qword [rbp + 0x1e8]
mov qword [rsp + 0x50], rax
mov r15, qword [rbp + 0x1f0]
mov r13, qword [rbp + 0x1f8]
xor r12d, r12d
mov dword [r15], r12d
xor edx, edx
mov r8d, 0x170
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x10]
call fcn.140047680
nop
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.140048360
mov r8b, 0x5c
mov dl, 0x2f
lea rcx, [rbp - 0x10]
call fcn.14004bab0
lea rcx, [rbp - 0x10]
call fcn.14004b100
mov r14, rax
call fcn.1400722b0
mov rbx, rax
test rax, rax
je 0x14009e51f
mov edi, r12d
xor sil, sil
nop word [rax + rax]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x4c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x10], rax
cmp edi, 3
jge 0x14009e43a
cmp rax, 0xffffffffffffffff
jne 0x14009e43a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
cmp eax, 0x20
jne 0x14009e43a
inc edi
lea ecx, [rax + 0x12]
call sub.KERNEL32.dll_Sleep
jmp 0x14009e3e0
cmp qword [rbx + 0x10], 0xffffffffffffffff
jne 0x14009e51c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
cmp eax, 2
jne 0x14009e482
test sil, sil
jne 0x14009e482
lea rcx, [rbp - 0x10]
call fcn.1400468c0
test al, al
je 0x14009e482
mov sil, 1
lea rcx, [rbp - 0x10]
call fcn.140047150
lea rcx, [rbp - 0x10]
call fcn.14004b100
mov r14, rax
jmp 0x14009e3e0
test r13, r13
je 0x14009e50c
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rsp + 0x60]
call fcn.14002e000
nop
lea rcx, [rsp + 0x60]
call fcn.14002f8f0
mov rax, qword [r13]
lea rdx, str.Failed_to_open_file__3_
mov rcx, r13
call qword [rax + 0x28]
lea r8, [rbp - 0x10]
lea rdx, str.filePath
mov rcx, r13
call fcn.14004dd40
lea r8, [rsp + 0x60]
lea rdx, str.osErrorInfo
mov rcx, r13
call fcn.14004db10
nop
lea rcx, [rsp + 0x60]
call fcn.14002e050
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbx, r12
mov r12, rbx
lea rcx, [rbp - 0x10]
call fcn.1400476e0
mov rax, r12
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1402474e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009e710
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140353c70]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r12, r8
mov rdi, rcx
mov qword [rsp + 0x28], rcx
cmp dword [rcx + 8], 0x62cb09e3
je 0x14009e74b
xor al, al
jmp 0x14009e905
xor esi, esi
mov r15d, esi
test rdx, rdx
cmovns r15, rdx
cmp byte [0x140357725], sil
je 0x14009e784
cmp byte [rcx + 0xdc], sil
jne 0x14009e784
cmp qword [rcx + 0xb8], rsi
jle 0x14009e784
mov r8, r15
lea rdx, str.consumeProgress
mov rcx, r12
call fcn.14004d6e0
mov byte [rsp + 0x30], sil
mov dword [rsp + 0x20], esi
movzx r14d, byte [rdi + 0xdc]
movzx ebx, r14b
test r14b, r14b
jne 0x14009e83f
cmp qword [rdi + 0xb8], rsi
jle 0x14009e83f
mov rbx, qword [rdi + 0xc0]
mov r8, qword [rdi + 0xb8]
mov rdx, rbx
mov rcx, rdi
call fcn.14009ed50
mov dword [rsp + 0x20], eax
lea rax, [rbx + r15]
mov qword [rdi + 0xc0], rax
movzx ebx, r14b
cmp rax, qword [rdi + 0xb8]
jle 0x14009e83f
cmp byte [0x140357725], sil
je 0x14009e831
mov rax, qword [r12]
lea rdx, str.Amount_consumed_is_greater_than_the_total.
mov rcx, r12
call qword [rax + 0x28]
mov r8, qword [rdi + 0xc0]
lea rdx, str.m_consumed64
mov rcx, r12
call fcn.14004d6e0
mov r8, qword [rdi + 0xb8]
lea rdx, str.m_totalAmount64
mov rcx, r12
call fcn.14004d6e0
movzx ebx, byte [rdi + 0xdc]
mov rax, qword [rdi + 0xb8]
mov qword [rdi + 0xc0], rax
test bl, bl
jne 0x14009e860
mov r8, qword [rdi + 0xb8]
test r8, r8
jle 0x14009e860
mov rdx, qword [rdi + 0xc0]
mov rcx, rdi
call fcn.14009ed50
mov esi, eax
cmp qword [rdi + 0xa8], 0
je 0x14009e8fe
test bl, bl
jne 0x14009e927
cmp esi, dword [rsp + 0x20]
jbe 0x14009e927
cmp esi, dword [rdi + 0xa0]
jbe 0x14009e927
call sub.KERNEL32.dll_GetTickCount
mov dword [rdi + 0xb4], eax
cmp byte [rdi + 0xde], bl
je 0x14009e8a7
cmp esi, dword [rdi + 0xd4]
je 0x14009e8f0
mov dword [rdi + 0xa0], esi
cmp byte [0x140357725], 0
je 0x14009e8c9
mov r8d, esi
lea rdx, str.percentDoneCB
mov rcx, r12
call fcn.14004d750
nop
mov rcx, qword [rdi + 0xa8]
cmp dword [rcx + 0x10], 0x77109acd
jne 0x14009e8e6
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, esi
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14009e986
cmp byte [rsp + 0x30], 0
je 0x14009e8fe
mov byte [rdi + 0xb1], 1
movzx eax, byte [rdi + 0xb1]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402474e0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
cmp byte [rdi + 0xdd], 0
jne 0x14009e8fe
cmp dword [rdi + 0xd0], 0
je 0x14009e8fe
call sub.KERNEL32.dll_GetTickCount
mov edx, eax
mov ecx, eax
sub ecx, dword [rdi + 0xb4]
mov eax, dword [rdi + 0xd0]
mov r8d, 0x12c
test eax, eax
cmove eax, r8d
cmp ecx, eax
jbe 0x14009e8fe
mov dword [rdi + 0xd8], edx
mov dword [rdi + 0xb4], edx
mov rcx, qword [rdi + 0xa8]
cmp dword [rcx + 0x10], 0x77109acd
jne 0x14009e986
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax + 0x18]
nop
jmp 0x14009e8f0
Function at 0x1400a7030
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x140357c75], 0
mov rbx, rcx
jne 0x1400a724c
cmp qword [0x140357d48], 0
je 0x1400a7058
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, str.bcrypt.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140357d48], rax
test rax, rax
jne 0x1400a7098
mov rcx, rbx
mov byte [0x140357c75], 1
call fcn.14004e0e0
mov rax, qword [rbx]
lea rdx, str.Failed_to_load_bcrypt.dll
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
add rsp, 0x20
pop rbx
ret
lea rdx, str.BCryptGenerateKeyPair
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140357d48]
lea rdx, str.BCryptFinalizeKeyPair
mov qword [0x140357cf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140357d48]
lea rdx, str.BCryptExportKey
mov qword [0x140357cf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140357d48]
lea rdx, str.BCryptDestroyKey
mov qword [0x140357d00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140357d48]
lea rdx, str.BCryptCloseAlgorithmProvider
mov qword [0x140357d08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140357d48]
lea rdx, str.BCryptOpenAlgorithmProvider
mov qword [0x140357d10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140357d48]
lea rdx, str.BCryptGetProperty
mov qword [0x140357d18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140357d48]
lea rdx, str.BCryptCreateHash
mov qword [0x140357d20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140357d48]
lea rdx, str.BCryptHashData
mov qword [0x140357d28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140357d48]
lea rdx, str.BCryptDestroyHash
mov qword [0x140357d30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140357d48]
lea rdx, str.BCryptFinishHash
mov qword [0x140357d38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140357d10], 0
mov qword [0x140357d40], rax
je 0x1400a722a
cmp qword [0x140357d18], 0
je 0x1400a722a
cmp qword [0x140357d20], 0
je 0x1400a722a
cmp qword [0x140357d28], 0
je 0x1400a722a
cmp qword [0x140357d30], 0
je 0x1400a722a
cmp qword [0x140357d38], 0
je 0x1400a722a
cmp qword [0x140357cf0], 0
je 0x1400a722a
cmp qword [0x140357cf8], 0
je 0x1400a722a
cmp qword [0x140357d00], 0
je 0x1400a722a
cmp qword [0x140357d08], 0
je 0x1400a722a
test rax, rax
jne 0x1400a7050
mov rax, qword [rbx]
lea rdx, str.BCrypt_function_s__not_found.
mov rcx, rbx
call qword [rax + 0x28]
mov byte [0x140357c75], 1
mov qword [0x140357d48], 0
xor al, al
add rsp, 0x20
pop rbx
ret