joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000e99c
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, r8
and qword [rax - 0x18], rdi
mov rbx, rdx
and qword [rdx], rdi
xor r9d, r9d
and qword [rax - 0x20], rdi
xor edx, edx
and dword [r8], edi
mov rbp, rcx
mov qword [rax - 0x28], r8
lea r8d, [rdi + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x18000ea26
mov edx, dword [rsi]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x18000ea26
and qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
and qword [rsp + 0x28], rdi
mov r9, rax
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov edi, eax
test eax, eax
jne 0x18000ea26
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x18000eb04
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
lea rax, [r11 - 0x28]
mov rbp, r8
mov qword [r11 - 0x38], rax
mov r14, rdx
lea r8, [r11 + 0x20]
mov rsi, rcx
xor edi, edi
lea r9d, [rbx + 4]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18000ebd9
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x18000eb93
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 1]
lea edx, [rbx + 8]
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, eax
test eax, eax
jne 0x18000eb9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___DuplicateTokenEx__0x_08x__n
call fcn.1800090bc
mov eax, dword [rsp + 0x78]
jmp 0x18000eb98
mov qword [rsp + 0x38], rsi
cmp eax, 1
je 0x18000ebed
mov rcx, qword [rsp + 0x38]
mov r8, rbp
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ebx, eax
test eax, eax
jne 0x18000ebc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___CheckTokenMembership__0x_08x__n
call fcn.1800090bc
test edi, edi
je 0x18000ebed
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000ebed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___GetTokenInformation__0x_08x__n
call fcn.1800090bc
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x18000ed0c
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor esi, esi
lea rbp, [r11 - 0x24]
test r9, r9
lea rax, [r11 + 0x20]
mov rbx, rdx
mov rdi, r8
cmovne rbp, r9
mov r14, rcx
and dword [rsp + 0x40], esi
lea r9, [r11 - 0x28]
and dword [r11 + 0x20], esi
mov rdx, rcx
mov rcx, qword [rsp + 0x90]
xor r8d, r8d
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x18000edfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18000edfd
mov edx, dword [rsp + 0x40]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x18000edfd
mov edx, dword [rsp + 0x88]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x18000edf1
mov r8, qword [rbx]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rdx, r14
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test eax, eax
jne 0x18000edfd
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x70]
mov eax, esi
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x180014368
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r9, dword [rcx + 0xc]
movsxd r11, r8d
test r8d, r8d
jle 0x1800143bb
mov rdi, qword [rcx]
mov r10, r9
movsxd rsi, dword [rcx + 8]
xor ebx, ebx
mov al, byte [rbx + rdx]
inc rbx
xor byte [r10 + rdi], al
inc r10
lea eax, [r9 + 1]
xor r9d, r9d
cmp r10, rsi
cmovl r9d, eax
xor eax, eax
cmp r10, rsi
cmovl rax, r10
mov r10, rax
cmp rbx, r11
jl 0x18001438f
add dword [rcx + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov dword [rcx + 0xc], r9d
ret
Function at 0x18001f234
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, r9
mov rdi, rcx
cmp edx, dword [rcx + 0x3c]
jbe 0x18001f264
mov ecx, 0x10281
call fcn.180049820
jmp 0x18001f40a
xor ebx, ebx
lea r8, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
call fcn.18001a578
test eax, eax
jne 0x18001f40a
mov rbx, qword [rsp + 0x38]
xor eax, eax
cmp byte [rbx + 8], al
je 0x18001f29c
mov ecx, 0x10286
call fcn.180049820
mov edi, eax
jmp 0x18001f3fb
mov byte [rbx + 8], 1
movzx esi, byte [rbx + 5]
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], eax
cmp ax, word [rbx + 0x12]
jae 0x18001f366
mov rcx, rax
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x60]
movzx esi, byte [rcx + rax + 1]
movzx eax, byte [rcx + rax]
shl rax, 8
or rsi, rax
movzx eax, word [rbx + 0x14]
and rsi, rax
xor eax, eax
add rsi, qword [rbx + 0x50]
cmp byte [rbx + 4], al
jne 0x18001f31d
movzx eax, byte [rsi + 2]
mov r9, rbp
movzx edx, byte [rsi + 1]
mov r8d, 1
shl edx, 8
mov rcx, rdi
or edx, eax
movzx eax, byte [rsi]
shl eax, 0x18
shl edx, 8
or edx, eax
movzx eax, byte [rsi + 3]
or edx, eax
call fcn.18001f234
mov edi, eax
test eax, eax
jne 0x18001f3fb
lea r8, [rsp + 0x68]
mov rdx, rsi
mov rcx, rbx
call fcn.18001cad0
mov edi, eax
test eax, eax
jne 0x18001f3fb
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
inc edx
movzx eax, word [rbx + 0x12]
add rcx, 2
mov rdi, qword [rsp + 0x60]
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x38], rcx
cmp edx, eax
jl 0x18001f2be
mov esi, dword [rsp + 0x34]
xor eax, eax
cmp byte [rbx + 4], al
jne 0x18001f3ab
lea ecx, [rsi + 8]
mov r9, rbp
add rcx, qword [rbx + 0x50]
mov r8d, 1
movzx eax, byte [rcx + 2]
movzx edx, byte [rcx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [rcx]
shl eax, 0x18
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 3]
or edx, eax
mov rcx, rdi
call fcn.18001f234
mov edi, eax
test eax, eax
jne 0x18001f3fb
xor edi, edi
jmp 0x18001f3b9
xor edi, edi
test rbp, rbp
je 0x18001f3b9
movzx eax, word [rbx + 0x12]
add dword [rbp], eax
cmp dword [rsp + 0x70], edi
je 0x18001f3d7
mov r8d, dword [rbx + 0x88]
mov rdx, rbx
mov rcx, qword [rbx + 0x48]
call fcn.18001c76c
jmp 0x18001f295
mov rcx, qword [rbx + 0x70]
call fcn.180018e8c
mov edi, eax
test eax, eax
jne 0x18001f3fb
mov rax, qword [rbx + 0x50]
mov rcx, rbx
mov edx, esi
movzx edx, byte [rax + rdx]
or edx, 8
call fcn.18001a3ac
mov byte [rbx + 8], 0
mov rcx, qword [rbx + 0x70]
call fcn.180018950
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180049ae4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x180049b84
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x180049b84
mov edx, esi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180049b84
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
je 0x180049b47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
test rbx, rbx
je 0x180049b84
movzx eax, word [rbx]
cmp eax, 0x21
je 0x180049b6e
cmp eax, 0x2a
je 0x180049b63
mov rcx, rbx
call fcn.180049b9c
jmp 0x180049b77
lea rcx, [rbx + 2]
call fcn.1800635d4
jmp 0x180049b77
lea rcx, [rbx + 2]
call fcn.180059f20
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x180049b88
mov edi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180049ed0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
and dword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
je 0x180049f32
and qword [0x1800de020], 0
mov edx, 0x1fe
mov ecx, 0x40
mov qword [0x1800de028], 0xff
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [0x1800de018], rax
test rax, rax
je 0x180049f29
mov ecx, dword [rsp + 0x38]
mov rdx, rbx
call fcn.180049958
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [0x1800de018]
add rsp, 0x20
pop rbx
ret
Function at 0x180059f20
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
lea rdx, [rax + 0x10]
mov ebp, r12d
mov rsi, rcx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
mov edi, r12d
test rax, rax
je 0x180059ff2
cmp dword [rsp + 0x58], r12d
jle 0x180059ff2
movzx ebx, r12w
lea r13, [0x1800a0d50]
cmp bx, 0x13
jae 0x180059fcb
mov rcx, qword [r15]
movzx r14d, bx
shl r14, 5
mov rdx, qword [r14 + r13 + 0x10]
call fcn.180075b78
test eax, eax
mov edi, r12d
sete dil
test edi, edi
je 0x180059fc4
mov rax, qword [r14 + r13]
test rax, rax
je 0x180059fb5
mov ecx, dword [rsp + 0x58]
lea rdx, [r15 + 8]
dec ecx
call rax
mov ebp, eax
jmp 0x180059fc4
mov ecx, dword [r14 + r13 + 8]
xor r8d, r8d
xor edx, edx
call fcn.180007890
inc bx
test edi, edi
je 0x180059f74
test edi, edi
jne 0x180059ff2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r12w
jne 0x180059fd3
lea r8d, [rax*2 + 2]
mov rdx, rsi
mov ecx, 0x22c003
call fcn.180007890
mov rbx, qword [rsp + 0x50]
mov eax, ebp
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100f06680
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x100f0668d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100f0669d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100f06685
lea eax, [rcx + 1]
jmp 0x100f066ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x100f066be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100f066a4
sub eax, 3
jb 0x100f066de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100f0672d
sar eax, 1
movsxd rbp, eax
jb 0x100f06714
jmp 0x100f066ec
add ebx, ebx
jne 0x100f066ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100f06714
inc ecx
add ebx, ebx
jne 0x100f066fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100f06714
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100f0670d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100f066fc
add ecx, 2
jmp 0x100f06719
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.100f06642
jmp 0x100f0668d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf02000]
mov eax, dword [rdi]
or eax, eax
je 0x100f06789
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf1cf64]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x100f06739
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x100f06783
mov qword [rbx], rax
add rbx, 8
jmp 0x100f06759
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.100f0680c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100f0680c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100f067fc
sub rsp, 0xffffffffffffff80
jmp 0x1000031c0
Function at 0x1417af058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1417af1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1417af089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417af06f
add dl, dl
jne 0x1417af096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417af0f6
xor eax, eax
add dl, dl
jne 0x1417af0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417af1ad
add dl, dl
jne 0x1417af0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417af0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417af0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417af0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417af0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1417af07e
mov eax, 1
add dl, dl
jne 0x1417af106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417af113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417af0fb
sub eax, ebx
mov ebx, 1
jne 0x1417af14c
mov ecx, 1
add dl, dl
jne 0x1417af12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417af13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417af123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417af07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1417af168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417af175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417af15d
cmp eax, 0x7d00
jae 0x1417af19b
cmp eax, 0x500
jb 0x1417af196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417af07e
cmp eax, 0x7f
ja 0x1417af19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417af07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417af1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1417af07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001930
Capabilities:
Terminate thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, qword [rcx]
test r14, r14
je 0x1800019ff
mov rsi, rcx
lea rdi, [rsp + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1800019b9
lea rcx, [0x180001a10]
xor r8d, r8d
call r13
mov rcx, qword [r14 + 8]
mov edx, 0xffffffff
call rbp
mov r14, qword [rsi]
mov rax, qword [r14 + 0x18]
mov qword [rsi], rax
mov rcx, qword [r14 + 8]
call r12
mov rcx, r14
call fcn.180029184
mov r14, qword [rsi]
test r14, r14
je 0x1800019ff
movdqu xmm0, xmmword [r14 + 8]
pshufd xmm0, xmm0, 0x4e
movdqa xmmword [rsp + 0x20], xmm0
mov ecx, 2
mov rdx, rdi
xor r8d, r8d
mov r9d, 0xffffffff
call r15
mov rcx, qword [r14 + 0x10]
call r12
mfence
mov eax, dword [0x1800ff420]
mov rdx, qword [r14 + 8]
test eax, eax
je 0x180001980
mov rcx, rdx
xor edx, edx
call rbx
jmp 0x180001998
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1800097c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x18
movdqa xmmword [rsp], xmm6
mov eax, dword [rcx]
cmp eax, 0x138
jne 0x18000985e
movq xmm0, qword [rcx + 8]
pshufd xmm3, xmm0, 0x44
mov rax, 0xfffffffffffffec8
movaps xmm0, xmmword [0x1800d42a0]
movaps xmm1, xmmword [0x1800d42b0]
movdqa xmm2, xmmword [0x1800d42c0]
nop dword [rax]
movups xmm4, xmmword [rcx + rax*8 + 0x9d0]
shufps xmm3, xmm4, 0x4e
andps xmm3, xmm0
movaps xmm5, xmm4
andps xmm5, xmm1
orps xmm5, xmm3
psrlq xmm5, 1
pshufd xmm3, xmm4, 0xa0
pslld xmm3, 0x1f
psrad xmm3, 0x1f
pand xmm3, xmm2
movdqu xmm6, xmmword [rcx + rax*8 + 0xea8]
pxor xmm6, xmm3
pxor xmm6, xmm5
movdqu xmmword [rcx + rax*8 + 0x1388], xmm6
movdqa xmm3, xmm4
add rax, 2
jne 0x180009800
mov eax, 0x138
jmp 0x1800099eb
cmp eax, 0x270
jb 0x1800099eb
movq xmm0, qword [rcx + 0x9c8]
pshufd xmm3, xmm0, 0x44
mov rax, 0xffffffffffffff64
movaps xmm0, xmmword [0x1800d42a0]
movaps xmm1, xmmword [0x1800d42b0]
movdqa xmm2, xmmword [0x1800d42c0]
nop word cs:[rax + rax]
movups xmm4, xmmword [rcx + rax*8 + 0xeb0]
shufps xmm3, xmm4, 0x4e
andps xmm3, xmm0
movaps xmm5, xmm4
andps xmm5, xmm1
orps xmm5, xmm3
psrlq xmm5, 1
pshufd xmm3, xmm4, 0xa0
pslld xmm3, 0x1f
psrad xmm3, 0x1f
pand xmm3, xmm2
movdqu xmm6, xmmword [rcx + rax*8 + 0x1388]
pxor xmm6, xmm3
pxor xmm6, xmm5
movdqu xmmword [rcx + rax*8 + 0x4e8], xmm6
movdqa xmm3, xmm4
add rax, 2
jne 0x1800098a0
movq xmm3, qword [rcx + 0xea8]
pshufd xmm3, xmm3, 0x44
xor eax, eax
nop word cs:[rax + rax]
movdqa xmm4, xmm3
movups xmm3, xmmword [rcx + rax*8 + 0xeb0]
shufps xmm4, xmm3, 0x4e
andps xmm4, xmm0
movaps xmm5, xmm3
andps xmm5, xmm1
orps xmm5, xmm4
psrlq xmm5, 1
pshufd xmm4, xmm3, 0xa0
pslld xmm4, 0x1f
psrad xmm4, 0x1f
pand xmm4, xmm2
movdqu xmm6, xmmword [rcx + rax*8 + 8]
pxor xmm6, xmm4
pxor xmm6, xmm5
movdqu xmmword [rcx + rax*8 + 0x4e8], xmm6
add rax, 2
cmp rax, 0x9a
jne 0x180009910
pshufd xmm0, xmm3, 0xee
movq rax, xmm0
and rax, 0xffffffff80000000
mov rdx, qword [rcx + 0x1380]
mov r8d, edx
and r8d, 0x7ffffffe
or r8, rax
shr r8, 1
mov eax, edx
and eax, 1
neg rax
movabs r9, 0xb5026f5aa96619e9
and rax, r9
xor rax, qword [rcx + 0x4d8]
xor rax, r8
mov qword [rcx + 0x9b8], rax
and rdx, 0xffffffff80000000
mov rax, qword [rcx + 8]
mov r8d, eax
and r8d, 0x7ffffffe
or r8, rdx
and eax, 1
neg rax
and rax, r9
xor rax, qword [rcx + 0x4e0]
shr r8, 1
xor rax, r8
mov qword [rcx + 0x9c0], rax
xor eax, eax
lea edx, [rax + 1]
mov dword [rcx], edx
mov eax, eax
mov rax, qword [rcx + rax*8 + 8]
mov rdx, rax
shr rdx, 0x1d
and rdx, qword [rcx + 0x1388]
xor rdx, rax
mov rax, rdx
shl rax, 0x11
movabs rcx, 0x71d67fffeda60000
and rcx, rax
xor rcx, rdx
mov edx, ecx
and edx, 0x7ffbf77
shl rdx, 0x25
xor rdx, rcx
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
movaps xmm6, xmmword [rsp]
add rsp, 0x18
ret
Function at 0x18001dee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rdx + 0x10]
mov r8, rdx
call fcn.180019fb0
cmp byte [rsi + 0x19], 0
mov rcx, rsi
jne 0x18001df09
mov rcx, qword [rsi + 8]
cmp byte [rdi + 0x19], 0
mov rdx, rdi
jne 0x18001df16
mov rdx, qword [rdi + 8]
mov eax, dword [rdx]
mov r8d, dword [rbx]
mov r9d, eax
sub r9d, r8d
jae 0x18001df45
cmp qword [rsi + 0x10], 1
jne 0x18001df9a
sub r8d, eax
mov dword [rcx], r8d
movzx eax, byte [rdi + 0x18]
mov ecx, eax
xor cl, 1
mov byte [rsi + 0x18], cl
test al, al
je 0x18001df79
jmp 0x18001e04e
mov dword [rcx], r9d
cmp rsi, rdi
je 0x18001e035
add rcx, 4
mov rax, qword [rdi + 0x10]
add rdx, 4
lea r8, [rax*4 - 4]
call fcn.1800cfcb0
movzx eax, byte [rdi + 0x18]
mov byte [rsi + 0x18], al
test al, al
je 0x18001e04e
cmp qword [rsi + 0x10], 1
jne 0x18001e04e
cmp byte [rsi + 0x19], 0
mov rax, rsi
jne 0x18001e02a
mov rax, qword [rsi + 8]
jmp 0x18001e02a
mov dword [rcx], r9d
mov r8d, dword [rdx + 4]
mov eax, 1
test r8d, r8d
jne 0x18001dfc4
nop dword [rax + rax]
mov dword [rcx + rax*4], 0xffffffff
mov r8d, dword [rdx + rax*4 + 4]
inc rax
test r8d, r8d
je 0x18001dfb0
dec r8d
mov dword [rcx + rax*4], r8d
cmp rsi, rdi
je 0x18001dff0
lea rcx, [rcx + rax*4]
add rcx, 4
mov r8, qword [rdi + 0x10]
lea r8, [rdx + r8*4]
lea rdx, [rdx + rax*4]
add rdx, 4
sub r8, rdx
call fcn.1800cfcb0
cmp byte [rsi + 0x19], 0
mov rax, rsi
jne 0x18001dffd
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
dec rcx
je 0x18001e01f
nop word cs:[rax + rax]
cmp dword [rax + rcx*4], 0
jne 0x18001e047
mov qword [rsi + 0x10], rcx
dec rcx
jne 0x18001e010
movzx ecx, byte [rdi + 0x18]
mov byte [rsi + 0x18], cl
test cl, cl
je 0x18001e04e
cmp dword [rax], 0
jne 0x18001e04e
mov byte [rsi + 0x18], 0
jmp 0x18001e04e
cmp eax, r8d
jne 0x18001e04e
cmp qword [rdi + 0x10], 1
jne 0x18001e04e
mov byte [rdi + 0x18], 0
jmp 0x18001e04e
movzx eax, byte [rdi + 0x18]
mov byte [rsi + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x180046ffc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x180059b24
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x180059b56
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x180059b39
mov rax, r8
ret

Function at 0x18004f864
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x180056924
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x180056956
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x180056939
mov rax, r8
ret

Function at 0x180065d64
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.18006c2c0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x180065db6
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x180065db6
sub ecx, 1
je 0x180065daf
cmp ecx, 1
je 0x180065da8
xor eax, eax
jmp 0x180065dbb
mov eax, 3
jmp 0x180065dbb
mov eax, 1
jmp 0x180065dbb
mov eax, 2
add rsp, 0x28
ret

Function at 0x18008fe50
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18008fe50
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18008febf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18008febf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18008febf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18008febf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18008febf
cmp dword [rcx + 0x84], 0xe
jbe 0x18008febf
cmp dword [rcx + 0xf8], 0
je 0x18008febf
mov ecx, ebx
call fcn.18008fcf4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18009005c
nop
cmp dword [rbp + 0x20], 0
je 0x18008ff0d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18008fde8
int3

Function at 0x1800a0360
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800a0388
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800a0388
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret