joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400021dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140155000
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000249c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000ad70
Capabilities:
Set console window title
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r15, rdx
movsxd rdi, ecx
xor esi, esi
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor bl, bl
mov qword [rbp - 0x59], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x59]
lea edx, [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000ae00
mov dword [rbp - 0x39], 4
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 4]
lea r8, [rbp + 0x27]
lea edx, [rsi + 0x14]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000ae00
cmp dword [rbp + 0x27], esi
setne bl
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x14000ae0f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x14000ae20
mov ecx, 0xfffffac7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movabs rsi, 0x786d48e4431dd8e7
mov qword [rbp + 0x27], rsi
movabs rbx, 0x4490c2b942765708
mov qword [rbp + 0x2f], rbx
movabs rax, 0x45143a8b2e78b5ca
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rbx
movaps xmm0, xmmword [rbp - 0x59]
xorps xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp - 0x29], xmm0
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 7]
call fcn.14000b290
nop
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], rbx
movabs rax, 0x140c26962669b6ae
mov qword [rbp - 0x59], rax
movabs rax, 0x4490c2dd3017224f
mov qword [rbp - 0x51], rax
movaps xmm0, xmmword [rbp - 0x59]
xorps xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp - 0x59], xmm0
lea rcx, [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rdx, [0x140004110]
lea rcx, [rbp - 9]
call fcn.14000c910
nop
lea rcx, [rbp - 9]
call fcn.140002780
mov r14, rdi
cmp rdi, 1
jle 0x14000af8d
mov esi, 1
movzx ebx, byte [rbp - 0x69]
nop dword [rax]
nop dword [rax + rax]
mov rdi, qword [r15 + rsi*8]
movzx edx, bl
lea rcx, [rbp - 0x29]
call fcn.14000c130
nop
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x14000af00
mov rdx, rdi
lea rcx, [rbp - 0x29]
call fcn.14000c150
nop
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rdx, qword [rbp + 7]
xor r8d, r8d
lea rcx, [rbp - 0x29]
call fcn.14000b1c0
cmp rax, 0xffffffffffffffff
je 0x14000af78
lea r8, [rax + 8]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
mov r9, 0xffffffffffffffff
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x59]
call fcn.14000b650
nop
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp - 0x59]
call fcn.1400025f0
mov dword [0x1400140b8], eax
lea rcx, [rbp - 0x59]
call fcn.14000b200
nop
lea rcx, [rbp - 0x29]
call fcn.14000b200
inc rsi
cmp rsi, r14
jl 0x14000aee0
call fcn.1400042e0
nop dword [rax]
nop word [rax + rax]
mov qword [rbp - 0x59], 1
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 0x27]
call fcn.14000bc20
mov rcx, rax
call fcn.14000c7f0
jmp 0x14000afa0
Function at 0x14000c910
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 8
call fcn.14000d190
lea rcx, [0x140004110]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14000d130]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x14000c98a
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000d170
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x14000dc64
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000dcae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000dcae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000dcae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000dcae
cmp dword [rcx + 0x84], 0xe
jbe 0x14000dcae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000dcb0
xor al, al
add rsp, 0x28
ret
Function at 0x140003174
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400031be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400031be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400031be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400031be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400031be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400031c0
xor al, al
add rsp, 0x28
ret
Function at 0x1400011c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov ebx, edx
mov r11, rcx
test rcx, rcx
je 0x140001272
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov edi, dword [r8 + 0x1c]
mov r10d, dword [r8 + 0x20]
add rdi, rcx
mov esi, dword [r8 + 0x24]
add r10, rcx
mov r8d, dword [r8 + 0x18]
add rsi, rcx
test r8d, r8d
je 0x140001272
nop dword [rax]
mov eax, dword [r10]
mov ecx, 0x562aded
add rax, r11
movsx edx, byte [rax]
inc rax
test edx, edx
je 0x140001241
nop word [rax + rax]
imul ecx, ecx, 0x21
lea rax, [rax + 1]
add ecx, edx
movsx edx, byte [rax - 1]
test edx, edx
jne 0x140001230
cmp ecx, ebx
je 0x140001263
inc r9d
add r10, 4
cmp r9d, r8d
jb 0x140001210
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
movsxd rax, r9d
movzx ecx, word [rsi + rax*2]
mov eax, dword [rdi + rcx*4]
add rax, r11
jmp 0x140001274
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140002774
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400027be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400027be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400027be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400027be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400027be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400027c0
xor al, al
add rsp, 0x28
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140008008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140008008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140008008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140008008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140001144
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140001178
mov word [rcx], ax
mov rdx, rcx
lea rcx, str._JAVA_VM_OPTIONS
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x3fe
ja 0x140001178
mov eax, 1
jmp 0x14000117a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001f0c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsxd r14, edx
mov rsi, rcx
xor ebx, ebx
mov word [rcx], bx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x140001fd4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140001634
mov rax, qword [rax]
test rax, rax
je 0x140001f81
mov r8, qword [rax]
jmp 0x140001f84
mov r8, rbx
mov rdx, r14
mov r9d, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rcx, [rsp + 0x30]
call fcn.1400016cc
nop
jmp 0x140001fa9
test edi, edi
setns bl
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140004f30
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop r14
pop rdi
pop rsi
ret
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.140004b98
xor edx, edx
mov ecx, edi
call fcn.140006490
int3

Function at 0x140001ff4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rsp + 0x260], rax
movsxd r14, edx
mov rsi, rcx
xor ebx, ebx
mov word [rcx], bx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x1400020bc
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140001634
mov rax, qword [rax]
test rax, rax
je 0x140002069
mov r8, qword [rax]
jmp 0x14000206c
mov r8, rbx
mov rdx, r14
mov r9d, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rcx, [rsp + 0x30]
call fcn.1400016cc
nop
jmp 0x140002091
test edi, edi
setns bl
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140004f30
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop r14
pop rdi
pop rsi
ret
mov edx, eax
lea rcx, str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.140004b98
xor edx, edx
mov ecx, edi
call fcn.140006490
int3
Function at 0x1400022ac
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r14, rcx
xor edi, edi
mov esi, edi
mov word [rcx], di
call fcn.140002198
test eax, eax
je 0x1400022ef
call fcn.140003a1c
mov rsi, rax
test rax, rax
jne 0x1400022ef
call fcn.140003c98
mov rsi, rax
mov dword [rsp + 0x20], 0x104
mov r9, r14
mov r8, rsi
xor edx, edx
lea rcx, [0x1400074c0]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov ebx, eax
test eax, eax
js 0x140002390
test rsi, rsi
je 0x140002321
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14000232c
test ebx, ebx
jns 0x14000237d
mov qword [rsp + 0x20], r14
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
js 0x1400023a8
jmp 0x140002358
test ebx, ebx
jns 0x14000237d
mov r9d, 1
lea r8d, [r9 + 0x19]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, eax
test eax, eax
js 0x1400023c0
jmp 0x14000237d
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.140004b98
xor edx, edx
mov ecx, ebx
call fcn.140006490
nop
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
call fcn.140004b98
xor edx, edx
mov ecx, ebx
call fcn.140006490
nop
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
call fcn.140004b98
xor edx, edx
mov ecx, ebx
call fcn.140006490
int3

Function at 0x1400029b4
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140002a3f
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r9, rbx
lea r8, [rsp + 0x20]
lea rdx, [0x1400084b0]
lea rcx, [rsp + 0x230]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x140002a41
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140004f30
add rsp, 0x450
pop rbx
ret

