joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004720
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov qword [rsp + 0x30], rsi
mov rbx, rcx
mov rsi, rdx
call fcn.180004060
mov eax, dword [rbx + 0x28]
cmp eax, 2
je 0x18000482d
mov rdx, rsi
mov qword [rsp + 0x38], rdi
lea rcx, [0x180052508]
call fcn.18000caf0
mov rdi, rax
cmp rax, rbx
je 0x180004828
test rax, rax
je 0x18000478b
lea rcx, [rbx + 0x50]
mov edx, 2
call fcn.180001400
mov rcx, rdi
call fcn.180004160
test byte [rdi + 0x50], 1
je 0x18000478b
mov rcx, rdi
call fcn.180004960
mov rax, rsi
lea rcx, [0x180052508]
xchg qword [rbx], rax
mov rdx, rbx
call fcn.18000cb20
lock or dword [rbx + 0x50], 4
test al, al
je 0x1800047ea
lock inc dword [0x180052510]
movsxd rax, dword [rbx + 0x48]
lea rcx, [0x1800524d0]
lock inc dword [rcx + rax*4]
mov rdi, qword [0x1800513e0]
cmp rdi, 0xffffffffffffffff
je 0x180004828
mov rcx, rdi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x180004828
lea rdx, [rbx + 0x8d0]
mov rcx, rdi
call fcn.18000ca30
jmp 0x180004828
lea r9, str.void___cdecl_rtThreadInsert_struct_RTTHREADINT__unsigned___int64_
mov edx, 0x1ed
lea r8, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxRuntimecommonmisc_thread.cpp
lea rcx, [0x180025e94]
call fcn.18000cf90
lea r9, [rbx + 0x8c0]
mov r8, rsi
mov rdx, rbx
lea rcx, str.Lock_problem___p___RTnthrd___s_n
call fcn.18000cfa0
call fcn.18000cfd0
int3
mov rdi, qword [rsp + 0x38]
mov rcx, qword [0x180052518]
call fcn.18000d800
mov rsi, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
jns 0x180004877
lea r9, str.void___cdecl_rtThreadUnLockRW_void_
mov edx, 0x101
lea r8, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxRuntimecommonmisc_thread.cpp
lea rcx, str.RT_SUCCESS_NP_rc_
call fcn.18000cf90
mov edx, ebx
lea rcx, str._Rra_n
call fcn.18000cfa0
call fcn.18000cfd0
int3
add rsp, 0x20
pop rbx
ret

