joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420d8d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x446440]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x420ddf
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x420ddf
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x420deb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.00408568
leave
ret 8

Function at 0x421b1f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x446440]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x421b6f
push dword [ebp + 8]
call fcn.00428196
mov esi, eax
test esi, esi
je 0x421b97
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x421b97
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x4397e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.00408568
leave
ret 0xc

Function at 0x426362
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x446440]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x800
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x4263bf
push 0x437ce8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00408568
leave
ret
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42638e
jmp 0x4263b2
Function at 0x4263e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x446440]
xor eax, dword [ebp + 4]
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 - 8], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42648a
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0xc], ecx
call esi
push dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 8], 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 0x42658c
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x42653a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42658d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42652f
cmp dword [ebp - 0x14], 1
jne 0x42652f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push 0x437cf8
push eax
call fcn.00408bd8
add esp, 0xc
cmp eax, 1
jne 0x42652f
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 8], 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 - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42658d
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x42658d
lea ecx, [ebp - 8]
push ecx
push 0x4263d3
push 1
push 0x10
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 8], bx
je 0x42658d
movzx eax, word [ebp - 8]
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 0x4265b3
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00426362
cmp eax, ebx
pop ecx
pop ecx
jne 0x4265b5
inc edi
cmp edi, esi
jl 0x42659c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00408568
leave
ret 4
Function at 0x4265c7
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, 0x445598
je 0x426683
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 0x42666b
mov esi, dword [ebx + 4]
jmp 0x426665
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 0x426655
cmp dword [ebp - 0xc], 4
jne 0x426655
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42664d
or dword [eax + 0x9c], ecx
jmp 0x426655
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 0x426619
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4265fc
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4273c4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x434483
call fcn.00408518
sub esp, 0x110
mov eax, dword [0x446440]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x42747f
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, 0xff
jmp 0x427448
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004019f0
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.004273c4
mov ecx, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
setne byte [ebp - 0x11]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004019d0
cmp byte [ebp - 0x11], 0
jne 0x42745d
push ebx
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x42740c
cmp esi, 0x103
pop edi
pop ebx
je 0x42746f
cmp esi, 0x3f2
jne 0x42747f
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 - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
call fcn.00408568
leave
ret 8

