joyce8/EMBER2024-capa huggingface dataset:
Function at 0x516714
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1a4], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040c8
xor eax, eax
push ebp
push 0x516853
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403c94
mov eax, dword [ebp - 4]
call fcn.00403f14
test eax, eax
je 0x516832
mov eax, dword [ebp - 4]
call fcn.00403f14
cmp eax, 0x101
jge 0x516832
lea edx, [ebp - 0x1a4]
mov eax, dword [ebp - 4]
call fcn.0040876c
mov edx, dword [ebp - 0x1a4]
lea eax, [ebp - 0x109]
call fcn.00408fa4
mov eax, dword [ebp - 4]
call fcn.00516640
test al, al
je 0x5167a6
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040876c
jmp 0x516832
lea eax, [ebp - 0x109]
push eax
call sub.wsock32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x5167c4
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00403ce8
jmp 0x516832
lea eax, [ebp - 0x189]
xor ecx, ecx
mov edx, 0x80
call fcn.00402c48
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
lea eax, [ebp - 0x189]
mov ecx, 4
call fcn.00407394
lea edx, [ebp - 0x189]
lea eax, [ebp - 8]
mov ecx, 4
call fcn.00407394
lea eax, [ebp - 0x19d]
xor ecx, ecx
mov edx, 0x14
call fcn.00402c48
push dword [ebp - 8]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19d]
call fcn.00408f48
mov edx, ebx
lea eax, [ebp - 0x19d]
call fcn.004090e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51685a
lea eax, [ebp - 0x1a4]
call fcn.00403c94
lea eax, [ebp - 4]
call fcn.00403c94
ret

