joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800050a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180005630
mov qword [rsp + 0x28], 0
cmp qword [0x18002dc58], 0
jne 0x1800050e8
cmp qword [0x18002dc50], 0
je 0x1800050e8
mov rax, qword [0x18002dc50]
mov qword [0x18002dc58], rax
cmp qword [0x18002dc58], 0
je 0x18000518e
mov rax, qword [0x18002dc58]
cmp qword [rax + 0x10], 0
je 0x18000518e
mov rax, qword [0x18002dc58]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000518e
mov rax, qword [0x18002dc58]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000518e
mov rax, qword [0x18002dc58]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180005154
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000515b
xor eax, eax
jmp 0x180005309
mov rax, qword [0x18002dc58]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.18000b850
mov rax, qword [rsp + 0x28]
jmp 0x180005309
mov rax, qword [0x18002dc50]
mov qword [0x18002dc58], rax
jmp 0x1800051b0
mov rax, qword [0x18002dc58]
mov rax, qword [rax + 8]
mov qword [0x18002dc58], rax
cmp qword [0x18002dc58], 0
je 0x1800051fd
cmp qword [0x18002dc58], 0
je 0x1800051fb
mov rax, qword [0x18002dc58]
cmp qword [rax + 0x10], 0
je 0x1800051fb
mov rax, qword [0x18002dc58]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800051fb
mov rax, qword [0x18002dc58]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800051fb
jmp 0x18000512c
jmp 0x18000519e
mov rcx, qword [rsp + 0x60]
call fcn.180007260
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180005310
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180005307
mov rax, qword [rsp + 0x48]
mov qword [0x18002dc58], rax
mov rax, qword [0x18002dc58]
mov dword [rax], 0x52727464
mov rax, qword [0x18002dc58]
mov qword [rax + 0x10], 0
mov rax, qword [0x18002dc58]
mov rcx, qword [0x18002dc50]
mov qword [rax + 8], rcx
mov rax, qword [0x18002dc58]
mov qword [0x18002dc50], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18002dc58]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800052b8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800052f2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800052ae
mov rax, qword [0x18002dc58]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000512c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180007270
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x18002dce0], 0
je 0x180007284
xor eax, eax
jmp 0x1800074ed
cmp qword [0x18002dcd8], 0
je 0x18000729a
mov rax, qword [0x18002dcd8]
jmp 0x1800074ed
mov r8d, 0x48
xor edx, edx
lea rcx, [0x18002dc90]
call fcn.18000b850
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x18002dc90], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x18002dc98], rax
cmp qword [0x18002dc98], 0
jne 0x180007353
mov dword [0x18002dce0], 1
cmp qword [0x18002dc98], 0
je 0x1800072ff
mov rcx, qword [0x18002dc98]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x18002dca0], 0
mov qword [0x18002dca8], 0
mov qword [0x18002dcb0], 0
mov qword [0x18002dcb8], 0
mov qword [0x18002dcc0], 0
mov qword [0x18002dcc8], 0
mov qword [0x18002dcd0], 0
xor eax, eax
jmp 0x1800074ed
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x18002dc98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002dca0], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x18002dc98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002dca8], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x18002dc98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002dcb0], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x18002dc98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002dcb8], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x18002dc98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002dcc0], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x18002dc98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002dcc8], rax
lea rdx, str.SymFromName
mov rcx, qword [0x18002dc98]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002dcd0], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.18000b850
mov eax, 0xc
mov word [rsp + 0x28], ax
cmp qword [0x18002dca0], 0
je 0x18000745e
cmp qword [0x18002dca8], 0
je 0x18000745e
cmp qword [0x18002dcc0], 0
je 0x18000745e
cmp qword [0x18002dcc8], 0
je 0x18000745e
cmp qword [0x18002dcd0], 0
jne 0x180007463
jmp 0x1800072de
lea rcx, [rsp + 0x28]
call qword [0x18002dca0]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x18000747d
jmp 0x1800072de
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x18002dc90]
call qword [0x18002dca8]
test eax, eax
jne 0x180007498
jmp 0x1800072de
cmp qword [0x18002dcb8], 0
je 0x1800074d8
cmp qword [0x18002dcb0], 0
je 0x1800074d8
call qword [0x18002dcb8]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x18002dcb0]
lea rax, [0x18002dc90]
mov qword [0x18002dcd8], rax
mov rax, qword [0x18002dcd8]
add rsp, 0x38
ret
Function at 0x180017924
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180017954
xor eax, eax
jmp 0x180017a17
mov rbp, rbx
cmp word [rax], si
je 0x180017979
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180017960
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001795c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180015c6c
movsxd r14, eax
test eax, eax
jne 0x1800179b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001794d
mov rcx, r14
call fcn.180013dbc
mov rdi, rax
test rax, rax
jne 0x1800179d0
xor ecx, ecx
call fcn.180013d80
jmp 0x1800179ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180015c6c
test eax, eax
jne 0x180017a01
mov rcx, rdi
call fcn.180013d80
jmp 0x180017a0b
xor ecx, ecx
call fcn.180013d80
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x40f880
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040f870
mov ebx, eax
test ebx, ebx
je 0x40f8cb
cmp dword [0x0048d5f4], 0xffffffff
jne 0x40f8a4
mov ecx, 0xe2
call fcn.0040a000
mov ecx, ebx
call fcn.0040f850
test rax, rax
jne 0x40f8bd
mov ecx, 0xe2
call fcn.0040a000
jmp 0x40f8cb
mov ecx, dword [0x0048d5f4]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40f8e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0049fd64], 0
je 0x40f91b
mov ecx, dword [0x0048d5f4]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40f92f
call fcn.0040f880
mov ecx, dword [0x0048d5f4]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40f92f
mov rax, qword [0x0049fd98]
jmp 0x40f92f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x0048d5f4]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x4296a0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4296c7
movzx rax, word [rbp + 0x2c]
jmp 0x4296c9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x42a980
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.0042a730
mov ebx, eax
mov rax, qword [0x0049a090]
cmp byte [rax], 0
je 0x42aab8
mov rcx, qword [0x00499d38]
call fcn.00406b80
call fcn.00405c20
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0042a938]
mov r8d, 1
movsxd r9, esi
call fcn.0040ceb0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x0042ab54]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x42aafe
mov rcx, qword [0x0049fd68]
call fcn.0040d010
mov rcx, rax
mov rax, qword [0x00499ca0]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0042a938]
call fcn.0040cef0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x42d490
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040aa10
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040f520
mov esi, eax
cmp esi, 0x104
jbe 0x42d4ed
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004058f0
mov rdi, rax
jmp 0x42d4f1
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040f520
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x42d547
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x42d52b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x42d559
mov rcx, rdi
call fcn.00405920
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x45eef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x45ef27
mov rcx, rbp
call fcn.0045ede0
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x45ef46
mov rcx, rbp
call fcn.0045ede0
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.0045e800
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x46b4e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
cmp qword [0x004a43d8], 0
jne 0x46b591
xor rcx, rcx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc_1
mov rbx, rax
mov rax, qword [0x004a43d0]
mov qword [rbx], rax
lea rcx, [0x00496b04]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.00405cb0
lea rax, [0x0046b4a0]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.0046b4d0
mov dword [rsi + 1], eax
mov rax, qword [0x004a43d8]
mov qword [rsi + 5], rax
mov qword [0x004a43d8], rsi
add rsi, 0x15
mov rax, rsi
sub rax, rbx
cmp rax, 0xfed
jl 0x46b553
mov qword [0x004a43d0], rbx
mov rax, qword [0x004a43d8]
mov rsi, qword [0x004a43d8]
mov rcx, qword [rsi + 5]
mov qword [0x004a43d8], rcx
lea rdi, [rsi + 5]
lea rsi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x473520
Capabilities:
Set registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov rbx, rdx
mov rsi, r8
mov rdi, r9
call fcn.0040b700
mov rcx, rdi
mov rdx, rax
xor r8, r8
lea r9, [0x004735f8]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
jne 0x4735cc
xor rdi, rdi
test rsi, rsi
je 0x47358a
mov edi, dword [rsi - 4]
mov rcx, rbx
call fcn.0040b700
mov rbx, rax
mov rcx, rsi
call fcn.0040b700
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rax
add edi, 1
add edi, edi
mov dword [rsp + 0x28], edi
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
mov rcx, qword [rbp + 0x58]
call sub.advapi32.dll_RegCloseKey_1
test edi, edi
je 0x4735ed
mov rcx, qword [0x0046fad8]
mov dl, 1
mov r8, qword [0x00499d60]
call fcn.0042add0
mov rcx, rax
call fcn.00409530
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x473600
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040b700
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
add rsp, 0x20
pop rbx
ret

Function at 0x479510
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
xor rbx, rbx
call sub.kernel32.dll_GetCommandLineW_1
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
xor rdx, rdx
xor r8, r8
call fcn.00479290
jmp 0x479537
add ebx, 1
lea rcx, [rsp + 0x28]
xor rdx, rdx
xor r8, r8
call fcn.00479290
test al, al
jne 0x479534
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x47df00
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov qword [rbp + 0x80], r8
mov qword [rbp + 0x88], r9
mov rcx, qword [rbp + 0x70]
call fcn.0040a350
nop
mov byte [rbp + 0x53], 0
mov rcx, qword [rbp + 0x70]
call fcn.0040b700
mov rcx, rax
lea rdx, [rbp + 0x3c]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x4c], eax
cmp dword [rbp + 0x4c], 0
je 0x47dff4
mov ecx, dword [rbp + 0x4c]
call fcn.004058f0
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x70]
call fcn.0040b700
mov rcx, rax
xor rdx, rdx
mov r8d, dword [rbp + 0x4c]
mov r9, qword [rbp + 0x58]
call sub.version.dll_GetFileVersionInfoW
mov rcx, qword [rbp + 0x58]
lea rdx, [0x0047e080]
lea r8, [rbp + 0x40]
lea r9, [rbp + 0x54]
call sub.version.dll_VerQueryValueW
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x40]
mov ecx, dword [rcx + 8]
shr ecx, 0x10
mov dword [rax], ecx
mov rax, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x40]
mov ecx, dword [rcx + 8]
and ecx, 0xffff
mov dword [rax], ecx
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x40]
mov ecx, dword [rcx + 0xc]
shr ecx, 0x10
mov dword [rax], ecx
mov rax, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x40]
mov ecx, dword [rcx + 0xc]
and ecx, 0xffff
mov dword [rax], ecx
nop
mov rcx, qword [rbp + 0x58]
mov edx, dword [rbp + 0x54]
call fcn.00405920
mov byte [rbp + 0x53], 1
nop
lea rcx, [rbp + 0x70]
call fcn.0040a1c0
movzx rax, byte [rbp + 0x53]
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x47f1a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov edi, ecx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x47f1ff
lea rcx, [rbp + 0x30]
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 1
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x47f1ed
lea rcx, [rbp + 0x30]
call sub.user32.dll_TranslateMessage
lea rcx, [rbp + 0x30]
call sub.user32.dll_DispatchMessageW
mov ecx, 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
sub ebx, esi
cmp ebx, edi
jl 0x47f1bd
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x480e40
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x004a4550]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00405cb0
mov dword [0x004a4498], 0xb7e15163
mov ebx, 1
lea rax, [0x004a4498]
movsxd rcx, ebx
lea rdx, [0x004a4494]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x480e73
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x004a4498]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.00480c80
mov r13d, eax
lea rax, [0x004a4498]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.00480c80
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x480eaf
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret

Function at 0x480fb0
Capabilities:
Encode data using xor

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rax, [rbx + 4]
mov ecx, dword [0x004a4498]
add dword [rax], ecx
lea rax, [rbx + 0xc]
mov ecx, dword [0x004a449c]
add dword [rax], ecx
mov esi, 1
mov eax, dword [rbx + 4]
add eax, eax
add eax, 1
mov ecx, dword [rbx + 4]
imul ecx, eax
mov edx, 5
call fcn.00480c80
mov edi, eax
mov eax, dword [rbx + 0xc]
add eax, eax
add eax, 1
mov ecx, dword [rbx + 0xc]
imul ecx, eax
mov edx, 5
call fcn.00480c80
mov r13d, eax
mov ecx, dword [rbx]
xor ecx, edi
mov edx, r13d
call fcn.00480c80
lea rcx, [0x004a4498]
mov edx, esi
add edx, edx
movsxd rdx, edx
add eax, dword [rcx + rdx*4]
mov dword [rbx], eax
mov ecx, dword [rbx + 8]
xor ecx, r13d
mov edx, edi
call fcn.00480c80
lea rcx, [0x004a449c]
mov edx, esi
add edx, edx
movsxd rdx, edx
add eax, dword [rcx + rdx*4]
mov dword [rbx + 8], eax
mov eax, dword [rbx]
mov ecx, dword [rbx + 4]
mov dword [rbx], ecx
mov ecx, dword [rbx + 8]
mov dword [rbx + 4], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rbx + 8], ecx
mov dword [rbx + 0xc], eax
add esi, 1
cmp esi, 0x15
jne 0x480fda
nop
mov eax, dword [0x004a4540]
add dword [rbx], eax
mov eax, dword [0x004a4544]
add dword [rbx + 8], eax
mov al, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x4810a0
Capabilities:
Encode data using xor

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov eax, dword [0x004a4544]
sub dword [rbx + 8], eax
mov eax, dword [0x004a4540]
sub dword [rbx], eax
mov esi, 0x14
mov eax, dword [rbx + 0xc]
mov ecx, dword [rbx + 8]
mov dword [rbx + 0xc], ecx
mov ecx, dword [rbx + 4]
mov dword [rbx + 8], ecx
mov ecx, dword [rbx]
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov eax, dword [rbx + 0xc]
add eax, eax
add eax, 1
mov ecx, dword [rbx + 0xc]
imul ecx, eax
mov edx, 5
call fcn.00480c80
mov r13d, eax
mov eax, dword [rbx + 4]
add eax, eax
add eax, 1
mov ecx, dword [rbx + 4]
imul ecx, eax
mov edx, 5
call fcn.00480c80
mov edi, eax
lea rax, [0x004a449c]
mov ecx, esi
add ecx, ecx
movsxd rcx, ecx
mov edx, dword [rbx + 8]
sub edx, dword [rax + rcx*4]
mov ecx, edx
mov edx, edi
call fcn.00480ca0
xor eax, r13d
mov dword [rbx + 8], eax
lea rax, [0x004a4498]
mov ecx, esi
add ecx, ecx
movsxd rcx, ecx
mov edx, dword [rbx]
sub edx, dword [rax + rcx*4]
mov ecx, edx
mov edx, r13d
call fcn.00480ca0
xor eax, edi
mov dword [rbx], eax
sub esi, 1
test esi, esi
jne 0x4810c3
nop
lea rax, [rbx + 0xc]
mov ecx, dword [0x004a449c]
sub dword [rax], ecx
lea rax, [rbx + 4]
mov ecx, dword [0x004a4498]
sub dword [rax], ecx
mov al, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x140002790
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400027ed
lea rbx, [0x140086a10]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400027d4
cmp r10, 2
jb 0x1400027d4
cmp byte [r9], r8b
jne 0x1400027d4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400027b0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000282f
lea rbx, [0x140086a10]
cmp r8b, 0x23
jne 0x140002813
cmp byte [r9], r8b
jne 0x140002813
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002800
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002970
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000298a
mov qword [r8], 0
lea rdx, [0x14008674c]
call fcn.140002840
mov rbx, rax
test rax, rax
jne 0x1400029aa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.14004f2e8
mov esi, eax
cmp eax, 0xffffffff
je 0x140002a78
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.14004fec0
test eax, eax
jne 0x140002a78
mov rcx, rbx
call fcn.14004f2e8
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002a78
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.14004fec0
test eax, eax
jne 0x140002a78
cmp rdi, 0xffffffffffffffff
je 0x140002a78
mov rax, qword [0x1400aefd0]
test rax, rax
je 0x140002a1a
inc dword [rax + 0x3b0]
mov rcx, rdi
call fcn.140058810
mov rsi, rax
test rax, rax
je 0x140002a78
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1400531a8
mov rcx, rbx
cmp rax, rdi
je 0x140002a66
call fcn.14004fb20
mov rax, qword [0x1400aefd0]
test rax, rax
je 0x140002a5c
dec dword [rax + 0x3b0]
mov rcx, rsi
call fcn.140052f34
jmp 0x140002a80
call fcn.14004fb20
test r14, r14
je 0x140002a73
mov qword [r14], rdi
mov rax, rsi
jmp 0x140002a82
mov rcx, rbx
call fcn.14004fb20
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret