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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x14]
movzx r11d, dl
cdq
xor ebx, ebx
sub eax, edx
mov rdi, rcx
sar eax, 1
test eax, eax
jle 0x14016849d
mov r14, qword [rcx + 8]
mov edx, ebx
movsxd rsi, eax
lea r9, [r14 + 4]
nop word [rax + rax]
mov r8d, dword [r14 + rdx*8]
mov ecx, dword [r9]
dec ecx
movzx r10d, r11b
mov eax, ecx
xor eax, r8d
test eax, 0xffffff00
movzx eax, r8b
jne 0x140168484
cmp eax, r10d
ja 0x140168491
jmp 0x140168489
cmp eax, r10d
jbe 0x1401684ee
movzx eax, cl
cmp r10d, eax
jbe 0x1401684ee
inc rdx
add r9, 8
cmp rdx, rsi
jl 0x140168460
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x1401684d6
cmp dword [rax + 8], ebx
jle 0x1401684d6
movzx esi, r11b
nop
mov edx, ebx
mov rcx, rax
call fcn.1401af880
xor edx, edx
mov rcx, rax
call fcn.14011f680
movzx ecx, al
cmp ecx, esi
je 0x1401684ee
mov rax, qword [rdi + 0x48]
inc ebx
cmp ebx, dword [rax + 8]
jl 0x1401684b0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov al, 1
jmp 0x1401684d8