Function at 0x438c9f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
mov ebx, dword [esp]
add esp, 4
add edi, eax
inc edi
add eax, eax
call fcn.00438ce9
and edi, edi
sub eax, edi
mov eax, 0xacf943e6
xor dword [esi], ebx
mov eax, edi
or eax, edi
add esi, 1
add edi, 0xb2a6706d
sub esp, 4
mov dword [esp], edi
pop eax
push 0xd26bfa33
pop edi
cmp esi, ecx
jne fcn.00438c9f
sub eax, edi
ret
Function at 0x401287
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [0x465a40]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4013b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4013b2
call dword [0x4640a0]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 8], eax
xor eax, eax
mov ax, word [edi]
test ax, ax
mov dword [ebp - 8], eax
je 0x4013b2
inc edi
inc edi
mov ax, word [edi]
inc edi
inc edi
mov ecx, dword [edi]
add edi, 4
cmp ax, 0x403
mov dword [ebp - 0x10], ecx
jne 0x401342
test edi, edi
jne 0x401317
xor eax, eax
jmp 0x401338
push edi
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0044b320
mov eax, esp
push dword [ebp + 8]
push esi
push edi
push eax
call fcn.004010d2
push eax
push 0
push 0x143
jmp 0x40138b
cmp ax, 0x1234
jne 0x4013a5
or dword [ebp - 0x30], 0xffffffff
test edi, edi
mov dword [ebp - 0x34], 1
jne 0x40135c
and dword [ebp - 0x2c], edi
jmp 0x401380
push edi
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0044b320
mov eax, esp
push dword [ebp + 8]
push esi
push edi
push eax
call fcn.004010d2
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x40b
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
jne 0x4013a5
and dword [ebp - 4], 0
add edi, dword [ebp - 0x10]
cmp dword [ebp - 4], 0
jne 0x4012e9
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4014e1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
je 0x4015ac
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindow]
lea esi, [ebx + 4]
push 5
push dword [esi]
jmp 0x401518
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push dword [ebp + 8]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x401508
lea eax, [ebp - 0x24]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff6
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x28]
mov edi, dword [eax]
cmp edi, eax
je 0x4015aa
push dword [edi + 8]
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x4015a0
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00401200
mov eax, dword [0x4640a8]
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x45
xor eax, eax
push eax
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x14]
sub eax, dword [0x4640a4]
mov dword [ebp + 8], eax
mov edi, dword [edi]
mov eax, dword [ebp - 4]
cmp edi, dword [eax + 0x28]
jne 0x40153f
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40357a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40358f
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4035a1
xor eax, eax
jmp 0x4035d3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4035c5
cmp esi, eax
jae 0x40359d
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4035b7
cmp esi, eax
jae 0x40359d
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x407266
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
push esi
mov esi, ecx
jl 0x4074ff
cmp ebp, 6
jg 0x4074ff
push ebx
push edi
lea ebx, [esi + 0x3c]
push 0
mov ecx, ebx
call fcn.00401837
mov ecx, ebx
call fcn.00401847
push 0x400
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
test ebp, ebp
jne 0x407398
push 5
push dword [esi + 0x70]
call edi
push 0x3ea
mov ecx, ebx
call fcn.004018d6
push 2
mov ecx, ebx
call fcn.004018d6
push 0
push dword [esi + 0xa8]
call edi
cmp dword [esp + 0x14], 2
mov ebp, 0x3eb
jne 0x40741d
push 3
call fcn.0041ac7b
mov ecx, eax
call fcn.00418e56
test eax, eax
je 0x407320
call fcn.0040a7a3
mov ecx, eax
call fcn.00409404
test eax, eax
jne 0x407320
push 0x400
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push eax
call edi
push 5
push dword [esi + 0xe8]
call edi
lea eax, [esi + 0x24]
lea ecx, [esi + 0xe4]
push eax
call fcn.0040ce49
cmp dword [esi + 0x2c], 0
jne 0x4073f7
push 1
mov ecx, ebx
call fcn.004018d6
xor ebp, ebp
push ebp
push dword [esi + 0x148]
call edi
cmp dword [esp + 0x14], 6
jne 0x4074ea
cmp dword [esi + 0x1c4], ebp
je 0x407376
push 0x3fd
mov ecx, ebx
call fcn.004018d6
push 0x3fc
mov ecx, ebx
call fcn.004018d6
push 5
push dword [esi + 0x18c]
call edi
push ebp
push dword [esi + 0xe8]
jmp 0x4074f2
push 0
push dword [esi + 0x70]
call edi
cmp ebp, 1
jne 0x4072d1
push 5
push dword [esi + 0xa8]
call edi
mov ebp, 0x3ea
push ebp
mov ecx, ebx
call fcn.004018d6
push 2
mov ecx, ebx
call fcn.004018d6
push 0
push ebp
mov ecx, ebx
call fcn.00401264
call fcn.0041ac7b
mov ecx, eax
call fcn.0041845a
test eax, eax
jne 0x40734c
call fcn.0041ac7b
mov ecx, eax
call fcn.00419401
jmp 0x40734c
lea ecx, [esi + 0xe4]
call fcn.0040cdc5
push ebp
mov ecx, ebx
call fcn.004018d6
push 2
mov ecx, ebx
call fcn.004018d6
push 1
push ebp
mov ecx, ebx
call fcn.00401264
cmp dword [esp + 0x14], 3
jne 0x40744a
push ebp
mov ecx, ebx
call fcn.004018d6
push 2
mov ecx, ebx
call fcn.004018d6
push 0
push ebp
mov ecx, ebx
call fcn.00401264
lea ecx, [esi + 0xe4]
call fcn.0040cb41
cmp dword [esp + 0x14], 4
jne 0x40749b
push ebp
mov ecx, ebx
call fcn.004018d6
push 2
mov ecx, ebx
call fcn.004018d6
push 0
push ebp
mov ecx, ebx
call fcn.00401264
push 0
push 2
mov ecx, ebx
call fcn.00401264
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 3
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
lea ecx, [esi + 0xe4]
call fcn.0040cdd0
cmp dword [esp + 0x14], 5
jne 0x40734c
cmp dword [esi + 0x2c], 0
jne 0x4074bd
push dword [esi + 0x1cc]
lea ecx, [esi + 0x144]
call fcn.0040c308
push 0
push dword [esi + 0xe8]
call edi
push 5
lea ebp, [esi + 0x148]
push dword [ebp]
call edi
push 1
push 0
push dword [ebp]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
mov ecx, ebx
call fcn.004018d6
push 0
push dword [esi + 0x18c]
call edi
push 1
mov ecx, ebx
call fcn.00401837
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x408538
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esp + 0xc]
lea edi, [eax + 1]
push edi
call fcn.00402547
push edi
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push esi
call fcn.00407235
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x409eeb
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x44c361
call fcn.0044b2e0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00409c79
mov ebx, dword [ebp + 0x14]
and dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00403c9b
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004021db
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jge 0x409f4d
push 0x80070057
call fcn.00401f41
mov ax, word [eax]
cmp ax, 0x22
jne 0x409fb1
push dword [ebp + 0x10]
mov ecx, esi
push 0x22
call fcn.0040949b
mov dword [ebp + 8], eax
inc eax
push eax
push 0x22
mov ecx, esi
call fcn.0040949b
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp + 0x10], eax
je 0x409fc3
cmp eax, 0xffffffff
je 0x409fc3
sub eax, dword [ebp + 8]
mov ecx, esi
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00409b10
push eax
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00403c9b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004021db
mov eax, dword [ebp + 0x10]
inc eax
mov dword [edi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
xor eax, eax
jmp 0x409fb4
Function at 0x40ac3b
Capabilities:
Log keystrokes

Disassembly:
cmp dword [esp + 8], 1
push esi
jne 0x40acdf
call fcn.0041ac7b
mov ecx, eax
call fcn.0041845a
test eax, eax
jne 0x40ad80
call fcn.0041288f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test eax, eax
jne 0x40ad80
call fcn.0041494c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test eax, eax
jne 0x40ad80
call fcn.00415b11
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test eax, eax
jne 0x40ad80
call fcn.00415eb8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test eax, eax
jne 0x40ad80
call fcn.0041bd1e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test eax, eax
jne 0x40ad80
call fcn.00406ef9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test eax, eax
jne 0x40ad80
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40ad80
cmp dword [esp + 0xc], 2
jne 0x40ad80
push 2
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.00406ef9
mov esi, eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ad80
push dword [esi + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40ad80
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor ebp, ebp
push ebp
push dword [esi + 8]
call edi
push ebp
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call edi
mov edi, eax
cmp edi, esi
je 0x40ad42
push 1
push edi
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push ebp
lea eax, [esp + 0x1c]
push eax
push ebp
push 0x2000
call ebx
push 2
push ebp
push ebp
push 0x2001
call ebx
call fcn.00406ef9
push dword [eax + 8]
call dword [sym.imp.USER32.dll_BringWindowToTop]
cmp edi, esi
pop ebx
je 0x40ad7e
push ebp
push edi
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop ebp
xor eax, eax
pop esi
ret 0x10
Function at 0x40bd2f
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xd4
mov eax, dword [0x464b24]
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 4]
xor eax, ebp
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x64], eax
call fcn.00403ae2
push 1
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [ebp - 0x54]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
add dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x50]
add dword [ebp - 0x54], 0xd
add eax, 0x14
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], eax
call fcn.00402e3f
lea eax, [ebp - 0x40]
push eax
push 0x5c
xor edi, edi
push edi
push edi
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], 0x2bc
mov dword [ebp - 0x44], edi
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040bc30
push dword [ebp - 0x44]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x1c]
call ebx
mov edi, dword [sym.imp.USER32.dll_DrawTextW]
push 0x24
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x34]
push dword [eax - 0xc]
push eax
push dword [ebp + 0x1c]
call edi
push 0
push 0
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [ebp + 0x1c]
call ebx
mov eax, dword [esi + 0x38]
push 0x24
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x50], 0x28
mov dword [ebp - 0x48], 0x3c
push dword [eax - 0xc]
push eax
push dword [ebp + 0x1c]
call edi
mov eax, dword [esi + 0x3c]
push 0x28
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], 0xcf
mov dword [ebp - 0x50], 0xbb
push ecx
push dword [eax - 0xc]
push eax
push dword [ebp + 0x1c]
call edi
push 0xf
push 8
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x6c], 0xc
mov dword [ebp - 0x68], 0xd2
mov dword [ebp - 0x64], 0x13f
mov dword [ebp - 0x60], 0xe3
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esi + 0x30]
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
push 0
mov ecx, 0x131
sub ecx, eax
push ecx
push dword [esi + 0x20]
push 0xf
push eax
push 0xd3
push 0xd
push dword [ebp + 0x1c]
call edi
mov eax, dword [esi + 0x30]
push 0xcc0020
push 0
push 0
push dword [esi + 0x20]
mov ecx, 0x131
push 0xf
sub ecx, eax
push ecx
push 0xd3
add eax, 0xd
push eax
push dword [ebp + 0x1c]
call edi
cmp dword [ebp - 0x58], 0
je 0x40bec8
push dword [ebp - 0x58]
push dword [ebp + 0x1c]
call ebx
cmp dword [ebp - 0x44], 0
pop edi
pop esi
pop ebx
je 0x40beda
push dword [ebp - 0x44]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.004021db
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x20]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
xor eax, eax
call fcn.0044b2c4
add ebp, 0x68
leave
ret 0x10
Function at 0x40ce49
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov ebx, ecx
push 0x1009
lea edi, [ebx + 0x20]
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 8]
cmp eax, esi
mov dword [ebx + 0x28], eax
je 0x40cf07
cmp dword [eax + 8], esi
je 0x40cf07
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [edi]
call esi
push 5
push dword [ebx + 0x24]
call esi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov esi, dword [eax]
and dword [ebp - 4], 0
cmp esi, eax
je 0x40cf19
xor eax, eax
push eax
push eax
push eax
push eax
push 0x451a60
push dword [ebp - 4]
mov ecx, edi
push 1
call fcn.0040cd6c
push dword [esi + 8]
mov ecx, edi
push eax
call fcn.0040ccb1
mov esi, dword [esi]
mov eax, dword [ebp + 8]
inc dword [ebp - 4]
cmp esi, dword [eax + 4]
jne 0x40cea2
cmp dword [ebp - 4], 3
jl 0x40cf19
push 0x3f7
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov ecx, edi
dec eax
dec eax
push eax
push 0
call fcn.0040c816
jmp 0x40cf19
push esi
push dword [edi]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 0
push dword [ebx + 0x24]
call esi
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40cf2d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x464b24]
add dword [ebp + 0x10], 8
add dword [ebp + 0xc], 0xd
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push 1
push dword [esi]
add eax, 0x14
mov edi, ecx
mov dword [ebp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [ebp - 0x6c]
call fcn.00402e3f
lea eax, [ebp - 0x60]
push eax
push 0x5c
xor ebx, ebx
push ebx
push ebx
push 0x31
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x50], 0x2bc
mov dword [ebp - 0x64], ebx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040bc30
push dword [ebp - 0x64]
push dword [esi]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [sym.imp.USER32.dll_DrawTextW]
push 0x24
lea ecx, [ebp + 0xc]
push ecx
mov dword [ebp - 0x68], eax
mov eax, dword [edi + 0x54]
push dword [eax - 0xc]
push eax
push dword [esi]
call ebx
push 0
push 0
push 0x31
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 0x58]
push 0x24
lea ecx, [ebp + 0xc]
push ecx
mov dword [ebp + 0x10], 0x20
mov dword [ebp + 0x18], 0x34
push dword [eax - 0xc]
push eax
push dword [esi]
call ebx
mov edi, dword [edi + 0x5c]
push 0x24
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0x10], 0x8a
mov dword [ebp + 0x18], 0x9e
push dword [edi - 0xc]
push edi
push dword [esi]
call ebx
cmp dword [ebp - 0x68], 0
je 0x40d02d
push dword [ebp - 0x68]
push dword [esi]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x64], 0
pop edi
pop esi
pop ebx
je 0x40d03f
push dword [ebp - 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff0
call fcn.004021db
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b2c4
leave
ret 0x14
Function at 0x40e797
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xc0
mov eax, dword [0x464b24]
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 4]
xor eax, ebp
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x64], eax
call fcn.00403ae2
push 1
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [ebp - 0x50]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x40]
push eax
push 0x5c
xor edi, edi
push edi
push edi
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], 0x2bc
mov dword [ebp - 0x54], edi
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040bc30
push dword [ebp - 0x54]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x1c]
call ebx
add dword [ebp - 0x4c], 8
add dword [ebp - 0x50], 0xd
mov edi, dword [sym.imp.USER32.dll_DrawTextW]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
push 0x24
add eax, 0x14
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x50]
push ecx
push dword [eax - 0xc]
push eax
push dword [ebp + 0x1c]
call edi
push 0
push 0
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [ebp + 0x1c]
call ebx
mov eax, dword [esi + 0x28]
push 0x24
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x4c], 0x26
mov dword [ebp - 0x44], 0x3a
push dword [eax - 0xc]
push eax
push dword [ebp + 0x1c]
call edi
mov eax, dword [esi + 0x2c]
push 0x24
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x44], 0x58
mov dword [ebp - 0x50], 0x19
push dword [eax - 0xc]
push eax
push dword [ebp + 0x1c]
call edi
mov eax, dword [esi + 0x30]
push 0x24
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x4c], 0x5a
mov dword [ebp - 0x44], 0x6e
push dword [eax - 0xc]
push eax
push dword [ebp + 0x1c]
call edi
mov esi, dword [esi + 0x34]
push 0x24
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x4c], 0xb4
mov dword [ebp - 0x44], 0xc8
mov dword [ebp - 0x50], 0xd
push dword [esi - 0xc]
push esi
push dword [ebp + 0x1c]
call edi
cmp dword [ebp - 0x58], 0
je 0x40e8f8
push dword [ebp - 0x58]
push dword [ebp + 0x1c]
call ebx
cmp dword [ebp - 0x54], 0
pop edi
pop esi
pop ebx
je 0x40e90a
push dword [ebp - 0x54]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x20]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
xor eax, eax
call fcn.0044b2c4
add ebp, 0x68
leave
ret 0x10

Function at 0x40f3c5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x44c9a0
call fcn.0044b2e0
push ecx
push esi
mov esi, ecx
and dword [esi + 8], 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
call fcn.0040ef3e
and dword [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.0041ffc0
lea ecx, [esi + 0x30]
call fcn.00402e3f
and dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret