joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002660
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400026d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e094]
mov rbx, rcx
test esi, esi
jle 0x140002800
mov rax, qword [0x14000e098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000271b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400027a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002700
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002822
mov rax, qword [0x14000e098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002807
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000279e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400027b0
add dword [0x14000e094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000279e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002728
mov rax, qword [0x14000e098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002db0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x140002e0c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002e03
test eax, eax
jne 0x140002e03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002de8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003020
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003038
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003040
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003050
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000309d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140003094
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000309f
add rax, 0x28
cmp rax, r9
jne 0x140003080
xor eax, eax
ret

Function at 0x1400030a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140003130
mov rdx, qword [0x14000b400]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000311e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000311e
cmp word [rax + 0x18], 0x20b
jne 0x14000311e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140003130
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003109
add rbx, 0x28
cmp rbx, rdi
je 0x140003130
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003100
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x14000b400]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003160
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003168
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003160
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400031bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400031b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003160
add rax, 0x28
cmp rax, r9
jne 0x1400031a0
xor eax, eax
ret

Function at 0x1400031c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b400]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400031df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400031e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400031df
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140003200
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000b400]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003220
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003228
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003220
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003270
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003267
test rcx, rcx
je 0x140003220
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140003258
xor eax, eax
ret

Function at 0x140003280
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b400]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000329f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400032a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14000b400]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400032e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400032e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400032e0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400032e0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140003334
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003340
add rdx, 0x28
cmp rdx, r9
jne 0x140003320
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000b400]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003372
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003380
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003372
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003372
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003372
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400033d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400033e8
add rdx, 0x28
cmp r10, rdx
jne 0x1400033c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400033f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003407
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400033de
test ecx, ecx
jg 0x1400033f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140008c70
Capabilities:
Connect to http server
Create http request
Encrypt data using aes via winapi
Generate random numbers via winapi
Query environment variable
Send data
Send http request

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call dbg.__main
call dbg.__p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x140008cbb
jmp 0x140008d31
test cl, cl
je 0x140008ce8
and esi, 1
je 0x140008cd0
mov esi, 1
call sym._ismbblead
test eax, eax
je 0x140008cb7
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140008c98
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140008ca6
test cl, cl
je 0x140008ce8
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140008ce8
cmp al, 0x20
jle 0x140008cd8
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x140008d16
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x14000b400]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp sym.WinMain
lea rbx, [0x14000acc0]
jmp 0x140008ce8
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.140004ea0
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.140004b10
xor edx, edx
mov ecx, edi
call fcn.140006400
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.140004ea0
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.140004b10
xor edx, edx
mov ecx, edi
call fcn.140006400
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.140003994
mov rsi, rax
test rax, rax
jne 0x1400022ef
call fcn.140003c10
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.140004b10
xor edx, edx
mov ecx, ebx
call fcn.140006400
nop
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
call fcn.140004b10
xor edx, edx
mov ecx, ebx
call fcn.140006400
nop
mov edx, eax
lea rcx, str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
call fcn.140004b10
xor edx, edx
mov ecx, ebx
call fcn.140006400
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.140004ea0
add rsp, 0x450
pop rbx
ret

Function at 0x14000301c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
je 0x140003044
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 0x14000311c
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 0x14000315e
mov r8d, edx
mov rdx, rcx
lea rcx, str.USERPROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140003159
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 0x1400032e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1050
call fcn.140004e30
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 0x14000337e
cmp eax, 2
sete bl
jmp 0x1400033e1
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 0x1400033b8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400033e3
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 0x1400033dc
add rsi, 2
test ecx, ecx
jne 0x1400033c9
test eax, eax
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140004ea0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140004078
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, [0x140008a68]
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 0x140004173
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [0x1400101f0], rbx
je 0x1400040e5
lea eax, [rbx + 1]
jmp 0x140004175
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x140004173
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.1400042a8
nop
lea rcx, [rsp + 0x28]
call fcn.1400016cc
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140004149
mov rdx, qword [rax]
jmp 0x14000414c
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 0x140004175
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140004ea0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rbp
ret

Function at 0x140004314
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 0x14000433a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1400046c4
jmp 0x1400043a1
cmp byte [0x140010208], 0
jne 0x14000437e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000436e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140010200], rax
jmp 0x140004375
mov rax, qword [0x140010200]
mov byte [0x140010208], 1
jmp 0x140004385
mov rax, qword [0x140010200]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000439b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x1400043a1
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400046c4
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 0x140004727
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000473b
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000473b
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 0x140004740
cmp dword [rcx + 8], 0
je 0x14000473b
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140004740
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000490c
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.140004e30
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 0x1400049a6
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.140004854
lea r8, [0x14000ac44]
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 0x1400049ec
cmp rax, 6
jbe 0x140004a19
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 0x140004a1c
mov eax, r15d
lea rcx, [rsp + 0x40]
mov r14, r12
inc r14
cmp word [rcx + r14*2], r15w
jne 0x140004a24
test eax, eax
lea rcx, [0x14000ac64]
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.140004b44
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 0x140004ac2
mov eax, dword [0x14000acdc]
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.140004ea0
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