joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404605
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40460d
mov eax, dword [esp + 0xc]
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x40463f
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x4046b7
Capabilities:
Terminate process

Disassembly:
mov eax, 0x2004
call fcn.00415cc0
mov eax, dword [0x41b070]
xor eax, dword [esp + 0x2004]
cmp word [edi], 0x3d
push esi
mov dword [esp + 0x2004], eax
mov esi, ecx
jne 0x404709
mov eax, edi
call fcn.00403cf3
test eax, eax
jl 0x40470b
call fcn.00404882
lea eax, [esp + 4]
mov ecx, esi
call fcn.00403cf3
test eax, eax
jl 0x40470b
mov eax, edi
mov ecx, esi
call fcn.00403cf3
test eax, eax
jl 0x40470b
xor eax, eax
mov ecx, dword [esp + 0x2004]
xor ecx, dword [esp + 0x2008]
pop esi
add esp, 0x2004
jmp fcn.00415ab2

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.0040a146
mov edi, eax
cmp edi, esi
je 0x4047ce
cmp dword [ebp - 8], esi
je 0x4047ca
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40483b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4047ec
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 8]
call fcn.00404786
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x40484d
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
je 0x4047d6
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x404822
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x404839
push dword [ebp - 8]
call edi
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00415ab2
leave
ret 4
cmp dword [ebp - 8], esi
je 0x40485b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x40483b
Function at 0x4053ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405404
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x405416
xor eax, eax
jmp 0x405447
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405439
cmp edi, eax
jae 0x405412
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40542b
cmp edi, eax
jae 0x405412
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x409fb9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
shl eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409ffa
cmp dword [ebp + 0x10], 1
je 0x409ff1
push 0xd
pop eax
jmp 0x409ffa
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 0xc
Function at 0x40a938
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 4], 0xffffffff
je 0x40a945
xor eax, eax
jmp 0x40a9bb
push edi
lea eax, [esi + 0x20]
xor edi, edi
cmp dword [eax], edi
jne 0x40a96b
push eax
push 0x418708
push 0x17
push edi
push 0x419078
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40a96b
xor eax, eax
jmp 0x40a9ba
cmp dword [esp + 0x10], edi
mov eax, dword [esp + 0xc]
mov dword [esi + 0x28], eax
je 0x40a9a1
push edi
push edi
push esi
push 0x41211a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov esi, dword [esi + 0x24]
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
jmp 0x40a9ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push edi
push edi
push 0x4ac
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
pop edi
pop esi
ret 8

Function at 0x40ad30
Capabilities:
Set global application hook

Disassembly:
push esi
lea eax, [esp + 8]
push eax
mov esi, 0x41d7f4
call fcn.0040a738
cmp dword [0x41d7e8], 0
pop esi
jne 0x40ad65
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x40bb8f
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x41d7e8], eax
ret

