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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4d2260]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x486aa8
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x486aa8
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x486ab0
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465dcc
leave
ret 8

Function at 0x4876a6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d2260]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x4876f7
push edi
call fcn.00489352
mov esi, eax
test esi, esi
je 0x48771b
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
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
jmp 0x48771b
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x4ab0dc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465dcc
leave
ret 0xc

Function at 0x4884ed
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4d2260]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x11c]
jne 0x488520
push 0x4b64dc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x488532
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x488567
lea eax, [ebp - 0x11c]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0046b286
add esp, 0x10
cmp eax, 0xffffffff
je 0x488567
cmp eax, esi
jae 0x488567
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x488569
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00465dcc
leave
ret
Function at 0x48858c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4d2260]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push 0x4b6528
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x488636
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 - 0x40], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x3c], 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 - 0x38], eax
call esi
mov dword [ebp - 0x34], eax
push 4
xor ebx, ebx
jmp 0x488738
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4886e6
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 0x488739
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 0x4886db
cmp dword [ebp - 0x24], 1
jne 0x4886db
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x4b64e0
push eax
call fcn.0046a902
add esp, 0xc
cmp eax, 1
jne 0x4886db
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 - 0x40], eax
call esi
push 2
mov dword [ebp - 0x3c], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x488739
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x488739
lea ecx, [ebp - 0x18]
push ecx
push 0x488576
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x488739
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 - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x40], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x48875e
push dword [ebp + edi*4 - 0x40]
mov ecx, dword [ebp - 0x2c]
call fcn.004884ed
cmp eax, ebx
pop ecx
jne 0x488760
inc edi
cmp edi, esi
jl 0x488748
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465dcc
leave
ret 4
Function at 0x488771
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, 0x4d1598
je 0x48882d
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 0x488815
mov esi, dword [ebx + 4]
jmp 0x48880f
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 0x4887ff
cmp dword [ebp - 0xc], 4
jne 0x4887ff
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4887f7
or dword [eax + 0x9c], ecx
jmp 0x4887ff
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 0x4887c3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4887a6
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x488e66
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x495d18
call fcn.004691dc
sub esp, 0x124
mov eax, dword [0x4d2260]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x488f74
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 0x488f48
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.0041cae0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00488e66
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00411670
test bl, bl
jne 0x488f48
or dword [ebp - 4], 0xffffffff
jmp 0x488eb3
cmp esi, 0x103
je 0x488f58
cmp esi, 0x3f2
jne 0x488f68
push dword [edi]
push dword [ebp - 0x12c]
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]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465dcc
leave
ret 8
Function at 0x48bddf
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 0x48be14
cmp edi, dword [esi + 0xc]
jge 0x48be14
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48be14
cmp edi, dword [eax + 8]
jge 0x48be14
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x48be16
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 0x48bf1a
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 0x48bf4e
jmp fcn.0047eb2c
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x48bfbf
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 0x48c0b8
cmp eax, dword [edi + 0xc]
jge 0x48c0b8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x48c010
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x48c0a1
cmp dword [ebp + 0xc], ebx
je 0x48c0a1
jmp 0x48c03a
push 0x10
call fcn.0048bcab
cmp eax, ebx
je 0x48c026
mov ecx, eax
call fcn.0048bf11
mov esi, eax
jmp 0x48c028
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 0x48c051
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x48c061
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 0x48c073
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0047eb2c
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.00465960
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 0x48c0b3
cmp ecx, dword [esi + 8]
jge 0x48c0b3
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x48c0b9
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x48c177
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 0x48c1a5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c1c3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048c0e1
jmp 0x48c1c3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c1c3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0048c0e1
test edi, edi
mov eax, edi
jne 0x48c1ad
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4d80dc]
test ecx, ecx
je 0x48c276
jmp 0x48c176
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push esi
push dword [0x407024]
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
call esi
push dword [0x407020]
call esi
push dword [0x407028]
call dword [sym.imp.USER32.dll_DestroyMenu]
push dword [0x40702c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40120a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
not eax
and eax, 1
ret

Function at 0x40121d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0x90
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
ret

Function at 0x4012f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
add esi, 0x20
sub dword [ebp + 0x14], 0x20
jmp 0x40132e
push dword [ebp + 0x14]
push esi
push edi
call fcn.004012c8
add esp, 0xc
test eax, eax
je 0x401336
inc edi
dec dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x14]
jge 0x401319
xor esi, esi
cmp dword [ebp + 0xc], esi
jge 0x401347
push str.Could_not_set_new_icon.
call fcn.00401038
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40133d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x28]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
push edi
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ee6
leave
ret

Function at 0x4017a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4017e6
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 4
pop esi
jne 0x40180a
cmp byte [ebp - 4], 0x50
jne 0x40180a
cmp byte [ebp - 3], 0x4b
jne 0x40180a
cmp byte [ebp - 2], 3
jne 0x40180a
cmp byte [ebp - 1], 4
jne 0x40180a
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x40180e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401854
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 4
pop esi
jne 0x401878
cmp byte [ebp - 4], 0x37
jne 0x401878
cmp byte [ebp - 3], 0x6b
jne 0x401878
cmp byte [ebp - 2], 0x53
jne 0x401878
cmp byte [ebp - 1], 0x74
jne 0x401878
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40187c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4018c2
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 4
pop esi
jne 0x4018e6
cmp byte [ebp - 4], 0x4d
jne 0x4018e6
cmp byte [ebp - 3], 0x53
jne 0x4018e6
cmp byte [ebp - 2], 0x43
jne 0x4018e6
cmp byte [ebp - 1], 0x46
jne 0x4018e6
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4018ea
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
push 0
mov esi, 0x40ac00
push esi
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push esi
push 0x7d7
push dword [0x407024]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0xff
push 0x407458
mov ebx, 0x40546e
push ebx
push str.Title
mov edi, 0x405884
push edi
call ebp
push esi
push 0xff
push 0x407660
push ebx
push str.Website
push edi
call ebp
push esi
push 0x104
push 0x407350
push ebx
push str.ExtractPath
push edi
call ebp
push esi
push 0x104
push 0x407558
push ebx
push str.Execute
push edi
call ebp
push esi
push 6
push 0x40723c
push 0x405864
push str.OSVersion
push edi
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
xor ebx, ebx
push ebx
push str.RunElevated
push edi
call ebp
push esi
push ebx
push str.Subsystem64
push edi
mov dword [0x407134], eax
call ebp
push esi
push ebx
push 0x405834
push edi
mov dword [0x40734c], eax
call ebp
push esi
push ebx
push 0x405828
push edi
mov dword [0x407454], eax
call ebp
push esi
push ebx
mov dword [0x40765c], eax
push str.DeleteFiles
push edi
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push esi
push 0x400
push 0x40a6c0
push str.IntroText
mov dword [0x40a360], eax
call edi
xor ecx, ecx
cmp eax, ebx
jle 0x401a2a
lea edx, [ecx + 0x40a6c1]
cmp byte [edx - 1], 0x5c
jne 0x401a25
cmp byte [edx], bl
jne 0x401a25
mov byte [edx - 1], 0xd
mov byte [edx], 0xa
inc ecx
cmp ecx, eax
jl 0x401a0e
push esi
push 0x2800
mov ebp, 0x407b60
push ebp
push str.Shortcuts
call edi
push dword [0x407028]
call dword [sym.imp.USER32.dll_DestroyMenu]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
xor esi, esi
mov dword [0x407028], eax
cmp byte [0x407b60], bl
je 0x401aca
mov edi, ebp
mov ebp, 0x405800
lea eax, [esp + 0x10]
push eax
push ebx
lea eax, [esp + esi + 0x18]
push ebp
push eax
call fcn.0040112c
add esp, 0x10
cmp byte [eax], bl
je 0x401ab5
push 0x4057f4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401ab5
lea eax, [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.0040112c
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push dword [0x407028]
call dword [sym.imp.USER32.dll_AppendMenuA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
lea edi, [esi + 0x407b60]
cmp byte [edi], bl
jne 0x401a65
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403ee6
add esp, 0x20c
ret
Function at 0x403d4b
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e20
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403e0f
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x403df9
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x403e0f
push eax
push edi
push dword [ebp - 0x110]
call fcn.00403ce8
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x403e22
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00403ee6
leave
ret 4

Function at 0x403ee6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x407004]
jne 0x403ef0
repz ret
jmp fcn.00403f5c

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x427986
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
xor edx, edx
inc edx
push ebx
push esi
push edi
mov edi, dword [0x15d5b14]
inc edi
mov eax, edi
mov dword [0x15d5b14], edi
shl eax, 4
mov ecx, edi
movzx esi, ax
mov dword [0x499218], edi
lea eax, [esi + 0xf0000]
push eax
call fcn.0042ff19
pop ecx
add esi, 0xf0000000
mov dword [edi*4 + 0x4a9fb0], 0x4272b5
mov edx, esi
xor ecx, ecx
shr edx, 0x10
inc ecx
call fcn.00427253
add ecx, 0x7f
mov word [0x4aa050], si
mov dword [0x15d4658], 0x4272b9
call fcn.004417e5
push 2
movzx edx, ax
pop ecx
call fcn.00427253
mov eax, 0x7fe
mov byte [0x4ad3d0], 0xea
mov word [0x4aa040], ax
mov edx, 0x1180110
mov eax, dword [0x4ac1d0]
mov ecx, 0x90
mov dword [0x4ad3d1], eax
call fcn.00434a90
mov edx, 0x1180000
mov ecx, 0x8c
call fcn.00434a90
mov ebx, pe_nt_image_headers32
mov ecx, 0x1171
mov edx, ebx
call fcn.00434a00
push 0x12
pop edx
mov ecx, 0x1173
call fcn.00434a00
mov dl, 0x4d
mov ecx, 0x1170
call fcn.00434910
mov edx, ebx
mov ecx, 0x12a1
call fcn.00434a00
push 0x44
pop edx
mov ecx, 0x12a3
call fcn.00434a00
mov dl, 0x4d
mov ecx, 0x12a0
call fcn.00434910
mov esi, str.WIN_VDOS
lea edi, [esp + 0x98]
push 0x80
lea eax, [esp + 0xa5]
push eax
movsd dword es:[edi], dword [esi]
push str.VDOS
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x427abe
cmp eax, 0x7f
jle 0x427ac6
mov byte [esp + 0xa1], 0
lea edx, [esp + 0x98]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x427ad0
sub edx, ecx
mov esi, 0x477244
push 0xf
pop ecx
lea edi, [esp + edx + 0x99]
lea eax, [edx + 0x3d]
rep movsd dword es:[edi], dword [esi]
push eax
lea edx, [esp + 0x9c]
mov ecx, 0x12b0
call fcn.00434cc0
pop ecx
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x1180
mov word [esp + 0x18], bx
call fcn.0043cd66
mov edi, 0xb30
mov edx, ebx
mov ecx, edi
call fcn.00434a00
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
mov esi, 0x477280
mov dl, 2
push eax
mov ecx, esi
call fcn.00440319
pop ecx
lea eax, [esp + 0x10]
mov dl, 2
push eax
mov ecx, esi
call fcn.00440319
pop ecx
xor ecx, ecx
call fcn.00440153
xor ecx, ecx
xor edx, edx
inc ecx
call fcn.00440772
xor ecx, ecx
push 2
pop edx
inc ecx
call fcn.00440772
lea eax, [esp + 0x10]
mov dl, 2
push eax
mov ecx, esi
call fcn.00440319
pop ecx
lea eax, [esp + 0x10]
mov dl, 2
push eax
mov ecx, 0x477284
call fcn.00440319
pop ecx
mov edx, ebx
mov ecx, 0x1196
call fcn.00434a00
mov edx, 0x12b
mov ecx, 0x11ac
call fcn.00434a00
mov eax, dword [str._INIT]
lea ecx, [esp + 0x19]
mov dword [esp + 0x19], eax
lea edx, [ecx + 1]
mov ax, word [0x4771dc]
mov word [esp + 0x1d], ax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427bc1
sub ecx, edx
lea edx, [esp + 0x18]
mov byte [esp + 0x18], cl
mov ecx, 0x1200
push 0x80
call fcn.00434cc0
pop ecx
mov edx, 0x1180080
mov ecx, 0xb2c
call fcn.00434a90
mov edx, ebx
mov ecx, edi
call fcn.00434a00
push 0x49921c
call fcn.004272b9
pop ecx
mov ecx, dword [0x49921c]
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret