joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60a660
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x60a675
xor eax, eax
jmp 0x60a6ea
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x10000
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x60a6a2
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x38d
jae 0x60a6e5
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x40], 0
je 0x60a6e3
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x60a6df
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x60a6e3
xor eax, eax
jmp 0x60a6ea
jmp 0x60a699
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x60a7a0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x7627ac], 0
je 0x60a7b9
mov eax, dword [0x7627ac]
jmp 0x60a859
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x60a7cb
xor eax, eax
jmp 0x60a859
push 8
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x60a821
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x60a80a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x7627ac], eax
mov dword [0x7627b0], 0
mov eax, dword [ebp - 8]
jmp 0x60a859
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x60a83b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x60a7eb
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x7627b4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x7627b4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x60b1c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0060b3d0
add esp, 0xc
mov dword [ebp - 0x10], 0
cmp dword [0x76279c], 0
jne 0x60b1fd
cmp dword [0x762798], 0
je 0x60b1fd
mov eax, dword [0x762798]
mov dword [0x76279c], eax
cmp dword [0x76279c], 0
je 0x60b27a
mov ecx, dword [0x76279c]
cmp dword [ecx + 8], 0
je 0x60b27a
mov edx, dword [0x76279c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
jb 0x60b27a
mov ecx, dword [0x76279c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 4]
ja 0x60b27a
mov eax, dword [0x76279c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jb 0x60b249
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jbe 0x60b250
xor eax, eax
jmp 0x60b3c2
mov ecx, dword [0x76279c]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x60b3c2
mov edx, dword [0x762798]
mov dword [0x76279c], edx
jmp 0x60b296
mov eax, dword [0x76279c]
mov ecx, dword [eax + 4]
mov dword [0x76279c], ecx
cmp dword [0x76279c], 0
je 0x60b2d6
cmp dword [0x76279c], 0
je 0x60b2d4
mov edx, dword [0x76279c]
cmp dword [edx + 8], 0
je 0x60b2d4
mov eax, dword [0x76279c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0xc]
jb 0x60b2d4
mov edx, dword [0x76279c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 4]
ja 0x60b2d4
jmp 0x60b22e
jmp 0x60b288
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x60b307
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0060b5c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x60b320
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0060b4b0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x60b3c0
mov ecx, dword [ebp - 8]
mov dword [0x76279c], ecx
mov edx, dword [0x76279c]
mov dword [edx], 0x52727464
mov eax, dword [0x76279c]
mov dword [eax + 8], 0
mov ecx, dword [0x76279c]
mov edx, dword [0x762798]
mov dword [ecx + 4], edx
mov eax, dword [0x76279c]
mov dword [0x762798], eax
mov dword [ebp - 0x18], 0
mov ecx, dword [0x76279c]
add ecx, 0x48
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0x38c
jmp 0x60b389
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 1
jle 0x60b3af
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x48
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ecx + eax + 0x40], edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x48
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x60b380
mov edx, dword [0x76279c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
jmp 0x60b22e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x60b4b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.0060b580
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x60b575
mov edx, dword [ebp - 4]
cmp edx, dword [0x72e048]
jb 0x60b4f5
mov eax, dword [ebp - 4]
cmp eax, dword [0x72e04c]
ja 0x60b4f5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x60b4c5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x60b51b
jmp 0x60b575
cmp dword [ebp - 0x10], 0x10000
jne 0x60b55e
cmp dword [ebp - 0x14], 0x10000
jb 0x60b55e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x60b551
mov eax, dword [ebp - 0x24]
jmp 0x60b577
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x60b570
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.0060b580
add esp, 4
mov dword [ebp - 4], eax
jmp 0x60b4c5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x60b5c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.0060b6a0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x60b68d
mov edx, dword [ebp - 4]
cmp edx, dword [0x72e048]
jb 0x60b60a
mov eax, dword [ebp - 4]
cmp eax, dword [0x72e04c]
ja 0x60b60a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x60b5da
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x60b630
jmp 0x60b68d
cmp dword [ebp - 0x10], 0x10000
jne 0x60b673
cmp dword [ebp - 0x14], 0x10000
jb 0x60b673
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x60b666
mov eax, dword [ebp - 0x24]
jmp 0x60b68f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x60b688
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.0060b6a0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x60b5da
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x60b6d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x7627a8], eax
je 0x60b6f5
mov eax, 0x10dd
jmp 0x60b89a
cmp dword [0x7627ac], 0
je 0x60b708
mov eax, dword [0x7627ac]
jmp 0x60b89a
cmp dword [ebp + 0xc], 0
jne 0x60b718
mov eax, 0x57
jmp 0x60b89a
cmp dword [ebp + 8], 0
jne 0x60b728
mov eax, 6
jmp 0x60b89a
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x60b751
mov dword [ebp - 0x14], 6
mov ecx, dword [ebp - 0x14]
mov dword [0x7627ac], ecx
mov edx, dword [ebp + 8]
mov dword [0x7627b0], edx
mov eax, dword [ebp - 0x14]
jmp 0x60b89a
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x60b7aa
mov dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x14]
mov dword [0x7627ac], ecx
cmp dword [ebp - 0x18], 0
je 0x60b799
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x7627b0], ecx
mov eax, dword [ebp - 0x14]
jmp 0x60b89a
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00609cf0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00609cf0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], 0
je 0x60b7eb
cmp dword [ebp - 8], 0x1e
jbe 0x60b805
mov dword [ebp - 0x14], 9
cmp dword [0x7627a0], 0
je 0x60b800
jmp 0x60b77a
jmp 0x60b771
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x60b82a
mov dword [ebp - 0x14], 9
cmp dword [0x7627a0], 0
je 0x60b825
jmp 0x60b77a
jmp 0x60b771
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x60b857
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x60b771
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x7627b8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x7627b8], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x60c660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6977b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.00449e30
mov eax, dword [esp + 0x40]
push 0
mov dword [esp + 0x3c], 0
mov eax, dword [eax]
mov ecx, dword [eax - 8]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0041a530
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov esi, eax
lea ecx, [esp + 0x14]
push edx
push esi
call fcn.0044a1d0
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
call fcn.00449ed0
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
mov ecx, ebx
call fcn.0060c470
mov ecx, dword [esp + 0xc]
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
mov ecx, ebx
push eax
call fcn.0060c490
mov edx, dword [esp + 0xc]
xor ecx, ecx
cmp ecx, edx
lea ecx, [esp + 0x14]
sbb esi, esi
mov dword [esp + 0x38], 0xffffffff
neg esi
call fcn.00449e70
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4

Function at 0x60c740
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x697801
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0042c3d0
xor eax, eax
mov edx, 0x11
mov ecx, 0xa
mov dword [esp + 0x14], eax
mov dword [esi + 0x18], vtable.CMap_unsigned_int__unsigned_int__struct_HICON_____struct_HICON____.0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], vtable.CMap_unsigned_int__unsigned_int__struct_HICON_____struct_HICON____.0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], vtable.CMap_struct_HICON_____struct_HICON_____struct_HBITMAP_____struct_HBITMAP____.0
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edx
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
lea ecx, [esp + 4]
mov byte [esp + 0x14], 3
mov dword [esi + 0x6c], eax
mov dword [esi], vtable.CMenuIconMgr.0
call fcn.00411c90
mov ecx, eax
mov byte [esp + 0x14], 4
call fcn.00411dd0
xor ecx, ecx
cmp eax, 7
setge cl
mov dword [esi + 0x6c], ecx
lea ecx, [esp + 4]
mov byte [esp + 0x14], 3
call fcn.00411cc0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x612260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x697ddf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
xor eax, eax
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 8], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], eax
call sub.MFC42u.DLL_CString::CString_5
push pe_nt_image_headers32
lea ecx, [esp + 8]
mov dword [esp + 0x34], 1
call sub.MFC42u.DLL_CString::GetBuffer
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x20]
push ecx
push edx
push 0x133c
push eax
mov dword [esp + 0x2c], pe_nt_image_headers32
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x38]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_4
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x30], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 8

Function at 0x612ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x697e68
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push eax
call sub.MFC42u.DLL_CToolBar::LoadToolBar
test eax, eax
je 0x612b97
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x612b5b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x612b5b
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_6
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.00612d00
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [edi + 0x20]
push 0
push 0
push 0x436
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call sub.MFC42u.DLL_CImageList::FromHandle
lea ecx, [edi + 0xa0]
call sub.MFC42u.DLL_CImageList::DeleteImageList
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esp + 8]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc
Function at 0x61ee1a
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x698918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [esi + 0x2c]
mov edi, eax
test esi, esi
mov dword [esp + 0x14], edi
je 0x61ee67
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x61ee67
push 0x28
push 0x762d0c
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x762d0c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x61efef
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
shr eax, 0x10
mov esi, eax
and eax, 0x4000
not esi
and esi, 0xffff
mov ecx, 1
shr esi, 0xf
cmp ecx, eax
sbb ebx, ebx
neg ebx
cmp ebp, 8
jne 0x61ef7a
push 0x11
call fcn.0041b490
add esp, 4
test eax, eax
je 0x61ef7a
xor ebx, ebx
cmp esi, ebx
je 0x61ef73
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
push 0xb0
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], ebx
call esi
cmp dword [esp + 0x28], ebx
je 0x61ef73
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::CString_5
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
lea ecx, [eax + 1]
push ecx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CString::GetBufferSetLength
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::MakeReverse
push 0x50
push ebx
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CString::SetAt
push str.__t_n.___
lea ecx, [esp + 0x30]
call sub.MFC42u.DLL_CString::FindOneOf
cmp eax, 0xffffffff
je 0x61ef43
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx - 8]
sub ecx, eax
jmp 0x61ef45
xor ecx, ecx
mov eax, dword [esp + 0x28]
push eax
push ecx
push 0xb1
push edi
call esi
push 0x738574
push 1
push 0xc2
push edi
call esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
jmp 0x61eff1
push 0x11
xor edi, edi
call fcn.0041b490
add esp, 4
test eax, eax
je 0x61ef8f
mov edi, 2
push 0x10
call fcn.0041b490
add esp, 4
test eax, eax
je 0x61efa0
or edi, 1
push 0x12
call fcn.0041b490
add esp, 4
test eax, eax
je 0x61efb1
or edi, 4
mov ecx, dword [esp + 0x10]
and edi, 0xffff
shl edi, 0x10
mov eax, dword [ecx + 0x30]
and ebp, 0xffff
or edi, ebp
cmp edi, eax
jne 0x61efef
test esi, esi
je 0x61efe8
test ebx, ebx
jne 0x61efe8
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
jmp 0x61eff1
xor eax, eax
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x61fbf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x698a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.006086f6
lea eax, [esi + 0x40]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x30], 0
call sub.MFC42u.DLL_CStringArray::Copy
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::GetWindowTextW
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x61fc64
lea eax, [esp + 0x10]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0041a010
add esp, 0xc
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
push esi
mov edx, dword [edi]
push str.HistoryCount
push ebp
mov ecx, edi
call dword [edx + 4]
mov eax, esi
dec esi
test eax, eax
je 0x61fcd0
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CString::CString_5
push esi
lea ecx, [esp + 0x38]
push str.HistoryItem_d
push ecx
mov byte [esp + 0x38], 2
call sub.MFC42u.DLL_CString::Format_1
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, edi
mov eax, dword [edx + esi*4]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebp
call dword [edx + 0xc]
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call sub.MFC42u.DLL_CString::CString
mov ecx, esi
dec esi
test ecx, ecx
jne 0x61fc85
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42u.DLL_CStringArray::CStringArray
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x61feb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x698aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x78]
cmp ecx, ebx
mov dword [esp + 0x10], ecx
je 0x61fee4
cmp dword [ecx + 0x20], ebx
jne 0x62001a
cmp dword [esi + 0x48], 1
jle 0x62001a
mov edx, dword [esi + 0xb8]
mov eax, 0x50000000
dec edx
je 0x61ff10
dec edx
je 0x61ff09
dec edx
jne 0x61ff15
mov eax, 0x50000082
jmp 0x61ff15
mov eax, 0x50000080
jmp 0x61ff15
mov eax, 0x50000002
push 0x3e9
lea edx, [esp + 0x1c]
push esi
push edx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call sub.MFC42u.DLL_CTabCtrl::Create
test eax, eax
jne 0x61ff4d
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esi + 0x10c]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
je 0x61ff84
cmp eax, ebx
jne 0x61ff65
xor eax, eax
jmp 0x61ff68
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x98]
push ebx
push 0x1303
push eax
call edi
push eax
call sub.MFC42u.DLL_CImageList::FromHandle
mov dword [esi + 0x10c], ebx
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
mov edx, dword [eax + 0x20]
push ebx
push ebx
push 0x31
push edx
call edi
push eax
call sub.MFC42u.DLL_CGdiObject::FromHandle
cmp eax, ebx
jne 0x61ffac
xor eax, eax
jmp 0x61ffaf
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [esi + 0x98]
push 0x30
push eax
call edi
mov eax, dword [esi + 0x48]
xor edi, edi
cmp eax, ebx
jle 0x62001a
jmp 0x61ffca
xor ebx, ebx
lea ecx, [esp + 0x14]
push edi
push ecx
mov ecx, esi
call fcn.004417a0
mov ebp, dword [eax]
push ebx
push ebx
push edi
mov ecx, esi
mov dword [esp + 0x3c], ebx
call fcn.00441850
mov ecx, dword [esp + 0x18]
push eax
push 0xffffffffffffffff
push ebp
push edi
push 9
call sub.MFC42u.DLL_CTabCtrl::InsertItem_1
cmp eax, 0xffffffff
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42u.DLL_CString::CString
test bl, bl
jne 0x620032
mov eax, dword [esi + 0x48]
inc edi
cmp edi, eax
jl 0x61ffc8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x60]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret