joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6122
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x542610
call fcn.004b4ec0
xor esi, esi
cmp dword [0x55bce0], esi
jne 0x4c6166
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c6151
mov dword [0x55bce0], edi
jmp 0x4c6166
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c6166
mov dword [0x55bce0], 2
mov eax, dword [0x55bce0]
cmp eax, 2
je 0x4c6247
cmp eax, esi
je 0x4c6247
cmp eax, 1
jne 0x4c61ab
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4c6194
mov eax, dword [0x55bb44]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4c61b2
xor eax, eax
jmp 0x4c6259
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004af8b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4c61e8
cmp edi, esi
jne 0x4c6203
lea eax, [ebx + ebx]
push eax
call fcn.004af827
pop ecx
mov edi, eax
cmp edi, esi
je 0x4c61ab
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c6236
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4c6220
push esi
push esi
jmp 0x4c6226
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4c6242
push edi
call fcn.004af839
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4c6259
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004b4efb
ret
Function at 0x4d2420
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x502769
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
push eax
mov esi, ecx
push 0
mov dword [esp + 0x14], esi
call fcn.004dd680
mov dword [esp + 0xb4], 0
mov dword [esi], vtable.CFileDialog.0
call fcn.004d5230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x78], eax
mov ebx, dword [ebp + 0x20]
test ebx, ebx
mov byte [esp + 0xb4], 1
jne 0x4d24bf
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x4d24ba
cmp dword [esp + 0x14], 5
mov ebx, 0x58
jae 0x4d24bf
mov ebx, 0x4c
push ebx
call fcn.004af827
add esp, 4
test eax, eax
mov dword [esi + 0x70], eax
jne 0x4d24d4
call fcn.004d1fe0
mov edi, dword [esi + 0x70]
xor eax, eax
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [esi + 0x74], eax
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov byte [esi + 0x7c], 0
mov byte [esi + 0xbc], 0
mov dword [esi + 0x1c0], 0
mov dword [eax], ebx
mov edx, dword [esi + 0x70]
lea ecx, [esi + 0x7c]
lea edi, [esi + 0xbc]
mov dword [edx + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov edx, dword [esi + 0x70]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x3c], eax
mov edx, dword [esi + 0x70]
mov dword [edx + 0x24], ecx
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x28], 0x40
mov eax, dword [esi + 0x70]
mov ebx, dword [eax + 0x34]
mov edx, ecx
or edx, 0x80020
or ebx, edx
test cl, 0x40
mov dword [eax + 0x34], ebx
je 0x4d256c
mov eax, dword [esi + 0x70]
and dword [eax + 0x34], 0xff7fffff
call fcn.004f2040
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov edx, dword [esi + 0x70]
mov dword [edx + 0x44], 0x4d2980
je 0x4d2598
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4d260c
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d25a4
sub eax, edi
push eax
lea edi, [esi + 0x78]
push edx
mov ecx, edi
call fcn.0040165c
mov eax, dword [edi]
mov ebx, dword [eax - 4]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, ebx
or ecx, edx
jge 0x4d25d8
push 0
mov ecx, edi
call fcn.00401530
mov edi, dword [edi]
push 0x7c
push edi
call fcn.004b098d
add esp, 8
test eax, eax
je 0x4d2603
lea esp, [esp]
mov byte [eax], 0
inc eax
push 0x7c
push eax
call fcn.004b098d
add esp, 8
test eax, eax
jne 0x4d25f0
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x78]
mov dword [edx + 0xc], eax
mov ecx, dword [esp + 0xac]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4d5ed0
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor eax, eax
mov ecx, 7
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
call fcn.004f2030
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
call edi
push 0
push 0
push 1
push 0
mov dword [esp + 0x30], eax
call edi
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov ebx, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
je 0x4d5fe5
test eax, eax
je 0x4d5fde
lea eax, [esi + 0x2c]
push eax
mov eax, dword [esp + 0x38]
mov ecx, ebx
or ecx, 4
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x18]
push edx
push 0x4d5d20
push eax
push ecx
call fcn.004b6692
add esp, 0x18
test eax, eax
mov dword [esi + 0x28], eax
je 0x4d5fec
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push edx
call ebp
mov eax, dword [esp + 0x20]
push eax
call edi
test bl, 4
je 0x4d5f94
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4d5fc4
mov edx, dword [esi + 0x28]
push 0xffffffffffffffff
push edx
call ebp
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esi + 0x28], 0
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0xc
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0xc
push ecx
call edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4d5fec
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0xc

Function at 0x4d6000
Capabilities:
Resume thread

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
call fcn.004dd420
mov esi, eax
test esi, esi
jne 0x4d6016
call fcn.004d1fe0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov edx, ebx
or edx, 4
push edx
mov ecx, esi
mov dword [esi + 0x30], 0
call fcn.004d5ed0
test eax, eax
jne 0x4d604a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
pop esi
xor eax, eax
pop ebx
ret 0x14
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test bl, 4
jne 0x4d6068
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebx
ret 0x14
Function at 0x4d69a0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x501f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x4d69e6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
call fcn.004d5230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
lea edx, [esp + 4]
push edx
mov dword [esp + 0x14], 0
call dword [eax + 0x8c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
mov esi, dword [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d6a55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4d6ce0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
push esi
mov esi, ecx
jne 0x4d6cef
pop esi
ret 8
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d6d1a
mov esi, dword [esi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004df8d0
mov eax, dword [esp + 0xc]
pop esi
ret 8

Function at 0x4d6d30
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov esi, ecx
je 0x4d6d7a
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d6d67
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004df8d0
cmp dword [esp + 0x10], edi
je 0x4d6d7a
mov eax, dword [esi + 0xc]
push eax
push 0xffffffffffffffff
push 0xd
call fcn.004df860
pop edi
pop esi
ret 8

Function at 0x4d6ef4
Capabilities:
Clear file content

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
push 0
push ecx
push edx
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d6f24
mov esi, dword [esi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004df8d0
pop esi
ret 8
Function at 0x4d6f30
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x4d6f6b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4d6f67
mov esi, dword [esi + 0xc]
push esi
call edi
push eax
call fcn.004df8d0
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop edi
pop esi
add esp, 8
ret

Function at 0x4d7220
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [esp + 0xc]
push eax
push str.CLSID
push 0x80000000
mov dword [esp + 0x18], 0
xor esi, esi
call edi
test eax, eax
jne 0x4d730d
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
push edx
push eax
call edi
test eax, eax
jne 0x4d7302
mov edx, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
push str.InProcServer32
push edx
mov dword [esp + 0x24], eax
call edi
test eax, eax
jne 0x4d72f7
mov esi, dword [esp + 0x1c]
push 0x104
mov ecx, esi
call fcn.00401619
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push 0
push 0x506b47
push eax
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esi]
test edx, edx
mov edi, eax
jne 0x4d72c5
xor ecx, ecx
jmp 0x4d72da
mov ecx, edx
push ebp
lea ebp, [ecx + 1]
jmp 0x4d72d0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d72d0
sub ecx, ebp
pop ebp
xor eax, eax
test edi, edi
mov dword [edx - 0xc], ecx
mov edx, dword [esi]
sete al
mov byte [ecx + edx], 0
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 8
Function at 0x4d73b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50202b
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
mov ebx, dword [esp + 0x164]
push esi
mov esi, dword [esp + 0x164]
lea eax, [esp + 0xc]
push eax
push esi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4d7405
push 0x104
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x4d74ed
push edi
call fcn.004d5230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x168], 0
call fcn.004d7320
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x4d74c2
push eax
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4d7485
lea eax, [edi - 0x10]
mov dword [esp + 0x160], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d7481
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4d74ec
test byte [esp + 0xc], 2
jne 0x4d7493
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [esp + 0xc], 4
jne 0x4d74c2
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4d74c2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi - 0x10]
mov dword [esp + 0x160], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d74e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop edi
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 8
Function at 0x4d77c0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x502073
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], vtable.CFile.0
call fcn.004d5230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
mov dword [esi + 4], 0xffffffff
call fcn.004a28c0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 8]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.004d7510
test eax, eax
jne 0x4d7848
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.004df860
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
mov dword [esp + 8], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d7873
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8

Function at 0x4d7b30
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
call dword [0x551110]
mov edi, dword [ebp + 0xc]
push 0x800
push 0x160
lea ecx, [ebp - 0x168]
push ecx
mov ebx, eax
mov eax, dword [ebp + 0x10]
push 0
push edi
mov byte [eax], 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4d7c5a
test dword [ebp - 0x160], 0x10000
je 0x4d7c5a
lea edx, [ebp - 4]
push edx
push 0x534200
push 0
push 0x534210
lea ecx, [ebp + 0x10]
call fcn.004d7ae0
test eax, eax
jl 0x4d7c5a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x543430
push eax
call dword [ecx]
test eax, eax
jl 0x4d7c51
test edi, edi
jne 0x4d7bc0
xor eax, eax
jmp 0x4d7be3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.004af8b0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.0040109d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push 0
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
jl 0x4d7c48
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d7bfd
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push 2
push eax
push ecx
call dword [edx + 0x4c]
test eax, eax
jl 0x4d7c48
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push 0
push edx
mov edx, dword [ebp + 0x10]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 1
lea esp, [ebp - 0x174]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
lea esp, [ebp - 0x174]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4db140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5021b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], edi
call fcn.004de5e0
lea ecx, [esp + 0x38]
call fcn.004de200
xor ebx, ebx
mov dword [esp + 0x38], vtable.CWnd.0
mov dword [esp + 0x64], vtable.CWnd::XAccessible.0
mov dword [esp + 0x68], vtable.CWnd::XAccessibleServer.0
mov dword [esp + 0x54], ebx
mov byte [esp + 0x58], bl
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov eax, dword [edi + 0x1c]
push eax
mov dword [esp + 0x94], ebx
call dword [sym.imp.USER32.dll_GetTopWindow]
mov esi, eax
cmp esi, ebx
je 0x4db2ad
push ebp
mov ebp, dword [esp + 0xa0]
push esi
mov dword [esp + 0x5c], esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
movzx ecx, ax
lea edx, [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
call fcn.004f2070
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x4db22c
push esi
lea ecx, [eax + 0x1c]
call fcn.004d4c60
cmp eax, ebx
je 0x4db22c
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0xbd11ffff
push ebx
mov ecx, eax
call fcn.004de3e0
test eax, eax
jne 0x4db299
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x18]
push edx
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.004de3e0
test eax, eax
jne 0x4db299
cmp ebp, ebx
mov edi, ebp
je 0x4db283
mov ecx, dword [esp + 0x58]
push ebx
push ebx
push 0x87
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test ah, 0x20
je 0x4db281
lea ecx, [esp + 0x3c]
call fcn.004d61a0
and eax, 0xf
cmp eax, 3
je 0x4db281
cmp eax, 6
je 0x4db281
cmp eax, 7
je 0x4db281
cmp eax, 9
jne 0x4db283
xor edi, edi
mov edx, dword [esp + 0x9c]
push edi
push edx
lea ecx, [esp + 0x1c]
call fcn.004de610
mov edi, dword [esp + 0x10]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
cmp esi, ebx
jne 0x4db1e2
pop ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x90], 0xffffffff
call fcn.004dac10
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret 8

Function at 0x4dcd50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
xor edi, edi
xor esi, esi
test ebp, ebp
mov dword [esp + 0x10], ecx
je 0x4dcd9d
call fcn.004f2040
mov ebx, dword [eax + 0xc]
push 0xf0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4dcd9d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4dcd94
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [esp + 0x10]
push edi
call fcn.004dba10
test edi, edi
mov ebx, eax
je 0x4dcdb8
test esi, esi
je 0x4dcdb8
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 4
Function at 0x4ddea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502360
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.004f2040
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4ddf03
call fcn.004f2040
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 0x4ddf11
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4ddf2c
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.004f2040
mov eax, dword [eax + 4]
test eax, eax
je 0x4ddf41
push 0
mov ecx, eax
call fcn.004e6670
mov eax, dword [esi + 0x64]
test eax, eax
je 0x4ddf4b
mov eax, dword [eax + 0x1c]
lea edx, [esi + 0x68]
push edx
push eax
call fcn.004e66b0
mov edi, eax
push esi
mov dword [ebp - 0x24], edi
call fcn.004dc050
call fcn.004d9fc0
test edi, edi
mov dword [ebp - 0x20], 0
je 0x4ddf95
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x4ddf95
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4ddf95
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.004dc050
push edi
call fcn.004d9ef0
push ebx
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004ddc30
test eax, eax
je 0x4de01a
test byte [esi + 0x38], 0x10
je 0x4ddfdd
mov ecx, esi
mov ebx, 4
call fcn.004d61a0
test ah, 1
je 0x4ddfd5
mov ebx, 5
push ebx
mov ecx, esi
call fcn.004d98c0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4de01a
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.004d64d0
jmp 0x4de01a
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x4de031
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x4de047
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4de047
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.004dd920
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4de066
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