Function at 0x427b19
Capabilities:
Get thread local storage value

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x427b36
mov ecx, dword [esp + 4]
cmp ecx, dword [eax + 8]
jge 0x427b36
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4]
jmp 0x427b38
xor eax, eax
ret 4
Function at 0x427c30
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 0x427c64
call fcn.00414df2
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x427cfa
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x427d95
cmp dword [esp + 0x14], ebx
je 0x427d95
jmp 0x427d37
push 0x10
call fcn.004279de
cmp eax, ebx
je 0x427d10
mov ecx, eax
call fcn.00427c27
mov esi, eax
jmp 0x427d12
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x427d4e
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x427d5e
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x427d6a
call fcn.00414df2
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.00408580
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 eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x427e5a
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 0x427e88
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x427ea6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00427dc4
jmp 0x427ea6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x427ea6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00427dc4
test edi, edi
mov eax, edi
jne 0x427e90
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x448fb0]
test ecx, ecx
je 0x427f59
jmp 0x427e59
ret 8
Function at 0x428245
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x434c48
call fcn.00408518
mov eax, 0x1014
call fcn.004085e0
mov eax, dword [0x446440]
xor eax, dword [ebp + 4]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x42831c
push dword [ebp + 0xc]
call fcn.00428196
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x42828b
push dword [ebp + 0x14]
jmp 0x42834d
push esi
call fcn.00419c22
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x14]
call esi
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x4282ed
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp + 0xc]
call fcn.00401890
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], eax
call fcn.00404df0
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x42830a
lea eax, [ebp + 0xc]
push eax
call fcn.004049a0
jmp 0x428312
push dword [ebp + 0x14]
call fcn.004019f0
lea ecx, [ebx - 0x10]
call fcn.004019d0
jmp 0x428355
cmp dword [ebp + 0x14], edi
jne 0x428328
mov dword [ebp + 0x14], 0x439f48
push dword [ecx + 0x64]
lea eax, [ebp - 0x1020]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp + 8]
call fcn.004019f0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop ebx
call fcn.00408568
leave
ret 0x10
Function at 0x428479
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x446440]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00408dc6
mov esi, eax
test esi, esi
pop ecx
je 0x428517
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
je 0x42850d
push ebx
push edi
mov edi, SysReAllocStringLen
and byte [eax], 0
push eax
push esi
call fcn.00409c55
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42850b
push 0x105
lea eax, [ebp - 0x10c]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4284e8
inc ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x42850b
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x5c
push esi
call fcn.00409bea
test eax, eax
pop ecx
pop ecx
jne 0x4284af
pop edi
pop ebx
push esi
call fcn.00407cbd
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.00408568
leave
ret 4
Function at 0x431d25
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
inc esi
test al, 1
push edi
je 0x431d6c
push ebx
push 0
mov ebx, 0x439f48
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov edi, str.Insertable
push edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x431d66
push eax
push ebx
push 1
push edi
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x431d66
xor esi, esi
inc esi
jmp 0x431d68
xor esi, esi
mov eax, dword [ebp + 0x10]
pop ebx
xor edi, edi
test al, 2
je 0x431d77
mov edi, str.Apartment
test al, 4
je 0x431d80
mov edi, str.Free
and eax, 6
cmp al, 6
jne 0x431d8c
mov edi, str.Both
test edi, edi
je 0x431dd7
lea eax, [ebp + 0x10]
push eax
push str.InprocServer32
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x431dd7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push str.ThreadingModel
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x431eaa
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x434ced
call fcn.00408518
sub esp, 0x118
mov eax, dword [0x446440]
xor eax, dword [ebp + 4]
push esi
push edi
mov dword [ebp - 0x10], eax
call fcn.00419c22
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
call fcn.00419c22
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
and dword [ebp - 0x20], 0
mov edi, SysReAllocStringLen
cmp dword [ebp + 0x18], edi
mov byte [ebp - 4], 1
jne 0x431f11
lea eax, [ebp - 0x20]
push eax
push str.CLSID
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
mov dword [ebp - 0x24], 1
je 0x431fd7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [ebp + 8], 4
cmp dword [ebp + 0x18], edi
jne 0x431f3e
cmp byte [esi], 0
je 0x431fbe
push esi
call ebx
push dword [ebp + 0x10]
lea eax, [eax + esi + 1]
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.00422919
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push eax
call fcn.00422919
cmp dword [ebp + 0x18], edi
mov eax, dword [ebp - 0x18]
jne 0x431f78
cmp dword [eax - 0xc], 0
je 0x431fbe
cmp dword [ebp + 0x14], 0
jne 0x431fa1
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 0x18]
mov dword [ebp - 0x14], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x431fbe
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0x14], eax
call ebx
push eax
push esi
push 1
push dword [ebp - 0x14]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x431fcd
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
jne 0x431f2c
jmp 0x431fd6
cmp eax, 5
je 0x431fd6
and dword [ebp - 0x24], 0
pop ebx
cmp dword [ebp - 0x20], 0
pop edi
pop esi
je 0x431fe8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004019d0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004019d0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
call fcn.00408568
leave
ret 0x14
Function at 0x405c90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b3d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b3d0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x405ce5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x405cde
test esi, esi
je 0x405cde
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x405cc0
mov dword [esp], 0x40b3d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x404fdf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x404fee
pop dword [ebp - 0x14]
mov eax, 0x404fee
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xa8d7bd39
add dword [ebp - 0x24], 0xa57a8812
mov dword [ebp - 0x20], 0x642bfb08
add dword [ebp - 0x20], 0xce07513d
mov dword [ebp - 0x1c], 0x3688be5
sub dword [ebp - 0x1c], 0xb71c47b7
mov dword [ebp - 0x18], 0xc7f8cd50
add dword [ebp - 0x18], 0x380732b0
lea eax, [ebp - 0x24]
push eax
mov eax, 0xb799f4db
sub eax, 0xb75954cf
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xfe612d75
sub dword [ebp - 0x24], 0x89eec41f
mov dword [ebp - 0x20], 0x7a45a55b
sub dword [ebp - 0x20], 0x38d943e6
mov dword [ebp - 0x1c], 0x8c9ce2a4
sub dword [ebp - 0x1c], 0x292d7638
mov dword [ebp - 0x18], 0x8562bfc1
add dword [ebp - 0x18], 0x7a9d403f
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x47d98bfa
sub eax, 0x4798ebe6
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x378db
push 0
call eax
mov ecx, 0x4af4b6b9
add ecx, 0xb50b8c4d
xor ebx, ebx
add ebx, eax
mov edx, 0x39804068
sub edx, 0x393c8268
add edx, dword [ebp - 0x14]
mov edi, 0x6a0021c
add dword [ebp - 0x10], 0x46585868
mov esi, dword [edx]
sub dword [ebp - 0x10], 0x112001a5
sub esi, edi
sub dword [ebp - 4], eax
mov dword [ebx], esi
xor dword [ebp - 8], ebx
add ebx, 0xa9af5f50
sub ebx, 0xa9af5f4c
add edx, 4
loop 0x405107
add eax, 0xfeeb
mov ebx, eax
add eax, 0xd67f8b32
sub eax, 0xd67f8b2d
mov ecx, 0xdc337cd
add ecx, 0xf27cc833
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x4c5e2465
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x26231866
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219