Function at 0x14017a020
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14035e6e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov r8, rcx
mov r9d, 4
mov rcx, rbx
mov edx, 0x20000019
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea r8, [rdi + 4]
mov edx, 0x20000012
mov r9d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r9d, 0x14
lea r8, [rsp + 0x20]
mov rcx, rbx
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx edx, word [rsp + 0x20]
lea r8, [rsp + 0x20]
xor eax, eax
test dx, dx
je 0x14017a0c2
lea ecx, [rdx - 0x31]
cmp cx, 7
ja 0x14017a0ae
lea ecx, [rax + rax*4]
movzx eax, dx
lea eax, [rax + rcx*2]
add eax, 0xffffffd0
jmp 0x14017a0b4
cmp dx, 0x3b
jne 0x14017a0c2
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x14017a097
cmp word [r8], 0x30
je 0x14017a0ce
lea eax, [rax + rax*4]
add eax, eax
mov ecx, 0xc
mov dword [rdi + 8], eax
call fcn.14014a6b0
mov r9d, 6
mov qword [rdi + 0x10], rax
mov r8, rax
mov rcx, rbx
lea edx, [r9 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov ecx, 0xc
call fcn.14014a6b0
mov r9d, 6
mov qword [rdi + 0x18], rax
mov r8, rax
mov rcx, rbx
lea edx, [r9 + 0x11]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea r8, [rdi + 0x20]
mov edx, 0x2000001c
mov r9d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea r8, [rdi + 0x24]
mov edx, 0x2000001b
mov r9d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov ecx, 0x10
call fcn.14014a6b0
mov r9d, 8
mov qword [rdi + 0x28], rax
mov r8, rax
mov rcx, rbx
lea edx, [r9 + 0xc]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140250070
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14017a1a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14035e6e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov r8, rcx
mov r9d, 4
mov rcx, rbx
mov edx, 0x20000011
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea r8, [rdi + 4]
mov edx, 0x20000012
mov r9d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r9d, 0xa
lea r8, [rsp + 0x20]
mov rcx, rbx
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx edx, word [rsp + 0x20]
lea r8, [rsp + 0x20]
xor eax, eax
test dx, dx
je 0x14017a242
lea ecx, [rdx - 0x31]
cmp cx, 7
ja 0x14017a22e
lea ecx, [rax + rax*4]
movzx eax, dx
lea eax, [rax + rcx*2]
add eax, 0xffffffd0
jmp 0x14017a234
cmp dx, 0x3b
jne 0x14017a242
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x14017a217
cmp word [r8], 0x30
je 0x14017a24e
lea eax, [rax + rax*4]
add eax, eax
mov ecx, 0xc
mov dword [rdi + 8], eax
call fcn.14014a6b0
mov r9d, 6
mov qword [rdi + 0x10], rax
mov r8, rax
mov rcx, rbx
lea edx, [r9 + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov ecx, 0xc
call fcn.14014a6b0
mov r9d, 6
mov qword [rdi + 0x18], rax
mov r8, rax
mov rcx, rbx
lea edx, [r9 + 9]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea r8, [rdi + 0x20]
mov edx, 0x20001010
mov r9d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140250070
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140192d90
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14035e6e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rdx + 8]
xor ebx, ebx
mov r12d, dword [rdx + 8]
xor edi, edi
mov dword [rsp + 0x24], eax
mov r13, rcx
or eax, 0xffffffff
mov dword [rsp + 0x28], r9d
mov ebp, eax
mov dword [rsp + 0x3c], eax
mov r14d, eax
mov dword [rsp + 0x40], eax
mov word [rsp + 0x20], r8w
xor esi, esi
mov qword [rsp + 0x30], rdx
xor r15d, r15d
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x38], ebx
call fcn.1401211a0
movsxd r8, dword [rsp + 0x24]
cmp r8d, eax
jge 0x140192eef
mov ebx, dword [rsp + 0xb0]
mov r10, r8
movzx edi, word [rsp + 0x20]
xor r9d, r9d
movsxd r11, eax
cmp r15d, ebx
jg 0x140192ed5
movzx ecx, word [r13 + 8]
test cx, cx
js 0x140192e42
movsx eax, cx
sar eax, 5
jmp 0x140192e46
mov eax, dword [r13 + 0xc]
cmp r12d, eax
jae 0x140192e5f
lea rax, [r13 + 0xa]
test cl, 2
jne 0x140192e58
mov rax, qword [r13 + 0x18]
movzx ecx, word [rax + r10*2]
jmp 0x140192e64
mov ecx, 0xffff
cmp cx, di
jne 0x140192e85
test r15d, r15d
jne 0x140192e76
cmp dword [rsp + 0x38], esi
je 0x140192ed5
jmp 0x140192ec6
cmp dword [rsp + r9 + 0x38], 0xffffffff
jne 0x140192ed5
mov dword [rsp + r9 + 0x38], esi
jmp 0x140192ec6
mov r8d, dword [rsp + r9 + 0x38]
cmp r8d, 0xffffffff
je 0x140192ed5
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x140192ed5
movzx edx, cx
sub edx, 0x30
js 0x140192ed5
mov eax, dword [rsp + r9 + 0x48]
lea ecx, [rax + rax*4]
lea eax, [rdx + rcx*2]
mov dword [rsp + r9 + 0x48], eax
lea eax, [r8 + 1]
mov dword [rsp + r9 + 0x38], eax
cmp eax, 2
jl 0x140192ec6
inc r15d
add r9, 4
inc r12d
inc r10
cmp r10, r11
jl 0x140192e27
mov edi, dword [rsp + 0x50]
mov esi, dword [rsp + 0x4c]
mov ebx, dword [rsp + 0x48]
mov r14d, dword [rsp + 0x40]
mov ebp, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x24]
xor edx, edx
xor ecx, ecx
cmp dword [rsp + 0x38], ecx
je 0x140192f59
cmp ebx, 0x17
jle 0x140192f1c
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x36ee80
xor eax, eax
lea ecx, [rax + 1]
jmp 0x140192f5c
mov ecx, dword [rsp + 0x38]
xor eax, eax
imul edx, ebx, 0x36ee80
cmp ebp, 2
jne 0x140192f5c
cmp esi, 0x3b
jg 0x140192f5c
imul eax, esi, 0xea60
add ecx, 3
add edx, eax
lea eax, [rbp - 1]
cmp r14d, ebp
jne 0x140192f5c
cmp edi, 0x3b
jg 0x140192f5c
imul eax, edi, 0x3e8
add edx, eax
mov eax, ebp
add ecx, 3
jmp 0x140192f5c
or eax, 0xffffffff
cmp eax, dword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
jge 0x140192f6f
mov dword [rax + 0xc], r8d
xor eax, eax
jmp 0x140192f77
add ecx, r8d
mov dword [rax + 8], ecx
mov eax, edx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140250070
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140199f70
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rbx, rcx
call fcn.1401491d0
nop
lea rax, vtable.icu_64::JapaneseCalendar.0
mov qword [rbx], rax
mov dword [rsp + 0x50], 0
mov eax, dword [0x140441698]
cmp eax, 2
je 0x14019a035
lea rcx, [0x140441698]
call fcn.14014e390
test al, al
je 0x14019a035
xor dil, dil
mov rcx, qword [str.0y__]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140199ff4
lea rdx, str.true
mov rcx, rax
call fcn.14014e740
movzx edi, dil
mov ecx, 1
test eax, eax
cmove edi, ecx
lea r8, [rsp + 0x50]
movzx edx, dil
lea rcx, str.japanese
call fcn.140212820
mov qword [0x140441690], rax
mov edx, dword [rsp + 0x50]
test edx, edx
jg 0x14019a021
mov eax, dword [rax + 0xc]
mov dword [0x1404416a0], eax
mov dword [0x14044169c], edx
lea rcx, [0x140441698]
call fcn.14014e310
jmp 0x14019a048
mov ecx, dword [rsp + 0x50]
mov eax, dword [0x14044169c]
test eax, eax
cmovg ecx, eax
mov dword [rsp + 0x50], ecx
lea rdx, [0x14019a670]
mov ecx, 6
call fcn.14016fae0
nop
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14019a5e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor bl, bl
mov rcx, qword [str.0y__]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14019a61d
lea rdx, str.true
mov rcx, rax
call fcn.14014e740
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
mov r8, rdi
lea rcx, str.japanese
movzx edx, bl
call fcn.140212820
cmp dword [rdi], 0
mov qword [0x140441690], rax
jg 0x14019a644
mov eax, dword [rax + 0xc]
mov dword [0x1404416a0], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401e5dd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx + 0x18]
mov rdx, rcx
mov r8d, eax
shl r8d, 8
test al, 0xc
je 0x1401e5de5
xor r8d, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x48]
xor r8d, r9d
xor ecx, ecx
test r9d, r9d
jle 0x1401e5e12
mov rax, qword [rdx + 0x40]
nop word [rax + rax]
mov edx, dword [rax]
lea rax, [rax + 4]
shl edx, cl
inc ecx
xor r8d, edx
cmp ecx, r9d
jl 0x1401e5e00
mov eax, r8d
ret
Function at 0x14020cae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov rax, qword [0x14035e6e8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r14, rdx
mov rbx, rcx
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14020ccc4
xor r15d, r15d
cmp dword [rax + 8], r15d
jle 0x14020cca9
lea r13, vtable.icu_64::UnicodeString.0
lea esi, [r15 + 2]
mov edx, r15d
mov rcx, qword [rbx + 0x20]
call fcn.1401af880
mov rdi, rax
lea edx, [r15 + 1]
mov rcx, qword [rbx + 0x20]
call fcn.1401af880
mov r12, rax
lea rax, [rsp + 0x20]
or r9d, 0xffffffff
mov r8, rdi
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.14011ea10
nop
cmp qword [rbx + 0x10], 0
jne 0x14020cbb6
mov dword [rbx + 0x18], 0x200
mov ecx, 0x2000
call fcn.14014a6b0
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14020cba6
mov dword [r14], 7
jmp 0x14020cc8d
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbx + 0x1c], 1
mov qword [rsp + 0x30], r13
mov word [rsp + 0x38], si
cmp byte [rbx + 8], 0
je 0x14020cc0f
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140120cb0
mov rcx, rax
xor edx, edx
call fcn.1401573e0
movzx eax, byte [rsp + 0x38]
test al, 0x11
je 0x14020cbec
xor esi, esi
jmp 0x14020cbf9
test al, 2
lea rsi, [rsp + 0x3a]
cmove rsi, qword [rsp + 0x48]
movzx eax, word [rsp + 0x38]
test ax, ax
js 0x14020cc09
cwde
sar eax, 5
jmp 0x14020cc3b
mov eax, dword [rsp + 0x3c]
jmp 0x14020cc3b
movzx eax, word [rsp + 0x78]
test al, 0x11
je 0x14020cc1c
xor esi, esi
jmp 0x14020cc2c
test al, 2
lea rsi, [rsp + 0x7a]
cmove rsi, qword [rsp + 0x88]
test ax, ax
js 0x14020cc37
cwde
sar eax, 5
jmp 0x14020cc3b
mov eax, dword [rsp + 0x7c]
mov rcx, qword [rbx + 0x10]
xor edi, edi
movsxd rbp, eax
test eax, eax
jle 0x14020cc6e
nop dword [rax + rax]
mov r9, r14
movzx r8d, word [rsi + rdi*2]
mov rdx, rcx
mov rcx, rbx
call fcn.14020c850
mov rcx, rax
inc rdi
cmp rdi, rbp
jl 0x14020cc50
mov r9, r14
mov r8, qword [rbx + 0x30]
mov rdx, r12
call fcn.14020ca20
nop
lea rcx, [rsp + 0x30]
call fcn.14011efa0
mov esi, 2
lea rcx, [rsp + 0x70]
call fcn.14011efa0
add r15d, 2
mov rax, qword [rbx + 0x20]
cmp r15d, dword [rax + 8]
jl 0x14020cb41
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14020ccbc
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x20], 0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140250070
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140228cd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x50
mov rdi, qword [rsp + 0x88]
mov rbp, r8
mov ebx, edx
mov r10d, ecx
cmp dword [rdi], 0
jg 0x140228d2b
test r9d, r9d
jle 0x140228ee0
test bpl, 3
jne 0x140228ee0
lea eax, [rcx + 1]
cmp eax, 2
ja 0x140228ee0
lea eax, [rdx + 1]
cmp eax, 3
ja 0x140228ee0
cmp r9d, 0x10
jge 0x140228d3d
mov dword [rdi], 3
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp dword [r8], 0x54726933
jne 0x140228d25
movzx r8d, word [r8 + 4]
mov eax, r8d
mov ecx, r8d
shr eax, 6
and ecx, 7
and eax, 3
cmp eax, 1
ja 0x140228d25
cmp ecx, 2
ja 0x140228d25
test r8b, 0x38
jne 0x140228d25
test r10d, r10d
cmovs r10d, eax
test ebx, ebx
cmovs ebx, ecx
cmp r10d, eax
jne 0x140228d25
cmp ebx, ecx
jne 0x140228d25
movzx ecx, word [rbp + 6]
xor eax, eax
mov qword [rsp + 0x38], rax
mov edx, r8d
mov qword [rsp + 0x30], rax
and edx, 0xf000
mov qword [rsp + 0x40], rax
and r8d, 0xf00
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
movzx eax, word [rbp + 8]
shl edx, 4
or edx, eax
shl r8d, 8
movzx eax, word [rbp + 0xa]
mov word [rsp + 0x46], ax
movzx eax, word [rbp + 0xc]
or r8d, eax
mov qword [rsp + 0x60], rsi
movzx eax, word [rbp + 0xe]
lea esi, [rcx*2 + 0x10]
shl eax, 9
mov dword [rsp + 0x38], eax
add eax, 0xfff
sar eax, 0xc
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x48], r8d
mov word [rsp + 0x3c], ax
mov byte [rsp + 0x3e], r10b
mov byte [rsp + 0x3f], bl
test ebx, ebx
jne 0x140228e13
lea esi, [rsi + rdx*2]
jmp 0x140228e1f
cmp ebx, 1
jne 0x140228e1d
lea esi, [rsi + rdx*4]
jmp 0x140228e1f
add esi, edx
cmp r9d, esi
jl 0x140228e97
mov ecx, 0x30
call fcn.14014a6b0
mov rdx, rax
test rax, rax
jne 0x140228e53
mov dword [rdi], 7
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
movups xmm0, xmmword [rsp + 0x20]
lea rcx, [rbp + 0x10]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax + 0x20], xmm0
mov qword [rax], rcx
movsxd rax, dword [rax + 0x10]
lea r8, [rcx + rax*2]
mov ecx, dword [rdx + 0x28]
mov eax, dword [rdx + 0x14]
cmp ecx, eax
jl 0x140228e89
lea ecx, [rax - 2]
test ebx, ebx
je 0x140228eba
sub ebx, 1
je 0x140228ead
cmp ebx, 1
je 0x140228e9f
mov dword [rdi], 3
jmp 0x140228e3c
movsxd rax, ecx
mov qword [rdx + 8], r8
movzx ecx, byte [rax + r8]
jmp 0x140228ec6
movsxd rax, ecx
mov qword [rdx + 8], r8
mov ecx, dword [r8 + rax*4]
jmp 0x140228ec6
movsxd rax, ecx
mov qword [rdx + 8], r8
movzx ecx, word [r8 + rax*2]
mov rax, qword [rsp + 0x80]
mov dword [rdx + 0x2c], ecx
test rax, rax
je 0x140228ed8
mov dword [rax], esi
mov rax, rdx
jmp 0x140228e3e
mov rbx, qword [rsp + 0x68]
xor eax, eax
mov rbp, qword [rsp + 0x70]
mov dword [rdi], 1
add rsp, 0x50
pop rdi
ret
Function at 0x140001182
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
or eax, edx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x1400011a5
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0x12345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x1400011d0
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x1400011c9
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x140002af4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xa6a3
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140002b45
mov rbx, rax
call 0x140002b28
nop
pop rsi
mov r9, rax
add rsi, 0x3cbbc
mov rcx, 0xa6a3
mov r8, rcx
lea rax, [rsi]
mov dl, byte [rax]
mov byte [rbx], dl
add rsi, 1
add rbx, 1
add rax, 1
dec r8
jne 0x140002b41
call r9
mov ecx, 1
ret
Function at 0x14000b040
Capabilities:
Encode data using xor

