joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002dde0
Capabilities:
Parse pe header

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

Function at 0x14002f450
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
lea rcx, [0x1441c5295]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x14002f4b0
mov rdi, rax
lea rdx, [0x1441c52b6]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14002f4b0
mov rsi, rax
lea rdx, [0x1441c52c4]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14002f4b0
mov r14, rax
xor ebx, ebx
jmp 0x14002f532
lea rcx, [0x1441c5250]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x14002f598
mov rsi, rax
lea rdx, [0x1441c525a]
mov rcx, rax
mov ecx, eax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14002f598
mov rdi, rax
lea rdx, [0x1441c526d]
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14002f598
mov rbx, rax
lea rdx, [0x1441c5281]
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14002f598
mov rsi, rax
lea rcx, [rbp - 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x14002f598
mov r14, qword [rbp - 0x20]
movzx eax, byte [0x1441d12a0]
mov ecx, 0x18
call fcn.140029840
dec dword [rax - 0x7b]
invalid
je 0x14002f59d
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1441d1168], rdi
je 0x14002f58a
mov rsi, rax
cmp qword [rdi], 0
je 0x14002f575
mov rcx, qword [rdi + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [0x1441d1228]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, rsi
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call fcn.14002f5f0
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rbx
mov ecx, 8
mov edx, 0x18
call fcn.14002e460
ud2
Function at 0x140001294
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, r9
mov rax, r8
mov rbx, rdx
test r9, r9
jne 0x1400012b7
mov ecx, 0x80004005
call entry0
int3
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r11d, eax
test rbx, rbx
je 0x140001329
cmp dword [rdi], 0
jbe 0x140001326
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x14000131c
cmp ecx, 2
jbe 0x140001313
cmp ecx, 7
jne 0x14000131c
cmp dword [rdi], 1
jb 0x14000131c
mov eax, dword [rdi]
cmp byte [rax + rbx - 1], 0
jne 0x14000131c
cmp dword [rdi], 1
jbe 0x140001329
cmp byte [rax + rbx - 2], 0
jmp 0x14000131a
mov eax, dword [rdi]
cmp byte [rax + rbx - 1], 0
je 0x140001329
mov byte [rbx], 0
mov eax, InitCommonControls
jmp 0x14000132c
mov byte [rbx], 0
mov eax, r11d
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001ea4
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0xe0
or dword [rax + 0x18], 0xffffffff
mov rbx, rdx
xor edx, edx
mov rdi, rcx
lea rcx, [rax - 0x78]
lea r8d, [rdx + 0x68]
call fcn.14001e2f0
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x18]
call fcn.14001e2f0
xor ecx, ecx
mov dword [rsp + 0x70], 0x68
cmp dword [0x14004a9d0], ecx
je 0x140001f28
lea r8, [0x14004abe0]
lea rdx, str.Country
call fcn.140010328
lea r8, [0x14004a9e0]
lea rdx, str.PostStatusUrl
xor ecx, ecx
call fcn.140010328
lea r8, [0x14004ae28]
lea rdx, str.Method
xor ecx, ecx
jmp 0x140001f32
xor r8d, r8d
lea rdx, str.PostStatusUrl
call fcn.140010328
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rdx, rbx
mov rcx, rdi
call fcn.140014394
test eax, eax
je 0x140001fa7
mov rcx, qword [rsp + 0x50]
call fcn.140001338
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x100]
jmp 0x140001fad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x140002db0
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 0x140002e13
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140002e27
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002e27
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 0x140002e2c
cmp dword [rcx + 8], 0
je 0x140002e27
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x140002e2c
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140002ed4
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 0x140002efa
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140002db0
jmp 0x140002f61
cmp byte [0x14004aec8], 0
jne 0x140002f3e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140002f2e
lea rdx, [0x140036318]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14004aec0], rax
jmp 0x140002f35
mov rax, qword [0x14004aec0]
mov byte [0x14004aec8], 1
jmp 0x140002f45
mov rax, qword [0x14004aec0]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140002f5b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140002f61
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003060
Capabilities:
Set registry value

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 r12
sub rsp, 0x30
xor edi, edi
mov rbx, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
jne 0x14000308e
lea eax, [rdi + 0xd]
jmp 0x1400030c5
mov rsi, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ecx, eax
add edi, eax
add rsi, rcx
cmp eax, 1
jne 0x140003091
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x14000d644
Capabilities:
Extract resource via kernel32 functions

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 r12
push r13
push r14
sub rsp, 0x30
mov r13, r9
mov r14, r8
mov rbx, rdx
mov r12, rcx
call fcn.14000d490
or rbp, 0xffffffffffffffff
lea r8d, [rbp + 6]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x14000d754
mov r8d, 0xf0
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor esi, esi
test rax, rax
je 0x14000d6c3
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov rdx, rdi
mov rcx, r12
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000d740
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000d740
mov rdx, rsi
mov rcx, rax
call fcn.140001594
mov r9, r13
mov r8, r14
mov rsi, rax
mov rax, qword [rsp + 0x70]
mov rcx, r12
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov rbp, rax
test rax, rax
je 0x14000d71f
cmp rax, 0xffffffffffffffff
jne 0x14000d727
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, rdi
je 0x14000d748
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14000d748
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x14000d754
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbp
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x14000d778
Capabilities:
Extract resource via kernel32 functions

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 r12
push r13
push r14
sub rsp, 0x30
mov r13, r9
mov r14, r8
mov rbx, rdx
mov rbp, rcx
call fcn.14000d490
xor r12d, r12d
lea r8d, [r12 + 5]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x14000d882
mov r8d, 0xf0
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor esi, esi
test rax, rax
je 0x14000d7f7
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov rdx, rdi
mov rcx, rbp
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000d86e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000d86e
mov rdx, rsi
mov rcx, rax
call fcn.140001594
mov r9, r13
mov r8, r14
mov rsi, rax
mov rax, qword [rsp + 0x70]
mov rcx, rbp
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov r12, rax
test rax, rax
jne 0x14000d855
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, rdi
je 0x14000d876
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14000d876
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x14000d882
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, r12
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x14000f4c8
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140048f50]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor ebx, ebx
cmp dword [0x14004af84], ebx
je 0x14000f4f5
mov eax, dword [0x14004af80]
jmp 0x14000f540
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x94
call fcn.14001e2f0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov r11d, 1
jne 0x14000f531
cmp dword [rsp + 0x24], 6
jne 0x14000f531
mov ebx, r11d
mov dword [0x14004af80], ebx
mov dword [0x14004af84], r11d
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001eba0
add rsp, 0xd0
pop rbx
ret

Function at 0x14000f55c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x560]
sub rsp, 0x660
mov rax, qword [0x140048f50]
xor rax, rsp
mov qword [rbp + 0x550], rax
mov rdi, rcx
lea rcx, [rbp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x40], 0
call fcn.14001e2f0
lea rcx, [rbp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, eax
test eax, eax
je 0x14000f6b4
cmp eax, 0x104
ja 0x14000f6b4
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call fcn.14001e2f0
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x40]
or rdi, 0xffffffffffffffff
lea r9, [0x140038294]
lea rcx, [rsp + 0x30]
mov edx, 0x104
mov r8, rdi
mov qword [rsp + 0x20], rax
call fcn.14001f9bc
test eax, eax
jg 0x14000f647
lea rcx, [rbp + 0x151]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp + 0x150], 0
call fcn.14001e2f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
lea r9, str._snprintf_failed.__ErrorCode:__d
mov qword [rsp + 0x20], rax
mov r8, rdi
jmp 0x14000f6e8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x14000f6af
lea rcx, [rbp + 0x151]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp + 0x150], al
call fcn.14001e2f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
lea r9, str.LoadLibrary__s__failed.__ErrorCode:__d
lea rcx, [rbp + 0x150]
mov r8, rdi
mov edx, 0x400
mov qword [rsp + 0x20], rax
call fcn.14001f9bc
lea rcx, [rbp + 0x150]
call fcn.1400113f8
mov rax, rbx
jmp 0x14000f707
lea rcx, [rbp + 0x151]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp + 0x150], 0
call fcn.14001e2f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.GetSystemDirectory_failed.__Return_Code:__d__ErrorCode:__d
or r8, 0xffffffffffffffff
mov dword [rsp + 0x20], ebx
lea rcx, [rbp + 0x150]
mov edx, 0x400
call fcn.14001f9bc
lea rcx, [rbp + 0x150]
call fcn.1400113f8
xor eax, eax
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.14001eba0
lea r11, [rsp + 0x660]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000fa34
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.14000f4c8
test eax, eax
je 0x14000fa59
mov rcx, rdi
call fcn.14000f7bc
test eax, eax
setne al
jmp 0x14000fa75
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1a]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
setns al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140010328
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
xor esi, esi
mov rdi, r8
and qword [r11 + 8], rbx
mov rbp, rdx
test rcx, rcx
jne 0x140010398
test r8, r8
jne 0x140010378
lea rax, [r11 + 8]
lea rdx, str.SOFTWAREJavaSoftJava_UpdatePolicy
mov r9d, 0x2001f
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x140010387
lea rcx, [rsp + 0x40]
mov edx, 1
call fcn.140010298
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400103ef
mov esi, 1
jmp 0x14001039d
mov qword [rsp + 0x40], rcx
test rcx, rcx
je 0x1400103e5
test rdi, rdi
jne 0x1400103b2
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x1400103db
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x40]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
test eax, eax
sete bl
test esi, esi
je 0x1400103ef
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001082c
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
and dword [rbp + 0x18], 0
or dword [rbp + 0x10], 0xffffffff
mov eax, 4
mov dword [rbp + 0x20], eax
mov dword [rbp + 0x28], eax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x10]
lea rdx, str.SoftwareJreMetrics
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14001088f
xor eax, eax
jmp 0x1400108f2
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x20]
lea r9, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
lea rdx, str.OfferedSPCnt
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r11d, eax
test eax, eax
jne 0x1400108d3
mov rcx, qword [rbp - 0x10]
lea rdx, str.OfferedSPCnt
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x1400108e5
mov eax, dword [rbp + 0x10]
mov ecx, 0xfffffffe
cmp r11d, 2
cmovne eax, ecx
mov dword [rbp + 0x10], eax
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x10]
add rsp, 0x60
pop rbp
ret

Function at 0x1400108f8
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x140048f50]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rcx, [rsp + 0x41]
xor ebx, ebx
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x40], bl
call fcn.14001e2f0
lea rax, [rsp + 0x38]
lea edi, [rbx + 1]
lea rdx, str.SoftwareMicroSoftWindowsCurrentVersionRunOnce
mov r9d, edi
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x30], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400109b4
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.JavaInstallRetry
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400109a9
lea rdx, str.JRERunOnce.exe
lea rcx, [rsp + 0x40]
call fcn.14001e0b0
test rax, rax
cmove ebx, edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14001eba0
mov rbx, qword [rsp + 0x460]
add rsp, 0x450
pop rdi
ret
Function at 0x140010d8c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r13
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140048f50]
xor rax, rsp
mov qword [rbp + 0x70], rax
and qword [rsp + 0x50], 0
and dword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x38], 0
and dword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
mov r14, rcx
mov edi, 0x20019
lea r8, str.SOFTWARE
lea rcx, [rsp + 0x50]
mov rdx, 0xffffffff80000002
mov r9d, edi
xor r13d, r13d
xor esi, esi
call fcn.140001200
test eax, eax
je 0x140010e30
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140010e29
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140010f88
mov rbx, qword [rsp + 0x50]
lea r8, str.JavaSoft
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov r9d, edi
call fcn.140001200
test eax, eax
je 0x140010e6a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140010e60
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140010e29
mov rcx, rbx
jmp 0x140010e23
mov r9d, edi
mov rdi, qword [rsp + 0x38]
lea r8, str.Java_Runtime_Environment
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140001200
test eax, eax
je 0x140010ea4
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140010e9a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140010e60
mov rcx, rdi
jmp 0x140010e5a
lea rdx, [0x140035cab]
lea rcx, [rbp - 0x10]
call fcn.14001e490
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x70]
mov r9d, 0x80
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140010f57
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x70]
inc r13d
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jle 0x140010f22
lea rdx, str.1.7.0_76
lea rcx, [rsp + 0x70]
call fcn.1400206d0
test eax, eax
je 0x140010f22
lea rcx, [rsp + 0x70]
call fcn.14001e700
cmp rax, 3
jbe 0x140010f22
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.14001e490
mov esi, 1
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x70]
mov r9d, 0x80
mov edx, r13d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x140010ed4
test esi, esi
je 0x140010f57
lea r8, [rbp - 0x10]
lea rdx, [0x14003620c]
mov rcx, r14
call qword [sym.imp.USER32.dll_wsprintfA]
cmp qword [rsp + 0x20], 0
je 0x140010f6a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x140010f78
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140010f86
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14001eba0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
Function at 0x14001120c
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140048f50]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rcx
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x50], 0
call fcn.14001e2f0
lea rcx, [rbp + 0x61]
xor edx, edx
mov r8d, 0xff
mov byte [rbp + 0x60], 0
call fcn.14001e2f0
lea rcx, [rsp + 0x48]
call fcn.140020ba8
lea rcx, [rsp + 0x48]
call fcn.140020b60
lea rdx, [0x140035cab]
lea rcx, [rbp + 0x60]
mov rdi, rax
call fcn.14001e490
test rdi, rdi
je 0x1400112b2
mov rcx, rdi
call fcn.140020c08
test rax, rax
je 0x1400112b2
lea rdx, str._n_s::
lea rcx, [rbp + 0x60]
mov r8, rax
call fcn.14001f8f8
mov edi, 0x104
lea rdx, [rsp + 0x50]
lea rcx, str.TMPDIR
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1400112df
lea rdx, [rsp + 0x50]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x1400112f1
lea rdx, [0x1400387e4]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [0x1400387e0]
lea rcx, [0x140037a50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea rcx, [rsp + 0x50]
lea rdx, str.jdk_inst.log
test eax, eax
je 0x14001131c
lea rdx, str.jusched.log
call qword [sym.imp.KERNEL32.dll_lstrcatA]
and qword [rsp + 0x30], 0
xor r9d, r9d
lea r8d, [r9 + 2]
lea rcx, [rsp + 0x50]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400113d3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea rdx, [rbp + 0x60]
mov r8d, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0x10
jb 0x14001139d
mov rcx, qword [rbx]
jmp 0x1400113a0
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400113aa
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14001eba0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret