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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x43a180]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x428ff4
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x4290f6
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4290a4
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4290f7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x429099
cmp dword [ebp - 0x24], 1
jne 0x429099
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x4301dc
push eax
call fcn.004139d3
add esp, 0xc
cmp eax, 1
jne 0x429099
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4290f7
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4290f7
lea ecx, [ebp - 0x18]
push ecx
push 0x428f3c
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x4290f7
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x42911d
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00428ebd
cmp eax, ebx
pop ecx
pop ecx
jne 0x42911f
inc edi
cmp edi, esi
jl 0x429106
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00411fce
leave
ret 4
Function at 0x42912e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4398e8
je 0x4291ea
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4291d2
mov esi, dword [ebx + 4]
jmp 0x4291cc
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4291bc
cmp dword [ebp - 0xc], 4
jne 0x4291bc
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4291b4
or dword [eax + 0x9c], ecx
jmp 0x4291bc
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x429180
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x429163
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4295a3
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x42c8d7
call fcn.0041368c
sub esp, 0x11c
mov eax, dword [0x43a180]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x42969c
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x429670
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004018e0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.004295a3
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401230
test bl, bl
jne 0x429670
or dword [ebp - 4], 0xffffffff
jmp 0x4295e1
cmp esi, 0x103
je 0x429680
cmp esi, 0x3f2
jne 0x429690
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00411fce
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x429b04
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x429b39
cmp edi, dword [esi + 0xc]
jge 0x429b39
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x429b39
cmp edi, dword [eax + 8]
jge 0x429b39
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x429b3b
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x429c3f
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x429c73
jmp fcn.0041e3cb
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x429ce4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x429ddd
cmp eax, dword [edi + 0xc]
jge 0x429ddd
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x429d35
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x429dc6
cmp dword [ebp + 0xc], ebx
je 0x429dc6
jmp 0x429d5f
push 0x10
call fcn.004299d0
cmp eax, ebx
je 0x429d4b
mov ecx, eax
call fcn.00429c36
mov esi, eax
jmp 0x429d4d
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x429d76
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x429d86
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x429d98
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041e3cb
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004138b0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x429dd8
cmp ecx, dword [esi + 8]
jge 0x429dd8
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x429dde
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x429e9d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x429ecb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x429ee9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00429e07
jmp 0x429ee9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x429ee9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00429e07
test edi, edi
mov eax, edi
jne 0x429ed3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43cf84]
test ecx, ecx
je 0x429f9c
jmp 0x429e9c
ret 8
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1108
call fcn.00403550
push esi
lea eax, [esp + 4]
push edi
push eax
push 6
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov al, byte [0x406630]
mov ecx, 0x1ff
mov byte [esp + 0x910], al
xor eax, eax
lea edi, [esp + 0x911]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x1118]
lea ecx, [esp + 0x910]
push eax
push eax
push str._DEFAULT__r_nBASEURL_s_r_n_InternetShortcut__r_nURL_s_r_nIDList_r_n_000214A0_0000_0000_C000_000000000046__r_nProp319_2
push ecx
call esi
mov dl, byte [0x406630]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], dl
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x1114]
lea ecx, [esp + 0x110]
push eax
push str._s.url
push ecx
call esi
mov dl, byte [0x406630]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x51d]
mov byte [esp + 0x51c], dl
add esp, 0xc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x518]
push str._s_s
push edx
call esi
lea edi, [esp + 0x920]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x920]
push ecx
lea ecx, [esp + 0x524]
push eax
push ecx
call fcn.00402250
add esp, 0x1c
xor eax, eax
pop edi
pop esi
add esp, 0x1108
ret
Function at 0x401d10
Capabilities:
Create shortcut via ishelllink
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
call ebp
and al, 0xde
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 8]
push eax
push 0x404650
push 1
push 0
push 0x404640
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401eb0
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x404630
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x401ea6
lea eax, [esp + 0x10]
push 0x104
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x401e9c
push esi
mov esi, dword [esp + 0x224]
push edi
or ecx, 0xffffffff
lea edx, [esi + 0x208]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401dc6
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
lea edx, [esi + 0x104]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
je 0x401de7
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
jmp 0x401df2
mov edx, dword [eax]
push 0x406630
push eax
call dword [edx + 0x1c]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
je 0x401e0d
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x2c]
jmp 0x401e18
mov edx, dword [eax]
push 0x406630
push eax
call dword [edx + 0x2c]
lea edx, [esi + 0x30e]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401e3e
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x414]
push edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
lea edx, [esi + 0x41c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401e5d
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov ax, word [esi + 0x30c]
test ax, ax
je 0x401e74
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x34]
mov esi, dword [esi + 0x418]
test esi, esi
je 0x401e89
mov eax, dword [esp + 0x10]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
pop edi
pop esi
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call ebp
or al, 0x21
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret 8
Function at 0x4020a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
push edi
push eax
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x108
ret

