joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7830bbac
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x7830bbdc
push dword [ebp + 8]
call edi
push eax
call sym.MFC80U.DLL_Ordinal_6131
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x7830bc07
test byte [ebp - 4], 1
je 0x7830bc07
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x7830bc07
push dword [ebp + 8]
call edi
push eax
call sym.MFC80U.DLL_Ordinal_6131
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x7830bcc1
lea ecx, [ebp - 0x20]
push ecx
push eax
call sym.MFC80U.DLL_Ordinal_1185
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x7830bc3d
lea ecx, [ebp - 0x10]
push ecx
push eax
call sym.MFC80U.DLL_Ordinal_1185
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x7830bc53
lea eax, [ebp - 0x18]
push eax
push ebx
call sym.MFC80U.DLL_Ordinal_1185
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x7830bc80
push dword [ebp + 8]
call edi
push eax
call sym.MFC80U.DLL_Ordinal_6131
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x7830bcac
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call sym.MFC80U.DLL_Ordinal_6131
push ebx
call esi
test eax, eax
jne 0x7830bcbe
push dword [ebp + 8]
call edi
push eax
call sym.MFC80U.DLL_Ordinal_6131
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x7830bce9
test byte [ebp - 4], 1
jne 0x7830bce9
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x7830bce9
push dword [ebp + 8]
call edi
push eax
call sym.MFC80U.DLL_Ordinal_6131
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x783105c9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [0x783ccc04]
push edi
lea ebx, [esi + 0x1c]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
jle 0x78310609
cmp edi, dword [esi + 0xc]
jge 0x78310609
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x78310609
cmp edi, dword [eax + 8]
jge 0x78310609
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x78310612
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x78310616
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x783a8948
call fcn.783a772b
mov edi, ecx
mov dword [ebp - 0x18], edi
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x78310737
cmp eax, dword [edi + 0xc]
jge 0x78310737
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x78310687
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x78310720
cmp dword [ebp + 0xc], ebx
je 0x78310720
cmp dword [esi + 0xc], ebx
mov eax, dword [edi + 0xc]
jne 0x783106cc
push 4
call fcn.7830742d
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x783106e0
push 0x10
mov dword [ebp - 4], ebx
call sym.MFC80U.DLL_Ordinal_763
cmp eax, ebx
je 0x7831069f
mov dword [eax], 0x782e8464
mov esi, eax
jmp 0x783106a1
xor esi, esi
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call sym.MFC80U.DLL_Ordinal_969
jmp 0x7831066d
push 2
push 4
call fcn.7830742d
pop ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x783106f2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call sym.MFC80U.DLL_Ordinal_1178
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x78310732
cmp ecx, dword [esi + 8]
jge 0x78310732
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 0x14]
jmp 0x78310738
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.783a77d0
ret 8

Function at 0x783108f4
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x78310908
cmp dword [0x783ccc04], 0
je 0x78310908
jmp fcn.783105c9
xor eax, eax
ret

Function at 0x78312680
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x783126b9
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call sym.MFC80U.DLL_Ordinal_2468
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call sym.MFC80U.DLL_Ordinal_5398
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x94]
Function at 0x783126c5
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x782e7af0
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_6014
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x78312718
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x7831272b
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_2468
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_5398
jmp 0x7831272b
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_2651
test eax, eax
je 0x7831272b
push edi
mov ecx, eax
call sym.MFC80U.DLL_Ordinal_3756
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8
Function at 0x783185c3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx + 0x20]
mov dword [esp + 0x14], ebx
call sym.MFC80U.DLL_Ordinal_1025
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x7831876d
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x80]
cmp dword [eax], edi
je 0x7831860b
mov eax, dword [eax]
mov edx, dword [eax]
push edi
push dword [ebp + 0xc]
mov ecx, eax
push esi
call dword [edx + 0x7c]
test eax, eax
jne 0x7831876d
cmp esi, edi
jne 0x78318614
call sym.MFC80U.DLL_Ordinal_1176
lea ecx, [esp + 0x18]
call sym.MFC80U.DLL_Ordinal_332
mov dword [esp + 0x24], esi
call sym.MFC80U.DLL_Ordinal_1087
mov eax, dword [eax + 0x78]
cmp eax, dword [esi + 4]
jne 0x78318634
mov dword [esp + 0x3c], esi
jmp 0x7831868e
push dword [ebx + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetMenu]
call edi
test eax, eax
je 0x7831868e
mov ecx, ebx
call sym.MFC80U.DLL_Ordinal_3690
test eax, eax
je 0x7831868e
push dword [eax + 0x20]
call edi
mov edi, eax
test edi, edi
je 0x7831868e
push edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], eax
jle 0x7831868a
push ebx
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, dword [esi + 4]
je 0x78318680
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x7831866a
jmp 0x7831868a
push edi
call sym.MFC80U.DLL_Ordinal_2365
mov dword [esp + 0x3c], eax
mov ebx, dword [esp + 0x10]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
and dword [esp + 0x20], 0
test eax, eax
mov dword [esp + 0x38], eax
jbe 0x7831876d
mov edi, dword [sym.imp.USER32.dll_GetMenuItemID]
push dword [esp + 0x20]
push dword [esi + 4]
call edi
test eax, eax
mov dword [esp + 0x1c], eax
je 0x7831875b
cmp eax, 0xffffffff
jne 0x783186fb
push dword [esp + 0x20]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sym.MFC80U.DLL_Ordinal_2365
test eax, eax
mov dword [esp + 0x28], eax
je 0x7831875b
push 0
push dword [eax + 4]
call edi
test eax, eax
mov dword [esp + 0x1c], eax
je 0x7831875b
cmp eax, 0xffffffff
je 0x7831875b
push 0
jmp 0x78318715
and dword [esp + 0x28], 0
cmp dword [ebx + 0x54], 0
je 0x78318712
cmp eax, 0xf000
jae 0x78318712
xor eax, eax
inc eax
jmp 0x78318714
xor eax, eax
push eax
push ebx
lea ecx, [esp + 0x20]
call sym.MFC80U.DLL_Ordinal_2046
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebx, eax
cmp ebx, dword [esp + 0x38]
jae 0x78318753
sub eax, dword [esp + 0x38]
add dword [esp + 0x20], eax
jmp 0x7831874d
push dword [esp + 0x20]
push dword [esi + 4]
call edi
cmp eax, dword [esp + 0x1c]
jne 0x78318753
inc dword [esp + 0x20]
cmp dword [esp + 0x20], ebx
jb 0x7831873a
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x10]
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x38]
jb 0x783186ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x7831e528
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x7831e69b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0xc], ebx
je 0x7831e69a
push esi
push edi
mov edi, dword [ebx]
add edi, 0x40
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
je 0x7831e698
push edi
push ebx
push edi
push esi
call fcn.78303b3d
mov eax, dword [esi]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
add eax, esi
add esp, 0x10
and dword [ebp + 0xc], 0
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
lea ecx, [eax + ecx*4]
mov edi, dword [ecx]
xor edx, edx
mov dword [ebp - 4], ecx
cmp edi, dword [edx*8 + 0x782ea3fc]
je 0x7831e5ab
inc edx
cmp edx, 4
jb 0x7831e59a
jmp 0x7831e5fb
cmp dword [ebp + 0x10], 0
je 0x7831e5c3
cmp dword [edx*8 + 0x782ea400], 0x12
je 0x7831e5fb
mov dword [ecx], 0xffffff
jmp 0x7831e5fb
lea edi, [edx*8 + 0x782ea400]
push dword [edi]
call ebx
push dword [edi]
movzx eax, ah
mov dword [ebp + 8], eax
call ebx
push dword [edi]
xor ecx, ecx
mov ch, al
or ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
shl dword [ebp + 8], 8
call ebx
mov ecx, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
or eax, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x10
jl 0x7831e58d
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
push 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push edi
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 4], eax
je 0x7831e682
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 4]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ebx
call edi
mov cl, byte [esi + 0xe]
push 0xcc0020
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
xor eax, eax
push eax
push esi
lea ecx, [ecx + edx*4 + 0x28]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 8]
push ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.MSVCR80.dll_free]
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x7831eae7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, 0xf1
push esi
push dword [ebp + 8]
mov dword [esp + 0x14], ecx
call sym.MFC80U.DLL_Ordinal_1058
push esi
push dword [ebp + 8]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x7831eb1b
xor eax, eax
jmp 0x7831ebb3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x7831eb14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x7831eb14
movzx eax, word [esi + 6]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.MFC80U.DLL_Ordinal_762
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x7831eb6b
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x7831eb5a
movzx eax, word [esi + 6]
mov ecx, dword [esp + 0xc]
push eax
push edi
call sym.MFC80U.DLL_Ordinal_5734
push edi
mov ebx, eax
call dword [sym.imp.MSVCR80.dll_free]
test ebx, ebx
pop ecx
je 0x7831ebb1
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [eax + 7]
push esi
push edx
call sym.MFC80U.DLL_Ordinal_6005
push dword [ebp + 8]
mov ecx, dword [esp + 0x10]
call sym.MFC80U.DLL_Ordinal_4011
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x78328e08
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push 4
mov eax, 0x783aa532
call fcn.783a76f8
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebx, eax
shl ebx, 0x10
cmp dword [ebp + 0x10], esi
je 0x78328e36
or ebx, 0x1000000
mov ecx, dword [ebp + 8]
push 0x783c8d10
call sym.MFC80U.DLL_Ordinal_269
mov dword [ebp - 4], esi
push 0x40
mov dword [ebp - 0x10], 1
pop esi
mov ecx, dword [ebp + 8]
add esi, esi
push esi
call sym.MFC80U.DLL_Ordinal_2468
lea ecx, [esi + 1]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ecx, dword [ebp + 8]
mov edi, eax
push edi
call sym.MFC80U.DLL_Ordinal_5398
cmp edi, esi
je 0x78328e50
mov eax, dword [ebp + 8]
call fcn.783a77d0
ret

Function at 0x7832c02a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [esp + 0x14]
mov ecx, esi
push 0
push dword [esp + 0x18]
push eax
call sym.MFC80U.DLL_Ordinal_1660
pop esi
pop ecx
ret 0xc
Function at 0x7832c400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x20
mov eax, 0x783af091
call fcn.783a772b
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call sym.MFC80U.DLL_Ordinal_1079
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x7832c449
push 5
push eax
call sym.MFC80U.DLL_Ordinal_1058
push 5
push dword [esi + 0x58]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x7832c457
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x7832c465
or eax, 0xffffffff
jmp 0x7832c5b4
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_5181
mov dword [ebp - 0x14], eax
call sym.MFC80U.DLL_Ordinal_1190
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
je 0x7832c4e4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x7832c4e4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x7832c4e4
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x28], 1
call fcn.78316914
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
je 0x7832c4e4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x128]
test eax, eax
je 0x7832c4e4
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_3983
test eax, eax
je 0x7832c4e4
push 0
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_2155
mov dword [ebp - 0x24], 1
and dword [ebp - 4], 0
push esi
call sym.MFC80U.DLL_Ordinal_1091
push dword [ebp - 0x14]
call sym.MFC80U.DLL_Ordinal_2366
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_1622
xor ebx, ebx
cmp eax, ebx
je 0x7832c541
test byte [esi + 0x3c], 0x10
je 0x7832c52b
push 4
pop ebx
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_3395
test ax, 0x100
je 0x7832c521
push 5
pop ebx
push ebx
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_5566
xor ebx, ebx
cmp dword [esi + 0x20], ebx
je 0x7832c541
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_6061
or dword [ebp - 4], 0xffffffff
jmp 0x7832c56c
cmp dword [ebp - 0x24], ebx
je 0x7832c57a
push 1
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_2155
cmp dword [ebp - 0x28], ebx
je 0x7832c58a
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x7832c5a3
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x7832c5a3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_5138
mov eax, dword [esi + 0x44]
call fcn.783a77d0
ret
Function at 0x7832c76b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x58]
test ecx, ecx
mov esi, dword [edi + 0x60]
mov eax, dword [edi + 0x5c]
je 0x7832c79c
push ebx
push 5
push ecx
call sym.MFC80U.DLL_Ordinal_1058
push 5
push dword [edi + 0x58]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
pop ebx
test eax, eax
je 0x7832c7a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x7832c7e7
cmp word [esi + 2], 0xffff
mov edx, dword [esi]
jne 0x7832c7c7
mov edx, dword [esi + 0xc]
movzx eax, word [esi + 0x12]
movzx ecx, word [esi + 0x14]
jmp 0x7832c7cf
movzx eax, word [esi + 0xa]
movzx ecx, word [esi + 0xc]
test dx, 0x1801
jne 0x7832c7e5
test ax, ax
jne 0x7832c7e5
test cx, cx
jne 0x7832c7e5
xor eax, eax
inc eax
jmp 0x7832c7e7
xor eax, eax
pop edi
pop esi
ret

Function at 0x7832c923
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x8c
mov eax, dword [0x783c8018]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x78]
push esi
push edi
push dword [ebp + 0x74]
mov esi, ecx
mov dword [ebp - 0x1c], eax
call sym.MFC80U.DLL_Ordinal_5186
cmp dword [esi], 0
mov dword [ebp - 0x20], eax
je 0x7832c990
mov edi, dword [ebp + 0x80]
push 0x40
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x40
push eax
call dword [sym.imp.MSVCR80.dll__snwscanf_s]
add esp, 0x10
cmp eax, 1
je 0x7832c9dd
push 0xffffffffffffffff
push 0
push dword [ebp + 0x7c]
call sym.MFC80U.DLL_Ordinal_1117
mov ecx, esi
jmp sym.MFC80U.DLL_Ordinal_2247
mov esi, dword [sym.imp.MSVCR80.dll__errno]
call esi
mov edi, dword [eax]
call esi
and dword [eax], 0
lea eax, [ebp + 0x80]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x3f
push 0x40
push eax
call dword [sym.imp.MSVCR80.dll__vsnwprintf_s]
add esp, 0x14
call esi
cmp dword [eax], 0
je 0x7832c9cd
call esi
push dword [eax]
call fcn.78316ae8
pop ecx
jmp 0x7832c9d1
call esi
mov dword [eax], edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call sym.MFC80U.DLL_Ordinal_1164
mov ecx, dword [ebp + 0x68]
pop edi
xor ecx, ebp
pop esi
call fcn.783a505e
add ebp, 0x6c
leave
ret
Function at 0x7832d59d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x783c8018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_5186
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x32c]
push eax
push dword [ebp + 0xc]
call sym.MFC80U.DLL_Ordinal_2652
cmp dword [esi], 0
je 0x7832d646
push 0x190
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0x32c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x338]
push eax
push 0x782edd08
lea eax, [ebp - 0x328]
push 0x190
push eax
call dword [sym.imp.MSVCR80.dll__snwscanf_s]
add esp, 0x10
cmp eax, 1
je 0x7832d62c
push 0xffffffffffffffff
push 0
push 0xf111
call sym.MFC80U.DLL_Ordinal_1117
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_2247
cmp dword [ebp + 0x1c], 6
jne 0x7832d63c
fld qword [ebp - 0x338]
fstp dword [edi]
jmp 0x7832d6a8
fld qword [ebp - 0x338]
fstp qword [edi]
jmp 0x7832d6a8
mov esi, dword [sym.imp.MSVCR80.dll__errno]
call esi
mov edi, dword [eax]
call esi
fld qword [ebp + 0x14]
and dword [eax], 0
push ecx
push ecx
fstp qword [esp]
push dword [ebp + 0x1c]
lea eax, [ebp - 0x328]
push 0x782edd10
push 0x18f
push 0x190
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf_s]
add esp, 0x1c
call esi
cmp dword [eax], 0
je 0x7832d692
call esi
push dword [eax]
call fcn.78316ae8
pop ecx
jmp 0x7832d696
call esi
mov dword [eax], edi
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0x32c]
call sym.MFC80U.DLL_Ordinal_1164
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.783a505e
leave
ret 0x18

Function at 0x7832de7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x7832de92
mov edi, dword [esi + 0xc]
jmp 0x7832dec4
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x7832dea9
call sym.MFC80U.DLL_Ordinal_1183
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x7832dea4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x7832dea4
call sym.MFC80U.DLL_Ordinal_1079
cmp dword [eax + 0x58], 0
je 0x7832ded9
push edi
mov ecx, ebx
call sym.MFC80U.DLL_Ordinal_3803
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.7832dd89
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x7832def7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x7832df03
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8