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

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
call fcn.004f2040
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 0x4de0b5
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.004ddc30
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 0x4de120
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 0x4de142
mov eax, dword [ebx + 0x50]
test eax, eax
jne 0x4de142
movzx eax, di
mov dword [ebx + 0x50], eax
call fcn.004f2040
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 0x4de183
call fcn.004d54f0
test eax, eax
je 0x4de181
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4de183
xor eax, eax
push esi
push eax
push ebp
mov ecx, ebx
mov dword [ebx + 0x60], 0
call fcn.004ddc30
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 0x4e06b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x503271
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.004d5230
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.004d5230
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.004d5230
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.004d51d0
add esp, 4
cmp eax, ebp
je 0x4e074e
push fcn.004015e5
push fcn.004015d1
push edi
lea ebp, [eax + 4]
push 4
push ebp
mov dword [eax], edi
call fcn.004b092b
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 0x4e0767
xor eax, eax
jmp 0x4e0779
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e0770
sub eax, edi
push eax
push edx
mov ecx, ebx
call fcn.0040165c
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x4e078e
xor eax, eax
jmp 0x4e079c
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e0793
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 0x4e0d80
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 0x4e0dcd
push 0x100
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x4e0dcd
push edi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4e0dd5
push edi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebx
add esp, 0x100
ret 8
Function at 0x4e3220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5022ab
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 0x4e32c6
mov dword [esi + 0x20], 0x80
mov dword [esi + 0x30], ebp
jmp 0x4e32c9
mov dword [esi + 0x20], eax
cmp dword [esi + 0x30], ebp
mov edi, dword [esi + 0x20]
jne 0x4e32fc
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 0x4e32fa
mov eax, dword [esi + 0x20]
push eax
call fcn.004d51d0
add esp, 4
mov dword [esi + 0x30], eax
mov dword [esi + 0x1c], ebp
jmp 0x4e32fc
xor edi, edi
mov eax, dword [esi + 0x30]
test byte [esi + 0x18], 1
lea ecx, [eax + edi]
mov dword [esi + 0x2c], ecx
je 0x4e3310
mov dword [esi + 0x28], ecx
jmp 0x4e3313
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 0x4e5e00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x503867
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.004de200
xor edi, edi
mov dword [esp + 0x18], edi
call fcn.004d5230
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 [0x5543d0], edi
mov ebx, 1
mov byte [esp + 0x18], bl
je 0x4e5f06
mov dword [esi + 0x1c], edi
cmp dword [0x55b540], edi
jne 0x4e5ec5
push 0x1c
call fcn.004d51d0
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x18], 2
je 0x4e5eba
push 0xa
mov ecx, eax
call fcn.004d4640
jmp 0x4e5ebc
xor eax, eax
mov byte [esp + 0x18], bl
mov dword [0x55b540], eax
cmp dword [0x55b53c], edi
jne 0x4e5ef8
push 0x20
call fcn.004d51d0
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x18], 3
je 0x4e5eed
mov ecx, eax
call fcn.004f4c10
jmp 0x4e5eef
xor eax, eax
mov byte [esp + 0x18], bl
mov dword [0x55b53c], eax
mov ecx, dword [0x55b540]
push esi
call fcn.004d4710
jmp 0x4e5f10
mov ecx, esi
mov dword [esi + 0x1c], ebx
call fcn.004e5d40
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 0x4e6460
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4e64b4
mov eax, dword [esp + 0x18]
push eax
call fcn.004f2430
mov esi, eax
test esi, esi
jne 0x4e6484
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 0x508a7c
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 0x4e64f0
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 0x4e6585
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x4e6527
call fcn.004f2380
mov esi, eax
test esi, esi
jne 0x4e6519
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 0x4e656f
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x4e6549
mov edx, dword [esp + 0x10]
push edx
call fcn.004f2430
mov esi, eax
test esi, esi
je 0x4e6511
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4e656f
mov eax, dword [esp + 0x10]
push eax
call fcn.004f2430
mov esi, eax
test esi, esi
je 0x4e6511
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 0x4e65b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x50]
test eax, eax
push esi
push edi
je 0x4e6602
mov eax, dword [esp + 0x10]
push eax
call fcn.004f2430
mov esi, eax
test esi, esi
jne 0x4e65d2
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.004d51d0
mov esi, eax
add esp, 4
xor eax, eax
test edi, edi
jbe 0x4e663e
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 0x4e6620
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.004e64f0
push esi
mov edi, eax
call fcn.004d5210
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4e6dd0
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.004d6100
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x4e6e07
mov ecx, dword [esi + 4]
push edi
call fcn.004d60b0
test eax, eax
jne 0x4e6e03
call fcn.004d2000
mov ebx, dword [esp + 0x10]
cmp dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 0xc], 1
je 0x4e6e8b
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 0x4e6e43
push esi
mov ecx, edi
call fcn.00401530
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 0x4e6e6e
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 0x4e6e73
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.004e0d80
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x4ecb10
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 0x4ecbca
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
push edi
push esi
call fcn.004d9f20
mov edi, eax
test edi, edi
je 0x4ecbb4
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x1c]
cmp ebp, esi
je 0x4ecbb4
mov eax, esi
cmp ebp, eax
je 0x4ecb61
push eax
call fcn.004db6c0
test eax, eax
jne 0x4ecb51
jmp 0x4ecbb4
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4ecb8b
and eax, 0x18000000
cmp eax, 0x10000000
jne 0x4ecbb4
push 0
push esi
call ebx
mov eax, dword [edi + 0x38]
or eax, 2
jmp 0x4ecbb1
test eax, 0x18000000
jne 0x4ecbb4
test byte [edi + 0x38], 2
je 0x4ecbb4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xb0]
test eax, eax
jne 0x4ecbb4
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 0x4ecb38
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4
Function at 0x4eddc0
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.004e0e10
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4edf92
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
je 0x4ede02
mov eax, dword [esp + 0x44]
mov edx, dword [ecx]
push 0
push eax
push ebx
call dword [edx + 0x74]
test eax, eax
jne 0x4edf8f
lea ecx, [esp + 0x14]
call fcn.004de5e0
mov dword [esp + 0x20], ebx
call fcn.004f2030
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebx + 4]
jne 0x4ede22
mov dword [esp + 0x38], ebx
jmp 0x4ede7a
mov edx, dword [ebp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_GetMenu]
push edx
call esi
test eax, eax
je 0x4ede7a
mov ecx, ebp
call fcn.004db750
test eax, eax
je 0x4ede7a
mov eax, dword [eax + 0x1c]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4ede7a
push edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x4ede76
push esi
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, dword [ebx + 4]
je 0x4ede6c
inc esi
cmp esi, ebp
jl 0x4ede58
jmp 0x4ede76
push edi
call fcn.004de940
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 0x4edf8f
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 0x4edf7a
cmp eax, 0xffffffff
jne 0x4edefa
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.004de940
test eax, eax
mov dword [esp + 0x24], eax
je 0x4edf7a
mov edx, dword [eax + 4]
push 0
push edx
call edi
test eax, eax
mov dword [esp + 0x18], eax
je 0x4edf7a
cmp eax, 0xffffffff
je 0x4edf7a
push 0
jmp 0x4edf1a
mov ecx, dword [ebp + 0x50]
test ecx, ecx
mov dword [esp + 0x24], 0
je 0x4edf17
cmp eax, 0xf000
jae 0x4edf17
mov eax, 1
jmp 0x4edf19
xor eax, eax
push eax
lea ecx, [esp + 0x18]
push ebp
call fcn.004de610
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 0x4edf70
mov ecx, dword [esp + 0x1c]
mov edx, esi
sub edx, eax
add ecx, edx
cmp ecx, esi
mov dword [esp + 0x1c], ecx
jae 0x4edf74
lea ebx, [ebx]
mov eax, dword [ebx + 4]
push ecx
push eax
call edi
cmp eax, dword [esp + 0x18]
jne 0x4edf70
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, esi
mov dword [esp + 0x1c], ecx
jb 0x4edf50
mov dword [esp + 0x34], esi
jmp 0x4edf7e
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], esi
jmp 0x4edf7e
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
inc ecx
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jb 0x4edea0
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x2c
ret 0xc
Function at 0x4f22f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x501f28
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.004de200
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.004f2030
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 0x4f2490
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x50]
sub esp, 8
test eax, eax
push esi
je 0x4f24f5
mov eax, dword [esp + 0x10]
push eax
call fcn.004f2430
mov esi, eax
test esi, esi
jne 0x4f24b6
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 0x4f24ab
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
Function at 0x4f2520
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x501fab
push eax
mov eax, 0x100c
mov dword fs:[0], esp
call fcn.004af8b0
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
cmp dword [ecx + 0x50], edi
je 0x4f267e
mov eax, dword [esp + 0x102c]
push eax
call fcn.004f2430
mov ebp, eax
cmp ebp, edi
jne 0x4f2571
mov ecx, dword [esp + 0x1034]
push ecx
jmp 0x4f26b8
push ebx
call fcn.004d5230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x1034]
lea eax, [esp + 0x18]
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push ebp
mov dword [esp + 0x103c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x4f25f2
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00401619
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [esp + 0x10]
test esi, esi
mov edi, eax
jne 0x4f25dd
xor eax, eax
jmp 0x4f25eb
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f25e2
sub eax, edx
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop ebx
jne 0x4f263f
add esi, 0xfffffff0
push esi
call fcn.00401577
mov edi, dword [esp + 0x102c]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x1020], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4f2638
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, edi
jmp 0x4f26c8
mov eax, dword [esp + 0x1034]
mov edi, dword [esp + 0x1028]
push eax
mov ecx, edi
call fcn.00403991
lea eax, [esi - 0x10]
mov dword [esp + 0x1020], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f267a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
jmp 0x4f26c8
mov eax, dword [esp + 0x1034]
cmp eax, edi
jne 0x4f268e
mov eax, 0x506b47
mov ecx, dword [ecx + 0x64]
push ecx
mov ecx, dword [esp + 0x1030]
push 0x1000
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x1040]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x18]
push edx
mov esi, dword [esp + 0x102c]
mov ecx, esi
call fcn.00403991
mov eax, esi
mov ecx, dword [esp + 0x1018]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1018
ret 0x10
Function at 0x4f26f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x501fc8
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov dword [ebx], 0
mov dword [esi], 0
mov eax, dword [ecx + 0x50]
test eax, eax
mov eax, dword [esp + 0x1c]
push edi
je 0x4f27a6
push eax
call fcn.004f2430
mov edi, eax
test edi, edi
je 0x4f279f
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push 0
lea edx, [esp + 0x30]
push edx
push 0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x2c]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
jne 0x4f277f
push eax
call fcn.004d51d0
add esp, 4
lea edx, [esp + 0x20]
push edx
push eax
mov dword [ebx], eax
lea eax, [esp + 0x30]
push eax
push esi
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4f285e
mov ecx, dword [ebx]
push ecx
call fcn.004d5210
add esp, 4
mov dword [ebx], 0
xor eax, eax
jmp 0x4f2863
mov edx, dword [esp + 0x24]
push 0
push edx
push eax
lea edx, [esp + 0x38]
push edx
call fcn.004f2520
mov eax, dword [esp + 0x2c]
mov edi, dword [eax - 0xc]
test edi, edi
mov dword [esp + 0x18], 0
jne 0x4f27f1
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f27ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4f2863
mov eax, edi
shr eax, 1
push eax
mov dword [esi], eax
call fcn.004d51d0
add esp, 4
xor esi, esi
test edi, edi
mov dword [ebx], eax
jle 0x4f2838
jmp 0x4f2810
mov eax, dword [esp + 0x2c]
mov cl, byte [esi + eax + 1]
mov al, byte [esi + eax]
dec cl
shl cl, 4
add cl, al
mov eax, esi
cdq
sub eax, edx
mov edx, dword [ebx]
sub cl, 0x41
sar eax, 1
add esi, 2
cmp esi, edi
mov byte [eax + edx], cl
jl 0x4f2810
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f285e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x10