Function at 0x180004880
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180004720
mov edx, dword [rbx + 0x48]
mov rcx, rbx
call fcn.18000ea40
mov eax, 3
mov rcx, rbx
xchg dword [rbx + 0x28], eax
mov rax, qword [rbx + 0x58]
mov rdx, qword [rbx + 0x60]
call qword [case.0x18001f8e5.0]
mov esi, eax
call fcn.18000ca60
mov ecx, 2
mov dword [rbx + 0x54], esi
xchg dword [rbx + 0x28], ecx
lock or dword [rbx + 0x50], 2
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1800048e0
call fcn.18000d4d0
mov rcx, rbx
call fcn.1800040d0
mov rdi, qword [0x1800513e0]
cmp rdi, 0xffffffffffffffff
je 0x180004918
mov rcx, rdi
call sub.KERNEL32.dll_TlsGetValue
lea rdx, [rbx + 0x8d0]
cmp rax, rdx
jne 0x180004918
lea rdx, [0x1800513e8]
mov rcx, rdi
call fcn.18000ca30
mov eax, dword [rbx + 0x24]
cmp eax, 1
jb 0x180004937
mov eax, 0xffffffff
lock xadd dword [rbx + 0x24], eax
cmp eax, 1
jne 0x180004937
mov rcx, rbx
call fcn.180003fd0
mov rbx, qword [rsp + 0x38]
mov eax, esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800071f0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov r10, qword [rcx + 0x40]
mov r11, r9
mov rbx, rcx
xor r9d, r9d
mov rcx, qword [r10 + 0x18]
test rcx, rcx
je 0x18000721a
movzx eax, byte [rcx]
test al, al
je 0x18000721a
mov byte [rcx], r9b
mov dword [r10 + 0xc], r9d
mov eax, dword [rbx + 0x28]
test rax, 0x7dff8010
je 0x180007246
mov dword [rsp + 0x28], edx
lea rcx, [0x180005b00]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x2c], r8d
mov qword [rsp + 0x30], r9
jmp 0x180007250
mov rdx, rbx
lea rcx, [0x180005970]
mov r9, qword [rsp + 0x70]
mov r8, r11
call fcn.1800144e0
test byte [rbx + 0x28], 2
mov rax, qword [rbx + 0x40]
jne 0x18000727c
cmp dword [rax + 0xc], 0
je 0x18000727c
xor edx, edx
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp fcn.180006cd0
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x18000728b
mov eax, dword [rax + 0xc]
mov dword [rcx + 4], eax
add rsp, 0x40
pop rbx
ret
Function at 0x1800092d0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
mov qword [rsp + 0x30], rsi
mov esi, ecx
mov ecx, 0x8001
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 0x8001
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, qword [0x180052ec0]
lea rdx, str.SetDllDirectoryW
xor ebp, ebp
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180009338
lea rcx, [0x180026b74]
call qword [case.0x18001f8e5.0]
test eax, eax
je 0x180009333
mov dword [0x180051350], 2
jmp 0x180009338
mov ebx, 0xffffff1d
and esi, 4
mov qword [rsp + 0x38], rdi
cmp dword [0x180052d9c], 0x6c
jg 0x18000934d
test esi, esi
je 0x1800093a0
mov rcx, qword [0x180052ec0]
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800093a0
mov ecx, 0x800
test esi, esi
mov edi, 0xa00
cmovne edi, ecx
mov ecx, edi
call qword [case.0x18001f8e5.0]
test eax, eax
je 0x180009396
and edi, 0x200
neg edi
sbb eax, eax
add eax, 4
mov dword [0x180051350], eax
jmp 0x1800093a0
test ebx, ebx
mov eax, 0xffffff1c
cmovns ebx, eax
mov rcx, qword [0x180052ec0]
lea rdx, str.GetCurrentThreadStackLimits
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180052ec0]
lea rdx, str.SetUnhandledExceptionFilter
mov qword [0x180052d88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180052ec0]
lea rdx, str.UnhandledExceptionFilter
mov qword [0x180052f28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, qword [rsp + 0x30]
mov qword [0x180052f30], rax
mov rax, qword [0x180052f28]
test rax, rax
je 0x180009429
cmp qword [0x180052d90], rbp
jne 0x180009429
lea rdi, [0x1800099c0]
mov rcx, rdi
call qword [case.0x18001f8e5.0]
cmp rax, rdi
cmove rax, rbp
mov qword [0x180052d90], rax
mov rdi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
Function at 0x18000ad50
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x4070
call fcn.180001020
sub rsp, rax
mov rax, qword [0x180051010]
xor rax, rsp
mov qword [rsp + 0x4060], rax
mov qword [rsp + 0x30], rcx
mov rbx, rdx
test rdx, rdx
je 0x18000ae15
lea rdx, [rsp + 0x2050]
mov ecx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x18000ae06
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x1004
lea rcx, [rsp + 0x2050]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x18000ae06
cmp word [rsp + 0x42], 0x3a
jne 0x18000add6
movzx ecx, word [rsp + 0x40]
lea eax, [rcx - 0x61]
cmp eax, 0x1a
jae 0x18000add6
sub cx, 0x20
mov word [rsp + 0x40], cx
lea rax, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxRuntime_r3winpath_win.cpp
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call fcn.180005000
jmp 0x18000ae1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180016330
jmp 0x18000ae1a
mov eax, 0xffffffd7
mov rcx, qword [rsp + 0x4060]
xor rcx, rsp
call fcn.180001160
add rsp, 0x4070
pop rbx
ret

Function at 0x18000c7a0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
mov ecx, dword [0x180051358]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x18000c7c7
mov eax, 0xffffffe8
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov rcx, rbx
call fcn.18000c600
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x18000c7e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov r8, qword [rcx + 0x68]
mov eax, 0xffffffff
mov rdi, rdx
mov rbx, rcx
cmp r8, rax
jae 0x18000c883
test r8d, r8d
je 0x18000c81f
lea eax, [r8 + 0xffff]
and eax, 0xffff0000
cmp eax, r8d
jne 0x18000c81f
add r8d, 0x1000
mov qword [rcx + 0x30], 0xffffffffffffffff
lea rax, [rsp + 0x40]
xor ecx, ecx
mov edx, r8d
mov qword [rsp + 0x28], rax
lea r8, [0x18000c2e0]
mov r9, rbx
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x20], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18000c86b
mov qword [rbx + 0x30], rax
mov eax, dword [rsp + 0x40]
mov qword [rdi], rax
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180016330
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov eax, 0xfffffffe
add rsp, 0x30
pop rdi
ret

Function at 0x18000c8a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x180051358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rbx, rax
jne 0x18000c8c8
mov ecx, dword [0x180051358]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x18000c8e0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x18000c8f0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180051358], eax
cmp eax, 0xffffffff
jne 0x18000c90f
mov eax, 0xffffffe9
add rsp, 0x28
ret
mov rcx, qword [0x180052ec0]
lea rdx, str.SetThreadDescription
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800540a0], rax
xor eax, eax
add rsp, 0x28
ret

Function at 0x18000c9e0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbx
sub rsp, 0x20
rdtsc
shl rdx, 0x20
xor ecx, ecx
or rax, rdx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rbx
cmp rax, 0x5dc
seta al
add rsp, 0x20
pop rbx
ret

Function at 0x18000ca30
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x18000ca45
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x28
jmp fcn.180016330

Function at 0x18000ca60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mfence
mov eax, dword [0x1800540c0]
test eax, eax
je 0x18000cae4
mov qword [rsp + 0x30], rbx
lea rcx, [0x1800540d0]
mov qword [rsp + 0x20], rdi
call fcn.18001bd30
mov rbx, qword [0x180054110]
lea rdi, [0x180054110]
cmp rbx, rdi
je 0x18000cace
nop word [rax + rax]
mov ecx, dword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18000cac6
mov rcx, rax
mov rax, qword [rbx + 0x18]
call qword [case.0x18001f8e5.0]
mov ecx, dword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x18000caa0
lea rcx, [0x1800540d0]
call fcn.18001bd40
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x18000fed0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x180052f38]
mov rdi, rdx
mov ebx, ecx
test rax, rax
je 0x18000ff01
mov ecx, 0x17
call qword [case.0x18001f8e5.0]
test eax, eax
je 0x18000ff01
mov ecx, ebx
int 0x29
mov rax, qword [0x180052ef0]
test rax, rax
je 0x18000ff18
call qword [case.0x18001f8e5.0]
test eax, eax
je 0x18000ff18
int3
mov rax, qword [0x180052f28]
test rax, rax
je 0x18000ffc3
cmp qword [0x180052f30], 0
je 0x18000ffc3
xor ecx, ecx
call qword [case.0x18001f8e5.0]
mov rax, qword [rdi + 0xf8]
lea rcx, [rsp + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0xc0000409
mov qword [rsp + 0x20], rax
mov rax, qword [0x180052f30]
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x50], rbx
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x28], rdi
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
call qword [case.0x18001f8e5.0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x18000ffc3
Function at 0x180014530
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r8, [rax - 1]
cmp r8, 0xfffffffffffffffd
ja 0x180014572
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180014580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r8, [rax - 1]
cmp r8, 0xfffffffffffffffd
ja 0x1800145c2
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180014730
Capabilities:
Query environment variable

Disassembly:
jmp 0x180014740
push rbx
sub rsp, 0x470
mov rax, qword [0x180051010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov edx, 0x3d
mov rbx, rcx
call sym.VBoxGINA.dll_nocrt_strchr
test rax, rax
jne 0x18001494d
mov qword [rsp + 0x460], r12
cmp rbx, 0x1000
jb 0x18001493e
movabs rax, 0xffff800000000000
test rax, rbx
jne 0x18001493e
lea r12, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxRuntime_r3winenv_win.cpp
mov rcx, rbx
mov r8, r12
lea rdx, [rsp + 0x38]
call fcn.18000fa90
xor ebx, ebx
test eax, eax
js 0x180014940
mov qword [rsp + 0x488], rbp
xor ecx, ecx
mov qword [rsp + 0x490], rsi
mov ebp, ebx
mov qword [rsp + 0x468], rdi
mov edi, 0x200
mov qword [rsp + 0x458], r14
lea r14, [rsp + 0x40]
mov qword [rsp + 0x450], r15
mov r15d, ebx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jb 0x180014894
nop dword [rax]
mov rcx, r15
call fcn.18000acc0
cmp edi, 0x8000
jae 0x1800148c8
lea r8d, [rsi + rbp]
mov edx, ebp
shl rdx, 9
mov ecx, ebp
shl ecx, 9
mov eax, r8d
cmp rax, rdx
lea rdx, [0x180025d47]
cmovb r8d, ecx
mov ecx, r8d
add rcx, rcx
mov edi, r8d
call fcn.18000ac60
mov r14, rax
mov r15, rax
test rax, rax
je 0x1800148c8
xor ecx, ecx
inc ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jae 0x180014820
test esi, esi
jne 0x18001489c
test eax, eax
jne 0x1800148c8
mov edx, esi
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x20], rbx
call fcn.180005000
mov rdx, qword [rsp + 0x30]
test eax, eax
cmovs rdx, rbx
mov qword [rsp + 0x30], rdx
mov rcx, r15
call fcn.18000acc0
mov rcx, qword [rsp + 0x38]
call fcn.180003bd0
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x450]
mov r14, qword [rsp + 0x458]
mov rdi, qword [rsp + 0x468]
mov rsi, qword [rsp + 0x490]
mov rbp, qword [rsp + 0x488]
test rbx, rbx
je 0x180014940
mov eax, 1
lock xadd dword [0x18005416c], eax
inc eax
lea rdx, [0x180054170]
and eax, 0x3f
mov rcx, rbx
xchg qword [rdx + rax*8], rcx
call fcn.180003bd0
mov r12, qword [rsp + 0x460]
mov rax, rbx
jmp 0x18001494f
xor ebx, ebx
mov r12, qword [rsp + 0x460]
mov rax, rbx
jmp 0x18001494f
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180001160
add rsp, 0x470
pop rbx
ret
Function at 0x180014740
Capabilities:
Query environment variable