Function at 0x40c591
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
push esi
push 0x4516000f
mov esi, ecx
mov dword [ebp - 4], eax
call fcn.0040bce5
cmp eax, 6
je 0x40c5c1
mov eax, 0x800704c7
jmp 0x40c682
lea eax, [ebp - 0x20c]
push eax
call sub.ItMsg.dll_Ordinal_1083
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.SetupUSB.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [sym.imp.MSVCR70.dll_wcscpy]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
pop ecx
pop ecx
push 0x4183b8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
push str._u__i_s
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push 1
xor eax, eax
push eax
lea ecx, [ebp - 0x61c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00413dc0
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.00415ab2
leave
ret
Function at 0x4113e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41143c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.AllowMultipleTSSessions
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
setne bl
mov al, bl
pop ebx
leave
ret

Function at 0x411441
Capabilities:
Persist via ginadll registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
mov dword [ebp - 4], eax
call fcn.0041154b
test al, al
je 0x41153e
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 5], bl
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41153a
push esi
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov word [ebp - 0x220], bx
mov ecx, 0x81
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.LogonType
push dword [ebp - 0xc]
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x208
mov dword [ebp - 0x10], ebx
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
push str.GinaDLL
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], ebx
pop edi
setne byte [ebp - 5]
cmp byte [ebp - 5], bl
pop esi
je 0x41153a
cmp byte [ebp + 8], bl
je 0x411510
cmp word [ebp - 0x220], bx
sete byte [ebp - 5]
jmp 0x41153a
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCR70.dll__wcslwr]
lea eax, [ebp - 0x220]
mov dword [esp], str.ocgina.dll
push eax
call dword [sym.imp.MSVCR70.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x41153a
mov byte [ebp - 5], bl
mov al, byte [ebp - 5]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00415ab2
leave
ret

Function at 0x41154b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
push edi
push 0x44
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x4115aa
cmp dword [ebp - 0x108], 2
jne 0x4115a6
cmp dword [ebp - 0x114], 5
jne 0x4115a6
xor eax, eax
inc eax
cmp dword [ebp - 0x110], eax
jae 0x4115ac
xor eax, eax
jmp 0x4115ac
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00415ab2
leave
ret
Function at 0x4115b9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
push edi
push 0x44
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x411612
cmp dword [ebp - 0x108], 2
jne 0x41160e
cmp dword [ebp - 0x114], 5
jbe 0x41160e
xor eax, eax
inc eax
jmp 0x411614
xor eax, eax
jmp 0x411614
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00415ab2
leave
ret

Function at 0x4123b9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.MSVCR70.dll_memset
add esp, 0xc
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x40
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41240f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x412418
test edi, edi
je 0x412418
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, ebx
pop ebx
leave
ret
Function at 0x41241d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.00402f46
mov esi, dword [ebp + 8]
add esi, 8
mov eax, dword [esi]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 8]
call fcn.0040a146
test eax, eax
jne 0x412538
push 0x104
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x412538
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x20019
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.0040a146
test eax, eax
jne 0x412513
and dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push str.Task
lea eax, [ebp - 0xc]
push eax
call fcn.00411c11
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
cmp eax, dword [ebp + 0x10]
jne 0x412513
call fcn.004054a9
mov edi, 0x4183b4
push edi
mov dword [ebp + 8], eax
call ebx
push eax
push edi
lea edi, [ebp + 8]
call fcn.00411638
lea eax, [ebp - 0x21c]
push eax
call ebx
push eax
lea eax, [ebp - 0x21c]
push eax
lea edi, [ebp + 8]
call fcn.00411638
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00413128
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [ebp - 0x10]
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x41248e
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41254e
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], ebx
je 0x412558
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.00415ab2
leave
ret 0xc
Function at 0x413825
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
cmp eax, esi
je 0x413838
mov dword [eax], esi
mov eax, dword [edi]
cmp eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x413890
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41388a
cmp dword [ebp - 4], 0x103
jne 0x41388a
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push 0x4137d3
push dword [eax]
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_EnumThreadWindows]
cmp dword [ebp - 8], esi
je 0x41388a
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x4138ec
mov dword [eax], 1
jmp 0x4138ec
push dword [edi]
call ebx
mov dword [edi], esi
push 0x44
lea eax, [ebp - 0x5c]
push esi
push eax
call sub.MSVCR70.dll_memset
push 0x10
lea eax, [ebp - 0x18]
push esi
push eax
call sub.MSVCR70.dll_memset
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x5c], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4138da
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4138ee
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
call ebx
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x413ace
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
push ebx
push edi
mov dword [ebp - 4], eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x413ca0
and eax, 0xff
cmp eax, 5
push esi
jb 0x413b39
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x413c9f
push str.LockWorkStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x413b2d
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x413c9f
push 0x2001f
push str.Control_PanelDesktop
push SysReAllocString
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.0040a146
test eax, eax
jne 0x413c90
mov edx, 0x81
mov word [ebp - 0x214], bx
mov ecx, edx
lea edi, [ebp - 0x212]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x41c], bx
mov ecx, edx
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x214]
push eax
mov ebx, str.SCRNSAVE.EXE
push ebx
lea eax, [ebp - 8]
mov edi, 0x104
push eax
lea esi, [ebp - 0xc]
mov dword [ebp - 0xc], edi
call fcn.00409fb9
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 0xc], edi
mov edi, 0x4167b8
push edi
lea eax, [ebp - 8]
push eax
lea esi, [ebp - 0xc]
call fcn.00409fb9
push 1
mov esi, 0x4167b4
push esi
push edi
lea eax, [ebp - 8]
push eax
call fcn.004045c6
push 1
push esi
push str.ScreenSaverIsSecure
lea eax, [ebp - 8]
push eax
call fcn.004045c6
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x413c47
push 0x104
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea esi, [ebp - 0x624]
call fcn.00413aaa
lea eax, [ebp - 0x624]
push str._scrnsave.scr
push eax
call dword [sym.imp.MSVCR70.dll_wcscat]
pop ecx
pop ecx
push 1
lea eax, [ebp - 0x624]
push eax
push ebx
lea eax, [ebp - 8]
push eax
call fcn.004045c6
jmp 0x413c4e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0xf140
push 0x112
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 8]
push eax
call fcn.004045c6
push 1
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 8]
push eax
call fcn.004045c6
xor edi, edi
inc edi
cmp dword [ebp - 8], 0
je 0x413c9f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, edi
pop edi
pop ebx
call fcn.00415ab2
leave
ret
Function at 0x413cc3
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 1
mov esi, 0x20008
xor ebx, ebx
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x413d12
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x413daf
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 1
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call esi
cmp dword [ebp - 0xc], ebx
je 0x413da6
push edi
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x413da5
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push edi
push 1
push dword [ebp - 8]
call esi
test eax, eax
je 0x413d9e
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x413d9e
push dword [edi]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x10]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
mov eax, ebx
pop ebx
call fcn.00415ab2
leave
ret
Function at 0x41587a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4165c8
call fcn.00415ac0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4158b5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4158b5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4158cd
cmp eax, 0x20b
je 0x4158ba
mov dword [ebp - 0x1c], edi
jmp 0x4158e1
cmp dword [ecx + 0x84], 0xe
jbe 0x4158b5
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4158db
cmp dword [ecx + 0x74], 0xe
jbe 0x4158b5
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.MSVCR70.dll___set_app_type]
pop ecx
or dword [0x41d8c4], 0xffffffff
or dword [0x41d8c8], 0xffffffff
call dword [sym.imp.MSVCR70.dll___p__fmode]
mov ecx, dword [0x41b7b4]
mov dword [eax], ecx
call dword [sym.imp.MSVCR70.dll___p__commode]
mov ecx, dword [0x41b7b0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR70.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41d8c0], eax
call fcn.00415b1e
call fcn.00415bbe
cmp dword [0x41b074], edi
jne 0x415943
push fcn.00415bbe
call dword [sym.imp.MSVCR70.dll___setusermatherr]
pop ecx
call fcn.00415bac
push 0x41b068
push 0x41b064
call sub.MSVCR70.dll__initterm
push 0x415b62
call fcn.0041582c
mov eax, dword [0x41b7ac]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x41b7a8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR70.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp eax, edi
jge 0x415997
push 8
call sub.MSVCR70.dll__amsg_exit
pop ecx
push 0x41b060
push section..data
call sub.MSVCR70.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR70.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x4159c1
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x415a7b
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x415a0f
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x4159dd
cmp ax, 0x22
jne 0x4159ca
cmp word [esi], 0x22
jne 0x4159e8
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x4159f6
cmp ax, 0x20
jbe 0x4159e3
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x415a1c
movzx eax, word [ebp - 0x48]
jmp 0x415a1f
cmp word [esi], 0x20
jbe 0x4159e8
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x415a0f
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x415a40
push esi
call dword [sym.imp.MSVCR70.dll_exit]
call dword [sym.imp.MSVCR70.dll__cexit]
jmp 0x415a75
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00415afb
ret
Function at 0x405f30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdb4], 0
push esi
jne 0x405f67
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f41
mov dword [ecx*4 + 0x42bdb0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f3c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f98
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdb0]
xor eax, esi
inc ecx
dec edx
jne 0x405f7a
pop edi
not eax
pop esi
ret 0xc

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