joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008824
Capabilities:
Hash data using djb2
Query environment variable

Disassembly:
mov rax, rsp
push rdi
push r13
push r14
sub rsp, 0xd0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x18001b030]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r8d, edx
mov rbx, rcx
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r13d, [rax + 1]
sub rcx, r13
mov eax, edx
neg eax
sbb edx, edx
and edx, 8
lea eax, [r14 + 0x40]
sub eax, edx
cdqe
cmp rcx, rax
jbe 0x180008896
xor eax, eax
jmp 0x180008981
xor ebp, ebp
test r8d, r8d
je 0x180008907
cmp dword [0x180021374], ebp
je 0x1800088ee
mov rsi, rbx
mov edi, 0x1505
movzx eax, word [rbx]
jmp 0x1800088ca
movzx ecx, ax
call qword [sym.imp.MSVCR100_CLR0400.dll_towupper]
movzx edx, ax
imul edi, edi, 0x21
xor edi, edx
add rsi, 2
movzx eax, word [rsi]
test ax, ax
jne 0x1800088b2
movzx eax, dil
mov edi, eax
shr edi, 5
and eax, 0x1f
mov edx, r13d
mov cl, al
shl edx, cl
lea rcx, [0x180021a40]
test dword [rcx + rdi*4], edx
je 0x18000888f
lea r8, str.COMPlus_
mov edx, 0x40
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR100_CLR0400.dll_wcscpy_s]
jmp 0x18000890c
mov word [rsp + 0x40], bp
mov r8, rbx
mov edx, 0x40
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR100_CLR0400.dll_wcscat_s]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movsxd rbx, eax
test eax, eax
je 0x18000888f
mov eax, 2
mul rbx
cmovo rax, r14
mov rcx, rax
call fcn.180004de8
mov rdi, rax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], ebp
mov ecx, ebp
test rax, rax
cmovne ecx, r13d
mov dword [rsp + 0x28], ecx
je 0x18000897a
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x28], ebp
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18000bef0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret
Function at 0x18000a370
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x18001b04c], 0xffffffff
mov esi, edx
mov edi, ecx
jne 0x18000a3a7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
or eax, 0xffffffff
lock cmpxchg dword [0x18001b04c], ecx
je 0x18000a3a7
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [0x18001b04c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x18000a419
test esi, esi
je 0x18000a419
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0xa0
xor edx, edx
mov rcx, rax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x18000a3fd
cmp edi, 9
je 0x18000a42c
cmp edi, 6
je 0x18000a42c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.MSVCR100_CLR0400.dll_memset
mov ecx, dword [0x18001b04c]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x18000a41c

Function at 0x18000c35b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18001b030]
jne 0x18000bf0a
rol rcx, 0x10
test cx, 0xffff
jne 0x18000bf06
repz ret
ror rcx, 0x10
jmp 0x18000c2b4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800208e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800209d8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18000c339
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800208e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18000c35b
mov rax, qword [rsp + 0x88]
mov qword [0x1800209d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180020978], rax
mov rax, qword [0x1800209d8]
mov qword [0x180020850], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180020960], rax
mov dword [0x180020840], 0xc0000409
mov dword [0x180020844], 1
mov rax, qword [0x18001b030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18001b038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800208d8], eax
mov ecx, 1
call sub.MSVCR100_CLR0400.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180010560]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800208d8], 0
jne 0x18000c3e2
mov ecx, 1
call sub.MSVCR100_CLR0400.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001a54
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdx, [rax + 0x10]
xor r8d, r8d
mov rsi, rcx
mov byte [rax + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
jne 0x140001a8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140001ae2
xor eax, eax
jmp 0x140001ae7
mov rcx, rdi
mov edx, 1
call qword [sym.imp.MSVCR100.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140001a8b
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x140001acd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140001acd
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x140001a8b
mov rcx, rbx
call fcn.140001784
mov rcx, rbx
test eax, eax
je 0x140001ac5
call qword [sym.imp.MSVCR100.dll_free]
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400021a4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14000ed68]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], 0
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rbx
call fcn.140001c04
test eax, eax
jne 0x140002214
lea rcx, [0x14000a708]
call qword [sym.imp.MSVCR100.dll_printf]
xor eax, eax
jmp 0x1400022ff
lea rax, [rsp + 0x40]
lea rbx, [0x14000f820]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r8, str._Xbootclasspath_a:__slibdeploy.jar____slibjavaws.jar____slibplugin.jar_
mov edx, 0x410
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
call fcn.140002f58
lea rbx, [0x14000f610]
lea r9, [rsp + 0x40]
lea r8, str._Djava.class.path__sclasses_
mov rcx, rbx
mov edx, 0x208
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
call fcn.140002f58
mov ebx, 0x104
lea rdx, [rbp + 0x50]
lea rcx, [0x14000a7a0]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400022ed
cmp eax, ebx
jae 0x1400022ed
lea rax, [rbp + 0x50]
lea rbx, [0x14000f400]
lea r9, str.javaplugin.user.profile
lea r8, str._D_s_s
mov edx, 0x208
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
call fcn.140002f58
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140001ed4
mov eax, 1
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140007e30
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14000308c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1400030ef
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140003103
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003103
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x140003108
cmp dword [rcx + 8], 0
je 0x140003103
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x140003108
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140003118
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000313e
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14000308c
jmp 0x1400031a5
cmp byte [0x14000fc38], 0
jne 0x140003182
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140003172
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000fc30], rax
jmp 0x140003179
mov rax, qword [0x14000fc30]
mov byte [0x14000fc38], 1
jmp 0x140003189
mov rax, qword [0x14000fc30]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000319f
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x1400031a5
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003540
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x14000ed68]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor ebx, ebx
cmp dword [0x14000fc48], ebx
je 0x14000356d
mov eax, dword [0x14000fc44]
jmp 0x1400035b8
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, DllRegisterServer
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], DllRegisterServer
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov r11d, 1
jne 0x1400035a9
cmp dword [rsp + 0x24], 6
jb 0x1400035a9
mov ebx, r11d
mov dword [0x14000fc44], ebx
mov dword [0x14000fc48], r11d
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140007e30
add rsp, 0xd0
pop rbx
ret