Disassembly:
push rsi
mov sil, dl
mov rdx, rcx
test r9, r9
je 0x14000b13f
cmp r9, 6
jle 0x14000b0dd
cmp rcx, r8
jbe 0x14000b06a
mov r10, rcx
sub r10, r8
cmp r9, r10
jle 0x14000b07a
cmp r8, rcx
jbe 0x14000b0dd
mov r10, r8
sub r10, rcx
cmp r9, r10
jg 0x14000b0dd
mov r11, r9
mov r10d, 1
shr r11, 0x3f
xor eax, eax
add r11, r9
sar r11, 1
test r11, r11
jbe 0x14000b0c5
mov dl, byte [r8 + rax*2]
xor dl, sil
mov byte [rcx + rax*2], dl
add dl, sil
mov sil, byte [r8 + rax*2 + 1]
xor sil, dl
mov byte [rcx + rax*2 + 1], sil
inc rax
add sil, dl
cmp rax, r11
jb 0x14000b094
lea r10, [rax*2 + 1]
lea rdx, [rcx + rax*2]
lea r11, [r10 - 1]
cmp r9, r11
jbe 0x14000b13f
xor sil, byte [r8 + r10 - 1]
lea rdx, [rcx + r10]
mov byte [rdx - 1], sil
jmp 0x14000b13f
mov r11, r9
mov r10d, 1
shr r11, 0x3f
xor eax, eax
add r11, r9
sar r11, 1
test r11, r11
jbe 0x14000b128
mov dl, byte [r8 + rax*2]
xor dl, sil
mov byte [rcx + rax*2], dl
add dl, sil
mov sil, byte [r8 + rax*2 + 1]
xor sil, dl
mov byte [rcx + rax*2 + 1], sil
inc rax
add sil, dl
cmp rax, r11
jb 0x14000b0f7
lea r10, [rax*2 + 1]
lea rdx, [rcx + rax*2]
lea r11, [r10 - 1]
cmp r9, r11
jbe 0x14000b13f
xor sil, byte [r10 + r8 - 1]
lea rdx, [rcx + r10]
mov byte [r10 + rcx - 1], sil
mov byte [rdx], 0
mov rax, rcx
pop rsi
ret
Function at 0x14000e6c0
Capabilities:
Encode data using base64

Disassembly:
push r15
push rbp
sub rsp, 0x28
mov rax, rcx
lea r15, [0x140002000]
test rax, rax
je 0x14000e861
mov rcx, rdx
lea r11, [rdx + r9]
neg rcx
mov rbp, rax
xor r10d, r10d
cmp r9, 3
jl 0x14000e7ad
mov qword [rsp + 0x20], r14
mov r9b, byte [rdx]
add r10d, 4
shr r9b, 2
add rcx, 0xfffffffffffffffd
movzx r14d, r9b
mov r9b, byte [r15 + r14 + 0x2a5c0]
mov byte [rbp], r9b
mov r9b, byte [rdx]
and r9b, 3
mov r14b, byte [rdx + 1]
shl r9b, 4
shr r14b, 4
or r9b, r14b
movzx r14d, r9b
mov r9b, byte [r15 + r14 + 0x2a5c0]
mov byte [rbp + 1], r9b
mov r9b, byte [rdx + 1]
and r9b, 0xf
mov r14b, byte [rdx + 2]
shl r9b, 2
shr r14b, 6
or r9b, r14b
movzx r14d, r9b
mov r9b, byte [r15 + r14 + 0x2a5c0]
mov byte [rbp + 2], r9b
lea r9, [rbp + 3]
mov r14b, byte [rdx + 2]
add rdx, 3
and r14b, 0x3f
movzx r14d, r14b
mov r14b, byte [r15 + r14 + 0x2a5c0]
mov byte [rbp + 3], r14b
add rbp, 4
cmp r10d, 0x48
jl 0x14000e79a
mov byte [r9 + 1], 0xa
inc rbp
xor r10d, r10d
lea r9, [r11 + rcx]
cmp r9, 3
jge 0x14000e6f9
mov r14, qword [rsp + 0x20]
test r9, r9
je 0x14000e816
mov cl, byte [rdx]
shr cl, 2
movzx r11d, cl
cmp r9, 1
mov cl, byte [r15 + r11 + 0x2a5c0]
mov byte [rbp], cl
je 0x14000e840
mov r9b, byte [rdx]
and r9b, 3
mov cl, byte [rdx + 1]
shl r9b, 4
shr cl, 4
or r9b, cl
movzx r11d, r9b
mov cl, byte [r15 + r11 + 0x2a5c0]
mov byte [rbp + 1], cl
mov dl, byte [rdx + 1]
and dl, 0xf
shl dl, 2
movzx edx, dl
mov r15b, byte [r15 + rdx + 0x2a5c0]
mov byte [rbp + 2], r15b
add rbp, 3
add r10d, 4
mov byte [rbp], 0x3d
inc rbp
cmp dword [rsp + 0x60], 0
je 0x14000e829
test r10d, r10d
je 0x14000e829
mov byte [rbp], 0xa
inc rbp
mov byte [rbp], 0
test r8, r8
je 0x14000e838
sub rbp, rax
mov qword [r8], rbp
add rsp, 0x28
pop rbp
pop r15
ret
mov dl, byte [rdx]
and dl, 3
shl dl, 4
movzx ecx, dl
mov byte [rbp + 2], 0x3d
mov r9b, byte [r15 + rcx + 0x2a5c0]
mov byte [rbp + 1], r9b
add rbp, 3
jmp 0x14000e80b
xor eax, eax
add rsp, 0x28
pop rbp
pop r15
ret
Function at 0x14000e6f4
Capabilities:
Encode data using base64