Function at 0x140003064
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
je 0x14000308c
mov r8d, edx
mov rdx, rcx
lea rcx, str.USER_JPI_PROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
lea ecx, [rbx + 1]
cmovne ebx, ecx
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140003164
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, edx
mov rdi, rcx
test rcx, rcx
je 0x1400031a6
mov r8d, edx
mov rdx, rcx
lea rcx, str.USERPROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400031a1
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, 1
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003370
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1050
call fcn.140004ec0
sub rsp, rax
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r9, rbx
lea r8, str.SOFTWAREClassesCLSID_sInprocServer32
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.14000173c
lea rax, [rsp + 0x38]
neg edi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
sbb rcx, rcx
lea rdx, [rsp + 0x40]
add rcx, 0xffffffff80000002
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
je 0x140003406
cmp eax, 2
sete bl
jmp 0x140003469
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x840]
mov dword [rsp + 0x30], 0x800
lea rdx, [0x1400078dc]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x140003440
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000346b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x840]
sub rdx, rsi
movzx eax, word [rsi]
movzx ecx, word [rsi + rdx]
sub eax, ecx
jne 0x140003464
add rsi, 2
test ecx, ecx
jne 0x140003451
test eax, eax
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140004f30
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140004100
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rbp + 0x160], rax
lea r8, [0x140008ac8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
xor ebx, ebx
test eax, eax
jne 0x1400041fb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [0x1400101f0], rbx
je 0x14000416d
lea eax, [rbx + 1]
jmp 0x1400041fd
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1400041fb
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140001634
nop
lea rdx, str.JavaDeployReg.log
lea rcx, [rsp + 0x28]
call fcn.140001634
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140004330
nop
lea rcx, [rsp + 0x28]
call fcn.1400016cc
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x1400041d1
mov rdx, qword [rax]
jmp 0x1400041d4
mov rdx, rbx
lea r8, [0x140007d34]
lea rcx, [0x1400101f0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
sete bl
lea rcx, [rsp + 0x20]
call fcn.1400016cc
mov eax, ebx
jmp 0x1400041fd
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140004f30
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rbp
ret

Function at 0x14000439c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400043c2
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14000474c
jmp 0x140004429
cmp byte [0x140010208], 0
jne 0x140004406
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400043f6
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140010200], rax
jmp 0x1400043fd
mov rax, qword [0x140010200]
mov byte [0x140010208], 1
jmp 0x14000440d
mov rax, qword [0x140010200]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140004423
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140004429
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000474c
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 0x1400047af
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400047c3
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400047c3
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x1400047c8
cmp dword [rcx + 8], 0
je 0x1400047c3
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1400047c8
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140004994
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.140004ec0
sub rsp, rax
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov rbx, rdx
mov rdi, rcx
mov esi, 0x800
lea rcx, [rbp + 0x780]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call fcn.140001734
mov qword [rsp + 0x30], rbx
lea rdx, [rbp + 0x780]
xor r15d, r15d
or r12, 0xffffffffffffffff
mov qword [rsp + 0x28], r15
mov r9, r12
mov rcx, qword [rax]
mov r8d, 0x400
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnwprintf_s]
test eax, eax
cmovs eax, r12d
test eax, eax
jns 0x140004a2e
mov word [rbp + 0xf7e], r15w
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x40]
call sub.VCRUNTIME140.dll_memset
mov ebx, 0x20
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.1400048dc
lea r8, [0x14000acac]
mov edx, ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rsi
lea rcx, [rbp - 0x80]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, r12
inc rax
cmp word [rdi + rax*2], r15w
jne 0x140004a74
cmp rax, 6
jbe 0x140004aa1
add rax, 0xfffffffffffffffa
lea rdx, str.__08x_
lea rcx, [rdi + rax*2]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
mov eax, 1
je 0x140004aa4
mov eax, r15d
lea rcx, [rsp + 0x40]
mov r14, r12
inc r14
cmp word [rcx + r14*2], r15w
jne 0x140004aac
test eax, eax
lea rcx, [0x14000accc]
lea rdi, str.Error:
cmove rdi, rcx
lea rsi, [r14 + r14]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r9, [rbp + 0x780]
mov edx, 0x3ff
mov qword [rsp + 0x38], r9
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x30], rdi
lea r9, str.P:_04d_T:_04d__s_s
mov dword [rsp + 0x28], ebx
sub rdx, r14
add rcx, rsi
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.140004bcc
mov rcx, qword [rbp + 0x776]
test eax, eax
movabs rdx, 0x2e002e002e
mov r8, rsi
cmovs rcx, rdx
lea rdx, [rsp + 0x40]
mov qword [rbp + 0x776], rcx
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbp - 0x80]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x140004b4a
mov eax, dword [0x14000ad44]
mov dword [rcx], eax
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.140004f30
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret