joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f80
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x42ecb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x104], 1
mov eax, dword [0x43d8d0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x104], 6
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, dword [esp + 0x118]
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, dword [sym.imp.USER32.dll_GetClassNameA]
mov esi, eax
lea eax, [esp + 0x34]
push 0xc8
push eax
push esi
call ebp
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
push ecx
push 0x43d384
push edx
call fcn.0041fd3f
add esp, 0xc
lea eax, [esp + 0x34]
push 0xc8
push eax
push esi
call ebx
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push ecx
push 0x43d384
push edx
call fcn.0041fd3f
push esi
lea eax, [esp + 0x2c]
push 0x43d380
push eax
call fcn.0041fd3f
mov eax, dword [esp + 0x12c]
add esp, 0x18
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402066
push eax
lea ecx, [esp + 0x1c]
call fcn.0041f9b9
cmp eax, 0xffffffff
jle 0x4020bf
mov eax, dword [esp + 0x110]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402083
push eax
lea ecx, [esp + 0x18]
call fcn.0041f9b9
cmp eax, 0xffffffff
jle 0x4020bf
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [esp + 0x30]
sub ecx, edx
test edi, edi
jne 0x4020b2
mov edx, dword [esp + 0x11c]
test edx, edx
je 0x4020d3
cmp edi, eax
jne 0x4020bf
cmp dword [esp + 0x11c], ecx
je 0x4020d3
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x4020ef
jmp 0x401ff1
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.00420ea9
push 0x43d36c
lea ecx, [esp + 0x14]
call fcn.00420e6d
mov esi, dword [esp + 0x10c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00420806
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x104], 5
call fcn.00420a91
lea ecx, [esp + 0x18]
mov byte [esp + 0x104], 4
call fcn.00420a91
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 3
call fcn.00420a91
lea ecx, [esp + 0x10]
mov byte [esp + 0x104], 2
call fcn.00420a91
lea ecx, [esp + 0x110]
mov byte [esp + 0x104], 1
call fcn.00420a91
lea ecx, [esp + 0x114]
mov byte [esp + 0x104], 0
call fcn.00420a91
mov ecx, dword [esp + 0xfc]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x4021a0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x42ed07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.qqexchangewnd_shortcut_prefix_
mov dword [esp + 0x2c], esi
call fcn.00420aff
push ecx
mov dword [esp + 0x74], 1
mov ecx, esp
mov dword [esp + 0x30], esp
push str.5B3838F5_0C81_46D9_A4C0_6EA28CA3E942
call fcn.00420aff
lea eax, [esp + 0x28]
mov byte [esp + 0x74], 0
push eax
call fcn.00401f80
add esp, 0x14
push 0x441a78
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 2
call fcn.00420aff
push ecx
mov bl, 3
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x43d36c
mov byte [esp + 0x6c], bl
call fcn.00420aff
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x70], 4
call fcn.00420806
mov byte [esp + 0x6c], bl
call fcn.00401880
mov edi, eax
add esp, 8
cmp edi, esi
jle 0x40231f
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x43d36c
call fcn.00420aff
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x74], 5
call fcn.00420806
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], bl
push ecx
call fcn.00401940
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x6c], 6
call fcn.00420806
call fcn.00401f60
add esp, 4
test eax, eax
je 0x402309
lea ecx, [esp + 0x28]
push 0x32
push ecx
push eax
call ebp
lea edx, [esp + 0x28]
lea eax, [esp + 0x10]
push edx
push 0x43d384
push eax
call fcn.0041fd3f
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x441a78
push str.qqexchangewnd_shortcut_prefix_
call fcn.0041f722
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00420ea9
push 0x43d36c
lea ecx, [esp + 0x18]
call fcn.00420e6d
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], bl
call fcn.00420a91
inc esi
cmp esi, edi
jl 0x40225f
mov esi, dword [esp + 0x6c]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00420806
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 2
call fcn.00420a91
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 0
call fcn.00420a91
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret
Function at 0x4023b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x42ed33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x350
push esi
push edi
push 0x441a78
push 0x43d400
lea ecx, [esp + 0x370]
mov dword [esp + 0x368], 0
call fcn.0041f722
push 0x441a78
push 0x43d3fc
lea ecx, [esp + 0x370]
call fcn.0041f722
push 0x441a78
push 0x43d38c
lea ecx, [esp + 0x370]
call fcn.0041f722
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40250f
lea ecx, [esp + 0x368]
call fcn.00420f58
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x402501
mov esi, dword [esp + 0x36c]
lea edx, [esp + 0x30]
lea ecx, [esp + 8]
push edx
call fcn.00420aff
mov eax, dword [esp + 0x14]
mov byte [esp + 0x360], 1
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x134]
mov dword [esp + 0x134], 0x224
push ecx
push eax
call sub.KERNEL32.dll_Module32First
lea edx, [esp + 0x254]
mov ecx, esi
push edx
call fcn.00420c1a
lea ecx, [esp + 8]
call fcn.00420f58
mov eax, dword [esp + 0x368]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.00410126
add esp, 8
test eax, eax
je 0x40253f
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00420f10
lea ecx, [esp + 8]
mov byte [esp + 0x360], 0
call fcn.00420a91
lea edx, [esp + 0xc]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402466
push 0xffffffffffffffff
lea ecx, [esp + 0x36c]
call fcn.00420f10
lea ecx, [esp + 0x368]
mov dword [esp + 0x360], 0xffffffff
call fcn.00420a91
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
add esp, 0x35c
ret
cmp dword [esp + 0x370], 1
jne 0x40256a
mov eax, dword [esp + 0x14]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov byte [esp + 0x360], 0
call fcn.00420a91
lea ecx, [esp + 0x368]
mov dword [esp + 0x360], 0xffffffff
call fcn.00420a91
mov ecx, dword [esp + 0x358]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x35c
ret
Function at 0x4025b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ed48
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40265c
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [esp + 0x1c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00420a91
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00420a91
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x402690
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x42ed7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x43d8d0]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
push 0
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4026f6
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
lea ecx, [esp + 8]
call fcn.00420c1a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00420806
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00420a91
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x402bd0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get ntdll base address
Set socket configuration
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x42ee88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 0
call fcn.0042dbd3
mov eax, dword [0x43d8d0]
lea edi, [esi + 8]
mov dword [edi], eax
mov ecx, dword [0x43d8d0]
mov dword [esi + 0xc], ecx
mov edx, dword [0x43d8d0]
mov dword [esi + 0x10], edx
mov eax, dword [0x43d8d0]
mov dword [esi + 0x1c], eax
mov ecx, dword [0x43d8d0]
mov dword [esi + 0x20], ecx
mov edx, dword [0x43d8d0]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov byte [esp + 0x20], 7
call fcn.00401840
mov eax, dword [0x43d8d0]
mov dword [esi + 0x30], eax
mov ecx, esi
mov byte [esp + 0x20], 9
mov dword [esi], method.CAsyncSocket.virtual_0
call fcn.00402e30
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00420bca
push 0
mov dword [esi + 0x18], 0
call fcn.0042dace
mov edx, dword [esi + 0x18]
push 0
push 0x3f
push 2
push edx
mov ecx, esi
call fcn.0042dbfc
test eax, eax
jne 0x402c9c
push eax
push eax
push 0x43d448
call fcn.004285e0
push 0
call fcn.0041043d
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
push 4
push eax
push 0x1006
push 0xffff
push ecx
mov dword [esp + 0x1c], 0x1f40
call sub.WSOCK32.dll_setsockopt
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
test eax, eax
je 0x402ce6
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 4]
lea edx, [esp + 0xc]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x18], 1
call sub.WSOCK32.dll_ioctlsocket
push 0xffffffffffffffff
push 1
push 1
push 1
push 1
push 0xb
push 0x7d0
lea ecx, [esp + 0x30]
call fcn.0041fdf0
mov ecx, dword [eax]
mov dword [esp + 0x20], 0xffffffff
mov dword [esi + 0x2c], ecx
lea ecx, [esp + 0x28]
mov dword [esi + 0x34], 0
call fcn.00420a91
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x402d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ef00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], method.CAsyncSocket.virtual_0
push 0
mov dword [esp + 0x14], 8
call fcn.0042dace
mov ecx, esi
call fcn.0042dd34
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 7
call fcn.00420a91
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 6
call fcn.00401870
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 5
call fcn.00420a91
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 4
call fcn.00420a91
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 3
call fcn.00420a91
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 2
call fcn.00420a91
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call fcn.00420a91
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.00420a91
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.0042df11
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ef38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
push 0
mov dword [esp + 0x28], 0
call fcn.0042dace
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00403030
mov edi, eax
lea ecx, [esi + 8]
push 0x43d47c
lea edx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x30], 1
call fcn.00420d26
lea ecx, [esp + 0x2c]
lea edx, [esp + 0xc]
push ecx
push eax
push edx
mov byte [esp + 0x30], 2
call fcn.00420cc0
push edi
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x2c], 3
push eax
call fcn.00420cc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 7
call fcn.00420a91
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 6
call fcn.00420a91
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.00420a91
lea ecx, [esp + 8]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x43d464
call fcn.00420aff
call fcn.00402780
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
add esp, 8
or ecx, 0xffffffff
push 0
push eax
push edx
mov edx, dword [esp + 0x14]
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0042de5a
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call fcn.00420a91
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00420a91
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x20
ret 4
Function at 0x403030
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x42efe4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov eax, dword [0x43d8d0]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x98], 1
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
mov bl, 2
push eax
mov byte [esp + 0x9c], bl
call fcn.004021a0
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 3
call fcn.00420bca
lea ecx, [esp + 0xc]
mov byte [esp + 0x98], bl
call fcn.00420a91
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2c]
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
push 0x43d384
push ecx
call fcn.0041fd3f
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push 0x43d49c
push eax
call fcn.00420d9a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 4
call fcn.00420bca
lea ecx, [esp + 0xc]
mov byte [esp + 0x98], bl
call fcn.00420a91
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push 0x43d494
push edx
call fcn.00420d9a
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 5
call fcn.00420bca
lea ecx, [esp + 0xc]
mov byte [esp + 0x98], bl
call fcn.00420a91
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00420cc0
mov byte [esp + 0x98], 6
push 0x43d48c
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00420d26
lea ecx, [esi + 0x1c]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0xa4], 7
call fcn.00420cc0
push 0x43d484
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0xa0], 8
push eax
call fcn.00420d26
add esi, 0x20
mov byte [esp + 0x98], 9
push esi
mov esi, dword [esp + 0xa4]
push eax
push esi
call fcn.00420cc0
mov dword [esp + 0x20], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x98], 8
call fcn.00420a91
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 7
call fcn.00420a91
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 6
call fcn.00420a91
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], bl
call fcn.00420a91
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 1
call fcn.00420a91
lea ecx, [esp + 0x10]
mov byte [esp + 0x98], 0
call fcn.00420a91
mov ecx, dword [esp + 0x90]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 4
Function at 0x415b9d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415bbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00412900
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x415be0
test byte [esp + 8], 2
je 0x415be0
call fcn.00412973
mov dword [eax], 0xd
call fcn.0041297c
mov dword [eax], 5
jmp 0x415bb9
xor eax, eax
ret
Function at 0x41f080
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004105e0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41f14b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41f14b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41f0fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41f109
or bh, 8
and edi, 0x8000000
je 0x41f124
mov eax, dword [0x4453fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41f14b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41f54b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41f56f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41f58a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x424098
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4240d0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00420f38
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00420f10
jmp 0x4240dc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4