joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000beee
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10dc
call fcn.100122c0
push esi
lea eax, [ebp - 0x94]
push edi
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x1000bf80
and word [ebp - 0x10dc], 0
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x10da]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
push 0
push edi
call esi
test eax, eax
je 0x1000bf89
mov ecx, 0x824
cmp eax, ecx
ja 0x1000bf89
lea eax, [ebp - 0x10dc]
push ecx
push eax
push edi
call esi
push edi
call fcn.10012048
shl eax, 1
push eax
push 0
push edi
call fcn.10011ff0
add esp, 0x10
lea eax, [ebp - 0x10dc]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 1
pop eax
pop edi
pop esi
leave
ret 4
xor eax, eax
jmp 0x1000bf83
Function at 0x1000c3bd
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push 0x104
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.10011ff0
push dword [ebp + 8]
lea eax, [ebp - 0x45c]
push eax
call fcn.100127fa
lea eax, [ebp - 0x45c]
push str..
push eax
call fcn.100127d0
add esp, 0x1c
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1000c41f
xor eax, eax
jmp 0x1000c4e5
and dword [ebp + 8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
lea ecx, [ebp - 0x254]
push edi
push ecx
push eax
call ebx
test eax, eax
je 0x1000c4d5
cmp dword [ebp + 8], 0x64
jg 0x1000c4d5
push dword [ebp + 0xc]
inc dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1000c4d0
push dword [ebp + 0xc]
call fcn.10012048
mov esi, eax
lea eax, [ebp - 0x228]
push eax
call fcn.10012048
pop ecx
cmp eax, esi
pop ecx
jbe 0x1000c4c1
push 0x1001df6c
lea eax, [ebp - 0x228]
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_StrRStrIW]
mov edi, eax
test edi, edi
je 0x1000c4c1
push dword [ebp + 0xc]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov esi, eax
lea eax, [ebp - 0x228]
cmp esi, eax
jne 0x1000c4c1
push dword [ebp + 0xc]
call fcn.10012048
lea eax, [esi + eax*2]
pop ecx
cmp eax, edi
je 0x1000c4d0
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
jmp 0x1000c434
push 1
pop esi
jmp 0x1000c4d7
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000daf9
Capabilities:
Hash data with crc32

Disassembly:
push esi
lea esi, [ecx + 4]
push 0x400
push 0
push esi
call fcn.10011ff0
add esp, 0xc
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x1000dab7
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000dab9
shr eax, 1
dec edx
jne 0x1000daaa
mov dword [esi], eax
inc ecx
add esi, 4
cmp ecx, 0x100
jb 0x1000daa5
pop esi
ret
or dword [ecx + 0x404], 0xffffffff
jmp 0x1000da8f

Function at 0x1000db76
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x100183ec
call fcn.10011b90
sub esp, 0x11c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], ebx
mov edi, 0xf003f
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push edi
push str.SOFTWARECNNICCdnClientRunAct
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.10009eda
cmp eax, ebx
jne 0x1000dbeb
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.RedBurgee
mov dword [ebp - 0x18], 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x14], ebx
je 0x1000dbeb
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10009eda
test eax, eax
jne 0x1000dc60
push 0x40
lea edi, [ebp - 0x127]
pop ecx
mov byte [ebp - 0x128], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.CnsMin
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000dc4f
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x10], ebx
je 0x1000dc60
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x20], ebx
jne 0x1000dc6f
cmp dword [ebp - 0x18], 1
jne 0x1000dc6f
xor eax, eax
jmp 0x1000dc72
push 1
pop eax
cmp dword [ebp - 0x10], ebx
mov dword [0x10029024], eax
mov dword [0x1002902c], eax
je 0x1000dc8d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
pop edi
pop esi
pop ebx
je 0x1000dc9e
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x1000ddf8
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x10018417
call fcn.10011b90
sub esp, 0x1b4
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x1bf]
mov byte [ebp - 0x1c0], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x1c0]
push ebx
push eax
call fcn.10011ff0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x1c0]
push str._08X
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0xbc]
call fcn.1001080d
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10011ff0
add esp, 0xc
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0xbc]
call fcn.10010878
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0xbc]
push eax
call fcn.1001091d
lea eax, [ebp - 0x20]
push 0x10
push eax
lea ecx, [ebp - 0xbc]
call fcn.10010878
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0xbc]
push eax
call fcn.1001091d
push esi
lea eax, [ebp - 0x1c0]
push ebx
push eax
call fcn.10011ff0
lea eax, [ebp - 0x1c0]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp + esi - 0x20]
push eax
push str._02X
push dword [ebp - 0x10]
call edi
add dword [ebp - 0x10], 4
add esp, 0xc
inc esi
inc esi
cmp esi, 0x10
jl 0x1000dedf
lea eax, [ebp - 0x1c0]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x1000df1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000df23
mov dword [0x10020734], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.1001083b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000f3f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x1000f410
xor esi, esi
jmp 0x1000f43e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.100122c0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x1000f47b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1000f466
call esi
mov esi, eax
jmp 0x1000f510
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1000f510
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1000f4ac
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1000f4bf
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1000f507
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x1000f4c3
jmp 0x1000f48e
call esi
jmp 0x1000f505
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x1000f4f9
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.100122c0
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.10011cb0
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.1000f577
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000ff34
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x10018534
call fcn.10011b90
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.10009eda
mov edi, eax
cmp edi, esi
je 0x1000ff7e
cmp dword [ebp - 0x10], esi
je 0x1000ff77
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1001001b
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1000ffef
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.1000ff34
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x1000ffdc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x1000ffa1
cmp dword [ebp - 0x10], esi
je 0x1000ffea
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x1001001b
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10010002
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x10010019
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1001002c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.100122c0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.1000f6d1
xor edi, edi
cmp eax, edi
jl 0x100101e1
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.100101ee
test eax, eax
jne 0x10010075
mov eax, 0x80020009
jmp 0x100101e1
mov ecx, esi
call fcn.1000f6a9
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.1000f6d1
cmp eax, edi
jl 0x100101e1
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x100101a9
sub eax, 9
je 0x1001010f
dec eax
dec eax
jne 0x100101d0
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x100100ba
xor ebx, ebx
jmp 0x100100ef
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.100122c0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x100101c1
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x1001014b
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.100122c0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.10011ff0
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x10010155
mov eax, 0x80004005
jmp 0x100101e1
cmp dword [ebp - 8], 0
jle 0x1001018e
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.10010277
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1001015b
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x100101d0
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.1000f6d1
cmp eax, edi
jl 0x100101e1
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1001131a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 0xc
push edi
push esi
call fcn.10011ff0
add esp, 0xc
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x1001138e
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, edi
jne 0x10011370
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001138e
push edi
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
jne 0x10011392
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp + 0xc]
call esi
xor eax, eax
jmp 0x100113a0
mov ecx, dword [ebp + 0xc]
push 1
mov dword [esi + 8], eax
mov dword [esi], ecx
mov dword [esi + 4], ebx
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1001149e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
push edi
push 0x15
pop ecx
mov esi, str.SOFTWAREMicrosoftInternet_ExplorerExtensions5C3853CF_C7E0_4946_B3FA_1ABDB6F48108
lea edi, [ebp - 0xa0]
mov eax, str.Chinese_Navigation
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x1001e854
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x1001e844
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov esi, eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 2
lea eax, [ebp - 0xa0]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001151f
xor edi, edi
jmp 0x100115e5
push 1
cmp si, 0x404
pop edi
je 0x1001158e
cmp si, 0xc04
je 0x1001158e
cmp si, 0x1004
je 0x1001158e
cmp si, 0x804
je 0x100115e5
lea eax, [ebp - 0x24]
push eax
call fcn.10012660
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
push str.ButtonText
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x24]
push eax
call fcn.10012660
pop ecx
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
push str.MenuText
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x48]
push eax
call fcn.10012660
pop ecx
push eax
lea eax, [ebp - 0x48]
jmp 0x100115d8
lea eax, [ebp - 0x10]
push eax
call fcn.10012660
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push str.ButtonText
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x10]
push eax
call fcn.10012660
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push str.MenuText
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x34]
push eax
call fcn.10012660
pop ecx
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
push str.MenuStatusBar
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100115f5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push 2
push 0
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10011636
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x10011638
xor eax, eax
pop ebp
ret 0xc

Function at 0x1001163c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 1
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], 4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001168c
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001167e
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x1001168e
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x10011693
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 1
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], 4
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100116e3
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100116d5
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x100116e5
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x10015d0a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1001ef98
cmp edx, dword [eax]
je 0x10015d2c
add eax, 8
inc ecx
cmp eax, 0x1001f028
jl 0x10015d1d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1001ef98]
jne 0x10015e5a
mov eax, dword [0x10026c80]
cmp eax, 1
je 0x10015e34
test eax, eax
jne 0x10015d5d
cmp dword [0x10026c84], 1
je 0x10015e34
cmp edx, 0xfc
je 0x10015e5a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10015d94
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100126e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10012660
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10015dd7
lea eax, [ebp - 0x1a4]
push eax
call fcn.10012660
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10019c90
push edi
call fcn.10016050
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100126e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100126f0
lea eax, [ebp - 0xa0]
push 0x10019c70
push eax
call fcn.100126f0
push dword [esi + 0x1001ef9c]
lea eax, [ebp - 0xa0]
push eax
call fcn.100126f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100173ee
add esp, 0x2c
pop edi
jmp 0x10015e5a
lea eax, [ebp + 8]
lea esi, [esi + 0x1001ef9c]
push 0
push eax
push dword [esi]
call fcn.10012660
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1084f108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1084f258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1084f12e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1084f11a
add dl, dl
jne 0x1084f139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1084f18c
xor eax, eax
add dl, dl
jne 0x1084f146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1084f22d
add dl, dl
jne 0x1084f155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1084f160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1084f16b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1084f176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1084f182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1084f125
mov eax, 1
add dl, dl
jne 0x1084f19a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1084f1a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1084f191
sub eax, ebx
mov ebx, 1
jne 0x1084f1d8
mov ecx, 1
add dl, dl
jne 0x1084f1be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1084f1c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1084f1b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1084f125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1084f1ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1084f1fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1084f1e6
cmp eax, 0x7d00
jae 0x1084f21d
cmp eax, 0x500
jb 0x1084f218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1084f125
cmp eax, 0x7f
ja 0x1084f220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1084f125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1084f24e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1084f125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10