joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push edi
push 3
mov edi, ecx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
xor ebx, ebx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x410c48
mov ecx, dword [edi + 4]
lea eax, [ebp - 4]
push eax
push 0x12
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x410b9a
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push esi
push 0x206
lea ecx, [ebp - 0x22a]
push ebx
push ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 0x22c], ax
call fcn.00555020
mov edx, dword [edi + 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], edx
add esp, 0xc
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x22c]
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x1240
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
cmp esi, ebx
jne 0x410c1b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [edi + 4]
push 0x3ea
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [ebp - 0x22c]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
mov eax, dword [ebp - 4]
push eax
call esi
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x415a60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x415abb
mov eax, dword [ebp - 0x104]
cmp eax, 2
jne 0x415a9e
cmp dword [ebp - 0x110], 5
jb 0x415abb
mov al, 1
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x415abb
cmp dword [ebp - 0x110], 4
jb 0x415abb
cmp dword [ebp - 0x10c], 0x5a
jb 0x415abb
mov al, al
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x415bc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00555020
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x415c19
mov eax, dword [ebp - 0x110]
cmp eax, 5
jae 0x415c13
cmp eax, 4
jne 0x415c19
cmp dword [ebp - 0x10c], 0x5a
jb 0x415c19
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4164c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x5f727c]
sub esp, 0x100
push esi
call fcn.004fbd70
mov eax, dword [0x5f7280]
mov ecx, dword [eax]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
push ecx
call esi
test eax, eax
je 0x4165c3
mov edx, dword [0x5f7280]
mov eax, dword [edx]
push eax
call esi
test eax, eax
je 0x4165c3
mov ecx, dword [0x5f7280]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4165c3
mov eax, dword [0x5f7278]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x416538
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x120
je 0x4165c3
mov eax, dword [0x5fd7c0]
push 0x80
lea edx, [ebp - 0x100]
push edx
push 0xe001
xor ecx, ecx
push eax
mov word [ebp - 0x100], cx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [0x5f7284]
mov eax, dword [edx]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x100]
push ecx
push pe_nt_image_headers32
push 0x40b
push eax
call esi
mov ecx, dword [0x5f7280]
mov edx, dword [ecx]
push 0
push 0x64
push 0x402
push edx
call esi
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x5f7280]
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x5f7280]
mov eax, dword [edx]
push 0
push 0
push 0x402
push eax
call esi
mov ecx, dword [0x5f727c]
call fcn.004fbc70
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418240
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58b470
push eax
mov dword fs:[0], esp
push esi
mov dword [ebp - 4], 0
mov ecx, dword [0x5f727c]
call fcn.004fbd70
mov eax, dword [0x5f7280]
mov ecx, dword [eax]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
push ecx
call esi
test eax, eax
je 0x418370
mov edx, dword [0x5f7280]
mov eax, dword [edx]
push eax
call esi
test eax, eax
je 0x418370
mov ecx, dword [0x5f7278]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x418363
mov edx, dword [ebp + 8]
mov eax, dword [0x5f7284]
mov ecx, dword [eax]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edx
push pe_nt_image_headers32
push 0x40b
push ecx
call esi
movzx edx, word [ebp + 0xc]
mov eax, dword [0x5f7280]
mov ecx, dword [eax]
shl edx, 0x10
push edx
push 0
push 0x401
push ecx
call esi
mov edx, dword [ebp + 0x10]
mov eax, dword [0x5f7280]
mov ecx, dword [eax]
push 0
push edx
push 0x404
push ecx
call esi
mov edx, dword [0x5f7280]
mov eax, dword [edx]
push 0
push 0
push 0x402
push eax
call esi
mov ecx, dword [0x5f7280]
mov edx, dword [ecx]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x5f727c]
call fcn.004fbc70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418352
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5f727c]
call fcn.004fbc70
jmp 0x41837b
mov ecx, dword [0x5f727c]
call fcn.004fbc70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4183a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
xor al, al
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a160
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x28], ebx
jne 0x41a180
mov dword [esi + 0x24], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
push 0x10
and eax, 0x8000
mov dword [ebp - 4], eax
call edi
movzx edi, ax
movzx eax, word [ebp + 8]
add eax, 0xffffffdf
and edi, 0x8000
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
cmp eax, 7
ja case.0x41a1b8.37
movzx eax, byte [eax + 0x41a2b4]
jmp dword [eax*4 + 0x41a2ac]
mov ecx, dword [esi + 4]
push 0
push 9
lea ebx, [esi + 4]
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 0x2c], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
jne 0x41a1e7
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
cmp dword [ebp - 4], 0
jne case.0x41a1b8.37
test edi, edi
jne case.0x41a1b8.37
xor eax, eax
push eax
mov ecx, esi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
call fcn.00419e80
mov edx, dword [ebp + 0x10]
movzx eax, word [ebp + 8]
mov ecx, dword [esi + 0x20]
shl edx, 0x10
or edx, dword [ebp + 0xc]
lea ebx, [esi + 4]
push edx
push eax
mov eax, dword [ebx]
push pe_nt_image_headers32
push eax
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcW]
cmp dword [ebp - 0xc], 0
je 0x41a29e
cmp dword [ebp - 4], 0
jne 0x41a235
test edi, edi
je 0x41a29e
mov edx, dword [ebx]
push 0
push 9
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x41a251
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
test edi, edi
je 0x41a283
push 1
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], ebx
mov ecx, dword [esi + 0x2c]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esi + 0x30]
mov ecx, esi
mov dword [eax + 4], edx
call fcn.00419d00
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], 0
je 0x41a29e
push 1
push 1
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], ebx
mov ecx, esi
call fcn.004167b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d066
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi + 4], ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], ecx
mov dword [ebp - 4], 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [ebp - 4], 3
push 0x58
push ecx
lea ebx, [esi + 0x20]
push ebx
call fcn.00555020
mov edx, dword [ebp + 8]
xor eax, eax
xor ecx, ecx
lea edi, [esi + 0x27c]
add esp, 0xc
mov word [edi], ax
mov word [esi + 0x7c], cx
mov dword [esi + 0x78], edx
mov dword [ebx], 0x58
call fcn.00415bc0
test al, al
je 0x41aa10
mov dword [ebx], 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [esi + 0x5c], eax
or ecx, 0x880020
lea eax, [esi + 0x7c]
mov dword [esi + 0x44], eax
mov dword [esi + 0x54], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x104
mov dword [esi + 0x48], pe_nt_image_headers32
mov dword [esi + 0x2c], edx
mov eax, dword [0x5fd7c0]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x64], 0x4129f0
mov dword [esi + 0x24], ecx
test eax, eax
je case.0x41aa78.0
push 0xffffffffffffffff
push eax
push 0x104
push edi
call fcn.00555dc3
add esp, 0x10
cmp eax, 0x50
ja case.0x41aa78.1
movzx edx, byte [eax + 0x41aacc]
jmp dword [edx*4 + 0x41aabc]
push 0x8007000e
call fcn.00401150
push 0x80070057
call fcn.00401150
push 0x80004005
call fcn.00401150
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41d1a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583a2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0044fd40
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0x84], edi
mov dword [ebp - 4], 1
lea ecx, [esi + 0xac]
call fcn.004177e0
mov byte [ebp - 4], 2
mov dword [esi + 0xa4], vtable.WTL::CIdleHandler.0
lea eax, [esi + 0xc4]
mov dword [esi + 0xa8], vtable.WTL::CMessageFilter.0
mov dword [ebp - 0x14], eax
mov dword [eax + 0x10], edi
mov byte [ebp - 4], 3
lea ecx, [eax + 0x20]
mov dword [ebp - 0x18], ecx
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov byte [ebp - 4], 5
mov dword [eax + 0x2c], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], 0xc0c0c0
mov dword [eax], 0x10
mov dword [eax + 4], 0xf
mov dword [eax + 8], 0x16
mov dword [eax + 0xc], 0x15
mov byte [ebp - 4], 6
lea ecx, [esi + 0xf4]
mov dword [esi], vtable.CAgentListDockWin.2.0
mov dword [esi + 0xa4], vtable.CAgentListDockWin.1.0
mov dword [esi + 0xa8], vtable.CAgentListDockWin.0
call fcn.004159a0
mov byte [ebp - 4], 7
lea eax, [esi + 0x354]
mov dword [esi + 0x350], edi
lea ecx, [eax + 8]
mov dword [eax + 4], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ecx + 0xc], edi
mov byte [ebp - 4], 9
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov byte [ebp - 4], 0xa
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [eax + 0x20], ecx
mov byte [ebp - 4], 0xc
mov dword [eax], 0x59d14c
mov dword [eax + 0x28], 1
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], edi
mov dword [eax + 0x38], edi
mov dword [eax + 4], edi
mov byte [ebp - 4], 0xd
mov dword [esi + 0x390], edi
mov dword [esi + 0x394], edi
mov dword [esi + 0x398], edi
mov dword [esi + 0x3ac], edi
mov dword [esi + 0x3b0], edi
mov dword [esi + 0x3b4], edi
mov byte [ebp - 4], 0xe
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
lea edi, [esi + 0x3c8]
mov ecx, 0x5f5774
mov dword [ebp - 0x18], edi
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x10
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
lea edi, [esi + 0x3cc]
mov ecx, 0x5f5774
mov dword [ebp - 0x18], edi
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x12
mov dword [0x5f7288], esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41e850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x41e899
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x41e9e9
push esi
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.00555020
push 0x110
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x40], 0x30
call fcn.00555020
add esp, 0x18
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41e914
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x41e91b
cmp eax, 4
jne 0x41e914
cmp dword [ebp - 0x14c], 0x5a
jae 0x41e91b
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push 1
push edi
lea edx, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x3c], 0x3f
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test dword [ebp - 0x38], 0x100
jne 0x41e9d8
push 0x10
call fcn.0055549a
mov esi, eax
add esp, 4
test esi, esi
je 0x41e9d8
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41e980
add ecx, 0xffffff3c
jmp 0x41e982
xor ecx, ecx
push esi
lea edx, [ebp - 0x40]
push edx
call fcn.00415df0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053f875
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x41e9c7
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x41e8b6
pop esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
add ecx, 0x20
mov dword [ebp + 0x10], ebx
call fcn.00425c60
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x424e80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [ebp + 8]
lea esi, [eax + 1]
mov eax, dword [ebx]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x424eb2
push esi
mov ecx, ebx
call fcn.00403ca0
mov eax, dword [ebx]
push esi
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, eax
cmp eax, 0xffffffff
jne 0x424edf
mov ecx, dword [ebx]
test ecx, ecx
je 0x424ee3
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x424ed0
sub ecx, esi
sar ecx, 1
test ecx, ecx
js 0x424efc
mov edx, dword [ebx]
cmp ecx, dword [edx - 8]
jg 0x424efc
mov dword [edx - 0xc], ecx
mov edx, dword [ebx]
xor esi, esi
pop edi
mov word [edx + ecx*2], si
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.00401150
int3

Function at 0x42a810
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 0x10c
push esi
push 0x4dd
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42a907
push 0x80
lea ecx, [ebp - 0x10c]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
movzx eax, word [ebp + 8]
push 0xa
push 6
lea edx, [ebp - 0xc]
push edx
push eax
call fcn.00556e7c
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10c]
push 0x80
push edx
call fcn.00556d28
push 0x59d7d4
lea eax, [ebp - 0x10c]
push 0x80
push eax
call fcn.00556d28
movzx edx, word [ebp + 0xc]
push 0xa
push 6
lea ecx, [ebp - 0xc]
push ecx
push edx
call fcn.00556e7c
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10c]
push 0x80
push ecx
call fcn.00556d28
add esp, 0x44
push 0x59d7d4
lea edx, [ebp - 0x10c]
push 0x80
push edx
call fcn.00556d28
movzx ecx, word [ebp + 0x10]
push 0xa
push 6
lea eax, [ebp - 0xc]
push eax
push ecx
call fcn.00556e7c
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10c]
push 0x80
push eax
call fcn.00556d28
add esp, 0x28
lea ecx, [ebp - 0x10c]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42b450
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
push 0x476
push eax
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push eax
call esi
mov ecx, dword [edi + 4]
push 0x4cc
push ecx
mov dword [edi + 0x80], eax
call ebx
mov ecx, dword [edi + 0x80]
test ecx, ecx
jne 0x42b598
push 0x103e8
push ecx
push 0x465
push eax
call esi
test byte [edi + 0x68], 4
je 0x42b583
mov esi, dword [edi + 0x64]
mov ecx, dword [edi + 0x60]
mov dword [ebp - 0x10], ecx
test esi, esi
je 0x42b583
mov edx, 0xffff
cmp word [ecx], dx
je 0x42b57a
xor ebx, ebx
cmp dword [edi + 0x58], ebx
jle 0x42b533
mov edi, edi
test ebx, ebx
js 0x42b685
cmp ebx, dword [edi + 0x58]
jge 0x42b685
mov eax, dword [edi + 0x54]
cmp word [eax + ebx*8 + 4], 4
lea eax, [eax + ebx*8]
jne 0x42b52d
test byte [esi], 4
je 0x42b52d
test byte [ecx + 2], 4
je 0x42b52d
mov edx, dword [eax]
movzx eax, word [ecx]
push edx
push esi
push eax
call fcn.00410a10
mov ecx, dword [ebp - 0x10]
add esp, 0xc
inc ebx
cmp ebx, dword [edi + 0x58]
jl 0x42b4f0
mov edx, 0xfffb
and word [esi], dx
movzx eax, word [esi]
add ecx, 4
mov dword [ebp - 0x10], ecx
test eax, 0x2000
je 0x42b569
mov eax, dword [esi + 4]
push eax
call fcn.005559df
mov ecx, 0xdfff
add esp, 4
and word [esi], cx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 4], 0
mov edx, 0xffff
add esi, 8
cmp word [ecx], dx
jne 0x42b4e7
mov eax, 0xfffb
and word [edi + 0x68], ax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
cmp ecx, 1
jne 0x42b4be
push 0x507d0
push 0
push 0x465
push eax
call esi
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, 1
mov dword [ebp - 4], eax
cmp dword [esi - 4], eax
jle 0x42b5e2
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403bd0
mov esi, dword [ebp - 0x10]
mov edx, dword [edi + 4]
push 0x408
push edx
call ebx
push 0x78
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test esi, esi
jne 0x42b5ff
xor eax, eax
jmp 0x42b615
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b604
sub eax, edx
sar eax, 1
js 0x42b67b
cmp eax, dword [esi - 8]
jg 0x42b67b
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call fcn.005553cb
add esp, 4
cmp eax, 5
jge 0x42b64f
mov edx, dword [edi + 4]
push 0x408
push edx
mov dword [edi + 0x7c], 5
call ebx
push 0x59d824
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b4be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42b4be
push 0x80070057
call fcn.00401150
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x42dbc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, ebx
lea ecx, [eax + eax + 2]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
mov edi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebp + 0xc]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0
push 0xb6
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea ecx, [ebp - 0x10]
push ecx
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret