joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447758
Capabilities:
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x40a37c
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x447781
push ebx
push ebx
push 2
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
push ebx
push ebx
call fcn.0043daf0
add esp, 0xc
call fcn.0043ddcc
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov edi, 0x40ae08
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push edi
push SysReAllocString
call esi
push 0x40edb0
push SysReAllocString
call esi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push 0x40b3dc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x103
push eax
push dword [0x532da0]
call fcn.00425ffa
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.004260d1
add esp, 0x18
test eax, eax
pop edi
pop esi
pop ebx
je 0x44780e
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
leave
ret

Function at 0x4478dc
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4736f0], 0
push esi
je 0x44793f
mov esi, 0x473704
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x44793f
push esi
call fcn.00427ac7
pop ecx
test eax, eax
push esi
je 0x44791e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x532da0]
call fcn.00425ffa
jmp 0x44792f
push 0x40a158
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add esp, 0x10
and byte [eax + ecx - 1], 0
jmp 0x447965
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 8]
push eax
push 0x40ee10
push 0x40edcc
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push dword [ebp + 8]
call fcn.00424e18
pop ecx
pop esi
leave
ret
Function at 0x447d93
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0045cf90
and byte [ebp - 0x814], 0
push ebx
push esi
mov dword [ebp - 8], ecx
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x813]
rep stosd dword es:[edi], eax
cmp dword [0x4617d4], 0
mov ebx, dword [ebp + 0x10]
stosw word es:[edi], ax
mov dword [ebp - 4], 3
mov esi, SysReAllocString
stosb byte es:[edi], al
je 0x447e1b
cmp dword [ebp + 8], 0
jne 0x447e1b
lea eax, [ebp + 0x10]
push esi
push eax
lea eax, [ebp - 0x814]
push eax
push ebx
push 0x40b898
mov dword [ebp + 0x10], 0x800
call fcn.00423e06
add esp, 0x14
cmp eax, 1
jne 0x447e1b
push dword [ebp + 0x10]
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
push 0x41a
call fcn.0045c0a7
cmp dword [0x4617d4], 0
je 0x447eb5
cmp dword [ebp + 8], 0
je 0x447e98
lea eax, [ebp - 0x1014]
mov dword [ebp + 8], 0x800
test eax, eax
je 0x447e98
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x447e98
push esi
lea eax, [ebp - 0x1014]
push dword [ebp + 8]
push eax
push ebx
push 0x40b898
call fcn.00423fdc
add esp, 0x14
cmp dword [0x4617d4], 0
je 0x447eb5
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0x40ae08
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x44b86e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push esi
push edi
push 0x3fa
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 2
mov edi, eax
lea ecx, [ebp - 0x10]
pop eax
test ecx, ecx
mov dword [ebp - 0x58], eax
je 0x44b89e
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
jmp 0x44b8a0
xor eax, eax
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push dword [ebp + 0x10]
push 0x100e
push edi
call esi
lea eax, [ebp - 0x58]
push eax
push 1
push 0x1019
push edi
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x10], eax
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 8], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x10]
push 0x102d
push edi
call esi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x15c]
push eax
push 0
push 0x14d
push edi
call esi
mov eax, dword [ebp - 8]
push 0x40
sub eax, dword [ebp - 0x10]
push 0x12c
push eax
mov eax, dword [ebp - 0xc]
dec eax
push eax
push dword [ebp - 0x10]
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 1
push 0x14f
push edi
call esi
pop edi
pop esi
leave
ret
Function at 0x44b945
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x44]
shr ebx, 8
and byte [ebp], 0
push esi
test bl, 2
push edi
je 0x44b9bf
lea eax, [esp + 0x10]
push eax
push 0x11
call fcn.0044b945
pop ecx
lea edi, [esp + 0x14]
pop ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41075c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test bl, 1
je 0x44ba23
lea eax, [esp + 0x10]
push eax
push 0x10
call fcn.0044b945
pop ecx
lea edi, [esp + 0x14]
pop ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41075c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test bl, 4
je 0x44ba86
lea eax, [esp + 0x10]
push eax
push 0x12
call fcn.0044b945
pop ecx
or edx, 0xffffffff
pop ecx
lea edi, [esp + 0x10]
mov ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, ebp
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41075c
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, ebp
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx eax, byte [esp + 0x48]
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
lea ecx, [esp + 0x10]
push 0x32
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x44e5f6
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0045cf90
and byte [ebp - 0x1004], 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, 0x40a71c
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1004]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1000
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x1004]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00426e2a
lea eax, [ebp - 0x1004]
push eax
call fcn.004235fb
lea eax, [ebp - 0x1004]
push eax
call fcn.00425b5a
add esp, 0x10
test eax, eax
je 0x44e695
cmp dword [ebp + 8], 0
je 0x44e684
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1004]
push eax
call fcn.00451a9c
jmp 0x44e6a8
push 0
push 0
push 1
push 1
push ebx
mov ecx, 0x475a08
call fcn.00415cb4
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x450b28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x40b07c]
push esi
push edi
mov dword [ebp - 0x24], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push 1
mov dword [ebp - 0x18], ecx
stosb byte es:[edi], al
pop esi
lea eax, [ebp - 0xc]
push eax
push 0x4109b8
push SysReAllocString
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x450ca9
push ebx
lea eax, [ebp - 0x21]
push 0xa
push eax
push esi
mov esi, dword [sym.imp.MSVCRT.dll__itoa]
mov dword [ebp - 0x10], 0x103
call esi
push 0xcd
mov dword [ebp - 0x48], 7
call fcn.00424a93
push eax
mov dword [ebp - 8], eax
call fcn.004235fb
add esp, 0x14
lea ecx, [ebp - 0x10]
xor eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea ecx, [ebp - 0x14c]
push ecx
push eax
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x450c58
lea edi, [ebp - 0x14c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x450c25
push dword [ebp - 8]
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x450c25
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 4]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0045114a
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push 0xffffffffffffffff
push 0x401
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [ebp - 0x14]
lea eax, [ebp - 0x21]
push 0xa
push eax
push dword [ebp - 0x14]
call esi
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x103
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
lea eax, [ebp - 0x24]
push 0
push eax
push dword [ebp - 0xc]
jmp 0x450bba
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x473920], 0
pop ebx
je 0x450ca9
mov edi, dword [ebp - 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x450ca9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 8]
push eax
mov dword [ebp - 0x40], eax
call fcn.0045114a
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push 0xffffffffffffffff
push 0x401
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
leave
ret 4
Function at 0x45123c
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0xcd
call fcn.00424a93
mov esi, eax
push esi
call fcn.004235fb
pop ecx
mov edi, esi
pop ecx
xor eax, eax
or ecx, 0xffffffff
mov ebx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4512a1
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x451294
test cl, cl
je 0x451290
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x451294
inc eax
inc eax
inc esi
inc esi
test cl, cl
jne 0x451272
xor eax, eax
jmp 0x451299
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x451405
mov eax, dword [0x40b07c]
push 0x40
mov dword [ebp - 0x134], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x130]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x451405
mov esi, dword [ebp - 4]
push ebx
mov ecx, esi
push dword [esi + 0xb20]
call fcn.004511a1
test eax, eax
jne 0x451405
and dword [ebp - 0x2c], eax
push ebx
mov ecx, esi
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x28], ebx
call fcn.0045114a
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x401
push dword [esi + 0xb20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
call esi
mov ebx, 0x4109b8
mov edi, SysReAllocString
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 8]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x451405
mov ebx, dword [ebp - 4]
xor edi, edi
push edi
push edi
push 0x146
push dword [ebx + 0xb20]
call esi
push 0x18
mov dword [ebp + 8], eax
pop eax
cmp dword [ebp + 8], eax
jle 0x45135e
mov dword [ebp + 8], eax
xor eax, eax
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jle 0x4513fc
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x28], eax
and byte [ebp - 0x238], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], 0x104
push eax
push 0
push 0x404
push dword [ebx + 0xb20]
call esi
lea eax, [ebp - 0x131]
push 0xa
push eax
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll__itoa]
mov edx, dword [ebp - 0x28]
add esp, 0xc
test edx, edx
je 0x4513ec
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4513ec
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc dword [ebp - 4]
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
jl 0x451373
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x453793
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 7
push 0x40ac18
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x453802
cmp dword [0x40d870], esi
jle 0x453802
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0x40d7d4
cmp dword [edi - 4], 0
je 0x4537f6
mov al, byte [edi]
test al, al
je 0x4537e2
movzx eax, al
push eax
call ebx
shr eax, 8
test al, al
je 0x4537f6
mov al, byte [edi + 1]
test al, al
je 0x45382e
movzx eax, al
push eax
call ebx
shr eax, 8
test al, al
jne 0x45382e
inc esi
add edi, 0x28
cmp esi, dword [0x40d870]
jl 0x4537c9
push dword [ebp + 8]
push 0x40a158
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
pop edi
pop esi
and byte [eax + ecx - 1], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
lea eax, [esi + esi*4]
shl eax, 3
lea ecx, [eax + 0x40d7e6]
lea eax, [eax + 0x40d7d6]
push ecx
push dword [ebp + 8]
push eax
push 0x40b498
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
mov dword [ebp - 4], 1
jmp 0x453819
Function at 0x453aeb
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0x104
mov eax, dword [esi + 4]
mov dword [esi + 0xaa8], eax
lea eax, [esi + 0x9a4]
push eax
call fcn.004478dc
lea eax, [esp + 0xc]
add esi, 0x9a0
push eax
push 0
push esi
push 0x426cf7
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x20
test eax, eax
pop esi
je 0x453b35
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x454c47
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
and byte [ebp - 0x118], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
push dword [esi + 0xb24]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 0xb24]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x454dcd
mov ebx, 0x104
lea eax, [ebp - 0x118]
push ebx
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x118]
push eax
call fcn.004235fb
lea eax, [ebp - 0x118]
push eax
call fcn.00425aa3
pop ecx
test eax, eax
pop ecx
je 0x454dcd
and dword [esi + 0x8dc], 0
and dword [esi + 0x8e0], 0
lea edi, [esi + 8]
mov ecx, 0x1f4
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x118]
push eax
push 0x40a158
lea eax, [esi + 0x7d8]
push ebx
push eax
call edi
and byte [esi + 0x8db], 0
lea eax, [ebp - 0x118]
push 0xffffffffffffffff
push eax
call fcn.00419c00
and dword [ebp - 4], 0
add esp, 0x18
test eax, eax
mov dword [ebp - 0xc], eax
je 0x454dc4
push 0
lea ecx, [ebp - 0x320]
push ebx
push ecx
push eax
call fcn.0042bda1
add esp, 0x10
test eax, eax
je 0x454dbb
lea eax, [esi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x320]
test eax, eax
je 0x454d87
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x10], eax
add eax, 3
and al, 0xfc
call fcn.0045cf90
xor ecx, ecx
mov eax, esp
push ecx
push ecx
push dword [ebp - 0x10]
and byte [eax], 0
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x320]
push 0xffffffffffffffff
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x14]
push eax
push 0x40a158
push 0xc7
push dword [ebp - 8]
call edi
inc dword [ebp - 4]
add dword [ebp - 8], 0xc8
push dword [ebp - 4]
lea eax, [ebp - 0x320]
push ebx
push eax
push dword [ebp - 0xc]
call fcn.0042bda1
add esp, 0x20
test eax, eax
jne 0x454d3b
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 4]
mov dword [esi + 0x8dc], eax
lea esp, [ebp - 0x32c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4555e3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
mov edx, ecx
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
push 0xd
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x5c]
mov dword [ebp - 4], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0xa
pop ecx
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x54]
mov dword [ebp - 0x28], 0x27
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp eax, 0xffff0000
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 0
setne cl
push 0x1100
add ecx, 0xffff0001
push dword [edx + 4]
mov dword [ebp - 0x58], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
leave
ret 0x14
Function at 0x45565b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
mov edx, ecx
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
push 0xd
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x5c]
mov dword [ebp - 4], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0xa
pop ecx
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x54]
mov dword [ebp - 0x28], 0x27
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp eax, 0xffff0000
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 0
setne cl
push 0x1132
add ecx, 0xffff0001
push dword [edx + 4]
mov dword [ebp - 0x58], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
leave
ret 0x14

Function at 0x4559c2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
jne 0x4559e6
xor edi, edi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x455aa0
push 0x40a240
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x455aa0
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00459b5c
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push 1
push 4
push eax
call esi
and dword [ebp - 8], 0
add esp, 0x10
cmp dword [ebp - 4], 0
jbe 0x455a90
push 0x44
and dword [ebp + 0xc], 0
pop ecx
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
push 1
lea eax, [ebp + 0xc]
push 4
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push 1
push dword [ebp + 0xc]
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 1
push 4
push eax
call esi
add esp, 0x30
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.0045516e
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x455a38
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
pop ebx
jmp 0x455aa2
xor eax, eax
pop edi
pop esi
leave
ret 8