joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc9f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
push edi
mov edi, dword [esi + 0x58]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
call fcn.004f0b90
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4dca53
call fcn.004f0b90
mov ecx, dword [esi + 0x54]
mov ebx, dword [eax + 0xc]
push 5
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
mov edi, eax
test edi, edi
je 0x4dca61
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4dca7c
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004f0b90
mov eax, dword [eax + 4]
test eax, eax
je 0x4dca91
push 0
mov ecx, eax
call fcn.004e51c0
mov eax, dword [esi + 0x64]
test eax, eax
je 0x4dca9b
mov eax, dword [eax + 0x1c]
lea edx, [esi + 0x68]
push edx
push eax
call fcn.004e5200
mov edi, eax
push esi
mov dword [ebp - 0x24], edi
call fcn.004daba0
call fcn.004d8b10
test edi, edi
mov dword [ebp - 0x20], 0
je 0x4dcae5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x4dcae5
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4dcae5
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], 0
call fcn.004daba0
push edi
call fcn.004d8a40
push ebx
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004dc780
test eax, eax
je 0x4dcb6a
test byte [esi + 0x38], 0x10
je 0x4dcb2d
mov ecx, esi
mov ebx, 4
call fcn.004d4cf0
test ah, 1
je 0x4dcb25
mov ebx, 5
push ebx
mov ecx, esi
call fcn.004d8410
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4dcb6a
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.004d5020
jmp 0x4dcb6a
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x4dcb81
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x4dcb97
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4dcb97
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
mov ecx, esi
call fcn.004dc470
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4dcbb6
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dcbd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
call fcn.004f0b90
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x14]
push 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4dcc05
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [esp + 0x18]
push esi
push ecx
push ebx
mov ecx, ebp
call fcn.004dc780
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4dcc70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, 0xffff0000
mov ebx, ecx
mov dword [ebx + 0x54], edi
jne 0x4dcc92
mov eax, dword [ebx + 0x50]
test eax, eax
jne 0x4dcc92
movzx eax, di
mov dword [ebx + 0x50], eax
call fcn.004f0b90
mov esi, dword [eax + 0xc]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4dccd3
call fcn.004d44b0
test eax, eax
je 0x4dccd1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4dccd3
xor eax, eax
push esi
push eax
push ebp
mov ecx, ebx
mov dword [ebx + 0x60], 0
call fcn.004dc780
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4df200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x501d41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CRecentFileList.0
lea ebx, [esi + 0xc]
call fcn.004d41f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
xor ebp, ebp
mov dword [esp + 0x1c], ebp
call fcn.004d41f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x1c], 1
call fcn.004d41f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov edi, dword [esp + 0x30]
lea eax, [edi*4 + 4]
push eax
mov byte [esp + 0x20], 2
call fcn.004d4190
add esp, 4
cmp eax, ebp
je 0x4df29e
push fcn.00401530
push fcn.004015db
push edi
lea ebp, [eax + 4]
push 4
push ebp
mov dword [eax], edi
call fcn.004afbcb
mov edx, dword [esp + 0x28]
test edx, edx
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], ebp
mov dword [esi + 4], edi
mov dword [esi + 0x14], ecx
jne 0x4df2b7
xor eax, eax
jmp 0x4df2c9
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4df2c0
sub eax, edi
push eax
push edx
mov ecx, ebx
call fcn.0040165c
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x4df2de
xor eax, eax
jmp 0x4df2ec
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4df2e3
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x10]
call fcn.0040165c
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x18], edx
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x4df8d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
mov edi, dword [esp + 0x114]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [esp + 0x110]
mov esi, eax
cmp esi, 0x100
ja 0x4df91d
push 0x100
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x4df91d
push edi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4df925
push edi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebx
add esp, 0x100
ret 8
Function at 0x4e1d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x500d7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
lea ecx, [esi + 0x14]
push ecx
mov ecx, edi
mov dword [esp + 0x10], esi
call dword [eax + 0x18]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x18], eax
not al
xor ebp, ebp
and al, 1
neg al
push ebp
push ebp
push ebp
mov dword [esi + 0x24], edi
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x38], ebp
sbb eax, eax
and eax, 0xffffffd0
add eax, 0x40
mov dword [esi], ebp
mov dword [esi + 4], 1
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 0x89
mov dword [esi + 0x30], edx
mov dword [esi + 0x1c], 1
mov dword [esi + 8], ebp
mov eax, dword [edi]
push 3
mov ecx, edi
mov dword [esp + 0x28], ebp
call dword [eax + 0x50]
and eax, 2
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
cmp eax, 0x80
jge 0x4e1e16
mov dword [esi + 0x20], 0x80
mov dword [esi + 0x30], ebp
jmp 0x4e1e19
mov dword [esi + 0x20], eax
cmp dword [esi + 0x30], ebp
mov edi, dword [esi + 0x20]
jne 0x4e1e4c
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push ebp
push ebp
push ebp
push 3
call dword [edx + 0x50]
and eax, 1
mov dword [esi + 8], eax
jne 0x4e1e4a
mov eax, dword [esi + 0x20]
push eax
call fcn.004d4190
add esp, 4
mov dword [esi + 0x30], eax
mov dword [esi + 0x1c], ebp
jmp 0x4e1e4c
xor edi, edi
mov eax, dword [esi + 0x30]
test byte [esi + 0x18], 1
lea ecx, [eax + edi]
mov dword [esi + 0x2c], ecx
je 0x4e1e60
mov dword [esi + 0x28], ecx
jmp 0x4e1e63
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x4e4950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x502337
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004dcd50
xor edi, edi
mov dword [esp + 0x18], edi
call fcn.004d41f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
cmp dword [0x5523d0], edi
mov ebx, 1
mov byte [esp + 0x18], bl
je 0x4e4a56
mov dword [esi + 0x1c], edi
cmp dword [0x559000], edi
jne 0x4e4a15
push 0x1c
call fcn.004d4190
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x18], 2
je 0x4e4a0a
push 0xa
mov ecx, eax
call fcn.004d3600
jmp 0x4e4a0c
xor eax, eax
mov byte [esp + 0x18], bl
mov dword [0x559000], eax
cmp dword [0x558ffc], edi
jne 0x4e4a48
push 0x20
call fcn.004d4190
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x18], 3
je 0x4e4a3d
mov ecx, eax
call fcn.004f3760
jmp 0x4e4a3f
xor eax, eax
mov byte [esp + 0x18], bl
mov dword [0x558ffc], eax
mov ecx, dword [0x559000]
push esi
call fcn.004d36d0
jmp 0x4e4a60
mov ecx, esi
mov dword [esi + 0x1c], ebx
call fcn.004e4890
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x4e4fb0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4e5004
mov eax, dword [esp + 0x18]
push eax
call fcn.004f0f80
mov esi, eax
test esi, esi
jne 0x4e4fd4
pop esi
add esp, 0x10
ret 0xc
mov edx, dword [esp + 0x1c]
push edi
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x506a6c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi + 0x64]
mov ecx, dword [esp + 0x28]
add esp, 0xc
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop esi
add esp, 0x10
ret 0xc
Function at 0x4e5040
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov eax, dword [ecx + 0x50]
test eax, eax
push ebx
push esi
push edi
je 0x4e50d5
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x4e5077
call fcn.004f0ed0
mov esi, eax
test esi, esi
jne 0x4e5069
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4e50bf
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x4e5099
mov edx, dword [esp + 0x10]
push edx
call fcn.004f0f80
mov esi, eax
test esi, esi
je 0x4e5061
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4e50bf
mov eax, dword [esp + 0x10]
push eax
call fcn.004f0f80
mov esi, eax
test esi, esi
je 0x4e5061
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
ret 0xc
mov ecx, dword [ecx + 0x64]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x4e5100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x50]
test eax, eax
push esi
push edi
je 0x4e5152
mov eax, dword [esp + 0x10]
push eax
call fcn.004f0f80
mov esi, eax
test esi, esi
jne 0x4e5122
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push 3
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebp
ret 0x10
mov edi, dword [esp + 0x1c]
lea ecx, [edi + edi + 1]
push ecx
call fcn.004d4190
mov esi, eax
add esp, 4
xor eax, eax
test edi, edi
jbe 0x4e518e
mov ecx, dword [esp + 0x18]
nop
mov dl, byte [eax + ecx]
and dl, 0xf
add dl, 0x41
mov byte [esi + eax*2], dl
mov dl, byte [eax + ecx]
shr dl, 4
add dl, 0x41
mov byte [esi + eax*2 + 1], dl
inc eax
cmp eax, edi
jb 0x4e5170
mov ecx, dword [esp + 0x10]
mov byte [esi + eax*2], 0
mov eax, dword [esp + 0x14]
push esi
push eax
push ecx
mov ecx, ebp
call fcn.004e5040
push esi
mov edi, eax
call fcn.004d41d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4e5920
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 4]
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push edi
call fcn.004d4c50
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x4e5957
mov ecx, dword [esi + 4]
push edi
call fcn.004d4c00
test eax, eax
jne 0x4e5953
call fcn.004d0fc0
mov ebx, dword [esp + 0x10]
cmp dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 0xc], 1
je 0x4e59db
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, dword [esp + 0x18]
mov esi, eax
mov eax, dword [edi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov ecx, 1
sub ecx, edx
mov edx, dword [eax + 8]
sub edx, esi
or ecx, edx
jge 0x4e5993
push esi
mov ecx, edi
call fcn.0040153a
mov eax, dword [edi]
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
mov byte [esi + ecx], 0
inc esi
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [edi]
test ecx, ecx
jne 0x4e59be
xor eax, eax
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
pop edi
pop esi
mov byte [eax + edx], al
pop ebx
ret 0xc
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e59c3
sub eax, esi
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
pop edi
pop esi
mov byte [eax + edx], 0
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004df8d0
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x4eb660
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
push 5
mov dword [esp + 8], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x4eb71a
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
push edi
push esi
call fcn.004d8a70
mov edi, eax
test edi, edi
je 0x4eb704
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x1c]
cmp ebp, esi
je 0x4eb704
mov eax, esi
cmp ebp, eax
je 0x4eb6b1
push eax
call fcn.004da210
test eax, eax
jne 0x4eb6a1
jmp 0x4eb704
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4eb6db
and eax, 0x18000000
cmp eax, 0x10000000
jne 0x4eb704
push 0
push esi
call ebx
mov eax, dword [edi + 0x38]
or eax, 2
jmp 0x4eb701
test eax, 0x18000000
jne 0x4eb704
test byte [edi + 0x38], 2
je 0x4eb704
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xb0]
test eax, eax
jne 0x4eb704
push 4
push esi
call ebx
mov eax, dword [edi + 0x38]
and eax, 0xfffffffd
mov dword [edi + 0x38], eax
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x4eb688
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4
Function at 0x4ec910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x1c]
push eax
mov dword [esp + 8], ebp
call fcn.004df960
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4ecae2
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
je 0x4ec952
mov eax, dword [esp + 0x44]
mov edx, dword [ecx]
push 0
push eax
push ebx
call dword [edx + 0x74]
test eax, eax
jne 0x4ecadf
lea ecx, [esp + 0x14]
call fcn.004dd130
mov dword [esp + 0x20], ebx
call fcn.004f0b80
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebx + 4]
jne 0x4ec972
mov dword [esp + 0x38], ebx
jmp 0x4ec9ca
mov edx, dword [ebp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_GetMenu]
push edx
call esi
test eax, eax
je 0x4ec9ca
mov ecx, ebp
call fcn.004da2a0
test eax, eax
je 0x4ec9ca
mov eax, dword [eax + 0x1c]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4ec9ca
push edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x4ec9c6
push esi
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, dword [ebx + 4]
je 0x4ec9bc
inc esi
cmp esi, ebp
jl 0x4ec9a8
jmp 0x4ec9c6
push edi
call fcn.004dd490
mov dword [esp + 0x38], eax
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ecx
jbe 0x4ecadf
mov edi, dword [sym.imp.USER32.dll_GetMenuItemID]
lea esp, [esp]
mov edx, dword [ebx + 4]
push ecx
push edx
call edi
test eax, eax
mov dword [esp + 0x18], eax
je 0x4ecaca
cmp eax, 0xffffffff
jne 0x4eca4a
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.004dd490
test eax, eax
mov dword [esp + 0x24], eax
je 0x4ecaca
mov edx, dword [eax + 4]
push 0
push edx
call edi
test eax, eax
mov dword [esp + 0x18], eax
je 0x4ecaca
cmp eax, 0xffffffff
je 0x4ecaca
push 0
jmp 0x4eca6a
mov ecx, dword [ebp + 0x50]
test ecx, ecx
mov dword [esp + 0x24], 0
je 0x4eca67
cmp eax, 0xf000
jae 0x4eca67
mov eax, 1
jmp 0x4eca69
xor eax, eax
push eax
lea ecx, [esp + 0x18]
push ebp
call fcn.004dd160
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov esi, eax
mov eax, dword [esp + 0x34]
cmp esi, eax
jae 0x4ecac0
mov ecx, dword [esp + 0x1c]
mov edx, esi
sub edx, eax
add ecx, edx
cmp ecx, esi
mov dword [esp + 0x1c], ecx
jae 0x4ecac4
lea ebx, [ebx]
mov eax, dword [ebx + 4]
push ecx
push eax
call edi
cmp eax, dword [esp + 0x18]
jne 0x4ecac0
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, esi
mov dword [esp + 0x1c], ecx
jb 0x4ecaa0
mov dword [esp + 0x34], esi
jmp 0x4ecace
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], esi
jmp 0x4ecace
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
inc ecx
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jb 0x4ec9f0
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x2c
ret 0xc
Function at 0x4f0e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x500a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004dcd50
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CWinThread.0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.004f0b80
mov dword [eax + 0x34], edi
mov dword [eax + 0x54], edi
add eax, 0x4c
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x24], 1
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4f0e56
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x500a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004dcd50
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CWinThread.0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.004f0b80
mov dword [eax + 0x34], edi
mov dword [eax + 0x54], edi
add eax, 0x4c
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x24], 1
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4f0fe0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x50]
sub esp, 8
test eax, eax
push esi
je 0x4f1045
mov eax, dword [esp + 0x10]
push eax
call fcn.004f0f80
mov esi, eax
test esi, esi
jne 0x4f1006
mov eax, dword [esp + 0x18]
pop esi
add esp, 8
ret 0xc
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push ecx
push esi
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x4f0ffb
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 0xc
mov edx, dword [ecx + 0x64]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
add esp, 8
ret 0xc