Function at 0x402100
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
push esi
push edi
push eax
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Application_DataMicrosoftInternet_ExplorerQuick_Launch
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x402190
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
push edi
push eax
push 0x16
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x108
ret

Function at 0x4021f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
push edi
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x108
ret
Function at 0x402ee0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x124
mov al, byte [0x406630]
push ebx
push esi
push edi
mov byte [esp + 0x30], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
or ebx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.HKEY_CLASSES_ROOT
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x18], 0x80000000
and ecx, 3
mov dword [esp + 0x1c], VariantCopy
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x24], 0x80000001
mov dword [esp + 0x28], VariantCopy
mov dword [esp + 0x2c], VariantCopy
mov dword [esp + 0x30], VariantCopy
mov dword [esp + 0x34], VariantCopy
call esi
add esp, 8
test eax, eax
je 0x402f80
xor ebx, ebx
lea edx, [esp + 0x30]
push str.HKEY_CURRENT_CONFIG
push edx
call esi
add esp, 8
test eax, eax
je 0x402f98
mov ebx, 1
lea eax, [esp + 0x30]
push str.HKEY_CURRENT_USER
push eax
call esi
add esp, 8
test eax, eax
je 0x402fb0
mov ebx, 2
lea ecx, [esp + 0x30]
push str.HKEY_LOCAL_MACHINE
push ecx
call esi
add esp, 8
test eax, eax
je 0x402fc8
mov ebx, 3
lea edx, [esp + 0x30]
push str.HKEY_USERS
push edx
call esi
add esp, 8
test eax, eax
je 0x402fe0
mov ebx, 4
lea eax, [esp + 0x30]
push 0x406028
push eax
call esi
add esp, 8
test eax, eax
jne 0x403004
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x124
ret 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
xor esi, esi
push ecx
push edx
push esi
push 0x2001f
push esi
push esi
inc eax
push esi
push eax
mov eax, dword [esp + ebx*4 + 0x34]
mov dword [esp + 0x2c], 0
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40304b
pop edi
pop esi
mov eax, 0xffffffec
pop ebx
add esp, 0x124
ret 0x10
mov edx, dword [esp + 0x140]
mov ebx, dword [esp + 0x13c]
cmp edx, 4
jne 0x403065
mov esi, 4
jmp 0x403079
cmp edx, 1
jne 0x403079
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
mov ecx, dword [esp + 0x138]
push esi
push ebx
push edx
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4030b1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0xffffffeb
pop ebx
add esp, 0x124
ret 0x10
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x124
ret 0x10
Function at 0x4032f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov al, byte [0x406630]
push ebx
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x114]
stosw word es:[edi], ax
test ebx, ebx
stosb byte es:[edi], al
je 0x4033c2
push 0x406028
push ebx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x40339f
push ebp
lea ecx, [esp + 0x14]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x406028
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4033c2
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
mov dword [esp + 0xc], 0
jne 0x4033de
mov edx, dword [esp + 0x118]
lea ecx, [esp + 0xc]
push ecx
push edx
push ebx
jmp 0x4033f0
mov ecx, dword [esp + 0x118]
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.004030f0
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x403416
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x11c]
push esi
push eax
push ecx
call fcn.00402250
add esp, 0xc
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x403430
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
neg eax
sbb eax, eax
neg eax
dec eax
ret