Disassembly:
jmp 0x180014740
push rbx
sub rsp, 0x470
mov rax, qword [0x180051010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov edx, 0x3d
mov rbx, rcx
call sym.VBoxGINA.dll_nocrt_strchr
test rax, rax
jne 0x18001494d
mov qword [rsp + 0x460], r12
cmp rbx, 0x1000
jb 0x18001493e
movabs rax, 0xffff800000000000
test rax, rbx
jne 0x18001493e
lea r12, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxRuntime_r3winenv_win.cpp
mov rcx, rbx
mov r8, r12
lea rdx, [rsp + 0x38]
call fcn.18000fa90
xor ebx, ebx
test eax, eax
js 0x180014940
mov qword [rsp + 0x488], rbp
xor ecx, ecx
mov qword [rsp + 0x490], rsi
mov ebp, ebx
mov qword [rsp + 0x468], rdi
mov edi, 0x200
mov qword [rsp + 0x458], r14
lea r14, [rsp + 0x40]
mov qword [rsp + 0x450], r15
mov r15d, ebx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jb 0x180014894
nop dword [rax]
mov rcx, r15
call fcn.18000acc0
cmp edi, 0x8000
jae 0x1800148c8
lea r8d, [rsi + rbp]
mov edx, ebp
shl rdx, 9
mov ecx, ebp
shl ecx, 9
mov eax, r8d
cmp rax, rdx
lea rdx, [0x180025d47]
cmovb r8d, ecx
mov ecx, r8d
add rcx, rcx
mov edi, r8d
call fcn.18000ac60
mov r14, rax
mov r15, rax
test rax, rax
je 0x1800148c8
xor ecx, ecx
inc ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jae 0x180014820
test esi, esi
jne 0x18001489c
test eax, eax
jne 0x1800148c8
mov edx, esi
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x20], rbx
call fcn.180005000
mov rdx, qword [rsp + 0x30]
test eax, eax
cmovs rdx, rbx
mov qword [rsp + 0x30], rdx
mov rcx, r15
call fcn.18000acc0
mov rcx, qword [rsp + 0x38]
call fcn.180003bd0
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x450]
mov r14, qword [rsp + 0x458]
mov rdi, qword [rsp + 0x468]
mov rsi, qword [rsp + 0x490]
mov rbp, qword [rsp + 0x488]
test rbx, rbx
je 0x180014940
mov eax, 1
lock xadd dword [0x18005416c], eax
inc eax
lea rdx, [0x180054170]
and eax, 0x3f
mov rcx, rbx
xchg qword [rdx + rax*8], rcx
call fcn.180003bd0
mov r12, qword [rsp + 0x460]
mov rax, rbx
jmp 0x18001494f
xor ebx, ebx
mov r12, qword [rsp + 0x460]
mov rax, rbx
jmp 0x18001494f
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180001160
add rsp, 0x470
pop rbx
ret
Function at 0x180014b00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rcx + 0x10], 2
mov r11, rcx
mov r8, qword [rdx]
movabs rax, 0x112e0be826d694b3
imul r8
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3b9aca00
lea r9, [rdx - 1]
sub r8d, eax
cmovns r9, rdx
test r8d, r8d
lea eax, [r8 + 0x3b9aca00]
cmovns eax, r8d
mov dword [rcx + 0xc], eax
movabs rax, 0x8888888888888889
imul r9
add rdx, r9
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3c
lea r8d, [rdx - 1]
sub r9d, eax
lea eax, [r9 + 0x3c]
movzx ecx, al
movzx eax, r9b
cmovns ecx, eax
test r9d, r9d
mov byte [r11 + 0xb], cl
mov eax, 0x88888889
cmovns r8d, edx
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3c
lea r9d, [rdx - 1]
sub r8d, eax
cmovns r9d, edx
test r8d, r8d
lea eax, [r8 + 0x3c]
movzx ecx, al
movzx eax, r8b
cmovns ecx, eax
mov eax, 0x2aaaaaab
imul r9d
mov byte [r11 + 0xa], cl
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
lea ecx, [rdx - 1]
shl eax, 3
sub r9d, eax
cmovns ecx, edx
test r9d, r9d
lea eax, [r9 + 0x18]
movzx edx, al
movzx eax, r9b
cmovns edx, eax
mov eax, 0x92492493
mov byte [r11 + 9], dl
imul ecx
mov eax, 0x92492493
add edx, ecx
sar edx, 2
mov r8d, edx
shr r8d, 0x1f
add edx, r8d
mov r8d, ecx
imul edx, edx, 7
sub r8d, edx
add r8d, 0xa
imul r8d
add edx, r8d
lea r10, [0x18002b4e0]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 7
sub r8d, eax
mov eax, 0xb38cf9b1
mov byte [r11 + 5], r8b
imul ecx
add edx, ecx
sar edx, 8
mov r8d, edx
add edx, 0x12c
shr r8d, 0x1f
add r8d, edx
lea edx, [r8 + 1]
cmp dword [r10 + rdx*4], ecx
jg 0x180014c7c
nop dword [rax + rax]
inc r8d
lea edx, [rdx + 1]
cmp dword [r10 + rdx*4], ecx
jle 0x180014c70
cmp dword [r10 + r8*4], ecx
jle 0x180014c8b
dec r8d
cmp dword [r10 + r8*4], ecx
jg 0x180014c82
sub ecx, dword [r10 + r8*4]
lea r9d, [r8 + 0x686]
mov dword [r11], r9d
lea eax, [rcx + 1]
mov word [r11 + 6], ax
mov eax, r9d
and eax, 0x80000003
jge 0x180014cb2
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x180014cf5
mov eax, 0x51eb851f
imul r9d
sar edx, 5
mov r8d, edx
shr r8d, 0x1f
add edx, r8d
imul r8d, edx, 0x64
cmp r9d, r8d
jne 0x180014cf1
mov eax, 0x51eb851f
imul r9d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x190
cmp r9d, eax
jne 0x180014cf5
mov al, 1
jmp 0x180014cf7
xor al, al
test al, al
lea rdx, [0x18002b4a0]
movzx eax, al
lea r10, [0x18002b4c0]
cmove r10, rdx
xor eax, 1
inc eax
shl eax, 6
or eax, 2
mov dword [r11 + 0x10], eax
mov eax, ecx
cdq
inc ecx
and edx, 0x1f
add eax, edx
sar eax, 5
movsxd r9, eax
movzx r8d, word [r10 + r9*2 + 2]
cmp r8d, ecx
jg 0x180014d51
nop dword [rax + rax]
movsxd rdx, r9d
inc r9d
movzx r8d, word [r10 + rdx*2 + 4]
cmp r8d, ecx
jle 0x180014d40
lea eax, [r9 + 1]
mov byte [r11 + 4], al
movsxd rax, r9d
sub cl, byte [r10 + rax*2]
mov rax, r11
inc cl
mov dword [r11 + 0x14], 0
mov byte [r11 + 8], cl
ret
Function at 0x1800158c0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r9
mov rbx, r8
mov r12, rdx
mov r14, rcx
test r8, r8
je 0x180015942
mov edi, ebx
cmp rdi, rbx
jne 0x180015b0a
xor r13d, r13d
lea r9, [r11 + 0x18]
mov rax, 0xffffffffffffffff
mov dword [r11 + 0x18], r13d
cmp rcx, rax
mov qword [r11 - 0x48], r13
mov r15, rcx
cmove r15, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800159f4
test rsi, rsi
je 0x180015964
cmp dword [rsp + 0x80], ebx
cmovbe ebx, dword [rsp + 0x80]
mov eax, ebx
mov qword [rsi], rax
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, dword [rsp + 0x80]
cmp eax, ebx
jae 0x180015942
nop
mov r8d, ebx
mov edx, eax
sub r8d, eax
mov dword [rsp + 0x30], r13d
add rdx, r12
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800159b9
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x180015acb
mov eax, dword [rsp + 0x80]
add eax, ecx
mov dword [rsp + 0x80], eax
cmp eax, ebx
jb 0x180015970
jmp 0x180015942
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180016330
cmp eax, 0xffffff68
jne 0x180015944
mov rcx, r14
call fcn.18001e9f0
mov ecx, dword [rsp + 0x80]
sub rdi, rcx
mov rcx, r14
lea rdx, [rdi + rax]
call fcn.180014f90
jmp 0x180015944
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x180015adf
mov eax, ebx
mov edi, 0x8000
shr eax, 1
cmp eax, edi
ja 0x180015a1c
lea edi, [rax + 0xff]
and edi, 0xffffff00
mov ecx, r13d
mov dword [rsp + 0x80], ecx
test ebx, ebx
je 0x180015942
nop
mov edx, ecx
lea r9, [rsp + 0x30]
mov eax, ebx
mov dword [rsp + 0x30], r13d
sub eax, ecx
mov qword [rsp + 0x20], r13
cmp edi, eax
mov ebp, edi
mov rcx, r15
cmova ebp, eax
add rdx, r12
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180015a79
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x180015a9f
cmp edi, eax
jbe 0x180015a9f
mov ecx, dword [rsp + 0x80]
shr edi, 1
jmp 0x180015a96
mov ecx, dword [rsp + 0x80]
mov edx, dword [rsp + 0x30]
add ecx, edx
mov dword [rsp + 0x80], ecx
test rsi, rsi
jne 0x180015ad5
test edx, edx
je 0x180015acb
cmp ecx, ebx
jb 0x180015a30
jmp 0x180015942
mov ecx, eax
call fcn.180016330
cmp eax, 0xffffff68
jne 0x180015944
mov rcx, r14
call fcn.18001e9f0
mov edx, ebp
mov rcx, r14
add rdx, rax
call fcn.180014f90
jmp 0x180015944
mov eax, 0xffffff90
jmp 0x180015944
cmp ecx, ebx
cmovbe ebx, ecx
jmp 0x18001593d
mov ecx, eax
call fcn.180016330
cmp eax, 0xffffff68
jne 0x180015944
mov rcx, r14
call fcn.18001e9f0
mov rcx, r14
lea rdx, [rdi + rax]
call fcn.180014f90
jmp 0x180015944
mov eax, 0xffffffc9
jmp 0x180015944