joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a030
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 5], 0
call fcn.0046e3e0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46a0c0
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46a0a3
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46a14f
mov dword [ebp - 0x21c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x46a145
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0046a0d0
add esp, 8
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
jmp 0x46a100
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esp, ebp
pop ebp
ret
Function at 0x46a620
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xd0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00485960
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x46d890
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov byte [ebp - 5], 0
call fcn.0046e3e0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46d8c6
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46d966
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46d949
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46d904
cmp dword [ebp - 0x28], 4
je 0x46d91f
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x46d91f
mov dword [ebp - 0x30], 0
jmp 0x46d926
mov dword [ebp - 0x30], 1
mov dl, byte [ebp - 0x30]
mov byte [ebp - 5], dl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4
Function at 0x46e600
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512370
push 0x487a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x46e6d8
cmp dword [ebp + 0xc], 0
jne 0x46e64d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 0
push 0xc
call fcn.00472a90
mov dword [ebp - 0x20], eax
push 0x1c
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x46e6bc
cmp dword [ebp - 0x2c], 0x10000
jne 0x46e69e
push 0x40
push 0x2000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
jmp 0x46e6bc
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x38]
jne 0x46e6b4
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
mov dword [ebp - 0x20], ecx
jmp 0x46e6ba
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edx
jmp 0x46e65e
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x46e704
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46e7e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8
Function at 0x46f160
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 6
jae 0x46f1a6
call fcn.0046f080
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
setne al
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46f1a1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46f2a8
push str.CheckTokenMembership
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 5
cmp dword [ebp - 0xc], 0
je 0x46f2a8
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x46f2a8
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0
call dword [ebp - 0xc]
test eax, eax
je 0x46f22d
cmp dword [ebp - 0x1c], 0
je 0x46f22d
mov dword [ebp - 0x2c], 1
jmp 0x46f234
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 4], 0
je 0x46f2a8
lea edx, [ebp - 0x20]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46f2a8
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 4
lea ecx, [ebp - 0x28]
push ecx
push 0x14
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x46f291
cmp dword [ebp - 0x28], 0
je 0x46f291
mov dword [ebp - 0x30], 1
jmp 0x46f298
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x46fb00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
mov dword [ebp - 0x10], 0
push 0xc
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.00485960
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x46fb3b
lea ecx, [ebp - 0xc]
push ecx
call fcn.0046f650
add esp, 4
test eax, eax
je 0x46fb3b
lea edx, [ebp - 0xc]
mov dword [ebp + 0xc], edx
call fcn.0046f7b0
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46fc9b
movzx ecx, byte [ebp + 0x24]
test ecx, ecx
jne 0x46fc9b
push 0
push 0x4fcfa0
call fcn.00472820
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x46fc9b
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0
je 0x46fbaa
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x10], 0
je 0x46fbd7
mov ecx, dword [ebp + 0x1c]
and ecx, 0x10000
je 0x46fbd1
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edx
jmp 0x46fbd7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x25
call fcn.0046e600
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x46fc25
mov ecx, 9
mov esi, 0x4fd0f4
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x47], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x37], eax
push 1
push 0x4fd0b8
call fcn.004727b0
mov dword [ebp - 0x32], eax
push 1
push 0x4fd048
call fcn.004727b0
mov dword [ebp - 0x2d], eax
cmp dword [ebp - 0x24], 0
je 0x46fc9b
lea ecx, [ebp - 0x50]
push ecx
push 0x25
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x46fc95
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
and edx, 4
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x46fc86
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x58]
mov dword [edx], eax
jmp 0x46fc93
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0046e720
jmp 0x46fc9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], 0
je 0x46fcb4
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4714d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.00470400
test eax, eax
je 0x4714e6
xor eax, eax
jmp 0x471585
mov dword [ebp - 0xc], 0
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
push 0x8000
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push bind
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0xffffffff
je 0x471582
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x471578
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x471b10
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
push 0
push 0
push 3
push 0
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x471bda
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x471bd0
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x471bc6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x471bbc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0x4550
jne 0x471bbc
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x20b
jne 0x471bbc
mov dword [ebp - 8], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x472180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512448
push 0x487a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.00470510
test eax, eax
jne 0x4721f5
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x4721f5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x4721f5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x472221
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4725c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x110]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x4fd354
push 0x4fd348
call fcn.00474b30
add esp, 0x14
push 1
lea eax, [ebp - 0x110]
push eax
call fcn.00474940
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x472662
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x472652
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x114], 1
jmp 0x472658
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x114]
mov esp, ebp
pop ebp
ret 4

Function at 0x474260
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x51e03c], 0xffffffff
jne 0x4742dc
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.00485960
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
ja 0x4742c6
cmp dword [ebp - 0x114], 6
jne 0x4742ba
cmp dword [ebp - 0x110], 1
ja 0x4742c6
mov dword [ebp - 0x11c], 0
jmp 0x4742d0
mov dword [ebp - 0x11c], 1
mov edx, dword [ebp - 0x11c]
mov dword [0x51e03c], edx
xor eax, eax
cmp dword [0x51e03c], 1
sete al
mov esp, ebp
pop ebp
ret
Function at 0x477c80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x477d5f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
jne 0x477d5f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x477d5f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x50]
jae 0x477d5f
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
je 0x477d5f
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xc], 0
je 0x477d5f
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 0
je 0x477d5f
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
cmp eax, dword [edx + 0x50]
jae 0x477d5f
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x10]
je 0x477d5f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0
je 0x477d54
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0xc]
jne 0x477d49
push 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.0046e7e0
test eax, eax
je 0x477d49
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
jmp 0x477d20
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov dword [ebp - 0x10], eax
jmp 0x477ce9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47c0d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [0x524e14], 0
je 0x47c0eb
cmp dword [0x524e18], 0
jne 0x47c13e
push 1
push 0x4fd88c
call fcn.00472820
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ecx, dword [ebp - 8]
add ecx, 0xa
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x47c13c
mov edx, dword [0x524e10]
sub edx, dword [ebp - 8]
sub edx, 0xe
mov eax, dword [ebp - 8]
mov dword [eax + 0xa], edx
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 4
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x47c149
push 0x47bde0
call dword [0x524e18]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4

Function at 0x4815c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x51e584]
jne 0x4815d3
repz ret
jmp fcn.0048965e
Function at 0x48e6ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51e584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00489877
and dword [ebp - 0x14], 0
cmp dword [0x52520c], 0
mov dword [ebp - 0x18], eax
jne 0x48e75f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48e807
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48e807
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x52520c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x525210], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x525214], eax
call edi
push eax
call esi
mov dword [0x52521c], eax
test eax, eax
je 0x48e75f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x525218], eax
mov eax, dword [0x525218]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x48e7b8
cmp dword [0x52521c], ecx
je 0x48e7b8
push eax
call esi
push dword [0x52521c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48e7b8
test ebx, ebx
je 0x48e7b8
call edi
test eax, eax
je 0x48e7af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48e7af
test byte [ebp - 8], 1
jne 0x48e7b8
or dword [ebp + 0x10], 0x200000
jmp 0x48e7eb
mov eax, dword [0x525210]
cmp eax, dword [ebp - 0x18]
je 0x48e7eb
push eax
call esi
test eax, eax
je 0x48e7eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48e7eb
mov eax, dword [0x525214]
cmp eax, dword [ebp - 0x18]
je 0x48e7eb
push eax
call esi
test eax, eax
je 0x48e7eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x52520c]
call esi
test eax, eax
je 0x48e807
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48e809
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004815c9
leave
ret

Function at 0x49bf10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, edx
push esi
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49bf20
sub eax, esi
add eax, edx
mov ecx, 0x811c9dc5
cmp edx, eax
je 0x49bf44
movsx esi, byte [edx]
imul ecx, ecx, 0x1000193
inc edx
xor ecx, esi
cmp edx, eax
jne 0x49bf34
and ecx, 0x7fffffff
push 0x1f31d
push ecx
call fcn.004e6e9c
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
add esp, 8
sub edx, eax
pop esi
mov eax, edx
jns 0x49bf70
add eax, 0x7fffffff
pop ebp
ret 4
Function at 0x4a5bb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8036
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x51e584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], ebx
mov dword [ebp - 4], ebx
mov byte [esi + 0x20], bl
push 0x14
mov byte [ebp - 4], 1
mov dword [esi + 0x4c], ebx
call fcn.004819d0
add esp, 4
cmp eax, ebx
je 0x4a5c64
mov dword [esi + 0x48], eax
mov dword [eax], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x48]
mov byte [eax + 0x10], 1
mov ecx, dword [esi + 0x48]
mov byte [ecx + 0x11], 1
mov dword [esi + 0x54], ebx
mov dword [esi + 0x6c], 0xf
mov dword [esi + 0x68], ebx
mov byte [esi + 0x58], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], ebx
call fcn.00481ae9
push 0x517078
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.00489e3f
int3