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

Disassembly:
mov eax, 0x3844
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x3840], eax
cmp dword [0x1011f344], 0
je 0x100166a6
push ebx
push ebp
push edi
mov ebx, 0x1000
lea eax, [esp + 0x184c]
push ebx
xor ebp, ebp
push ebp
push eax
call fcn.1005c640
push ebx
lea eax, [esp + 0x285c]
push ebp
push eax
call fcn.1005c640
mov ebx, 0x800
lea eax, [esp + 0x64]
push ebx
push ebp
push eax
call fcn.1005c640
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 0x100c6da0
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x100166a3
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 0x100c6df8
push dword [esp + 0x2c]
call ebx
mov esi, eax
lea eax, [esp + 0x1850]
push eax
push 0x100c6e18
push 0x100c6e70
lea eax, [esp + 0x285c]
push 0x1000
push eax
call fcn.100aadfa
add esp, 0x14
test esi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x1001669c
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 0x1001669c
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 0x100c6e7c
push dword [esp + 0x30]
call ebx
test eax, eax
jne 0x1001669c
mov ebx, 0x1000
lea eax, [esp + 0x850]
push ebx
push ebp
push eax
call fcn.1005c640
lea eax, [esp + 0x5c]
push eax
push str._slib_bundles
lea eax, [esp + 0x864]
push ebx
push eax
call fcn.100aadfa
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x870]
push eax
call fcn.100aadfa
add esp, 0x24
test eax, eax
jne 0x10016696
push str._requested.list
lea eax, [esp + 0x854]
mov dword [esp + 0x18], ebp
push edi
push eax
call fcn.100aadfa
push 0x100c6ed0
lea eax, [esp + 0x860]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.100aadfa
add esp, 0x18
test eax, eax
jne 0x10016696
mov edx, dword [0x1011f344]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x1001666e
push dword [esp + 0x14]
sub ecx, edi
sar ecx, 1
push ecx
push 2
push edx
call fcn.100aadfa
push dword [esp + 0x24]
call fcn.1007cbc1
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.100587af
add esp, 0x3844
ret
Function at 0x100186b6
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1011ca44]
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.100aadfa
mov esi, eax
test esi, esi
jne 0x10018765
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 0x10018740
lea eax, [esp + 0x28]
push eax
call fcn.100186b6
mov esi, eax
test esi, esi
jne 0x10018765
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], pe_nt_image_headers32
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x1001871b
call fcn.10017ea6
push ebx
mov ecx, edi
call fcn.10017f3e
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.10017ea6
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100587af
add esp, 0x21c
ret 4
Function at 0x100189c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x100b9631
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1011ca44]
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 0x10018a5f
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 0x10018a5f
call fcn.10004ae6
mov esi, eax
jmp 0x10018b2b
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10018a7c
call fcn.10004ae6
jmp 0x10018b1e
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10018a72
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 0x10018aa6
mov esi, 0x8007000e
jmp 0x10018b20
push 2
push eax
mov byte [ebp - 4], 2
call fcn.100aadfa
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x10018ac6
push eax
lea ecx, [ebp]
call fcn.10017c6e
jmp 0x10018adc
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x10018adc
cmp dword [ebp], 0
mov dword [ebp - 4], 1
je 0x10018a9f
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 0x10018a72
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.10018894
mov esi, eax
test edi, edi
je 0x10018b2b
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x10018b3b
lea ecx, [ebp]
call fcn.100180ad
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.100587af
add ebp, 0x408
leave
ret 0x10
Function at 0x1001e139
Capabilities:
Delete registry value

Disassembly:
push 0x28
mov eax, 0x100b9c33
call fcn.100587f7
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov edi, 0x20019
mov byte [ebp - 4], 1
push edi
push 0x100d37f8
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
push ebx
call fcn.100aadfa
test eax, eax
jne 0x1001e23a
push edi
push 0x100d380c
push dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
call fcn.100aadfa
test eax, eax
jne 0x1001e22a
lea eax, [ebp - 0x1c]
push 0x100d3820
push eax
call fcn.1001e307
pop ecx
pop ecx
test eax, eax
je 0x1001e20b
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
push 0x20006
push 0x100d3878
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.100aadfa
test eax, eax
je 0x1001e1de
push str.DeleteEmptyDeploymentKeysInHLKM:_failed_to_open_JRE_key
call fcn.100aadfa
jmp 0x1001e202
push 0x100d3940
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ecx
mov ecx, esp
mov esi, eax
push str.DeleteEmptyDeploymentKeysInHLKM:_Remove_BrowserJavaVersion_value
call fcn.10001727
push esi
call fcn.1001d0b0
pop ecx
pop ecx
lea ecx, [ebp - 0x34]
call fcn.10017ea6
lea eax, [ebp - 0x1c]
push str.Java_Web_Start
push eax
call fcn.1001e307
lea eax, [ebp - 0x1c]
push str.Java_Web_Start_Caps
push eax
call fcn.1001e307
add esp, 0x10
lea eax, [ebp - 0x28]
push 0x100d3864
push eax
call fcn.1001e307
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.10017ea6
lea ecx, [ebp - 0x28]
call fcn.10017ea6
call fcn.100587c0
ret

Function at 0x1001e250
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x804
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x800], eax
push ebp
push esi
mov ebp, 0x800
lea eax, [esp + 8]
push ebp
push 0
push eax
call fcn.1005c640
add esp, 0xc
lea eax, [esp + 8]
xor esi, esi
push 0x400
push eax
push esi
jmp 0x1001e2d3
push 0xa
lea eax, [esp + 0xc]
push str.JavaPlugin
push eax
call fcn.100aadfa
add esp, 0xc
test eax, eax
jne 0x1001e2b7
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x814]
call fcn.100186b6
test eax, eax
je 0x1001e2b8
inc esi
push ebp
lea eax, [esp + 0xc]
push 0
push eax
call fcn.1005c640
add esp, 0xc
lea eax, [esp + 8]
push 0x400
push eax
push esi
push dword [esp + 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1001e28a
lea ecx, [esp + 0x810]
call fcn.10017ea6
mov ecx, dword [esp + 0x808]
pop esi
pop ebp
xor ecx, esp
call fcn.100587af
add esp, 0x804
ret
Function at 0x1001e307
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x1011ca44]
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.1005c640
add esp, 0xc
lea ecx, [ebp - 0x80]
push 0x2001f
push ebx
push dword [edi]
call fcn.100aadfa
test eax, eax
jne 0x1001e390
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 0x1001e399
lea ecx, [ebp - 0x80]
call fcn.10017ea6
push ebx
mov ecx, edi
call fcn.10017f3e
test eax, eax
jne 0x1001e399
inc esi
jmp 0x1001e399
xor ecx, ecx
inc ecx
cmp eax, 2
cmove esi, ecx
lea ecx, [ebp - 0x80]
call fcn.10017ea6
mov ecx, dword [ebp + 0x78c]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100587af
add ebp, 0x790
leave
ret
Function at 0x1001e4b6
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0x64
mov eax, 0x100b9c86
call fcn.100587f7
lea eax, [ebp - 0x1c]
push eax
call fcn.100aadfa
pop ecx
mov esi, dword [ebp - 0x1c]
and dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1001e4de
lock inc dword [esi + 8]
push 0x100d0a14
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10001727
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1001e50f
call fcn.10001b26
push 0x100d0a2c
lea ecx, [ebp - 0x10]
call fcn.10001727
push 0x100d0a30
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.10001727
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x10]
call fcn.1000187c
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1001e54d
call fcn.10001b26
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000187c
push 0x100d0a34
lea ecx, [ebp - 0x18]
call fcn.10001727
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x10]
call fcn.1000187c
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1001e586
call fcn.10001b26
push 0x100d0a38
lea ecx, [ebp - 0x18]
call fcn.10001727
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x10]
call fcn.1000187c
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1001e5af
call fcn.10001b26
push 0x44
pop edi
push edi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.1005c640
mov dword [ebp - 0x70], edi
xor eax, eax
lea edi, [ebp - 0x2c]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test esi, esi
je 0x1001e5d5
mov ecx, dword [esi]
jmp 0x1001e5d7
xor ecx, ecx
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x1001e5e2
mov edx, dword [edi]
jmp 0x1001e5e4
xor edx, edx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1001e5ef
mov eax, dword [eax]
jmp 0x1001e5f1
xor eax, eax
lea ebx, [ebp - 0x2c]
push ebx
lea ebx, [ebp - 0x70]
push ebx
push ecx
xor ecx, ecx
push ecx
push 0x8000000
push ecx
push ecx
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x1001e646
push 0x2bf20
push dword [ebp - 0x2c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1001e636
push 1
push dword [ebp - 0x2c]
call dword [sym.imp.kernel32.dll_TerminateProcess]
call fcn.1002993e
push dword [ebp - 0x28]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
push dword [ebp - 0x2c]
call ebx
test edi, edi
je 0x1001e651
mov ecx, edi
call fcn.10001b26
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1001e65f
mov ecx, eax
call fcn.10001b26
test esi, esi
je 0x1001e66a
mov ecx, esi
call fcn.10001b26
call fcn.100587c0
ret
Function at 0x1001f021
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100588e0
push 0xffffffffffffffff
push 0x100b9d90
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1011ca44]
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 edi, dword [ebp + 0x100c]
lea eax, [ebp]
xor ebx, ebx
mov dword [ebp - 0x2c], edi
push 0x1000
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
call fcn.1005c640
add esp, 0xc
mov ecx, edi
push 0x100d0396
call fcn.1000d9ae
xor eax, eax
mov dword [ebp - 0x24], ebx
inc eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], ebx
push str.GetLatestJavawsVersion__:
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x800
call fcn.100aadfa
pop ecx
cmp dword [ebp + 0x1010], ebx
je 0x1001f0c5
mov esi, 0x20219
push str.___checking_32_bit
jmp 0x1001f0cf
mov esi, 0x20119
push str.___checking_64_bit
call fcn.100aadfa
pop ecx
push esi
push str.SOFTWAREJavaSoftJava_Web_Start
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
call fcn.100aadfa
test eax, eax
je 0x1001f12c
push str.___failed_to_open_SOFTWAREJavaSoftJava_Web_Start
call fcn.100aadfa
pop ecx
lea ecx, [ebp - 0x24]
call fcn.10017ea6
lea ecx, [ebp - 0x24]
call fcn.10017ea6
mov eax, edi
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.100587af
add ebp, 0x1004
leave
ret
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1001f0f7
push str.___Processing_key:
lea ecx, [ebp - 0x14]
call fcn.1000d9ae
lea eax, [ebp]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
call fcn.10001727
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x1001f18d
call fcn.10001b26
and dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001f198
mov eax, dword [esi]
jmp 0x1001f19a
xor eax, eax
push eax
call fcn.100aadfa
lea eax, [ebp + 0x1010]
push eax
lea eax, [ebp]
push eax
call fcn.10029278
add esp, 0xc
test eax, eax
jne 0x1001f1ea
lea eax, [ebp + 0x1010]
push eax
lea eax, [ebp]
push eax
call fcn.10028e69
pop ecx
pop ecx
test eax, eax
jne 0x1001f1ea
push str.Ignore_invalid_deploy_version:
call fcn.100aadfa
lea eax, [ebp]
push eax
call fcn.100aadfa
pop ecx
xor eax, eax
pop ecx
mov word [ebp], ax
jmp 0x1001f211
mov eax, dword [edi]
test eax, eax
je 0x1001f1f4
mov eax, dword [eax]
jmp 0x1001f1f6
xor eax, eax
push eax
lea eax, [ebp]
push eax
call fcn.100aadfa
pop ecx
pop ecx
test eax, eax
jle 0x1001f211
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.100017c2
inc ebx
mov dword [ebp - 0x18], 0x800
mov byte [ebp - 4], 1
test esi, esi
je 0x1001f12c
mov ecx, esi
call fcn.10001b26
and dword [ebp - 0x14], 0
jmp 0x1001f12c
Function at 0x1001f3a4
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x100b9e47
call fcn.100587f7
mov esi, dword [ebp + 8]
xor eax, eax
mov word [esi], ax
call fcn.100344b2
test eax, eax
je 0x1001f3ef
call fcn.100aadfa
test eax, eax
je 0x1001f3e1
call fcn.100aadfa
test eax, eax
je 0x1001f3e1
push 0x800
push esi
call dword [sym.imp.kernel32.dll_GetSystemWow64DirectoryW]
jmp 0x1001f3fb
push 0x800
push esi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
jmp 0x1001f3fb
push 0x800
push esi
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
push str.__get_system_dir__
lea ecx, [ebp + 8]
mov edi, eax
call fcn.1000d9ae
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push esi
call fcn.10001727
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1001f437
call fcn.10001b26
push 0x100d6e20
lea ecx, [ebp - 0x10]
call fcn.1000d9ae
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 8]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1001f464
call fcn.10001b26
mov esi, dword [ebp + 8]
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x1001f474
lock inc dword [esi + 8]
test edi, edi
setne al
movzx eax, al
push eax
call fcn.1001d319
pop ecx
pop ecx
test esi, esi
je 0x1001f48f
mov ecx, esi
call fcn.10001b26
mov eax, edi
call fcn.100587c0
ret
Function at 0x1001f79f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100588e0
push 0xffffffffffffffff
push 0x100b9f05
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1011ca44]
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 0x100d5968
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001f858
push str._Cannot_open_registry_key
lea ecx, [ebp - 0x14]
call fcn.1000d9ae
push 0x100d59e0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.10001727
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1001f834
call fcn.10001b26
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001f83d
mov edi, dword [esi]
push edi
call fcn.100aadfa
pop ecx
test esi, esi
je 0x1001f94a
mov ecx, esi
call fcn.10001b26
jmp 0x1001f94a
push 0x1000
lea eax, [ebp]
mov dword [ebp - 0x18], 0x800
push edi
push eax
call fcn.1005c640
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0x100d5a50
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001f93f
push str._WebJava_value:
lea ecx, [ebp - 0x10]
call fcn.1000d9ae
lea eax, [ebp]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.10001727
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10]
call fcn.1000187c
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1001f8d0
call fcn.10001b26
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1001f8db
mov eax, dword [esi]
jmp 0x1001f8dd
mov eax, edi
push eax
call fcn.100aadfa
pop ecx
lea ecx, [ebp]
mov eax, 0x100d5aa4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001f910
test dx, dx
je 0x1001f915
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001f910
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001f8ec
jmp 0x1001f915
sbb edi, edi
or edi, 1
test edi, edi
jne 0x1001f934
push str._System_WebJava_DISABLED
call fcn.100aadfa
pop ecx
test esi, esi
je 0x1001f92f
mov ecx, esi
call fcn.10001b26
xor eax, eax
inc eax
jmp 0x1001f94c
test esi, esi
je 0x1001f93f
mov ecx, esi
call fcn.10001b26
push str._System_WebJava_ENABLED
call fcn.100aadfa
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.100587af
add ebp, 0x1004
leave
ret
Function at 0x10022dcc
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xa4
or dword [esp + 4], 0xffffffff
push ebx
mov ebx, dword [esp + 0xac]
test ebx, ebx
jne 0x10022deb
or eax, 0xffffffff
jmp 0x10022f56
call fcn.10033ab7
push 0x10
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
pop edx
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x10022dfb
push ebp
push esi
push edi
xor esi, esi
call fcn.10034516
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x10022ec4
push str.RunAsDesktopUser___OnVistaOrLater__use_CreateProcessWithTokenW
call fcn.100aadfa
mov dword [esp], str.AdvAPI32.dll
call fcn.100aadfa
mov esi, eax
pop ecx
test esi, esi
jne 0x10022e40
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_load_advapi32.dll
jmp 0x10022e59
push str.CreateProcessWithTokenW
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x10022e68
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_GetProcAddress
call fcn.100aadfa
mov ebx, dword [esp + 0x14]
pop ecx
jmp 0x10022f45
push str.RunAsDesktopUser___calling__CreateProcessWithTokenW
call fcn.100aadfa
pop ecx
push 0x44
pop ebp
mov ecx, ebp
lea eax, [esp + 0x70]
xor edx, edx
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x10022e7e
lea eax, [esp + 0x18]
mov dword [esp + 0x70], ebp
push eax
lea eax, [esp + 0x74]
push eax
push edx
push edx
push edx
push dword [esp + 0xd0]
push ebx
mov ebx, dword [esp + 0x2c]
push edx
push ebx
call dword [esp + 0x4c]
test eax, eax
jne 0x10022ebd
push str.RunAsDesktopUser:_CreateProcessWithTokenW_failed.
call fcn.100aadfa
pop ecx
jmp 0x10022f45
cmp dword [esp + 0x18], 0
jmp 0x10022f22
push str.RunAsDesktopUser___OnWinXP__use_CreateProcessAsUser
call fcn.100aadfa
push 0x44
pop ebp
push ebp
lea eax, [esp + 0x34]
push 0
push eax
call fcn.1005c640
add esp, 0x10
mov dword [esp + 0x2c], ebp
lea eax, [esp + 0x18]
mov dword [esp + 0x34], str.winsta0default
push eax
lea eax, [esp + 0x30]
push eax
xor eax, eax
push eax
push eax
push 0x30
push eax
push eax
push eax
push dword [esp + 0xdc]
push ebx
mov ebx, dword [esp + 0x38]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x10022f1e
push 0x100d7c88
jmp 0x10022eb2
cmp dword [esp + 0x18], esi
je 0x10022f45
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [esp + 0x18]
call edi
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
push ebx
call edi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret