joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027f84
Capabilities:
Get file version info

Disassembly:
push 0x24
mov eax, 0x100bacf6
call fcn.100587f7
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call sub.version.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x100280df
call dword [sym.imp.kernel32.dll_GetLastError]
push str.GetFileVersion_for__
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.1000d9ae
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.10001727
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.1000187c
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x10027fea
call fcn.10001b26
push str.__FAILED
lea ecx, [ebp - 0x14]
call fcn.1000d9ae
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
call fcn.1000187c
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x10028016
call fcn.10001b26
lea ecx, [ebp - 0x14]
cmp esi, 2
jne 0x1002802e
push str.__file_does_not_exist_
call fcn.1000d9ae
mov byte [ebp - 4], 3
jmp 0x100280a8
push 0x100d66a8
call fcn.1000d9ae
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x10]
call fcn.1000187c
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10028054
call fcn.10001b26
push 0x13
pop eax
mov word [ebp - 0x30], ax
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x14]
call fcn.1001d68c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.1000187c
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1002808a
call fcn.10001b26
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x30]
mov byte [ebp - 4], bl
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x100d66c0
lea ecx, [ebp - 0x14]
call fcn.1000d9ae
mov byte [ebp - 4], 7
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000187c
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100280c0
call fcn.10001b26
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x100280c9
mov ebx, dword [esi]
push ebx
call fcn.100754f1
pop ecx
test esi, esi
je 0x100280db
mov ecx, esi
call fcn.10001b26
xor eax, eax
jmp 0x10028128
push esi
call fcn.100754f1
pop ecx
mov edi, eax
push edi
push esi
push 0
push dword [ebp + 8]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x10028125
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x100d66e4
push edi
call sub.version.dll_VerQueryValueW
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
movzx eax, word [edx + 0xa]
mov dword [ecx], eax
movzx eax, word [edx + 8]
mov dword [ecx + 4], eax
movzx eax, word [edx + 0xe]
mov dword [ecx + 8], eax
xor eax, eax
inc eax
call fcn.100587c0
ret
Function at 0x100281de
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100588e0
push 0xffffffffffffffff
push 0x100bad19
mov eax, dword fs:[0]
push eax
sub esp, 0x20
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 esi, dword [ebp + 0x100c]
xor eax, eax
mov ebx, dword [ebp + 0x1018]
push 0x1000
push eax
lea eax, [ebp]
push eax
call fcn.1005c640
add esp, 0xc
mov dword [ebp - 0x14], 0x800
mov edi, 0x20019
test ebx, ebx
je 0x1002825e
xor edx, edx
mov eax, pe_nt_image_headers32
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 0x10028282
push 0x100d41dc
jmp 0x1002829e
push str.SOFTWAREJavaSoftJRE
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100754f1
test eax, eax
je 0x100282bb
push edi
push 0x100d4278
lea ecx, [ebp - 0x20]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100754f1
test eax, eax
je 0x100282bb
lea ecx, [ebp - 0x20]
call fcn.10017ea6
xor eax, eax
jmp 0x100283e7
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 0x10028372
cmp dword [ebp + 0x1014], 0
je 0x1002831b
lea eax, [ebp]
push ebx
push eax
call fcn.10028e69
pop ecx
pop ecx
test eax, eax
je 0x100282fe
lea eax, [ebp]
push ebx
push eax
call fcn.10029278
pop ecx
pop ecx
test eax, eax
jne 0x1002831b
push 0x100d42d0
call fcn.100754f1
lea eax, [ebp]
push eax
call fcn.100754f1
pop ecx
xor eax, eax
pop ecx
mov word [ebp], ax
jmp 0x1002831f
mov ax, word [ebp]
test ax, ax
je 0x10028352
cmp dword [ebp - 0x10], 0
je 0x1002833a
lea eax, [ebp]
push esi
push eax
call fcn.100754f1
pop ecx
pop ecx
test eax, eax
jle 0x10028352
lea eax, [ebp]
push eax
push 0x100d4310
push dword [ebp + 0x1010]
push esi
call fcn.1000a8d4
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 0x100282d5
cmp dword [ebp + 0x1014], 0
je 0x10028395
push str.Latest_deploy_version:
jmp 0x1002839a
push str.Latest_JRE_version:
call fcn.100754f1
pop ecx
push esi
call fcn.100754f1
pop ecx
test edi, edi
je 0x100283b3
cmp edi, 0x103
jne 0x100283b8
xor edx, edx
inc edx
jmp 0x100283bb
mov edx, dword [ebp - 0x24]
lea ecx, [esi + 2]
xor edi, edi
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x100283c0
sub esi, ecx
lea ecx, [ebp - 0x20]
sar esi, 1
push 0
pop esi
cmovne esi, edx
call fcn.10017ea6
lea ecx, [ebp - 0x20]
call fcn.10017ea6
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.100587af
add ebp, 0x1004
leave
ret
Function at 0x10029d7b
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100588e0
push 0xffffffffffffffff
push 0x100bb1c3
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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
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.1005c640
call fcn.100754f1
push edx
push eax
push 0x100d5d6c
lea eax, [ebp]
push 0x800
push eax
call fcn.1000a8d4
add esp, 0x20
lea ecx, [ebp - 0x20]
mov edi, 0x2001f
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push edi
push 0x100d5d84
push ebx
call fcn.100754f1
mov esi, eax
cmp esi, 2
jne 0x10029e1f
push str._setSystemWebJavaEnabled:_OK_regkey_does_not_exists
call fcn.100754f1
pop ecx
jmp 0x10029e3c
push ecx
mov ecx, esp
push str._setSystemWebJavaEnabled:_open_JavaDeploy_subkey
call fcn.10001727
push esi
call fcn.1001d0b0
pop ecx
pop ecx
test eax, eax
je 0x10029efd
push 0x100d5ec8
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.10001727
push esi
call fcn.1001d0b0
pop ecx
pop ecx
test eax, eax
je 0x10029efd
push edi
lea eax, [ebp]
push eax
push 0x100d5f74
push 0x100d5fbc
push ebx
call fcn.1001df48
add esp, 0x14
lea ecx, [ebp - 0x10]
mov esi, eax
push 0x100d6000
call fcn.10001727
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, esp
mov byte [ebp - 4], 1
mov dword [edx], ecx
test ecx, ecx
je 0x10029eac
lock inc dword [ecx + 8]
push esi
call fcn.1001d0b0
push edi
push 0x100d6064
push 0x100d607c
push 0x100d60c0
push ebx
call fcn.1001df48
add esp, 0x1c
lea ecx, [ebp - 0x10]
mov edi, eax
push str.___Create_HKLM_webjavaswitch_status_enabled
call fcn.100017c2
mov esi, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x10029eea
lock inc dword [esi + 8]
push edi
call fcn.1001d0b0
pop ecx
pop ecx
test esi, esi
je 0x10029efd
mov ecx, esi
call fcn.10001b26
lea ecx, [ebp - 0x20]
call fcn.10017ea6
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
Function at 0x1002b204
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
mov eax, 0x225c
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x2258], eax
push ebx
mov ebx, dword [esp + 0x2264]
lea eax, [esp + 0x25c]
push ebp
push esi
push edi
mov esi, 0x1000
xor edi, edi
push esi
push edi
push eax
mov dword [esp + 0x1c], edi
call fcn.1005c640
push esi
lea eax, [esp + 0x1278]
push edi
push eax
call fcn.1005c640
mov eax, 0x800
push str.SOFTWAREMozillaMozilla_Firefox
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x288]
push eax
call fcn.100754f1
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 0x34]
add esp, 0x24
push eax
lea eax, [esp + 0x26c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x1002b2bb
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x126c]
push eax
push edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x100daca4
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
test eax, eax
je 0x1002b2d6
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x2268]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100587af
add esp, 0x225c
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [esp + 0x1268]
push eax
lea eax, [esp + 0x26c]
push 0x100dacc8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x26c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x1002b2bb
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
push ebx
xor ebp, ebp
push ebp
push ebp
push 0x100dac3c
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
test eax, eax
je 0x1002b340
call esi
jmp 0x1002b2bb
call esi
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x1002b347
sub ecx, edx
sar ecx, 1
cmp word [ebx + ecx*2 - 2], 0x5c
je 0x1002b374
lea edi, [ebx - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bp
jne 0x1002b361
mov eax, dword [0x100dacc4]
mov dword [edi], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x1002b377
push 5
pop ecx
mov esi, str.extensions
lea eax, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push eax
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x1002b3b1
push ebp
push ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x1002b3c3
jmp 0x1002b2bb
push eax
call dword [sym.imp.kernel32.dll_FindClose]
test byte [esp + 0x18], 0x10
je 0x1002b2bb
xor eax, eax
inc eax
jmp 0x1002b2bd
Function at 0x1002c0f1
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x1074
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x1070], eax
push esi
mov esi, dword [esp + 0x107c]
push edi
mov edi, dword [esp + 0x1084]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
push 0
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push 0x58
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call esi
push 0x5a
push dword [esp + 0x1c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
call esi
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x100c4ef4]
push 1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm0, dword [0x100c4f18]
cvttss2si eax, xmm0
mov dword [esp + 0xc], eax
imul eax, dword [esp + 0x108c], 0xa
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
divss xmm0, dword [0x100c4f18]
cvttss2si eax, xmm0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DPtoLP]
movd xmm0, dword [esp + 0xc]
mov ecx, 0x800
cvtdq2pd xmm0, xmm0
push ecx
andps xmm0, xmmword [0x100c4f30]
divsd xmm0, qword [0x100c4f00]
addsd xmm0, qword [0x100c4ef8]
cvttsd2si eax, xmm0
neg eax
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x1090], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
setne byte [esp + 0x35]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x34], al
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x1094]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x7c]
push eax
push 0x1002
push ecx
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 5
lea eax, [esp + 0x7c]
push 0x100dc868
push eax
call fcn.100754f1
test eax, eax
mov ecx, 0x100dc874
lea eax, [esp + 0x44]
cmovne ecx, edi
push ecx
push 0x20
push eax
call fcn.100754f1
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [esp + 0x1078]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.100587af
add esp, 0x1074
ret 0x14
Function at 0x100308cc
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x1074
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x1070], eax
push esi
mov esi, dword [esp + 0x107c]
push edi
mov edi, dword [esp + 0x1084]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
push 0
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push 0x58
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call esi
push 0x5a
push dword [esp + 0x1c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
call esi
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x100c4ef4]
push 1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm0, dword [0x100c4f18]
cvttss2si eax, xmm0
mov dword [esp + 0xc], eax
imul eax, dword [esp + 0x108c], 0xa
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
divss xmm0, dword [0x100c4f18]
cvttss2si eax, xmm0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DPtoLP]
movd xmm0, dword [esp + 0xc]
mov ecx, 0x800
cvtdq2pd xmm0, xmm0
push ecx
andps xmm0, xmmword [0x100c4f30]
divsd xmm0, qword [0x100c4f00]
addsd xmm0, qword [0x100c4ef8]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
neg eax
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x1090], eax
mov byte [esp + 0x34], al
mov dword [esp + 0x36], eax
setne byte [esp + 0x35]
mov word [esp + 0x3a], ax
lea eax, [esp + 0x7c]
push eax
push 0x1002
push ecx
movups xmmword [esp + 0x30], xmm0
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 5
push str.Japan
lea eax, [esp + 0x80]
push eax
call fcn.100754f1
test eax, eax
mov ecx, 0x100e4560
lea eax, [esp + 0x44]
cmovne ecx, edi
push ecx
push 0x20
push eax
call fcn.100754f1
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [esp + 0x1078]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.100587af
add esp, 0x1074
ret 0x10
Function at 0x10030ed9
Capabilities:
Parse url

Disassembly:
mov eax, 0x4040
call fcn.100588e0
mov eax, dword [0x1011ca44]
xor eax, esp
mov dword [esp + 0x403c], eax
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
push esi
push edi
xor eax, eax
push 0xd7
push dword [ebx + 4]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x74], eax
call ebp
push dword [ebx + 0x28]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
push 0x3c
pop esi
push esi
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1005c640
mov ecx, 0x800
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x2058]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ecx
add esp, 0xc
mov ecx, dword [ebx + 0x2c]
xor esi, esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x104c]
mov dword [esp + 0x20], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10030f66
lea eax, [esp + 0x10]
sub ecx, edx
push eax
push esi
sar ecx, 1
push ecx
push dword [ebx + 0x2c]
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
lea eax, [esp + 0x104c]
push eax
lea eax, [esp + 0x2050]
push eax
push str._s:___s
lea eax, [esp + 0x3058]
push 0x800
push eax
call fcn.100754f1
add esp, 0x14
push 0xd2
push dword [ebx + 4]
call ebp
lea ecx, [esp + 0x304c]
push ecx
push eax
call edi
push 0xd0
push dword [ebx + 4]
call ebp
push dword [ebx + 0x30]
mov esi, eax
lea eax, [esp + 0x50]
push 0x800
push eax
call fcn.100754f1
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push esi
call edi
push 0xd3
push dword [ebx + 4]
call ebp
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov esi, eax
push 0x800
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x40]
push dword [0x1011fbe4]
call edi
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xd4
push dword [ebx + 4]
call ebp
push 0x800
mov esi, eax
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x44]
push dword [0x1011fbe4]
call edi
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xd5
push dword [ebx + 4]
call ebp
mov esi, eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x100
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xcb
push dword [ebx + 4]
call ebp
push 0x800
mov esi, eax
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x38]
push dword [0x1011fbe4]
call edi
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xcc
push dword [ebx + 4]
call ebp
push 0x800
mov esi, eax
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x3c]
push dword [0x1011fbe4]
call edi
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x404c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
inc eax
call fcn.100587af
add esp, 0x4040
ret 0x10
Function at 0x10031f70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100588e0
push 0xffffffffffffffff
push 0x100bbc49
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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
push 8
call fcn.100754f1
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
je 0x10031fd5
push ebx
push ebx
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.10031c7a
mov dword [edi], eax
jmp 0x10031fd7
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
call fcn.10031e2d
pop ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
push 0x20019
push ebx
push 0x100e7ab8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x10032142
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp]
push eax
push ebx
jmp 0x10032121
cmp dword [ebp - 0x10], 0
mov eax, ebx
mov ecx, ebx
jbe 0x1003210d
cmp word [ebp + ecx*2], 0x2e
jne 0x10032042
inc eax
cmp eax, 1
jg 0x10032051
inc ecx
cmp ecx, dword [ebp - 0x10]
jb 0x10032034
cmp eax, 1
jle 0x1003210d
lea eax, [ebp]
push 0x100e79ec
push eax
call fcn.100754f1
pop ecx
pop ecx
test eax, eax
js 0x1003210d
lea eax, [ebp]
push eax
call fcn.10039f71
pop ecx
test al, al
je 0x1003210d
push 0x10
call fcn.100754f1
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x1003209c
push ebx
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.1003187a
mov ebx, eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1002cf87
test al, al
je 0x1003210b
lea ecx, [ebp - 0x1c]
call fcn.10001bd4
test eax, eax
je 0x10032101
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x100320c2
mov ecx, dword [ecx]
jmp 0x100320c4
xor ecx, ecx
test esi, esi
je 0x100320cc
mov eax, dword [esi]
jmp 0x100320ce
xor eax, eax
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100320f4
test dx, dx
je 0x100320f0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100320f4
add eax, 4
add ecx, 4
test dx, dx
jne 0x100320ce
xor eax, eax
jmp 0x100320f9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10032101
mov byte [ebx + 0xc], 1
push ebx
push dword [edi]
mov ecx, edi
call fcn.100317ab
xor ebx, ebx
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
push ecx
lea ecx, [ebp]
inc eax
push ecx
mov dword [ebp - 0x18], eax
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10032026
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1003214d
mov ecx, esi
call fcn.10001b26
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