joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000cd63
pop dword [ebp - 0x2c]
mov eax, 0x1000cd63
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3868f
push 0
mov eax, 0xca47eee7
sub eax, 0xba46ae83
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x1a8a6688
sub ecx, 0x1a8a20ee
mov esi, eax
mov edi, 0x3cffed29
add edi, 0xd30198d7
add edi, dword [ebp - 0x2c]
mov ebx, 0xd4c1df35
sub ebx, 0xab15085b
sub dword [ebp - 8], edx
mov edx, dword [edi]
xor edx, ebx
add dword [ebp - 0x14], 0xb6d6fbd2
mov dword [esi], edx
add dword [ebp - 0x24], edx
add esi, 0x42b4cf74
sub esi, 0x42b4cf70
add edi, 0x2fdc2a46
add edi, 0xd023d5be
loop 0x1000cdbd
add eax, 0x453e58f
sub eax, 0x452dc54
xor ebx, ebx
add ebx, eax
add eax, 0x9f4bee3f
add eax, 0x60b411c6
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40576a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412d04]
jne 0x405774
repz ret
jmp fcn.00408802

Function at 0x40aa4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405868
and dword [ebp - 4], 0
cmp dword [0x414348], 0
mov ebx, eax
jne 0x40aafd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40abae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40abae
push eax
call fcn.004057f6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414348], eax
call esi
push eax
call fcn.004057f6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41434c], eax
call esi
push eax
call fcn.004057f6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x414350], eax
call esi
push eax
call fcn.004057f6
pop ecx
mov dword [0x414358], eax
test eax, eax
je 0x40aafd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004057f6
pop ecx
mov dword [0x414354], eax
mov eax, dword [0x414354]
cmp eax, ebx
je 0x40ab55
cmp dword [0x414358], ebx
je 0x40ab55
push eax
call fcn.00405871
push dword [0x414358]
mov esi, eax
call fcn.00405871
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ab55
test edi, edi
je 0x40ab55
call esi
test eax, eax
je 0x40ab4c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ab4c
test byte [ebp - 0xc], 1
jne 0x40ab55
or dword [ebp + 0x10], 0x200000
jmp 0x40ab8e
mov eax, dword [0x41434c]
cmp eax, ebx
je 0x40ab8e
push eax
call fcn.00405871
pop ecx
test eax, eax
je 0x40ab8e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ab8e
mov eax, dword [0x414350]
cmp eax, ebx
je 0x40ab8e
push eax
call fcn.00405871
pop ecx
test eax, eax
je 0x40ab8e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414348]
call fcn.00405871
pop ecx
test eax, eax
je 0x40abae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40abb0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433f6c
Capabilities:
Identify system language via api

Disassembly:
push 4
mov eax, 0x467308
call fcn.00452564
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.kernel32.dll_GetThreadLocale]
push eax
mov eax, esi
call fcn.0043614f
pop ecx
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
mov eax, esi
call fcn.0043614f
pop ecx
call dword [sym.imp.kernel32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
mov eax, esi
call fcn.0043614f
mov eax, esi
mov dword [esp], 0x409
call fcn.0043614f
pop ecx
mov eax, esi
call fcn.0045263c
ret

Function at 0x43614f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x43615e
pop dword [ebp - 0x34]
mov eax, 0x43615e
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x49680
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x2b24e647
sub ecx, 0x2b24a130
xor esi, esi
add esi, eax
mov edi, 0x89b0b7c2
add edi, 0x769e203e
add edi, dword [ebp - 0x34]
mov ebx, 0x4b5ed75d
sub ebx, 0xd16fa126
xor dword [ebp - 0x30], eax
mov edx, dword [edi]
xor dword [ebp - 0x1c], 0x1650dba1
xor edx, ebx
xor dword [ebp - 0x10], 0xcd8f947
mov dword [esi], edx
sub dword [ebp - 0x2c], 0xff52c211
add esi, 0xa5a4f8bf
sub esi, 0xa5a4f8bb
add edi, 4
loop 0x4361b5
add eax, 0x2dfa3db3
add eax, 0xd206c97c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x62390322
add ecx, 0x9e06fcde
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x1000251b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xbac]
sub esp, 0xc2c
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0xba8], eax
mov ecx, dword [ebp + 0xbb4]
push ebx
mov ebx, dword [ebp + 0xbbc]
call fcn.1000445d
test al, al
je 0x10002556
mov eax, 0x80004005
jmp 0x10002623
push esi
push edi
push str.https:__javadl_esd_secure.oracle.com_update_baseline.version
push 0x1006c044
mov edi, 0x800
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.10047a5c
add esp, 0x10
lea eax, [ebp - 0x5c]
xor esi, esi
push eax
push 0x20019
push esi
push 0x1006c058
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100025de
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x400
push eax
lea eax, [ebp + 0x7a8]
push eax
push esi
push esi
push str.URLOverride
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x5c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100025de
lea eax, [ebp + 0x7a8]
push eax
push 0x1006c0ac
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.10047a5c
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
call fcn.1000f4be
pop ecx
push 0xb
pop ecx
mov word [ebp - 0x70], cx
lea esi, [ebp - 0x70]
xor ecx, ecx
lea edi, [ebp - 0x80]
cmp eax, 1
setne cl
xor eax, eax
dec ecx
mov word [ebp - 0x68], cx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ebx
mov word [ebp - 0x70], ax
lea esi, [ebp - 0x80]
lea eax, [ebp - 0x70]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp + 0xba8]
xor ecx, ebp
pop ebx
call fcn.1003a5a7
add ebp, 0xbac
leave
ret 0xc
Function at 0x100086a1
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x1074
call fcn.1003a680
mov eax, dword [0x100bc054]
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 [0x10070dcc]
push 1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm0, dword [0x10070df0]
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 [0x10070df0]
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 [0x10070e10]
divsd xmm0, qword [0x10070dd8]
addsd xmm0, qword [0x10070dd0]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
neg eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x7c]
push eax
push 0x1002
push ecx
movups xmmword [esp + 0x30], xmm0
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 5
lea eax, [esp + 0x7c]
push 0x1006ed40
push eax
call fcn.10047a5c
test eax, eax
mov ecx, 0x1006ed4c
lea eax, [esp + 0x44]
cmovne ecx, edi
push ecx
push 0x20
push eax
call fcn.10047a5c
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.1003a5a7
add esp, 0x1074
ret 0xc
Function at 0x1000f165
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x4a8
mov eax, dword [0x100bc054]
xor eax, esp
mov dword [esp + 0x4a4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x4b4]
lea eax, [esp + 0x2a4]
push esi
mov esi, dword [esp + 0x4bc]
mov ebx, 0x208
push edi
push ebx
push 0
push eax
call fcn.1003cd40
push ebx
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.1003cd40
push 0x44
pop edi
push edi
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.1003cd40
push ebp
lea eax, [esp + 0x2d4]
mov dword [esp + 0x88], edi
push ebx
push eax
call fcn.10047a5c
push esi
push ebp
push str._s__s
lea eax, [esp + 0xe0]
push ebx
push eax
call fcn.10047a5c
add esp, 0x44
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x64]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0x2d0]
push eax
call fcn.10047a5c
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
add esp, 0x28
test eax, eax
jne 0x1000f2a9
call ebx
mov esi, eax
mov edi, 0x2e4
cmp esi, edi
jne 0x1000f2a2
lea eax, [esp + 0xa4]
mov dword [esp + 0x24], 0x3c
xor ecx, ecx
mov dword [esp + 0x34], eax
xorps xmm0, xmm0
mov dword [esp + 0x28], 0x40
lea eax, [esp + 0x24]
movlpd qword [esp + 0x48], xmm0
push eax
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], 0x100729dc
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 5
mov dword [esp + 0x48], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1000f2dc
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1000f2dc
mov dword [esp + 0x14], eax
jmp 0x1000f2ad
call fcn.10047a5c
jmp 0x1000f2da
mov eax, dword [esp + 0x14]
push eax
call fcn.10009b50
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
test eax, eax
je 0x1000f2cc
mov esi, dword [esp + 0x10]
jmp 0x1000f2d0
call ebx
mov esi, eax
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, esi
push ebp
call fcn.10047a5c
pop ecx
mov ecx, dword [esp + 0x4b4]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003a5a7
add esp, 0x4a8
ret
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.10047a5c
lea eax, [ebp + 0x1fa0]
push eax
call fcn.10047a5c
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.10047a5c
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.10047a5c
push edi
push esi
call fcn.10047a5c
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1000f428
xor eax, eax
jmp 0x1000f4a0
call fcn.10047a5c
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.10047a5c
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.10047a5c
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.10047a5c
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x870]
push eax
call fcn.10047a5c
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.10047a5c
push 0x1007347c
lea eax, [esp + 0x860]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10047a5c
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.10047a5c
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.10047a5c
add esp, 0xc
test eax, eax
jne 0x10010f80
cmp dword [ebp - 0x78], eax
je 0x10010f80
push dword [ebp - 0x78]
call fcn.10047a5c
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.10047a5c
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.10047a5c
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.10047a5c
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.10047a5c
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