joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053aac
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.1400303f0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140053b36
cmp byte [rbp - 0x21], r15b
je 0x140053b31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140053b6c
call fcn.1400433f8
test eax, eax
jne 0x140053b58
cmp byte [rbp - 0x21], r15b
je 0x140053b50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140053b6c
cmp byte [rbp - 0x21], r15b
je 0x140053b69
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.14003048c
test eax, eax
jne 0x140053c0c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400303f0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140053bab
cmp byte [rbp - 0x21], r15b
je 0x140053be0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140053be0
call fcn.1400433f8
test eax, eax
jne 0x140053bcc
cmp byte [rbp - 0x21], r15b
je 0x140053bc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140053be0
cmp byte [rbp - 0x21], r15b
je 0x140053bdd
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.14003048c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140053c0c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140053c0f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140053c1d
mov rcx, rdi
call fcn.1400427b0
cmp byte [rbp + 0x3f], r15b
je 0x140053c2c
mov rcx, qword [rbp + 0x27]
call fcn.1400427b0
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 0x140054bac
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14004a848
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004a848
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140054cfc
cmp rax, 0xffffffffffffffff
je 0x140054cfc
xor edi, edi
test rbp, rbp
jle 0x140054ca7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140043f10
mov rbx, rax
test rax, rax
jne 0x140054c34
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140054c9d
mov edx, 0x8000
mov ecx, r14d
call fcn.14003884c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14004c5c0
cmp eax, 0xffffffff
je 0x140054c7d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140054c44
mov edx, r15d
mov ecx, r14d
call fcn.14003884c
jmp 0x140054c9d
cmp byte [rsi + 0x38], dil
je 0x140054c94
cmp dword [rsi + 0x34], 5
jne 0x140054c94
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x140054c9d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400427b0
jmp 0x140054d10
jns 0x140054d10
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004a848
cmp rax, 0xffffffffffffffff
jne 0x140054cc8
cmp byte [rsi + 0x30], dil
je 0x140054d10
mov edi, dword [rsi + 0x2c]
jmp 0x140054d10
mov ecx, r14d
call fcn.14004bab0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140054d10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x140054d10
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140054d09
mov eax, dword [rsi + 0x2c]
jmp 0x140054d0e
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004a848
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400027b0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rsi, qword [rsp + 0x40]
xor ebx, ebx
mov r11, r8
mov rdi, rdx
mov rbp, rcx
test rsi, rsi
je 0x1400027d0
mov qword [rsi], rbx
test rbp, rbp
je 0x14000298a
test rsi, rsi
je 0x14000298a
lea rcx, [rdx + 2]
mov qword [rsi], rbx
movabs r8, 0xaaaaaaaaaaaaaaab
mov rax, r8
mul rcx
shr rdx, 1
lea rdx, [rdx*4 + 2]
test r11, r11
je 0x140002987
cmp r9, rdx
jb 0x140002987
lea rcx, [r11 + r9]
cmp rcx, r11
jbe 0x140002987
mov qword [rsp + 0x20], r12
mov rax, r8
mul rdi
mov qword [rsp + 0x28], r14
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r14, rdx
mov rcx, rbx
shr r14, 1
je 0x1400028d4
mov qword [rsp + 0x30], r15
mov r15, r14
movzx r8d, byte [rbx + rbp]
movzx r10d, byte [rbx + rbp + 1]
mov eax, r8d
movzx r9d, byte [rbx + rbp + 2]
and r8d, 3
shr rax, 2
add rbx, 3
shl r8d, 4
mov edx, r8d
mov r8d, r9d
and r8d, 0x3f
movzx eax, byte [rax + r12]
mov byte [rcx + r11], al
mov eax, r10d
shr rax, 4
and r10d, 0xf
or rdx, rax
shl r10d, 2
movzx eax, byte [rdx + r12]
mov byte [rcx + r11 + 1], al
mov eax, r9d
shr rax, 6
mov edx, r10d
or rdx, rax
movzx eax, byte [rdx + r12]
mov byte [rcx + r11 + 2], al
movzx eax, byte [r8 + r12]
mov byte [rcx + r11 + 3], al
add rcx, 4
sub r15, 1
jne 0x140002851
mov r15, qword [rsp + 0x30]
lea rax, [r14 + r14*2]
mov r14, qword [rsp + 0x28]
sub rdi, rax
sub rdi, 1
je 0x14000293d
cmp rdi, 1
jne 0x14000296c
movzx edx, byte [rbx + rbp]
movzx r8d, byte [rbx + rbp + 1]
mov eax, edx
shr rax, 2
and edx, 3
shl edx, 4
movzx eax, byte [rax + r12]
mov byte [rcx + r11], al
mov eax, r8d
shr rax, 4
and r8d, 0xf
or rdx, rax
shl r8d, 2
movzx eax, byte [rdx + r12]
mov byte [rcx + r11 + 1], al
movzx eax, byte [r8 + r12]
mov byte [rcx + r11 + 2], al
mov byte [rcx + r11 + 3], 0x3d
jmp 0x140002968
movzx edx, byte [rbx + rbp]
mov eax, edx
and edx, 3
shr rax, 2
shl edx, 4
movzx eax, byte [rax + r12]
mov byte [rcx + r11], al
movzx eax, byte [rdx + r12]
mov byte [rcx + r11 + 1], al
mov word [rcx + r11 + 2], 0x3d3d
add rcx, 4
mov r12, qword [rsp + 0x20]
mov al, 1
mov byte [rcx + r11], 0
inc rcx
mov qword [rsi], rcx
mov rbx, qword [rsp + 0x38]
pop rdi
pop rsi
pop rbp
ret
mov qword [rsi], rdx
mov rbx, qword [rsp + 0x38]
xor al, al
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009ec0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140009ed6
lea rax, [rcx - 1]
add rsp, 0x38
ret
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov rax, 0xffffffffffffffff
je 0x140009ef9
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x140009f20
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140009f36
lea rax, [rcx - 1]
add rsp, 0x28
ret
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x140009f69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, 0xffffffffffffffff
mov rax, qword [rsp + 0x30]
test ecx, ecx
cmovne rax, rdx
add rsp, 0x28
ret
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140012610
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, vtable.WinCertStoreImpl.0
mov rbx, rcx
mov qword [rcx], rax
xor edi, edi
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140012671
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140012648
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x20]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012663
mov rcx, qword [rbx + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x20]
call qword [0x1400ad090]
mov qword [rbx + 0x20], rdi
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001268d
mov edx, 2
call qword [0x1400ad0d0]
test eax, eax
je 0x14001268d
mov qword [rbx + 0x28], rdi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400126a0
call qword [0x1400ad090]
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400126b3
call qword [0x1400ad090]
mov qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140012790
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov rbp, r9
mov rsi, r8
mov rbx, rcx
cmp edx, 1
jne 0x14001290e
cmp byte [rcx + 8], 0
je 0x1400128f9
cmp qword [rcx + 0x18], 0
mov qword [rsp + 0x40], rdi
jne 0x1400127db
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x1400ad0e8]
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], rbp
test rsi, rsi
je 0x1400128e6
mov rcx, qword [rbx + 0x28]
lea r9, [rbx + 0x18]
xor edx, edx
lea r8d, [rdx + 2]
call qword [0x1400ad0f0]
test eax, eax
je 0x1400128cc
cmp byte [rbx + 9], 0
je 0x1400128f5
mov rcx, qword [rbx + 0x20]
mov dword [rsp + 0x48], 0
test rcx, rcx
je 0x140012866
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140012839
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x20]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012854
mov rcx, qword [rbx + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x20]
call qword [0x1400ad090]
mov qword [rbx + 0x20], 0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400128cc
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x140012897
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [0x1400ad0e8]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14001289d
jmp 0x1400128cc
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [rsp + 0x48]
mov r9, rbx
mov qword [rsp + 0x28], rcx
lea r8, [0x140012950]
xor ecx, ecx
mov dword [rsp + 0x20], 0
xor edx, edx
call qword [0x1400ad0f8]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x1400128f5
mov eax, 0x80000002
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
cmp qword [rbx + 0x20], 0
je 0x1400128f5
mov rcx, rbx
call fcn.140012a00
xor eax, eax
jmp 0x1400128d1
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov rbx, qword [rsp + 0x50]
mov eax, 0x80000002
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret

Function at 0x140012a00
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140012a55
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140012a28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x20]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012a43
mov rcx, qword [rbx + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x20]
call qword [0x1400ad090]
mov qword [rbx + 0x20], 0
add rsp, 0x20
pop rbx
ret
Function at 0x140014f30
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov r15, rdx
mov ecx, 0x278
call fcn.1400575d4
xor edi, edi
mov r14, rax
test rax, rax
jne 0x140014f6b
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
jmp 0x14001510c
mov dword [rax + 8], 1
lea rcx, [r14 + 0x20]
lea rax, vtable.RefCountObj_class_HashAlgorithmSHA2_.0
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [r14], rax
mov r8d, 0x258
mov dword [r14 + 0x10], edi
lea rbx, [r14 + 0x18]
call fcn.1400538a0
lea rax, vtable.HashAlgorithmSHA2.0
mov qword [rbx + 8], rdi
mov qword [rbx], rax
mov eax, dword [r15]
mov dword [rbx + 0x10], edi
mov dword [rbx + 0x218], eax
cmp eax, 1
jne 0x14001502c
lea rax, [rbx + 0x18]
test rax, rax
je 0x140015019
mov dword [rax + 0x90], 0xc1059ed8
mov dword [rax + 0x94], 0x367cd507
mov dword [rax + 0x98], 0x3070dd17
mov dword [rax + 0x9c], 0xf70e5939
mov dword [rax + 0xa0], 0xffc00b31
mov dword [rax + 0xa4], 0x68581511
mov dword [rax + 0xa8], 0x64f98fa7
mov dword [rax + 0xac], 0xbefa4fa4
mov qword [rax + 8], rdi
mov qword [rax], rdi
mov dword [rbx + 0x10], 4
lea rax, [0x140015960]
jmp 0x1400150f4
cmp eax, 2
jne 0x1400150a1
lea rax, [rbx + 0x18]
test rax, rax
je 0x140015091
mov dword [rax + 0x90], 0x6a09e667
mov dword [rax + 0x94], 0xbb67ae85
mov dword [rax + 0x98], 0x3c6ef372
mov dword [rax + 0x9c], 0xa54ff53a
mov dword [rax + 0xa0], 0x510e527f
mov dword [rax + 0xa4], 0x9b05688c
mov dword [rax + 0xa8], 0x1f83d9ab
mov dword [rax + 0xac], 0x5be0cd19
mov qword [rax + 8], rdi
mov qword [rax], rdi
mov dword [rbx + 0x10], 5
lea rax, [0x140015960]
jmp 0x1400150f4
cmp eax, 3
jne 0x1400150bb
lea rcx, [rbx + 0xc8]
call fcn.140005390
mov dword [rbx + 0x10], 6
jmp 0x1400150ed
cmp eax, 4
jne 0x1400150d5
lea rcx, [rbx + 0xc8]
call fcn.1400051b0
mov dword [rbx + 0x10], 7
jmp 0x1400150ed
cmp eax, 5
jne 0x1400150f8
lea rcx, [rbx + 0xc8]
call fcn.140005560
mov dword [rbx + 0x10], 8
lea rax, [0x140015970]
mov qword [rbx + 8], rax
mov qword [rsi], rbx
mov rbx, qword [rsp + 0x30]
mov dword [r14 + 0x10], 1
mov qword [rsi + 8], r14
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x140015690
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x218]
mov rbx, rcx
cmp eax, 1
jne 0x14001571e
lea rax, [rcx + 0x18]
test rax, rax
je 0x140015706
mov dword [rax + 0x90], 0xc1059ed8
xor ecx, ecx
mov dword [rax + 0x94], 0x367cd507
mov dword [rax + 0x98], 0x3070dd17
mov dword [rax + 0x9c], 0xf70e5939
mov dword [rax + 0xa0], 0xffc00b31
mov dword [rax + 0xa4], 0x68581511
mov dword [rax + 0xa8], 0x64f98fa7
mov dword [rax + 0xac], 0xbefa4fa4
mov qword [rax + 8], rcx
mov qword [rax], rcx
lea rax, [0x140015960]
mov dword [rbx + 0x10], 4
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
cmp eax, 2
jne 0x14001579d
lea rax, [rcx + 0x18]
test rax, rax
je 0x140015785
mov dword [rax + 0x90], 0x6a09e667
xor ecx, ecx
mov dword [rax + 0x94], 0xbb67ae85
mov dword [rax + 0x98], 0x3c6ef372
mov dword [rax + 0x9c], 0xa54ff53a
mov dword [rax + 0xa0], 0x510e527f
mov dword [rax + 0xa4], 0x9b05688c
mov dword [rax + 0xa8], 0x1f83d9ab
mov dword [rax + 0xac], 0x5be0cd19
mov qword [rax + 8], rcx
mov qword [rax], rcx
lea rax, [0x140015960]
mov dword [rbx + 0x10], 5
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
cmp eax, 3
jne 0x1400157c6
add rcx, 0xc8
call fcn.140005390
lea rax, [0x140015970]
mov dword [rbx + 0x10], 6
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
cmp eax, 4
jne 0x1400157ef
add rcx, 0xc8
call fcn.1400051b0
lea rax, [0x140015970]
mov dword [rbx + 0x10], 7
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
cmp eax, 5
jne 0x140015812
add rcx, 0xc8
call fcn.140005560
lea rax, [0x140015970]
mov dword [rbx + 0x10], 8
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
Function at 0x14001abb0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x1400ad368]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14001abe2
lea ecx, [rdx + 0x12]
jmp 0x14001ae0a
mov rax, qword [rdx]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14001a4f5.0]
cmp rax, 0xffffffffffffffff
jne 0x14001ac05
lea ecx, [rax + 0x32]
jmp 0x14001ae0a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x14001a4f5.0]
xorps xmm0, xmm0
mov qword [rbx + 8], rax
mov rax, qword [rdi]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
mov rcx, rdi
movups xmmword [rsp + 0x20], xmm0
mov rax, qword [rax + 8]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [case.0x14001a4f5.0]
cmp rax, 0xffffffffffffffff
jne 0x14001ac59
lea ecx, [rax + 0x14]
jmp 0x14001ae0a
cmp rax, 0x40
je 0x14001ac69
mov ecx, 0x2f
jmp 0x14001ae0a
mov eax, 0x5a4d
cmp ax, word [rsp + 0x20]
jne 0x14001ac5f
mov eax, 0xffffffff
cmp qword [rbx + 8], rax
jle 0x14001ac8a
mov ecx, 0x30
jmp 0x14001ae0a
movsxd rax, dword [rsp + 0x5c]
mov qword [rsp + 0x1a0], rsi
test eax, eax
je 0x14001adfd
mov rsi, rax
mov rcx, rdi
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
call qword [case.0x14001a4f5.0]
cmp rax, rsi
jl 0x14001adfd
lfence
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14001a4f5.0]
cmp rax, 0xffffffffffffffff
jne 0x14001ace2
lea ecx, [rax + 0x32]
jmp 0x14001ae02
lfence
mov esi, dword [rsp + 0x5c]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x108
call fcn.1400538a0
mov rax, qword [rdi]
lea rdx, [rsp + 0x60]
mov r8d, 0xf8
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x14001a4f5.0]
cmp rax, 0xffffffffffffffff
jne 0x14001ad24
lea ecx, [rax + 0x14]
jmp 0x14001ae02
cmp rax, 0xf8
jne 0x14001adfd
cmp dword [rsp + 0x60], 0x4550
jne 0x14001adfd
xor ecx, ecx
cmp cx, word [rsp + 0x74]
je 0x14001adfd
movzx eax, word [rsp + 0x78]
mov edx, 0x10b
cmp dx, ax
jne 0x14001ad8a
cmp dword [rsp + 0xd4], 5
jb 0x14001adfd
mov eax, dword [rsp + 0xf8]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0xfc]
mov dword [rbx + 0x14], eax
lea eax, [rsi + 0x58]
mov dword [rbx + 0x18], eax
lea eax, [rsi + 0x98]
jmp 0x14001adbe
mov edx, 0x20b
cmp dx, ax
jne 0x14001adf9
cmp dword [rsp + 0xe4], 5
jb 0x14001adfd
mov eax, dword [rsp + 0x108]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x10c]
mov dword [rbx + 0x14], eax
lea eax, [rsi + 0x58]
mov dword [rbx + 0x18], eax
lea eax, [rsi + 0xa8]
mov rdx, qword [rsp + 0xbc]
mov dword [rbx + 0x1c], eax
mov eax, 1
cmp ax, dx
je 0x14001ade1
mov eax, 8
cmp ax, dx
je 0x14001ade1
xor dl, dl
jmp 0x14001ade3
mov dl, 1
movzx eax, word [rsp + 0xbe]
shr ax, 7
and al, 1
mov byte [rbx + 0x20], dl
mov byte [rbx + 0x21], al
jmp 0x14001ae02
mov word [rbx + 0x20], cx
mov ecx, 0x2f
mov rsi, qword [rsp + 0x1a0]
test ecx, ecx
sete al
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140050ca0
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x180
pop rdi
ret
Function at 0x140025d70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
cmp qword [rcx - 0x70], 0
mov rdi, rcx
je 0x140025ec6
mov qword [rax + 8], r12
add rcx, 0xffffffffffffffa8
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r14
mov qword [rax - 0x28], r15
call qword [0x1400ad180]
mov rbx, qword [rdi - 0x78]
xor edx, edx
mov rcx, rbx
mov byte [rdi - 0x50], 1
call qword [0x1400ad228]
test eax, eax
jne 0x140025de2
lea r9d, [rax + 0x10]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call qword [0x1400ad230]
test eax, eax
jne 0x140025de2
mov r14d, dword [rsp + 0x34]
jmp 0x140025de5
xor r14d, r14d
lea rcx, [rdi - 0x40]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rdi - 0x18]
lea r15, [rdi - 0x18]
cmp rbx, r15
je 0x140025e46
nop
mov rbp, qword [rbx + 0x20]
xor edx, edx
mov rcx, rbp
call qword [0x1400ad228]
test eax, eax
jne 0x140025e3a
lea r9d, [rax + 0x10]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rbp
call qword [0x1400ad230]
test eax, eax
jne 0x140025e3a
mov eax, dword [rsp + 0x34]
jmp 0x140025e3c
xor eax, eax
mov rbx, qword [rbx]
add esi, eax
cmp rbx, r15
jne 0x140025e00
lea rcx, [rdi - 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rdi - 0x48]
add eax, esi
add r14d, eax
mov eax, dword [rdi - 0x4c]
mov dword [rdi - 0x44], r14d
mov r15, qword [rsp + 0x50]
mov r13, qword [rsp + 0x88]
cmp r14d, eax
je 0x140025e90
xor r9d, r9d
lea rdx, [rdi - 0x58]
mov r8d, 0xffffffff
lea rcx, [rdi - 0x60]
call qword [0x1400ad1b0]
mov eax, dword [rdi - 0x4c]
cmp r14d, eax
jne 0x140025e71
lea rcx, [rdi - 0x58]
call qword [0x1400ad188]
mov rcx, qword [rdi - 0x70]
call qword [0x1400ad1e8]
mov rcx, qword [rdi - 0x70]
call qword [0x1400ad1f0]
mov r14, qword [rsp + 0x90]
mov r12, qword [rsp + 0x80]
mov qword [rdi - 0x70], 0
mov rcx, qword [rdi - 0x78]
call qword [0x1400ad090]
lea rsi, [rdi - 0x18]
mov qword [rdi - 0x78], 0
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x140025f5e
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rax, qword [rdi - 0xa8]
test rax, rax
je 0x140025f3f
mov edx, dword [rbx + 0x10]
mov ecx, dword [rbx + 0x14]
mov dword [rsp + 0x38], edx
mov rdx, qword [rdi - 0xa0]
mov dword [rsp + 0x34], ecx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x30], 0x18
mov dword [rsp + 0x3c], 1
call qword [case.0x14001a4f5.0]
mov rcx, qword [rbx + 0x20]
call qword [0x1400ad090]
mov edx, 0x40
mov rcx, rbx
call fcn.140025970
mov rbx, qword [rsi]
cmp rbx, rsi
jne 0x140025ef0
lea rcx, [rdi - 0x108]
call fcn.140046fc0
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x140025d70
Function at 0x14002fff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r10d, edx
lea rsi, [rcx + 0x10]
xor ebp, ebp
shr r10d, 0x1f
mov eax, edx
mov qword [rcx], rbp
cdq
mov qword [rcx + 8], rbp
mov r8d, eax
lea r11, str.0123456789
xor r8d, edx
mov rdi, rcx
sub r8d, edx
mov eax, 0x66666667
imul r8d
mov r9d, edx
sar r9d, 2
mov ecx, r9d
shr ecx, 0x1f
add r9d, ecx
lea eax, [r9 + r9*4]
add eax, eax
sub r8d, eax
je 0x14003008f
movsxd rax, r8d
lea rbx, [rsi + 4]
movzx eax, word [r11 + rax*2]
mov word [rsi], ax
mov eax, 0x66666667
imul r9d
mov r8d, edx
sar r8d, 2
mov eax, r8d
shr eax, 0x1f
add r8d, eax
lea eax, [r8 + r8*4]
add eax, eax
sub r9d, eax
movsxd rax, r9d
movzx eax, word [r11 + rax*2]
mov word [rsi + 2], ax
jmp 0x1400300c4
mov eax, 0x66666667
mov rbx, rsi
imul r9d
mov r8d, edx
sar r8d, 2
mov eax, r8d
shr eax, 0x1f
add r8d, eax
lea eax, [r8 + r8*4]
add eax, eax
sub r9d, eax
je 0x1400300ed
movsxd rax, r9d
lea rbx, [rsi + 2]
movzx eax, word [r11 + rax*2]
mov word [rsi], ax
mov eax, 0x66666667
imul r8d
mov ecx, edx
sar ecx, 2
mov eax, ecx
shr eax, 0x1f
add ecx, eax
lea eax, [rcx + rcx*4]
add eax, eax
sub r8d, eax
movsxd rax, r8d
movzx eax, word [r11 + rax*2]
mov word [rbx], ax
jmp 0x140030116
mov eax, 0x66666667
imul r8d
mov ecx, edx
sar ecx, 2
mov eax, ecx
shr eax, 0x1f
add ecx, eax
lea eax, [rcx + rcx*4]
add eax, eax
sub r8d, eax
je 0x140030130
movsxd rax, r8d
movzx eax, word [r11 + rax*2]
mov word [rsi], ax
add rbx, 2
mov eax, 0x2e
mov word [rbx], ax
add rbx, 2
nop word [rax + rax]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
movsxd rax, ecx
mov ecx, edx
movzx eax, word [r11 + rax*2]
mov word [rbx], ax
add rbx, 2
test edx, edx
jg 0x140030130
test r10b, r10b
je 0x14003016e
mov eax, 0x2d
mov word [rbx], ax
add rbx, 2
mov rcx, rsi
mov word [rbx], bp
call fcn.140067220
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400301a3
movzx ecx, word [rax]
test cx, cx
je 0x1400301a3
nop dword [rax + rax]
mov word [rbx], cx
lea rax, [rax + 2]
movzx ecx, word [rax]
add rbx, 2
test cx, cx
jne 0x140030190
mov word [rbx], bp
mov rax, rdi
mov rbp, qword [rsp + 0x38]
sub rbx, rdi
sub rbx, 0x10
mov qword [rdi], rsi
mov rsi, qword [rsp + 0x40]
sar rbx, 1
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret