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

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x415151
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov ebx, eax
push 0x415160
push 0x415170
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
je 0x41512f
call sub.user32.dll_GetForegroundWindow
xor edx, edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x415004
cmp eax, dword [esp]
pop edx
pop eax
jne 0x41512f
push 0
push 0x415178
push 0
push esi
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x41512f
mov edi, ebx
push edi
push 0xc8
push 0xd
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x41518c
call fcn.0040373c
push 0
push 0x415198
push 0
push esi
call sub.user32.dll_FindWindowExA
mov esi, eax
lea eax, [ebp - 4]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x418384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x418438]
mov eax, dword [eax]
mov edx, 0x4151a8
call fcn.00403800
jne 0x4150cf
push edi
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 0x4151b4
call fcn.0040373c
lea eax, [ebp - 4]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x41512f
push 0
push 0
push 0xcc
push esi
call sub.user32.dll_PostMessageA
push edi
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
push 0
push 0x2a
push 0xcc
push esi
call sub.user32.dll_PostMessageA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 0x4151b4
call fcn.0040373c
lea eax, [ebp - 4]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, ebx
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415158
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004034b8
ret
Function at 0x4151c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4153bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov ebx, eax
push 0x4153d0
push 0x4153dc
call sub.user32.dll_FindWindowA
push 0x4153d0
push 0x4153dc
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
jne 0x41521c
push 0x4153e4
push 0x4153dc
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
je 0x41539d
call sub.user32.dll_GetForegroundWindow
xor edx, edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x415239
cmp eax, dword [esp]
pop edx
pop eax
jne 0x41539d
push 0
push 0x4153f8
push 0
push esi
call sub.user32.dll_FindWindowExA
mov edi, eax
push ebx
push 0xc8
push 0xd
push edi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040364c
mov edx, dword [ebp - 8]
mov eax, 0x41540c
call fcn.00403980
test eax, eax
jle 0x41528b
push 0
push 0x4153f8
push edi
push esi
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
je 0x41539d
push ebx
push 0xc8
push 0xd
push edi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 0x41541c
call fcn.0040373c
push 0
push 0x415424
push 0
push esi
call sub.user32.dll_FindWindowExA
mov esi, eax
lea eax, [ebp - 4]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x418384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x418438]
mov eax, dword [eax]
mov edx, 0x415434
call fcn.00403800
jne 0x41533d
push ebx
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 0x415440
call fcn.0040373c
lea eax, [ebp - 4]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x41539d
push 0
push 0
push 0xcc
push esi
call sub.user32.dll_PostMessageA
push ebx
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
push 0
push 0x2a
push 0xcc
push esi
call sub.user32.dll_PostMessageA
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 0x415440
call fcn.0040373c
lea eax, [ebp - 4]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, ebx
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4153c6
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004034b8
ret
Function at 0x415448
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x415604
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov ebx, eax
push 0x415614
push 0x41561c
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
je 0x4155e2
call sub.user32.dll_GetForegroundWindow
xor edx, edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x41549c
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4155e2
push 0x415624
push 0x41562c
push 0
push esi
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
je 0x4155e2
push 0
push 0x415634
push 0
push esi
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
je 0x4155e2
push ebx
push 0xc8
push 0xd
push edi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x415644
call fcn.0040373c
push 0
push 0x415634
push edi
push esi
call sub.user32.dll_FindWindowExA
mov esi, eax
lea eax, [ebp - 4]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x418384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x418438]
mov eax, dword [eax]
mov edx, 0x415654
call fcn.00403800
jne 0x415582
push ebx
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 0x415660
call fcn.0040373c
lea eax, [ebp - 4]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4155e2
push 0
push 0
push 0xcc
push esi
call sub.user32.dll_PostMessageA
push ebx
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
push 0
push 0x2a
push 0xcc
push esi
call sub.user32.dll_PostMessageA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 0x415660
call fcn.0040373c
lea eax, [ebp - 4]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, ebx
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41560b
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004034b8
ret
Function at 0x415c4c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x415e77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov ebx, eax
call sub.user32.dll_GetForegroundWindow
mov esi, eax
push 0xc8
push ebx
push esi
call sub.user32.dll_GetWindowTextA
push 0
push 0x415e88
push 0
push esi
call sub.user32.dll_FindWindowExA
mov esi, eax
test esi, esi
je 0x415e55
push 0x415e90
push 0x415ea4
push 0
push esi
call sub.user32.dll_FindWindowExA
test eax, eax
jle 0x415e55
push 0
push 0x415eac
push 0
push esi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x415eac
push edi
push esi
call sub.user32.dll_FindWindowExA
mov esi, eax
test edi, edi
je 0x415e55
test esi, esi
je 0x415e55
push ebx
push 0xc8
push 0xd
push edi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040364c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00415ee0
test al, al
je 0x415d4b
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 0x415ebc
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x418384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x415d9e
lea eax, [ebp - 8]
mov edx, 0x415ebc
call fcn.0040352c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x418384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 8]
mov edx, 0x415ecc
call fcn.0040352c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x415e55
mov eax, dword [0x418438]
mov eax, dword [eax]
mov edx, 0x415edc
call fcn.00403800
jne 0x415df5
push ebx
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 0x415ecc
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x415e55
push 0
push 0
push 0xcc
push esi
call sub.user32.dll_PostMessageA
push ebx
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
push 0
push 0x2a
push 0xcc
push esi
call sub.user32.dll_PostMessageA
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 0x415ecc
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, ebx
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415e7e
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004034b8
ret
Function at 0x415ff4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4161c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, 0xc8
call fcn.004025a8
mov edi, eax
mov eax, 0xc8
call fcn.004025a8
mov esi, eax
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
push 0xc8
push edi
push ebx
call sub.user32.dll_GetClassNameA
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.0040364c
mov eax, dword [ebp - 0x10]
mov edx, 0x4161e0
call fcn.00403800
jne 0x41619c
xor eax, eax
push 0x4161e8
push 0x4161f4
push eax
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x41619c
push 0x4161fc
push 0x4161f4
push eax
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x41619c
push 0x416208
push 0x4161f4
push eax
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x41619c
push 0xc8
push esi
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.0040364c
mov eax, dword [ebp - 0x14]
mov edx, 0x41621c
call fcn.00403800
je 0x41619c
push 0
push 0x416228
push 0
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
jle 0x41619c
push esi
push 0xc8
push 0xd
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.0040364c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00415ee0
test al, al
je 0x41614e
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040364c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 0x41623c
call fcn.0040373c
lea eax, [ebp - 0xc]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x418384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov byte [ebp - 5], 1
jmp 0x41619c
lea eax, [ebp - 0xc]
mov edx, 0x41623c
call fcn.0040352c
lea eax, [ebp - 0xc]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x418384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, 0x41624c
call fcn.0040352c
lea eax, [ebp - 0xc]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, edi
call fcn.004025c0
mov eax, esi
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4161cc
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004034b8
ret
Function at 0x416990
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004038a4
xor eax, eax
push ebp
push 0x416b0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40eca8]
call fcn.00402af4
mov ebx, eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040352c
lea eax, [ebp - 0x14c]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040ecfc
mov eax, dword [ebp - 0x14c]
mov edx, 0x416b20
call fcn.00403800
je 0x416a3a
push dword [ebp - 4]
push 0x416b20
push 0x416b2c
lea eax, [ebp - 4]
mov edx, 3
call fcn.004037b0
lea eax, [ebp - 8]
mov ecx, 0x416b20
mov edx, dword [ebp - 4]
call fcn.0040373c
jmp 0x416a47
lea eax, [ebp - 4]
mov edx, 0x416b2c
call fcn.004036f8
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x416adf
mov eax, dword [ebp - 0x148]
add eax, 0xfffffff0
sub eax, 8
jb 0x416a79
add eax, 0xffffffe8
sub eax, 8
jae 0x416ac8
lea eax, [ebp - 0x11c]
cmp eax, 0x2e
je 0x416ac8
lea eax, [ebp - 0x11c]
cmp eax, 0x416b30
je 0x416ac8
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.004036c4
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 8]
call fcn.0040373c
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x148]
push eax
push ebx
call sub.KERNEL32.DLL_FindNextFileA
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x416a63
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416b11
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.004034b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004034b8
ret
Function at 0x4f0370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4f038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x519074
push ecx
mov edi, eax
call fcn.00504198
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f03cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0050402e
push esi
call fcn.00503fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4f3850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x4f38ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x51e720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x4f38ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005041e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x4f38ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x51e720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x4f392a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00505082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x4f3957
mov word [eax], si
add eax, 2
push eax
call fcn.00505030
add esp, 4
jmp 0x4f3959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x4f38ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x4f38b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x4f3ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4f4080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x4f40c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x519458
push ecx
call fcn.005041e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005041e1
add esp, 0x10
jmp 0x4f40d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0050420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00503dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004f4050
mov eax, dword [0x51e728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x4f413b
push esi
call fcn.004f3fb0
add esp, 4
mov dword [0x51e728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x4f414c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.004f3ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x4f7440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x4f74b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x4f748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4f7471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4f747e
add edx, ecx
cmp ebx, edx
jb 0x4f748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4f7467
xor ecx, ecx
jmp 0x4f74a2
test eax, eax
jne 0x4f7492
xor ecx, ecx
jmp 0x4f74a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.004f73c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x4f78f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f7921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x4f7946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x4f796e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x4f7993
push ecx
push esi
call fcn.004f74c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x4f8c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x4f8c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x4f8c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x4f8c38
add edx, eax
cmp ebx, edx
jb 0x4f8c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x4f8c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x4f8c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x4f8c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x4f8cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4f8c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4f8ca8
add edx, ecx
cmp ebx, edx
jb 0x4f8cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4f8c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x4f8f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00505145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x4f8ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4f8fdd
lea eax, [esp + 0x18]
push eax
jmp 0x4f8fe2
push 0x51e720
call fcn.00504fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x4f8fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x4f8f40
push 4
push ecx
push eax
call fcn.0050543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret