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

Disassembly:
sub rsp, 0x38
mov r10d, dword [r9]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], rdi
xor esi, esi
mov qword [rsp + 0x10], r12
and r10d, 7
cmp rdx, 5
mov qword [rsp + 8], r13
mov r13, r9
mov r12d, r8d
mov rdi, rcx
mov r11, rsi
jae 0x4acb0a
xor eax, eax
jmp 0x4acc6d
mov qword [rsp + 0x28], rbp
mov ebp, dword [rsp + 0x60]
lea r9, [rcx + rdx - 4]
mov qword [rsp + 0x30], rbx
nop
lea rdx, [r11 + rdi]
cmp rdx, r9
jae 0x4acb41
nop
nop
movzx eax, byte [rdx]
and al, 0xfe
cmp al, 0xe8
je 0x4acb41
inc rdx
cmp rdx, r9
jb 0x4acb30
mov rax, rdx
sub rax, r11
mov r11, rdx
sub r11, rdi
sub rax, rdi
cmp rdx, r9
jae 0x4acc4e
cmp rax, 2
jbe 0x4acba6
mov r10d, esi
movzx r8d, byte [rdx + 4]
lea eax, [r8 + 1]
test al, 0xfe
jne 0x4acc3f
movzx eax, byte [rdx + 3]
shl r8d, 8
lea ebx, [r11 + r12 + 5]
or r8d, eax
movzx eax, byte [rdx + 2]
add r11, 5
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 1]
shl r8d, 8
or r8d, eax
test ebp, ebp
je 0x4acbdc
add r8d, ebx
jmp 0x4acbdf
mov ecx, eax
shr r10d, cl
test r10d, r10d
je 0x4acb62
cmp r10d, 4
ja 0x4acbcd
cmp r10d, 3
je 0x4acbcd
mov eax, r10d
shr rax, 1
mov cl, byte [rax + rdx + 1]
inc ecx
test cl, 0xfe
jne 0x4acb62
or r10d, 8
shr r10d, 1
inc r11
jmp 0x4acb20
sub r8d, ebx
test r10d, r10d
je 0x4acc15
and r10d, 6
mov eax, r8d
shl r10d, 2
mov ecx, r10d
shr eax, cl
inc eax
test al, 0xfe
jne 0x4acc12
mov eax, 0x100
shl eax, cl
dec eax
xor r8d, eax
test ebp, ebp
je 0x4acc0f
add r8d, ebx
jmp 0x4acc12
sub r8d, ebx
mov r10d, esi
mov eax, r8d
mov byte [rdx + 1], r8b
shr eax, 8
mov byte [rdx + 2], al
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
and r8b, 1
neg r8b
mov byte [rdx + 3], al
mov byte [rdx + 4], r8b
jmp 0x4acb20
or r10d, 8
shr r10d, 1
inc r11
jmp 0x4acb20
cmp rax, 2
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
ja 0x4acc66
mov ecx, eax
shr r10d, cl
mov esi, r10d
mov dword [r13], esi
mov rax, r11
mov r13, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x4ae110
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov qword [rcx + 0x480], 0xffffffffffffffff
mov dword [rcx + 0x3c], 0x20
mov byte [rcx + 0x21], 1
mov dword [rcx + 0x5c], 4
lea r8, [rcx + 0x78]
mov qword [rcx + 0x40], rdx
mov byte [rcx + 0x23], dl
mov qword [rcx + 0x28], rdx
mov byte [rcx + 0x22], dl
mov ecx, edx
mov eax, edx
inc edx
shr eax, 1
and ecx, 1
add r8, 4
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
cmp edx, 0x100
mov dword [r8 - 4], eax
jb 0x4ae141
ret
Function at 0x4b66e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x28
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov qword [rax - 0x18], r14
mov eax, edx
mov r14d, edx
shl edx, 4
mov r10, r9
mov rbx, r8
imul rax, rax, 0x440
lea r13, [rax + rcx + 0x44]
movzx eax, word [r8]
mov r12, rcx
shr rax, 4
lea rsi, [r8 + rdx*2]
xor r11d, r11d
mov ebp, dword [r9 + rax*4]
mov rdi, r13
nop
nop
nop
mov edx, r11d
mov r9d, r11d
add r11d, 2
shr edx, 2
shr r9d, 1
add rdi, 8
lea eax, [rdx + 2]
mov ecx, r9d
movzx r8d, word [rsi + rax*2]
movzx eax, word [rsi + 2]
and ecx, 1
neg ecx
shr rax, 4
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
mov ecx, edx
mov r8d, dword [r10 + r8*4]
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rcx, rax
lea eax, [r9 + 4]
movzx eax, word [rsi + rax*2]
add r8d, dword [r10 + rcx*4]
mov rdx, rax
shr rax, 4
add r8d, ebp
mov eax, dword [r10 + rax*4]
xor rdx, 0x7f0
lea ecx, [r8 + rax]
shr rdx, 4
cmp r11d, 8
mov dword [rdi - 8], ecx
mov eax, dword [r10 + rdx*4]
lea ecx, [r8 + rax]
mov dword [rdi - 4], ecx
jb 0x4b6740
movzx eax, word [rbx]
mov qword [rsp + 8], r15
lea rdi, [r13 + 0x20]
xor rax, 0x7f0
shr rax, 4
mov ebp, dword [r10 + rax*4]
movzx eax, word [rbx + 0x10]
shr rax, 4
xor r11d, r11d
mov eax, dword [r10 + rax*4]
lea r15d, [rbp + rax]
nop
nop
mov edx, r11d
mov r9d, r11d
add r11d, 2
shr edx, 2
shr r9d, 1
add rdi, 8
lea eax, [rdx + 2]
mov ecx, r9d
movzx r8d, word [rsi + rax*2 + 0x10]
movzx eax, word [rsi + 0x12]
and ecx, 1
neg ecx
shr rax, 4
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
mov ecx, edx
mov r8d, dword [r10 + r8*4]
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rcx, rax
lea eax, [r9 + 4]
movzx eax, word [rsi + rax*2 + 0x10]
add r8d, dword [r10 + rcx*4]
mov rdx, rax
shr rax, 4
add r8d, r15d
mov eax, dword [r10 + rax*4]
xor rdx, 0x7f0
lea ecx, [r8 + rax]
shr rdx, 4
cmp r11d, 8
mov dword [rdi - 8], ecx
mov eax, dword [r10 + rdx*4]
lea ecx, [r8 + rax]
mov dword [rdi - 4], ecx
jb 0x4b6800
mov esi, dword [r12]
movzx eax, word [rbx + 0x10]
mov r15, qword [rsp + 8]
xor rax, 0x7f0
mov r11d, 0x10
shr rax, 4
add ebp, dword [r10 + rax*4]
cmp esi, r11d
mov dword [r12 + r14*4 + 4], esi
mov r14, qword [rsp + 0x10]
mov r12, qword [rsp + 0x20]
jbe 0x4b691f
lea rdi, [r13 + 0x40]
nop
nop
lea r8d, [r11 - 0x10]
xor r9d, r9d
bts r8d, 8
nop
mov eax, r8d
shr r8d, 1
movzx edx, word [rbx + r8*2 + 0x200]
and eax, 1
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
add r9d, dword [r10 + rdx*4]
cmp r8d, 2
jae 0x4b68e0
lea eax, [r9 + rbp]
inc r11d
add rdi, 4
cmp r11d, esi
mov dword [rdi - 4], eax
jb 0x4b68d0
mov r13, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x4b9120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax - 8], r12
lea rbx, [rcx + 0x308]
xor r12d, r12d
mov qword [rcx + 0xa0], r12
mov qword [rcx + 0x98], r12
mov rbp, rcx
mov rcx, rbx
call fcn.004ae110
lea rcx, [rbp + 0x100]
call fcn.004b0fc0
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov qword [rbp + 0x300], rbx
mov dword [rsp + 0x20], 5
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x24], r12d
mov qword [rsp + 0x50], 0xffffffffffffffff
mov dword [rsp + 0x4c], 0xffffffff
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x34], 0xffffffff
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x2c], 0xffffffff
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x48], r12d
call fcn.004b5f90
lea rsi, [rbp + 0x2d64]
mov ebx, 2
mov qword [rsp + 0x88], rdi
mov byte [rsi], r12b
mov byte [rsi + 1], 1
add rsi, 2
nop
nop
mov ecx, ebx
mov edi, 1
shr ecx, 1
add ecx, 0xffffffff
shl rdi, cl
test rdi, rdi
je 0x4b9222
mov r8, rdi
movzx edx, bl
mov rcx, rsi
call sub.msvcrt.dll_memset
inc ebx
add rsi, rdi
cmp ebx, 0x1a
jb 0x4b9200
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov r8d, 8
lea r9, [rbp + 0x810]
nop
mov eax, r8d
mov ecx, r12d
mov edx, 4
nop
nop
imul eax, eax
add ecx, ecx
cmp eax, 0x10000
jb 0x4b927b
nop
shr eax, 1
inc ecx
cmp eax, 0x10000
jae 0x4b9270
dec rdx
jne 0x4b9260
mov eax, 0xa1
add r8d, 0x10
add r9, 4
sub eax, ecx
cmp r8d, 0x808
mov dword [r9 - 4], eax
jb 0x4b9250
mov qword [rbp + 0x68], r12
mov qword [rbp + 0x2d5f0], r12
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x68
ret
Function at 0x4bdf90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
add byte [rcx + 1], 4
mov rax, qword [rbx]
add word [rax + 2], 4
movzx eax, byte [rcx - 5]
cmp byte [rcx + 1], al
jbe 0x4bdff8
mov eax, dword [rcx]
lea rdx, [rcx - 6]
lea r8, [rsp + 0x30]
mov dword [r8], eax
movzx eax, word [rcx + 4]
mov word [r8 + 4], ax
mov eax, dword [rdx]
mov dword [rcx], eax
movzx eax, word [rdx + 4]
mov word [rcx + 4], ax
lea rcx, [rsp + 0x30]
mov eax, dword [rcx]
mov dword [rdx], eax
movzx eax, word [rcx + 4]
mov word [rdx + 4], ax
mov qword [rbx + 0x10], rdx
cmp byte [rdx + 1], 0x7c
jbe 0x4bdff8
mov rcx, rbx
call fcn.004bdc60
mov rcx, qword [rbx + 0x10]
movzx edx, word [rcx + 4]
movzx eax, word [rcx + 2]
shl edx, 0x10
or rdx, rax
add rdx, qword [rbx + 0x40]
cmp dword [rbx + 0x18], 0
jne 0x4be027
cmp rdx, qword [rbx + 0x58]
jbe 0x4be027
mov qword [rbx + 8], rdx
mov qword [rbx], rdx
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.004bd780

Function at 0x4be040
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov r9, qword [rcx]
xor r8d, r8d
movzx edx, byte [rax + 1]
movzx eax, word [r9 + 2]
mov rbx, rcx
add edx, edx
cmp edx, eax
setg r8b
add dword [rcx + 0x2c], r8d
mov dword [rcx + 0x20], r8d
add word [r9 + 2], 4
mov rax, qword [rcx + 0x10]
add byte [rax + 1], 4
mov rax, qword [rcx + 0x10]
cmp byte [rax + 1], 0x7c
jbe 0x4be089
call fcn.004bdc60
mov rcx, qword [rbx + 0x10]
movzx edx, word [rcx + 4]
movzx eax, word [rcx + 2]
shl edx, 0x10
or rdx, rax
add rdx, qword [rbx + 0x40]
cmp dword [rbx + 0x18], 0
jne 0x4be0b8
cmp rdx, qword [rbx + 0x58]
jbe 0x4be0b8
mov qword [rbx + 8], rdx
mov qword [rbx], rdx
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.004bd780

Function at 0x4be0d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov rdx, qword [rcx + 0x10]
movzx eax, byte [rdx + 1]
cmp al, 0x80
adc al, 0
mov byte [rdx + 1], al
inc dword [rcx + 0x2c]
mov rdx, qword [rcx + 0x10]
mov dword [rcx + 0x20], 1
movzx r8d, word [rdx + 4]
movzx eax, word [rdx + 2]
shl r8d, 0x10
or r8, rax
add r8, qword [rcx + 0x40]
cmp dword [rcx + 0x18], 0
jne 0x4be115
cmp r8, qword [rcx + 0x58]
jbe 0x4be115
mov qword [rcx + 8], r8
mov qword [rcx], r8
ret
jmp fcn.004bd780

Function at 0x4be120
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add word [rax + 2], 4
mov rax, qword [rcx + 0x10]
add byte [rax + 1], 4
mov rax, qword [rcx + 0x10]
cmp byte [rax + 1], 0x7c
jbe 0x4be148
call fcn.004bdc60
mov eax, dword [rbx + 0x30]
mov rcx, rbx
mov dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
jmp fcn.004bd780
Function at 0x4c2340
Capabilities:
Hash data using sha1

Disassembly:
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
mov qword [rcx + 0x18], 0
ret
Function at 0x4c2b80
Capabilities:
Hash data using sha1

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x30], rbx
mov ebx, dword [rcx + 0x18]
mov qword [rsp + 0x38], rbp
and ebx, 0x3f
mov qword [rsp + 0x40], rsi
xor ebp, ebp
mov qword [rsp + 0x48], rdi
mov rdi, rcx
mov ecx, ebx
shr ebx, 2
and ecx, 3
mov rsi, rdx
mov eax, ebp
je 0x4c2bb6
mov eax, dword [rdi + rbx*4 + 0x20]
shl ecx, 3
mov edx, 0x80000000
shr edx, cl
or edx, eax
mov dword [rdi + rbx*4 + 0x20], edx
inc ebx
cmp ebx, 0xe
je 0x4c2bef
nop
and ebx, 0xf
jne 0x4c2be4
lea rdx, [rdi + 0x20]
mov r8, rdi
mov rcx, rdi
call fcn.004c2370
mov dword [rdi + rbx*4 + 0x20], ebp
inc ebx
cmp ebx, 0xe
jne 0x4c2bd0
mov rcx, qword [rdi + 0x18]
lea rdx, [rdi + 0x20]
mov r8, rdi
shl rcx, 3
mov rax, rcx
mov dword [rdi + 0x5c], ecx
mov rcx, rdi
shr rax, 0x20
mov dword [rdi + 0x58], eax
call fcn.004c2370
mov rbx, qword [rsp + 0x30]
mov r11, rdi
mov ecx, 5
mov eax, dword [r11]
add rsi, 4
add r11, 4
dec rcx
bswap eax
mov dword [rsi - 4], eax
jne 0x4c2c20
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x18], rbp
mov rbp, qword [rsp + 0x38]
mov dword [rdi], 0x67452301
mov dword [rdi + 4], 0xefcdab89
mov dword [rdi + 8], 0x98badcfe
mov dword [rdi + 0xc], 0x10325476
mov dword [rdi + 0x10], 0xc3d2e1f0
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
ret

Function at 0x4c2d60
Capabilities:
Hash data using sha1

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x30], rbx
mov ebx, dword [rcx + 0x18]
mov qword [rsp + 0x38], rbp
and ebx, 0xf
mov qword [rsp + 0x40], rsi
xor ebp, ebp
mov dword [rcx + rbx*4 + 0x20], 0x80000000
inc ebx
mov qword [rsp + 0x48], rdi
cmp ebx, 0xe
mov rsi, rdx
mov rdi, rcx
je 0x4c2db4
and ebx, 0xf
jne 0x4c2da9
lea rdx, [rdi + 0x20]
mov r8, rdi
mov rcx, rdi
call fcn.004c2370
mov dword [rdi + rbx*4 + 0x20], ebp
inc ebx
cmp ebx, 0xe
jne 0x4c2d95
mov rcx, qword [rdi + 0x18]
lea rdx, [rdi + 0x20]
mov r8, rsi
shl rcx, 5
mov rax, rcx
mov dword [rdi + 0x5c], ecx
mov rcx, rdi
shr rax, 0x20
mov dword [rdi + 0x58], eax
call fcn.004c2370
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 0x18], rbp
mov rbp, qword [rsp + 0x38]
mov dword [rdi], 0x67452301
mov dword [rdi + 4], 0xefcdab89
mov dword [rdi + 8], 0x98badcfe
mov dword [rdi + 0xc], 0x10325476
mov dword [rdi + 0x10], 0xc3d2e1f0
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
ret

Function at 0x4c2e20
Capabilities:
Hash data using sha256

Disassembly:
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov qword [rcx + 0x20], 0
ret
Function at 0x4c3a80
Capabilities:
Hash data using sha256

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbx
mov ebx, dword [rcx + 0x20]
mov qword [rsp + 0x40], rsi
and ebx, 0x3f
mov qword [rsp + 0x48], rdi
mov rsi, rdx
mov byte [rbx + rcx + 0x28], 0x80
inc ebx
mov rdi, rcx
cmp ebx, 0x38
je 0x4c3ac9
nop
nop
and ebx, 0x3f
jne 0x4c3abd
mov rcx, rdi
call fcn.004c2e60
mov byte [rbx + rdi + 0x28], 0
inc ebx
cmp ebx, 0x38
jne 0x4c3ab0
mov rcx, qword [rdi + 0x20]
shl rcx, 3
mov rax, rcx
bswap ecx
shr rax, 0x20
mov dword [rdi + 0x64], ecx
mov rcx, rdi
bswap eax
mov dword [rdi + 0x60], eax
call fcn.004c2e60
mov rbx, qword [rsp + 0x38]
mov r11, rdi
mov edx, 4
nop
nop
nop
mov ecx, dword [r11 + 4]
mov eax, dword [r11]
add rsi, 8
bswap eax
bswap ecx
add r11, 8
dec rdx
mov dword [rsi - 8], eax
mov dword [rsi - 4], ecx
jne 0x4c3b00
mov rsi, qword [rsp + 0x40]
mov dword [rdi], 0x6a09e667
mov dword [rdi + 4], 0xbb67ae85
mov dword [rdi + 8], 0x3c6ef372
mov dword [rdi + 0xc], 0xa54ff53a
mov dword [rdi + 0x10], 0x510e527f
mov dword [rdi + 0x14], 0x9b05688c
mov dword [rdi + 0x18], 0x1f83d9ab
mov dword [rdi + 0x1c], 0x5be0cd19
mov qword [rdi + 0x20], rdx
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
ret

Function at 0x4c3cd0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
je 0x4c3d0b
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x4c3fd0
Capabilities:
Hash data using sha256

Disassembly:
mov dword [rcx], edx
dec edx
je 0x4c3ff2
sub edx, 3
je 0x4c3fe9
cmp edx, 6
jne 0x4c3ff9
add rcx, 0x10
jmp fcn.004c2e20
mov qword [rcx + 8], 0xffffffffffffffff
ret
mov dword [rcx + 4], 0xffffffff
ret 0
Function at 0x4cc2e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x4cc301
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4cc37d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x4cc322
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4cc37d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x4cc360
cmp ecx, 0x20b
je 0x4cc33e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4cc37d
cmp dword [rax + 0x84], 0xe
ja 0x4cc34f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4cc37d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x4cc37d
cmp dword [rax + 0x74], 0xe
ja 0x4cc36e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4cc37d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x0050f840], 0xffffffffffffffff
mov qword [0x0050f848], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x0050b7e4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x0050b7e0]
mov dword [rcx], eax
call fcn.004cc4e0
cmp dword [0x00508860], 0
jne 0x4cc3d7
lea rcx, [fcn.004cc4e0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004cf5c0]
lea rcx, [0x004cf5b8]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x0050b7dc]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x0050b7d8]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004cf5b0]
lea rcx, [0x004cf438]
call fcn.00404616
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.0045705c
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x4cc463
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x4cc484
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x14000d3f0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14000d480
jmp 0x14000d46f
jae 0x14000d540
cmp r8, 0x201
jae 0x14000d480
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000d4d8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000d4af
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140030a50
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000d501
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000d5a8
mov r8d, r14d
cmp r15, r8
jne 0x14000d460
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000d5cb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000d46f
jmp 0x14000d480
cmp rsi, r8
jb 0x14000d5e5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140010ba0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14000d591
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140005a10
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14000d579
jmp 0x14000d591
lea rcx, [0x1400332f0]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400316b0
jmp 0x14000d5fa
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140031b00
ud2
Function at 0x1400115a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400115d0
test ecx, ecx
jne 0x140011620
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400115dc
test ecx, ecx
jne 0x140011620
mov rcx, rdi
call fcn.140011480
movzx eax, al
test bpl, bpl
jne 0x140011627
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140011613.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140011798]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140011613.2
xor eax, eax
test bpl, bpl
je 0x1400115ec
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140011779
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14001165a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400116d9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x1400116a0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400116bb
inc rax
dec rdi
cmp rax, 1
jne 0x140011680
jmp 0x1400116d9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400116bb
cmp ebx, 0x5c
je 0x1400116bb
inc rax
dec rdi
cmp rax, 1
jne 0x1400116a0
jmp 0x1400116d9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140011787
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140011703
mov al, 9
cmp rdx, 2
je 0x140011707
cmp rdx, 1
jne 0x140011717
cmp byte [r8], 0x2e
jne 0x140011717
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140011717
mov al, 0xa
jmp 0x140011717
cmp byte [r8], 0x2e
jne 0x140011717
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140011613.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140011613.2
mov ecx, 2
jmp case.0x140011613.2
lea r8, str.library_std_srcpath.rs
call fcn.140031a80
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140031a80
ud2