Disassembly:
push r15
push rbp
sub rsp, 0x28
mov rax, rcx
lea r15, [0x140002000]
test rax, rax
je 0x14000e861
mov rcx, rdx
lea r11, [rdx + r9]
neg rcx
mov rbp, rax
xor r10d, r10d
cmp r9, 3
jl 0x14000e7ad
mov qword [rsp + 0x20], r14
mov r9b, byte [rdx]
add r10d, 4
shr r9b, 2
add rcx, 0xfffffffffffffffd
movzx r14d, r9b
mov r9b, byte [r15 + r14 + 0x2a5c0]
mov byte [rbp], r9b
mov r9b, byte [rdx]
and r9b, 3
mov r14b, byte [rdx + 1]
shl r9b, 4
shr r14b, 4
or r9b, r14b
movzx r14d, r9b
mov r9b, byte [r15 + r14 + 0x2a5c0]
mov byte [rbp + 1], r9b
mov r9b, byte [rdx + 1]
and r9b, 0xf
mov r14b, byte [rdx + 2]
shl r9b, 2
shr r14b, 6
or r9b, r14b
movzx r14d, r9b
mov r9b, byte [r15 + r14 + 0x2a5c0]
mov byte [rbp + 2], r9b
lea r9, [rbp + 3]
mov r14b, byte [rdx + 2]
add rdx, 3
and r14b, 0x3f
movzx r14d, r14b
mov r14b, byte [r15 + r14 + 0x2a5c0]
mov byte [rbp + 3], r14b
add rbp, 4
cmp r10d, 0x48
jl 0x14000e79a
mov byte [r9 + 1], 0xa
inc rbp
xor r10d, r10d
lea r9, [r11 + rcx]
cmp r9, 3
jge 0x14000e6f9
mov r14, qword [rsp + 0x20]
test r9, r9
je 0x14000e816
mov cl, byte [rdx]
shr cl, 2
movzx r11d, cl
cmp r9, 1
mov cl, byte [r15 + r11 + 0x2a5c0]
mov byte [rbp], cl
je 0x14000e840
mov r9b, byte [rdx]
and r9b, 3
mov cl, byte [rdx + 1]
shl r9b, 4
shr cl, 4
or r9b, cl
movzx r11d, r9b
mov cl, byte [r15 + r11 + 0x2a5c0]
mov byte [rbp + 1], cl
mov dl, byte [rdx + 1]
and dl, 0xf
shl dl, 2
movzx edx, dl
mov r15b, byte [r15 + rdx + 0x2a5c0]
mov byte [rbp + 2], r15b
add rbp, 3
add r10d, 4
mov byte [rbp], 0x3d
inc rbp
cmp dword [rsp + 0x60], 0
je 0x14000e829
test r10d, r10d
je 0x14000e829
mov byte [rbp], 0xa
inc rbp
mov byte [rbp], 0
test r8, r8
je 0x14000e838
sub rbp, rax
mov qword [r8], rbp
add rsp, 0x28
pop rbp
pop r15
ret
mov dl, byte [rdx]
and dl, 3
shl dl, 4
movzx ecx, dl
mov byte [rbp + 2], 0x3d
mov r9b, byte [r15 + rcx + 0x2a5c0]
mov byte [rbp + 1], r9b
add rbp, 3
jmp 0x14000e80b
xor eax, eax
add rsp, 0x28
pop rbp
pop r15
ret
Function at 0x140014820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov r10, rax
mov r9, r10
mov r8, rdx
and r9, 0xfff
and r8, 0xfff
movdqa xmm4, xmmword [0x140038be0]
neg r9d
neg r8d
add r9d, 0x1000
add r8d, 0x1000
movdqa xmm3, xmmword [0x140038bf0]
cmp r9d, 0x10
jl 0x14001491d
cmp r8d, 0x10
jl 0x14001491d
mov qword [rsp + 0x30], rbx
movaps xmmword [rsp + 0x20], xmm6
movdqu xmm1, xmmword [r10]
movdqu xmm2, xmmword [rdx]
movdqa xmm0, xmmword [0x140038c00]
movdqa xmm5, xmm1
pcmpgtb xmm5, xmm3
pcmpgtb xmm0, xmm1
pand xmm5, xmm0
pand xmm5, xmm4
pxor xmm0, xmm0
movdqa xmm6, xmmword [0x140038c00]
paddb xmm1, xmm5
movdqa xmm5, xmm2
pcmpgtb xmm6, xmm2
pcmpgtb xmm5, xmm3
pcmpeqb xmm0, xmm1
pand xmm5, xmm6
pand xmm5, xmm4
paddb xmm2, xmm5
pcmpeqb xmm1, xmm2
pmovmskb eax, xmm1
xor eax, 0xffff
jne 0x140014997
pmovmskb eax, xmm0
test eax, eax
jne 0x140014a08
add r9d, 0xfffffff0
add r10, 0x10
add rdx, 0x10
add r8d, 0xfffffff0
cmp r9d, 0x10
jl 0x14001490d
cmp r8d, 0x10
jge 0x14001487d
nop word [rax + rax]
movaps xmm6, xmmword [rsp + 0x20]
jmp 0x140014922
mov qword [rsp + 0x30], rbx
movzx eax, byte [r10]
lea ecx, [rax - 0x41]
cmp ecx, 0x19
lea ebx, [rax + 0x20]
movzx ecx, byte [rdx]
cmovbe eax, ebx
lea r11d, [rcx - 0x41]
cmp r11d, 0x19
lea ebx, [rcx + 0x20]
cmovbe ecx, ebx
cmp eax, ecx
jne 0x1400149fc
test eax, eax
je 0x1400149f0
inc r10
inc rdx
dec r8d
dec r9d
jne 0x140014978
mov r9d, 0x1000
test r8d, r8d
je 0x14001497d
cmp r8d, 0x10
jge 0x140014878
jmp 0x140014922
test r8d, r8d
jne 0x14001498f
mov r8d, 0x1000
cmp r9d, 0x10
jge 0x140014878
jmp 0x140014922
cmp r9d, 0x10
jge 0x14001496c
jmp 0x140014922
bsf r8d, eax
pmovmskb eax, xmm0
movaps xmm6, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
test eax, eax
mov ecx, r8d
je 0x1400149bf
bsf eax, eax
cmp r8d, eax
jbe 0x1400149bf
xor eax, eax
add rsp, 0x38
ret
movzx eax, byte [rcx + r10]
movzx r10d, byte [rcx + rdx]
lea r8d, [rax - 0x41]
cmp r8d, 0x19
lea r9d, [rax + 0x20]
lea edx, [r10 - 0x41]
cmovbe eax, r9d
cmp edx, 0x19
lea ecx, [r10 + 0x20]
cmovbe r10d, ecx
sub eax, r10d
add rsp, 0x38
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x38
ret
sub eax, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
movaps xmm6, xmmword [rsp + 0x20]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret