joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f375
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1fac]
mov eax, 0x202c
call fcn.1003a680
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0x1fa8], eax
push ebx
push esi
mov esi, dword [ebp + 0x1fb4]
lea eax, [ebp - 0x60]
push edi
mov ebx, 0x1000
xor edi, edi
push ebx
push edi
push eax
call fcn.1003cd40
push ebx
lea eax, [ebp + 0xfa0]
push edi
push eax
call fcn.1003cd40
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
push 0x800
call dword [sym.imp.kernel32.dll_GetTempPathW]
push 3
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x1fa0]
push 4
push eax
call fcn.10057745
lea eax, [ebp + 0x1fa0]
push eax
call fcn.10057745
add esp, 0x14
cmp eax, 0x64
jae 0x1000f428
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x80], 0x100748c4
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x80]
call fcn.100134ca
cmp dword [ebp - 0x6c], edi
je 0x1000f49b
push dword [ebp - 0x6c]
call fcn.10057745
jmp 0x1000f49b
lea eax, [ebp + 0xfa0]
push eax
push edi
push 0x100729e0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x1000f496
lea ecx, [ebp + 0xfa0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1000f44c
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 8]
cmp ecx, ebx
jae 0x1000f4b8
xor eax, eax
mov word [ebp + ecx + 0xfa0], ax
lea eax, [ebp + 0xfa0]
push eax
push str._s.exe
push ebx
push esi
call fcn.10057745
push edi
push esi
call fcn.10057745
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1000f428
xor eax, eax
jmp 0x1000f4a0
call fcn.10057745
mov eax, 0x80004005
mov ecx, dword [ebp + 0x1fa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a5a7
add ebp, 0x1fac
leave
ret
call fcn.10057745
int3
Function at 0x100103c1
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x3844
call fcn.1003a680
mov eax, dword [0x100bc054]
xor eax, esp
mov dword [esp + 0x3840], eax
cmp dword [0x100bea60], 0
je 0x100105aa
push ebx
push ebp
push edi
mov ebx, 0x1000
lea eax, [esp + 0x184c]
push ebx
xor ebp, ebp
push ebp
push eax
call fcn.1003cd40
push ebx
lea eax, [esp + 0x285c]
push ebp
push eax
call fcn.1003cd40
mov ebx, 0x800
lea eax, [esp + 0x64]
push ebx
push ebp
push eax
call fcn.1003cd40
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x38]
add esp, 0x24
mov dword [esp + 0xc], ebx
push eax
push 0x20019
push ebp
push 0x100732a0
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x100105a7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push esi
push eax
lea eax, [esp + 0x1854]
push eax
push ebp
push ebp
push 0x10073314
push dword [esp + 0x2c]
call ebx
mov esi, eax
lea eax, [esp + 0x1850]
push eax
push 0x10073350
push 0x10073344
lea eax, [esp + 0x285c]
push 0x1000
push eax
call fcn.10057745
add esp, 0x14
test esi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x100105a0
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebp
lea eax, [esp + 0x285c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x100105a0
lea eax, [esp + 0x10]
mov edi, 0x800
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x14], edi
push eax
push ebp
push ebp
push 0x100733e0
push dword [esp + 0x30]
call ebx
test eax, eax
jne 0x100105a0
mov ebx, 0x1000
lea eax, [esp + 0x850]
push ebx
push ebp
push eax
call fcn.1003cd40
lea eax, [esp + 0x5c]
push eax
push str._slib_bundles
lea eax, [esp + 0x864]
push ebx
push eax
call fcn.10057745
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x870]
push eax
call fcn.10057745
add esp, 0x24
test eax, eax
jne 0x1001059a
push str._requested.list
lea eax, [esp + 0x854]
mov dword [esp + 0x18], ebp
push edi
push eax
call fcn.10057745
push 0x1007347c
lea eax, [esp + 0x860]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10057745
add esp, 0x18
test eax, eax
jne 0x1001059a
mov edx, dword [0x100bea60]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x10010572
push dword [esp + 0x14]
sub ecx, edi
sar ecx, 1
push ecx
push 2
push edx
call fcn.10057745
push dword [esp + 0x24]
call fcn.1004a1da
add esp, 0x14
push dword [esp + 0x18]
call esi
push dword [esp + 0x18]
call esi
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3840]
xor ecx, esp
call fcn.1003a5a7
add esp, 0x3844
ret
Function at 0x10010ee5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0x790], eax
push esi
lea eax, [ebp - 0x74]
xor esi, esi
push eax
push 0x20019
push esi
push 0x100728b8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10010f57
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x800
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push str.Allow_Unsigned_Installers
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10010f57
xor eax, eax
inc eax
jmp 0x10010f82
push str.TOOLKIT_ALLOW_UNSIGNED
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.10057745
add esp, 0xc
test eax, eax
jne 0x10010f80
cmp dword [ebp - 0x78], eax
je 0x10010f80
push dword [ebp - 0x78]
call fcn.10057745
pop ecx
jmp 0x10010f52
xor eax, eax
mov ecx, dword [ebp + 0x790]
xor ecx, ebp
pop esi
call fcn.1003a5a7
add ebp, 0x794
leave
ret

Function at 0x100134fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x134
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0x70], eax
movzx eax, word [ebp + 0x7c]
push esi
mov esi, dword [0x100bf198]
push edi
push 0xf0
push eax
xor edi, edi
mov dword [ebp - 0x98], ecx
push esi
inc edi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x1001366e
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x1001366e
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1001366e
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1001366d
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x9c], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x100135e7
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.10013689
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x90]
cmove edi, ecx
cmp dword [ebp - 0x94], eax
je 0x1001365f
push dword [ebp - 0x94]
call fcn.10057745
pop ecx
jmp 0x1001365f
mov ecx, 0x1234
cmp cx, ax
jne 0x1001365f
or dword [ebp - 0xbc], 0xffffffff
lea eax, [ebp - 0x90]
push 3
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0x94], eax
call fcn.10013689
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xb8], eax
cmp eax, ecx
je 0x10013639
push eax
call fcn.10057745
pop ecx
lea eax, [ebp - 0xc0]
push eax
mov eax, dword [ebp - 0x98]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x9c]
test edi, edi
jne 0x1001355e
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1003a5a7
add ebp, 0x74
leave
ret 4
Function at 0x1001b50c
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x100bc054]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x224]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.10057745
mov esi, eax
test esi, esi
jne 0x1001b5bb
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1001b596
lea eax, [esp + 0x28]
push eax
call fcn.1001b50c
mov esi, eax
test esi, esi
jne 0x1001b5bb
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], 0x100
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x1001b571
call fcn.1001ad8c
push ebx
mov ecx, edi
call fcn.1001ae15
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.1001ad8c
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003a5a7
add esp, 0x21c
ret 4
Function at 0x1001b81a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x100660b5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
xor ebx, ebx
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x1001b8b5
push 2
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x1001b8b5
call fcn.10009a52
mov esi, eax
jmp 0x1001b981
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1001b8d2
call fcn.10009a52
jmp 0x1001b974
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001b8c8
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x18], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001b8fc
mov esi, 0x8007000e
jmp 0x1001b976
push 2
push eax
mov byte [ebp - 4], 2
call fcn.10057745
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x1001b91c
push eax
lea ecx, [ebp]
call fcn.1001ab5f
jmp 0x1001b932
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x1001b932
cmp dword [ebp], 0
mov dword [ebp - 4], 1
je 0x1001b8f5
push esi
push dword [ebp]
push esi
push dword [ebp - 0x14]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1001b8c8
mov eax, dword [ebp]
xor edx, edx
push dword [ebp + 0x41c]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x24]
push dword [ebp]
call fcn.1001b6ea
mov esi, eax
test edi, edi
je 0x1001b981
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1001b991
lea ecx, [ebp]
call fcn.1001af2f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.1003a5a7
add ebp, 0x408
leave
ret 0x10
Function at 0x1001dfe7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003a680
push 0xffffffffffffffff
push 0x10066330
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x100c]
xor eax, eax
mov ebx, dword [ebp + 0x1018]
push 0x1000
push eax
lea eax, [ebp]
push eax
call fcn.1003cd40
add esp, 0xc
mov dword [ebp - 0x14], 0x800
mov edi, 0x20019
test ebx, ebx
je 0x1001e067
xor edx, edx
mov eax, 0x100
cmp dword [ebx], edx
mov ecx, 0x200
cmovne eax, ecx
or edi, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
push edi
cmp dword [ebp + 0x1014], eax
je 0x1001e08b
push 0x1008182c
jmp 0x1001e0a7
push str.SOFTWAREJavaSoftJRE
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10057745
test eax, eax
je 0x1001e0c4
push edi
push 0x100818c8
lea ecx, [ebp - 0x20]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10057745
test eax, eax
je 0x1001e0c4
lea ecx, [ebp - 0x20]
call fcn.1001ad8c
xor eax, eax
jmp 0x1001e1f0
xor ecx, ecx
lea eax, [ebp - 0x2c]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
push eax
lea eax, [ebp]
push eax
push ecx
jmp 0x1001e17b
cmp dword [ebp + 0x1014], 0
je 0x1001e124
lea eax, [ebp]
push ebx
push eax
call fcn.1001e51b
pop ecx
pop ecx
test eax, eax
je 0x1001e107
lea eax, [ebp]
push ebx
push eax
call fcn.1001e865
pop ecx
pop ecx
test eax, eax
jne 0x1001e124
push 0x10081920
call fcn.10057745
lea eax, [ebp]
push eax
call fcn.10057745
pop ecx
xor eax, eax
pop ecx
mov word [ebp], ax
jmp 0x1001e128
mov ax, word [ebp]
test ax, ax
je 0x1001e15b
cmp dword [ebp - 0x10], 0
je 0x1001e143
lea eax, [ebp]
push esi
push eax
call fcn.10057745
pop ecx
pop ecx
test eax, eax
jle 0x1001e15b
lea eax, [ebp]
push eax
push 0x10081960
push dword [ebp + 0x1010]
push esi
call fcn.1000758d
add esp, 0x10
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push ecx
inc eax
mov dword [ebp - 0x14], 0x800
xor ecx, ecx
mov dword [ebp - 0x10], eax
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp]
push ecx
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
je 0x1001e0de
cmp dword [ebp + 0x1014], 0
je 0x1001e19e
push str.Latest_deploy_version:
jmp 0x1001e1a3
push str.Latest_JRE_version:
call fcn.10057745
pop ecx
push esi
call fcn.10057745
pop ecx
test edi, edi
je 0x1001e1bc
cmp edi, 0x103
jne 0x1001e1c1
xor edx, edx
inc edx
jmp 0x1001e1c4
mov edx, dword [ebp - 0x24]
lea ecx, [esi + 2]
xor edi, edi
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x1001e1c9
sub esi, ecx
lea ecx, [ebp - 0x20]
sar esi, 1
push 0
pop esi
cmovne esi, edx
call fcn.1001ad8c
lea ecx, [ebp - 0x20]
call fcn.1001ad8c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1003a5a7
add ebp, 0x1004
leave
ret
Function at 0x1001f5c2
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x810
mov eax, dword [0x100bc054]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
mov ebx, dword [esp + 0x818]
lea eax, [esp + 8]
push ebp
push eax
push 0x20019
xor ebp, ebp
push ebp
push 0x10081e48
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001f6d9
push esi
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
mov esi, ebp
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
jmp 0x1001f6b4
mov eax, ebp
mov ecx, ebp
cmp dword [esp + 0xc], eax
jbe 0x1001f6a4
cmp word [esp + ecx*2 + 0x18], 0x2e
jne 0x1001f633
inc eax
cmp eax, 1
jg 0x1001f63f
inc ecx
cmp ecx, dword [esp + 0xc]
jb 0x1001f625
cmp eax, 1
jle 0x1001f6a4
push 0x10081dc4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
js 0x1001f6a4
lea eax, [esp + 0x18]
push eax
call fcn.1002eaf4
pop ecx
test eax, eax
je 0x1001f6a4
mov eax, dword [esp + 0xc]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10057745
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push ecx
mov ecx, dword [esp + 0x14]
push 0x10081ea0
inc ecx
push ecx
push eax
call fcn.1000758d
add esp, 0x14
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.10029a3d
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
inc esi
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1001f61b
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [esp + 0x814]
pop ebp
pop ebx
xor ecx, esp
call fcn.1003a5a7
add esp, 0x810
ret

Function at 0x1001fdc8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0x78c], eax
push ebx
mov ebx, dword [ebp + 0x79c]
lea eax, [ebp - 0x74]
push esi
push edi
mov edi, dword [ebp + 0x798]
xor esi, esi
push 0x800
push esi
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call fcn.1003cd40
add esp, 0xc
lea ecx, [ebp - 0x80]
push 0x2001f
push ebx
push dword [edi]
call fcn.10057745
test eax, eax
jne 0x1001fe51
push 0x400
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1001fe5a
lea ecx, [ebp - 0x80]
call fcn.1001ad8c
push ebx
mov ecx, edi
call fcn.1001ae15
test eax, eax
jne 0x1001fe5a
inc esi
jmp 0x1001fe5a
xor ecx, ecx
inc ecx
cmp eax, 2
cmove esi, ecx
lea ecx, [ebp - 0x80]
call fcn.1001ad8c
mov ecx, dword [ebp + 0x78c]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a5a7
add ebp, 0x790
leave
ret
Function at 0x1001fe7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003a680
push 0xffffffffffffffff
push 0x1006670f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
push 0x20019
push edi
push 0x10082fb8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001ff35
push str._Cannot_open_registry_key
lea ecx, [ebp - 0x14]
call fcn.10012712
push 0x10083030
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.1000155e
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.10001697
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1001ff11
call fcn.100016f0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001ff1a
mov edi, dword [esi]
push edi
call fcn.10057745
pop ecx
test esi, esi
je 0x10020027
mov ecx, esi
call fcn.100016f0
jmp 0x10020027
push 0x1000
lea eax, [ebp]
mov dword [ebp - 0x18], 0x800
push edi
push eax
call fcn.1003cd40
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0x100830a0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002001c
push str._WebJava_value:
lea ecx, [ebp - 0x10]
call fcn.10012712
lea eax, [ebp]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.1000155e
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10]
call fcn.10001697
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1001ffad
call fcn.100016f0
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1001ffb8
mov eax, dword [esi]
jmp 0x1001ffba
mov eax, edi
push eax
call fcn.10057745
pop ecx
lea ecx, [ebp]
mov eax, 0x100830f4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001ffed
test dx, dx
je 0x1001fff2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001ffed
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001ffc9
jmp 0x1001fff2
sbb edi, edi
or edi, 1
test edi, edi
jne 0x10020011
push str._System_WebJava_DISABLED
call fcn.10057745
pop ecx
test esi, esi
je 0x1002000c
mov ecx, esi
call fcn.100016f0
xor eax, eax
inc eax
jmp 0x10020029
test esi, esi
je 0x1002001c
mov ecx, esi
call fcn.100016f0
push str._System_WebJava_ENABLED
call fcn.10057745
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1003a5a7
add ebp, 0x1004
leave
ret
Function at 0x100200b6
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003a680
push 0xffffffffffffffff
push 0x10066747
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0x1000
push eax
mov dword [ebp - 4], eax
lea eax, [ebp]
push eax
call fcn.1003cd40
call fcn.10057745
push edx
push eax
push 0x100833bc
lea eax, [ebp]
push 0x800
push eax
call fcn.1000758d
add esp, 0x20
lea ecx, [ebp - 0x20]
mov edi, 0x2001f
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push edi
push 0x100833d4
push ebx
call fcn.10057745
mov esi, eax
cmp esi, 2
jne 0x1002015a
push str._setSystemWebJavaEnabled:_OK_regkey_does_not_exists
call fcn.10057745
pop ecx
jmp 0x10020177
push ecx
mov ecx, esp
push str._setSystemWebJavaEnabled:_open_JavaDeploy_subkey
call fcn.1000155e
push esi
call fcn.100295eb
pop ecx
pop ecx
test eax, eax
je 0x10020238
push 0x10083518
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
xor eax, eax
push ecx
cmp esi, 2
mov ecx, esp
push str._setSystemWebJavaEnabled:_delete_WebDeployJava
cmove esi, eax
call fcn.1000155e
push esi
call fcn.100295eb
pop ecx
pop ecx
test eax, eax
je 0x10020238
push edi
lea eax, [ebp]
push eax
push 0x100835c4
push 0x1008360c
push ebx
call fcn.1001d942
add esp, 0x14
lea ecx, [ebp - 0x10]
mov esi, eax
push 0x10083650
call fcn.1000155e
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, esp
mov byte [ebp - 4], 1
mov dword [edx], ecx
test ecx, ecx
je 0x100201e7
lock inc dword [ecx + 8]
push esi
call fcn.100295eb
push edi
push 0x100836b4
push 0x100836cc
push 0x10083710
push ebx
call fcn.1001d942
add esp, 0x1c
lea ecx, [ebp - 0x10]
mov edi, eax
push str.___Create_HKLM_webjavaswitch_status_enabled
call fcn.100015e9
mov esi, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x10020225
lock inc dword [esi + 8]
push edi
call fcn.100295eb
pop ecx
pop ecx
test esi, esi
je 0x10020238
mov ecx, esi
call fcn.100016f0
lea ecx, [ebp - 0x20]
call fcn.1001ad8c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1003a5a7
add ebp, 0x1004
leave
ret