Function at 0x140003850
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x58
test rcx, rcx
jne 0x14000385d
xor eax, eax
jmp 0x1400038ad
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
add rsp, 0x58
ret

Function at 0x1400038c0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x68
test rdx, rdx
jne 0x1400038cd
xor eax, eax
jmp 0x14000392a
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
add rsp, 0x68
ret
Function at 0x140003d40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x750]
sub rsp, 0x850
mov rax, qword [0x14000ed68]
xor rax, rsp
mov qword [rbp + 0x740], rax
mov rbx, rcx
mov edi, r8d
mov r12, rdx
lea rcx, [rsp + 0x41]
xor esi, esi
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x40], sil
call sub.MSVCR100.dll_memset
mov r9, rbx
mov ebx, 0x400
lea r8, str.SOFTWAREClassesCLSID_sInprocServer32
lea rcx, [rsp + 0x40]
mov edx, ebx
call qword [sym.imp.MSVCR100.dll_sprintf_s]
lea rax, [rsp + 0x30]
neg edi
sbb rcx, rcx
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
add rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140003ddc
cmp eax, 2
sete sil
jmp 0x140003e2d
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x340]
lea rdx, [0x14000abb2]
mov dword [rsp + 0x38], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140003e11
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140003e2f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp + 0x340]
mov rcx, r12
call qword [sym.imp.MSVCR100.dll__mbscmp]
test eax, eax
setne sil
mov eax, esi
mov rcx, qword [rbp + 0x740]
xor rcx, rsp
call fcn.140007e30
add rsp, 0x850
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400040c0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
xor edi, edi
mov word [rcx], di
mov dword [rax - 0x38], 0x104
mov r9, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000ab00]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov ebx, eax
test eax, eax
jns 0x14000411f
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__NULL__pPath__MAX_PATH_
call fcn.140005f68
xor edx, edx
mov ecx, ebx
call fcn.140008d70
nop
jmp 0x14000412a
test ebx, ebx
jns 0x1400041ab
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
jns 0x140004163
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
call fcn.140005f68
xor edx, edx
mov ecx, ebx
call fcn.140008d70
nop
jmp 0x14000416e
test ebx, ebx
jns 0x1400041ab
mov r9d, 1
lea r8d, [r9 + 0x19]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, eax
test eax, eax
jns 0x1400041a5
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
call fcn.140005f68
xor edx, edx
mov ecx, ebx
call fcn.140008d70
nop
jmp 0x1400041ab
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140005d68
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x14000ed68]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov rbx, rcx
mov rdi, rdx
mov r12d, 0x3ff
lea rcx, [rbp + 0x361]
xor r13d, r13d
xor edx, edx
mov r8d, r12d
mov byte [rbp + 0x360], r13b
call sub.MSVCR100.dll_memset
or r14, 0xffffffffffffffff
lea edx, [r12 + 1]
lea rcx, [rbp + 0x360]
mov r8, r14
mov r9, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCR100.dll__vsnprintf_s]
movzx ecx, byte [rbp + 0x75f]
test eax, eax
mov byte [rsp + 0x40], r13b
cmovs ecx, r13d
xor eax, eax
lea edi, [rax + 0x20]
mov byte [rbp + 0x75f], cl
lea rcx, [rsp + 0x40]
mov edx, edi
mov qword [rsp + 0x41], rax
mov qword [rsp + 0x49], rax
mov qword [rsp + 0x51], rax
mov dword [rsp + 0x59], eax
mov word [rsp + 0x5d], ax
mov byte [rsp + 0x5f], al
call fcn.140005cb8
lea r8, [0x14000b474]
lea rcx, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.MSVCR100.dll_strcat_s]
lea rcx, [rsp + 0x61]
mov r8d, r12d
xor edx, edx
mov byte [rsp + 0x60], r13b
call sub.MSVCR100.dll_memset
xor eax, eax
mov rcx, r14
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 6
jbe 0x140005e7f
lea rcx, [rbx + rcx - 6]
lea rdx, str.__08x_
call qword [sym.imp.MSVCR100.dll__mbscmp]
lea edx, [r13 + 1]
test eax, eax
je 0x140005e82
mov edx, r13d
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, r14
repne scasb al, byte [rdi]
lea rax, [0x14000b40a]
test edx, edx
not rcx
lea rbx, str.Error:
lea rsi, [rcx - 1]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rbp + 0x360]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
sub r12, rsi
lea rcx, [rsp + rsi + 0x60]
lea r9, str.P:_04d_T:_04d__s_s
mov r8, r14
mov rdx, r12
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call qword [sym.imp.MSVCR100.dll__snprintf_s]
mov edx, dword [rbp + 0x35b]
mov ecx, 0x2e2e2e
test eax, eax
mov r8, rsi
cmovs edx, ecx
lea rcx, [rsp + 0x60]
mov dword [rbp + 0x35b], edx
lea rdx, [rsp + 0x40]
call sub.MSVCR100.dll_memcpy
xor eax, eax
lea rdi, [rsp + 0x60]
mov rcx, r14
repne scasb al, byte [rdi]
movzx eax, word [0x14000b4dc]
lea rcx, [rsp + 0x60]
mov word [rdi - 1], ax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.140007e30
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x140005fe0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x14000ed68]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor ebx, ebx
cmp dword [0x14000fc58], ebx
je 0x14000600d
mov eax, dword [0x14000fc54]
jmp 0x140006058
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, DllRegisterServer
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], DllRegisterServer
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov r11d, 1
jne 0x140006049
cmp dword [rsp + 0x24], 6
jb 0x140006049
mov ebx, r11d
mov dword [0x14000fc54], ebx
mov dword [0x14000fc58], r11d
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140007e30
add rsp, 0xd0
pop rbx
ret
Function at 0x140006080
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x1770]
mov eax, 0x1870
call fcn.140007fa0
sub rsp, rax
mov rax, qword [0x14000ed68]
xor rax, rsp
mov qword [rbp + 0x1760], rax
mov rdi, rcx
mov r12d, edx
xor ebx, ebx
mov r14d, 0x7ff
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, r14d
mov esi, ebx
mov byte [rsp + 0x60], bl
call sub.MSVCR100.dll_memset
lea rcx, [rbp + 0x761]
mov r8d, r14d
xor edx, edx
mov byte [rbp + 0x760], bl
call sub.MSVCR100.dll_memset
lea rax, [rsp + 0x48]
lea rdx, [0x14000b7c0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x800
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140006247
xor edx, edx
jmp 0x140006216
lea rax, [rsp + 0x60]
lea r9, str.SOFTWAREJavaSoftJava_Runtime_Environment
lea r8, str._s_s
lea rcx, [rbp + 0x760]
mov edx, 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR100.dll_sprintf_s]
lea r11, [rsp + 0x50]
lea rdx, [rbp + 0x760]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000620a
lea rcx, [rbp + 0xf61]
mov r8, r14
xor edx, edx
mov byte [rbp + 0xf60], bl
call sub.MSVCR100.dll_memset
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, str.RuntimeLib
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000620a
cmp dword [rsp + 0x40], ebx
jbe 0x14000620a
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rdx, [0x14000b830]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc esi
mov dword [rsp + 0x40], 0x800
mov edx, esi
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x14000612a
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
setne bl
mov eax, ebx
mov rcx, qword [rbp + 0x1760]
xor rcx, rsp
call fcn.140007e30
mov rbx, qword [rsp + 0x18b0]
add rsp, 0x1870
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006290
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
mov qword [rax - 0x18], rbx
mov dword [rax + 0x20], 1
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x1400062d9
mov edx, dword [rsp + 0x60]
mov r8, rax
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_strcpy_s]
test eax, eax
sete bl
jmp 0x14000634e
call fcn.140005fe0
mov rdx, qword [str.SOFTWAREJavaSoftDeploymentPropertiespending]
mov r9d, 0x20019
test eax, eax
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000001
cmovne rdx, qword [str.SOFTWAREAppDataLowSOFTWAREJavaSoftDeploymentPropertiespending]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140006317
xor eax, eax
jmp 0x140006350
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140006343
lea ebx, [rax + 1]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400065a0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
mov qword [rax + 0x18], rbx
call fcn.140006370
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [rax + 1]
call fcn.140005fe0
mov rdx, qword [str.SOFTWAREJavaSoftDeploymentPropertiespending]
test eax, eax
lea rax, [rsp + 0x50]
mov r9d, 0x20006
cmovne rdx, qword [str.SOFTWAREAppDataLowSOFTWAREJavaSoftDeploymentPropertiespending]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000660f
xor eax, eax
jmp 0x140006643
mov rcx, qword [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140006636
lea ebx, [rax + 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret