joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000de70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x20]
push esi
push eax
call fcn.10003580
push dword [esp + 0x34]
lea eax, [esp + 0x34]
push esi
push eax
call fcn.10003580
mov esi, dword [esp + 0x34]
add esp, 0x18
xor bl, bl
test esi, esi
je 0x1000deae
xor eax, eax
cmp dword [esi], eax
sete al
jmp 0x1000deb3
mov eax, 1
push edi
mov edi, dword [esp + 0x28]
test al, al
jne 0x1000df6d
test edi, edi
je 0x1000decd
xor eax, eax
cmp dword [edi], eax
sete al
jmp 0x1000ded2
mov eax, 1
test al, al
jne 0x1000df6d
test esi, esi
je 0x1000dee2
mov eax, dword [esi]
jmp 0x1000dee4
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1000df1c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000df05
mov eax, dword [eax]
jmp 0x1000df07
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1000df65
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], 4
test eax, eax
je 0x1000df30
mov eax, dword [eax]
jmp 0x1000df32
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x2c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000df65
cmp dword [esp + 0x14], esi
setne bl
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
or ebp, 0xffffffff
test edi, edi
je 0x1000dfcb
mov eax, ebp
lock xadd dword [edi + 8], eax
dec eax
jne 0x1000dfbf
test edi, edi
je 0x1000dfbf
mov eax, dword [edi]
test eax, eax
je 0x1000df97
push eax
call ecx
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1000dfae
push eax
call fcn.1003b898
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.1003b014
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 8
mov esi, dword [esp + 0x20]
mov dword [esp + 0x28], 0
pop edi
test esi, esi
je 0x1000e00d
lock xadd dword [esi + 8], ebp
dec ebp
jne 0x1000e00d
test esi, esi
je 0x1000e00d
mov eax, dword [esi]
test eax, eax
je 0x1000dfeb
push eax
call ecx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000e002
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret 0x10
Function at 0x1000e5b0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
push dword [esp + 0x18]
push esi
push eax
call fcn.10003580
push dword [esp + 0x28]
lea eax, [esp + 0x28]
push esi
push eax
call fcn.10003580
mov esi, dword [esp + 0x28]
add esp, 0x18
test esi, esi
je 0x1000e5e9
xor eax, eax
cmp dword [esi], eax
sete al
jmp 0x1000e5ee
mov eax, 1
mov edi, dword [esp + 0x18]
test al, al
jne 0x1000e695
test edi, edi
je 0x1000e607
xor eax, eax
cmp dword [edi], eax
sete al
jmp 0x1000e60c
mov eax, 1
test al, al
jne 0x1000e695
test esi, esi
je 0x1000e61c
mov eax, dword [esi]
jmp 0x1000e61e
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1000e656
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000e63f
mov eax, dword [eax]
jmp 0x1000e641
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1000e68d
movzx eax, byte [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000e66b
mov eax, dword [eax]
jmp 0x1000e66d
xor eax, eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push 0
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
or ebx, 0xffffffff
test edi, edi
je 0x1000e6eb
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x1000e6df
test edi, edi
je 0x1000e6df
mov eax, dword [edi]
test eax, eax
je 0x1000e6bd
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1000e6d4
push eax
call fcn.1003b898
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.1003b014
add esp, 8
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], 0
test esi, esi
je 0x1000e730
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1000e730
test esi, esi
je 0x1000e730
mov eax, dword [esi]
test eax, eax
je 0x1000e70e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000e725
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x1000e7f0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2010
call fcn.1003baf0
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x200c], eax
mov eax, dword [esp + 0x201c]
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
push edi
mov edi, dword [esp + 0x201c]
test eax, eax
je 0x1000e85b
push eax
lea eax, [esp + 0x10]
push edi
push eax
call fcn.10003580
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x1000e83b
mov eax, dword [eax]
jmp 0x1000e83d
xor eax, eax
push 0x1000
lea ecx, [esp + 0x18]
mov ebx, 1
push ecx
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov byte [esp + 0xb], bl
test eax, eax
jne 0x1000e860
mov byte [esp + 0xb], 0
test bl, 1
je 0x1000e8b3
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1000e8b2
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1000e8b2
test esi, esi
je 0x1000e8b2
mov eax, dword [esi]
test eax, eax
je 0x1000e890
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000e8a7
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
pop esi
cmp byte [esp + 0xb], 0
je 0x1000e8ca
lea eax, [esp + 0x14]
push eax
push edi
call fcn.100036a0
add esp, 8
jmp 0x1000e8cc
xor eax, eax
mov ecx, dword [esp + 0x2014]
pop edi
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0x2010
ret 0xc

Function at 0x1000ead0
Capabilities:
Delete registry key

Disassembly:
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push dword [esp + 8]
push eax
call fcn.10003580
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x1000eaef
mov eax, dword [eax]
jmp 0x1000eaf1
xor eax, eax
push esi
push edi
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, dword [esp + 0x18]
mov edi, eax
test esi, esi
je 0x1000eb4c
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x1000eb4c
test esi, esi
je 0x1000eb4c
mov eax, dword [esi]
test eax, eax
je 0x1000eb2a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000eb41
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x1000eb60
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1000eb6e
or eax, 0xffffffff
ret 0x10
push eax
push dword [esp + 8]
lea eax, [esp + 0x18]
push eax
call fcn.10003580
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x1000eb8c
mov eax, dword [eax]
jmp 0x1000eb8e
xor eax, eax
push esi
push edi
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [esp + 0x18]
mov edi, eax
test esi, esi
je 0x1000ebe9
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x1000ebe9
test esi, esi
je 0x1000ebe9
mov eax, dword [esi]
test eax, eax
je 0x1000ebc7
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000ebde
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x1000ebf0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x2008
call fcn.1003baf0
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x2004], eax
mov eax, dword [esp + 0x2014]
lea ecx, [esp]
push esi
mov esi, dword [esp + 0x2010]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0x1000
push ecx
push dword [esp + 0x2034]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000ec68
lea eax, [esp + 8]
push eax
push esi
call fcn.100036a0
add esp, 8
pop esi
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x2008
ret 0x14
mov ecx, dword [esp + 0x2008]
xor eax, eax
pop esi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x2008
ret 0x14

Function at 0x1000ec90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2008
call fcn.1003baf0
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x2004], eax
mov eax, dword [esp + 0x201c]
mov ecx, dword [esp + 0x2014]
push esi
mov esi, dword [esp + 0x2010]
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x2034]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1000ed0c
lea eax, [esp + 8]
push eax
push esi
call fcn.100036a0
add esp, 8
pop esi
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x2008
ret 0x14
mov ecx, dword [esp + 0x2008]
xor eax, eax
pop esi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x2008
ret 0x14
Function at 0x1000eee0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2014
call fcn.1003baf0
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x2010], eax
mov eax, dword [esp + 0x2024]
push ebx
push esi
mov esi, dword [esp + 0x2028]
push edi
mov edi, dword [esp + 0x2024]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x1000
push edi
push eax
call fcn.10003580
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x1000ef31
mov eax, dword [eax]
jmp 0x1000ef33
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [esp + 0x10]
test eax, eax
sete bl
test esi, esi
je 0x1000ef9d
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1000ef9d
test esi, esi
je 0x1000ef9d
mov eax, dword [esi]
test eax, eax
je 0x1000ef7b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000ef92
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
test bl, bl
je 0x1000efc6
cmp dword [esp + 0xc], 0
jbe 0x1000efc6
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x1000efb6
cmp eax, 2
jne 0x1000efc6
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.100036a0
add esp, 8
jmp 0x1000efc8
xor eax, eax
mov ecx, dword [esp + 0x201c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0x2014
ret 0x10
Function at 0x1000eff0
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 0x10], 0
je 0x1000f183
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000f183
push ebp
push esi
push edi
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
call fcn.10003580
mov esi, dword [esp + 0x2c]
add esp, 0xc
xor ecx, ecx
or eax, 0xffffffff
test esi, esi
je 0x1000f133
mov ebp, dword [esi]
mov edi, ebp
test edi, edi
je 0x1000f133
movzx eax, word [edi]
test ax, ax
je 0x1000f06d
mov edx, eax
cmp dx, 0x25
jne 0x1000f051
inc ecx
cmp ecx, 2
je 0x1000f06d
jmp 0x1000f05f
cmp dx, 0x20
je 0x1000f05d
cmp dx, 9
jne 0x1000f05f
xor ecx, ecx
movzx eax, word [edi + 2]
add edi, 2
mov edx, eax
test ax, ax
jne 0x1000f043
push ebx
xor ebx, ebx
cmp ecx, 2
sete bl
inc ebx
test ebp, ebp
je 0x1000f088
push ebp
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, dword [esp + 0x24]
jmp 0x1000f08a
xor eax, eax
lea edi, [eax + eax]
test esi, esi
je 0x1000f095
mov esi, dword [esi]
jmp 0x1000f097
xor esi, esi
push dword [esp + 0x20]
lea eax, [esp + 0x24]
push dword [esp + 0x18]
push eax
call fcn.10003580
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x1000f0b6
mov eax, dword [eax]
jmp 0x1000f0b8
xor eax, eax
push edi
push esi
push ebx
push 0
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [esp + 0x20]
mov edi, eax
pop ebx
test esi, esi
je 0x1000f12a
or eax, 0xffffffff
mov ecx, eax
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x1000f11c
test esi, esi
je 0x1000f11c
mov eax, dword [esi]
test eax, eax
je 0x1000f0f7
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000f10e
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
or eax, 0xffffffff
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
jmp 0x1000f136
mov esi, dword [esp + 0x20]
or eax, 0xffffffff
jmp 0x1000f136
or edi, 0xffffffff
test esi, esi
je 0x1000f17b
lock xadd dword [esi + 8], eax
dec eax
jne 0x1000f17b
test esi, esi
je 0x1000f17b
mov eax, dword [esi]
test eax, eax
je 0x1000f159
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000f170
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x14
or eax, 0xffffffff
ret 0x14
Function at 0x10012bc0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1254]
mov eax, 0x1254
call fcn.1003baf0
push 0xfffffffffffffffe
push 0x1004b680
push 0x1003b8cc
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100530a0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x1250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x1260]
mov eax, dword [ebp + 0x1264]
xor edx, edx
mov word [ebp + 0x250], dx
push eax
push ecx
push str._s_s
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp]
push eax
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10012d27
push eax
call dword [sym.imp.kernel32.dll_FindClose]
push 0
lea eax, [ebp + 0x250]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x10012d27
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003b014
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x10012d27
mov dword [ebp - 4], 0
push esi
push edi
push 0
lea eax, [ebp + 0x250]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10012d1b
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.StringFileInfo040904e4ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10012d1b
mov ecx, dword [ebp + 0x125c]
mov eax, dword [ebp - 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10012cf8
test dx, dx
je 0x10012cf4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10012cf8
add eax, 4
add ecx, 4
test dx, dx
jne 0x10012cd2
xor eax, eax
jmp 0x10012cfd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10012d1b
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100530a0
call sub.VCRUNTIME140.dll__local_unwind4
add esp, 0xc
mov eax, 1
jmp 0x10012d29
mov dword [ebp - 4], 0xfffffffe
call fcn.10012d4f
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1250]
xor ecx, ebp
call fcn.1003b4ee
lea esp, [ebp + 0x1254]
pop ebp
ret
Function at 0x10016530
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push 0
push 0
push dword [esp + 0x3c]
mov dword [esp + 0x20], 0
push 0
push 0
push edi
push dword [esp + 0x3c]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.10006260
mov ebp, dword [esp + 0x14]
test eax, eax
jne 0x100165be
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x10016584
lea esi, [edx + 0xd]
jmp 0x100166bd
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016590
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [esp + 0x3c]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x100166bd
push 0xc
call fcn.1003b014
mov esi, eax
add esp, 4
test esi, esi
je 0x100165f3
push str.CreateKeyNameValuePair:_cannot_create:
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x100166d1
jmp 0x100165f5
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x100166d1
push edi
lea ecx, [esp + 0x10]
call fcn.100032a0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.10003700
mov esi, dword [esp + 0xc]
or edi, 0xffffffff
test esi, esi
je 0x10016663
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x10016663
mov eax, dword [esi]
test eax, eax
je 0x10016641
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10016658
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1001666f
mov eax, dword [esi]
jmp 0x10016671
xor eax, eax
push eax
call fcn.10003ca0
add esp, 4
test esi, esi
je 0x100166bb
lock xadd dword [esi + 8], edi
dec edi
jne 0x100166bb
mov eax, dword [esi]
test eax, eax
je 0x10016699
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100166b0
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
xor esi, esi
test ebp, ebp
je 0x100166c8
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret
push 0x8007000e
call fcn.1003b014
int3
Function at 0x100185d0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor eax, eax
mov word [edi], ax
call fcn.100050f0
test eax, eax
je 0x10018615
call fcn.1003b014
test eax, eax
je 0x10018607
call fcn.10005400
test eax, eax
je 0x10018607
push 0x800
push edi
call dword [sym.imp.kernel32.dll_GetSystemWow64DirectoryW]
jmp 0x10018621
push 0x800
push edi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
jmp 0x10018621
push 0x800
push edi
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
push 0xc
mov ebx, eax
call fcn.1003b014
mov esi, eax
add esp, 4
test esi, esi
je 0x1001864f
push str.__get_system_dir__
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.1003b014
mov dword [esi], eax
jmp 0x10018651
xor esi, esi
mov dword [esp + 0x18], esi
test esi, esi
je 0x100187d8
push 0xc
call fcn.1003b014
mov esi, eax
add esp, 4
test esi, esi
je 0x1001868e
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x100187d8
jmp 0x10018690
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x100187d8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.10003700
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x100186ee
mov eax, dword [esi]
test eax, eax
je 0x100186cc
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100186e3
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
push 0xc
call fcn.1003b014
mov esi, eax
add esp, 4
test esi, esi
je 0x1001871a
push 0x1004214c
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.1003b014
mov dword [esi], eax
jmp 0x1001871c
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x100187d8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.10003700
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x10018771
mov eax, dword [esi]
test eax, eax
je 0x1001874f
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10018766
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
mov esi, dword [esp + 0x18]
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x10018782
lock inc dword [esi + 8]
test ebx, ebx
setne al
movzx eax, al
push eax
call fcn.100158e0
add esp, 8
test esi, esi
je 0x100187d0
lock xadd dword [esi + 8], edi
dec edi
jne 0x100187d0
mov eax, dword [esi]
test eax, eax
je 0x100187ae
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100187c5
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.1003b014
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push 0x8007000e
call fcn.1003b014
int3
Function at 0x1002e5c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x64
push eax
push 0
push 0x2021f
push 0
push 0
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
mov esi, 0x200
push SysReAllocString
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002e66c
call fcn.10030880
test eax, eax
je 0x1002e641
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
push 4
push eax
call fcn.1003b014
mov esi, dword [esp + 0x14]
add esp, 0x10
jmp 0x1002e649
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
push esi
lea eax, [esp + 0x18]
push eax
push 3
push 0
push str.EnableAutoUpdateCheck
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
pop esi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x214
ret

Function at 0x1002e720
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x202
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002e758
push str.EnableAutoUpdateCheck
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x1002e850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x208], eax
lea eax, [esp]
mov dword [esp + 4], 0x200
push eax
push 0x201
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002e8d4
push esi
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.ITCONFIG
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1002e8d4
movzx eax, byte [esp + 8]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor eax, eax
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20c
ret