joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013488
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
movzx eax, word [ebp + 0x1c0]
push esi
mov esi, dword [0x100c12a8]
push edi
push 0xf0
push eax
xor edi, edi
mov dword [ebp - 0x58], ecx
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100135d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100135d5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100135d5
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x100135d4
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x5c], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x1001356e
push 3
lea eax, [ebp + 0xb4]
push esi
lea ecx, [ebp + 0xb0]
mov dword [ebp + 0xb0], eax
call fcn.100135f6
push dword [ebp + 0xb0]
mov eax, dword [ebp - 0x58]
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 + 0xb4]
cmove edi, ecx
cmp dword [ebp + 0xb0], eax
je 0x100135c5
push dword [ebp + 0xb0]
call fcn.100411f4
pop ecx
jmp 0x100135c5
mov ecx, 0x1234
cmp cx, ax
jne 0x100135c5
or dword [ebp - 0x7c], 0xffffffff
lea eax, [ebp - 0x50]
push 3
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x54], eax
call fcn.100135f6
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x78], eax
cmp eax, ecx
je 0x100135a8
push eax
call fcn.100411f4
pop ecx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x58]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x100135d2
add esi, dword [ebp - 0x5c]
test edi, edi
jne 0x100134ef
jmp 0x100135d4
xor edi, edi
pop ebx
mov ecx, dword [ebp + 0x1b4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1003b105
add ebp, 0x1b8
leave
ret 4
Function at 0x10019485
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b5ee8
push 0x1003f150
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x1264
call fcn.1003b1e0
mov eax, dword [0x100be114]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov word [ebp - 0x101c], dx
push eax
push ecx
push 0x1007e63c
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x126c]
push eax
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x100195dc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
push esi
lea eax, [ebp - 0x101c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x100195dc
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003b394
pop ecx
mov edi, eax
mov dword [ebp - 0x1278], edi
test edi, edi
je 0x100195dc
mov dword [ebp - 4], esi
push edi
push ebx
push esi
lea eax, [ebp - 0x101c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100195d0
mov dword [ebp - 0x1270], esi
lea eax, [ebp - 0x1270]
push eax
lea eax, [ebp - 0x1274]
push eax
push str.StringFileInfo040904e4ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100195d0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1274]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100195af
test dx, dx
je 0x100195b4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100195af
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001958b
jmp 0x100195b4
sbb esi, esi
or esi, 1
test esi, esi
jne 0x100195d0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100be114
call fcn.1003f960
add esp, 0xc
xor eax, eax
inc eax
jmp 0x100195de
mov dword [ebp - 4], 0xfffffffe
call fcn.100195fe
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 - 0x1c]
xor ecx, ebp
call fcn.1003b105
leave
ret
Function at 0x1001a084
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push edi
mov edi, dword [ebp + 8]
push 0x105
push eax
push esi
call fcn.1001a4d8
add esp, 0xc
test eax, eax
je 0x1001a0fc
lea eax, [ebp - 0x210]
push eax
push 0
push 0x1007e770
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1001a0fc
push 0
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1001a0fc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.10019e05
pop ecx
pop ecx
jmp 0x1001a0fe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003b105
leave
ret

Function at 0x1001a10c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and eax, 1
ret
Function at 0x1001b633
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x220
mov eax, dword [0x100be114]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x228]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.1001b2cc
mov esi, eax
test esi, esi
jne 0x1001b712
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebp
test eax, eax
jne 0x1001b6ea
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.1001b633
mov esi, eax
test esi, esi
jne 0x1001b712
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x1001b6af
jmp 0x1001b6ec
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x1001b701
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.1001af41
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x1001b723
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003b105
add esp, 0x220
ret 4
Function at 0x1001b977
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x10068e68
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100be114]
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 0x1001ba12
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 0x1001ba12
call fcn.100095ab
mov esi, eax
jmp 0x1001bade
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1001ba2f
call fcn.100095ab
jmp 0x1001bad1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001ba25
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 0x1001ba59
mov esi, 0x8007000e
jmp 0x1001bad3
push 2
push eax
mov byte [ebp - 4], 2
call fcn.1001a64b
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x1001ba79
push eax
lea ecx, [ebp]
call fcn.1001aca5
jmp 0x1001ba8f
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x1001ba8f
cmp dword [ebp], 0
mov dword [ebp - 4], 1
je 0x1001ba52
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 0x1001ba25
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.1001b848
mov esi, eax
test edi, edi
je 0x1001bade
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1001baee
lea ecx, [ebp]
call fcn.1001b05b
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.1003b105
add ebp, 0x408
leave
ret 0x10
Function at 0x1001c145
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x1001c15f
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x1001c16f
push 0xd
pop eax
jmp 0x1001c1b4
push esi
push edi
xor eax, eax
mov edi, edx
mov dword [esp + 0x14], eax
mov esi, eax
push ebp
mov ecx, edi
lea ebp, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x1001c181
sub ecx, ebp
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x1001c17c
pop ebp
push esi
push edx
push 7
xor eax, eax
push eax
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x1001c1b8
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x1001c1c8
push 0xd
pop eax
jmp 0x1001c1fc
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1001c1d1
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [esp + 0x20]
push ebx
push dword [esp + 0x20]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
ret 0xc

Function at 0x1001c502
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001c55c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1001c55c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1001c54c
cmp esi, ecx
jae 0x1001c55c
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1001c53a
cmp esi, ecx
jae 0x1001c55c
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x1001c55e
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1001dc73
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push dword [ebp + 0x18]
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1001dcc9
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp - 4]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x1001dcc8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x1001dd1a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 2
push dword [ebp + 0xc]
xor eax, eax
lea ecx, [ebp - 0xc]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call fcn.1001b2cc
mov edi, eax
test edi, edi
jne 0x1001dd50
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x1001dd5f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x1001fa4a
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x810
mov eax, dword [0x100be114]
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 0x100894d0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001fb61
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 0x1001fb3c
mov eax, ebp
mov ecx, ebp
cmp dword [esp + 0xc], eax
jbe 0x1001fb2c
cmp word [esp + ecx*2 + 0x18], 0x2e
jne 0x1001fabb
inc eax
cmp eax, 1
jg 0x1001fac7
inc ecx
cmp ecx, dword [esp + 0xc]
jb 0x1001faad
cmp eax, 1
jle 0x1001fb2c
push 0x10089528
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
js 0x1001fb2c
lea eax, [esp + 0x18]
push eax
call fcn.1002f7a4
pop ecx
test eax, eax
je 0x1001fb2c
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.1003b394
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push ecx
mov ecx, dword [esp + 0x14]
push 0x10089534
inc ecx
push ecx
push eax
call fcn.10007104
add esp, 0x14
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.1002a3c1
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 0x1001faa3
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.1003b105
add esp, 0x810
ret

Function at 0x1001ff69
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.1003b1e0
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x1000
xor esi, esi
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.1003d660
add esp, 0xc
mov ebx, 0x800
jmp 0x10020028
lea eax, [ebp - 0x1004]
push 0x10087624
push eax
call fcn.1003f2ae
pop ecx
pop ecx
test eax, eax
je 0x1001ffe8
lea eax, [ebp - 0x1004]
push 0x10087650
push eax
call fcn.1004d20a
pop ecx
pop ecx
test eax, eax
je 0x1001ffe8
lea eax, [ebp - 0x1004]
push str.CAFEEFAC_DEC7_0000_0000_ABCDEFFEDCBA
push eax
call fcn.1004d20a
pop ecx
pop ecx
test eax, eax
jne 0x10020019
lea eax, [ebp - 0x1004]
push 0x100876f0
push eax
call fcn.1004d20a
pop ecx
pop ecx
test eax, eax
je 0x10020019
lea eax, [ebp - 0x1004]
push 0x10087740
push eax
call fcn.1004d20a
pop ecx
pop ecx
test eax, eax
je 0x10020019
inc esi
jmp 0x10020028
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp + 8]
call fcn.1001b633
push ebx
lea eax, [ebp - 0x1004]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1001ffa3
lea ecx, [ebp + 8]
call fcn.1001af27
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b105
leave
ret
Function at 0x10020250
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x814
mov eax, dword [0x100be114]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
mov ebx, dword [esp + 0x820]
lea eax, [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x820]
push esi
push edi
xor esi, esi
mov dword [esp + 0x10], ebx
push 0x800
push esi
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.1003d660
add esp, 0xc
lea ecx, [esp + 0x14]
push 0x2001f
push ebx
push dword [ebp]
call fcn.1001b2cc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x100202ee
push 0x400
lea eax, [esp + 0x24]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x100202f7
test edi, edi
je 0x100202da
push edi
call ebx
mov edi, esi
push dword [esp + 0x10]
mov ecx, ebp
call fcn.1001af41
test eax, eax
jne 0x100202f7
xor esi, esi
inc esi
jmp 0x100202f7
xor ecx, ecx
inc ecx
cmp eax, 2
cmove esi, ecx
test edi, edi
je 0x100202fe
push edi
call ebx
mov ecx, dword [esp + 0x820]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003b105
add esp, 0x814
ret
Function at 0x10020319
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003b1e0
push 0xffffffffffffffff
push 0x10069551
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100be114]
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 0x10080ba0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100203d2
push 0x10080bd8
lea ecx, [ebp - 0x10]
call fcn.100127e8
push 0x10080c10
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.1000154d
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.10001683
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100203ae
call fcn.100016dc
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x100203b7
mov edi, dword [esi]
push edi
call fcn.100300e1
pop ecx
test esi, esi
je 0x100204d9
mov ecx, esi
call fcn.100016dc
jmp 0x100204d9
push 0x1000
lea eax, [ebp]
mov dword [ebp - 0x18], 0x800
push edi
push eax
call fcn.1003d660
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0x10080bf4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100204ce
push str._WebJava_value:
lea ecx, [ebp - 0x14]
call fcn.100127e8
lea eax, [ebp]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
call fcn.1000154d
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1002044a
call fcn.100016dc
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10020455
mov eax, dword [esi]
jmp 0x10020457
mov eax, edi
push eax
call fcn.100300e1
pop ecx
lea ecx, [ebp]
mov eax, 0x10080c7c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002048a
test dx, dx
je 0x1002048f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002048a
add eax, 4
add ecx, 4
test dx, dx
jne 0x10020466
jmp 0x1002048f
sbb edi, edi
or edi, 1
test edi, edi
jne 0x100204ae
push str._System_WebJava_DISABLED
call fcn.100300e1
pop ecx
test esi, esi
je 0x100204a9
mov ecx, esi
call fcn.100016dc
xor eax, eax
inc eax
jmp 0x100204db
test esi, esi
je 0x100204ce
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x100204ce
mov ecx, esi
call fcn.10001703
push 0xc
push esi
call fcn.1003b0f2
pop ecx
pop ecx
push str._System_WebJava_ENABLED
call fcn.100300e1
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.1003b105
add ebp, 0x1004
leave
ret
Function at 0x10020568
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003b1e0
push 0xffffffffffffffff
push 0x10069590
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push 0x1000
push eax
mov dword [ebp - 4], eax
lea eax, [ebp]
push eax
call fcn.1003d660
call fcn.1002051f
push edx
push eax
push 0x10080cf4
lea eax, [ebp]
push 0x800
push eax
call fcn.10007104
add esp, 0x20
lea ecx, [ebp - 0x1c]
mov ebx, 0x2001f
push ebx
push 0x10080d00
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001b2cc
mov esi, eax
cmp esi, 2
jne 0x1002060a
push str._setSystemWebJavaEnabled:_OK_regkey_does_not_exists
call fcn.100300e1
pop ecx
jmp 0x10020627
push ecx
mov ecx, esp
push str._setSystemWebJavaEnabled:_open_JavaDeploy_subkey
call fcn.1000154d
push esi
call fcn.10029f24
pop ecx
pop ecx
test eax, eax
je 0x100206f0
push 0x10080e04
push dword [ebp - 0x1c]
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.1000154d
push esi
call fcn.10029f24
pop ecx
pop ecx
test eax, eax
je 0x100206f0
push ebx
lea eax, [ebp]
push eax
push 0x10080e80
push 0x10080ebc
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001db66
add esp, 0x14
lea ecx, [ebp - 0x10]
mov esi, eax
push 0x10080f00
call fcn.1000154d
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, esp
mov byte [ebp - 4], 1
mov dword [edx], ecx
test ecx, ecx
je 0x1002069b
lock inc dword [ecx + 8]
push esi
call fcn.10029f24
push ebx
push 0x10080ef4
push 0x10080f58
push 0x10080f90
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001db66
add esp, 0x1c
lea ecx, [ebp - 0x10]
mov ebx, eax
push str.___Create_HKLM_webjavaswitch_status_enabled
call fcn.100015d8
mov esi, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x100206dd
lock inc dword [esi + 8]
push ebx
call fcn.10029f24
pop ecx
pop ecx
test esi, esi
je 0x100206f0
mov ecx, esi
call fcn.100016dc
cmp dword [ebp - 0x1c], 0
je 0x100206ff
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1003b105
add ebp, 0x1004
leave
ret