joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404640
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
sub esp, 8
lea edx, [esp]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
xor edi, edi
push edx
mov dword [eax], edi
push ebx
mov dword [ecx], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4046dc
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4046c4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x43f91c
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4046c4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, 1
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x24]
mov dword [eax], edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x405f20
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x405f57
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405f57
mov eax, 1
ret
xor eax, eax
ret

Function at 0x405f60
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test esi, esi
mov dword [esp + 0x18], edi
jne 0x405f77
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405faa
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push esi
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405faa
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x405fbe
cmp eax, 2
je 0x405fbe
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
test eax, eax
je 0x405fbe
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
ret

Function at 0x405fd0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x405ff5
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x406040
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x406068
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x406300
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x406357
mov eax, dword [esp]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add esp, 0x54
ret
xor eax, eax
add esp, 0x54
ret

Function at 0x4063a0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
push esi
push edi
mov edi, ecx
call fcn.00406360
test eax, eax
jne 0x40649b
call fcn.0042d700
mov eax, dword [eax + 8]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0040d770
add esp, 8
lea ecx, [esp + 8]
lea esi, [edi + 0xc0]
push 0x43fa24
push ecx
push str._s_s
push esi
call fcn.00424182
mov eax, dword [esi]
push eax
call fcn.0040d610
add esp, 0x14
test eax, eax
jne 0x406423
lea edx, [esp + 8]
push edx
push str.Filter.RxMpegX
call fcn.0040bdf0
add esp, 8
mov dword [edi + 0xc4], eax
test eax, eax
je 0x40649b
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.004258d6
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esi]
lea eax, [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0x10]
push str._s_regsvr32.exe__s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x18]
push edx
call fcn.00406300
add esp, 0x14
test eax, eax
je 0x406472
call fcn.00406360
test eax, eax
je 0x406472
mov eax, 1
jmp 0x406474
xor eax, eax
test eax, eax
mov dword [edi + 0xc8], eax
jne 0x40649b
mov eax, dword [edi + 0xc4]
test eax, eax
je 0x40649b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [edi + 0xc4], 0
pop edi
pop esi
add esp, 0x208
ret

Function at 0x4064b0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x406540
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x406519
lea ecx, [esp + 4]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esi + 0xc0]
lea eax, [esp + 4]
push edx
push eax
lea ecx, [esp + 0x110]
push str._s_regsvr32.exe__s__u__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x118]
push edx
call fcn.00406300
add esp, 0x14
mov dword [esi + 0xc8], 0
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x406540
mov eax, dword [esi + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc4], 0
pop esi
add esp, 0x208
ret
Function at 0x406ea0
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x431d1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x10], esi
call fcn.0040f650
mov ecx, dword [str._D_D]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0xf8], ecx
lea ecx, [esi + 0xfc]
mov byte [esp + 0x14], 1
call fcn.00411e50
lea ecx, [esi + 0x1ac]
mov byte [esp + 0x14], 2
call fcn.00411e50
lea ecx, [esi + 0x25c]
mov byte [esp + 0x14], 3
call fcn.00411e50
lea ecx, [esi + 0x30c]
mov byte [esp + 0x14], 4
call fcn.00411e50
lea ecx, [esi + 0x3bc]
mov byte [esp + 0x14], 5
call fcn.00411e50
lea ecx, [esi + 0x46c]
mov byte [esp + 0x14], 6
call fcn.00411e50
lea ecx, [esi + 0x51c]
mov byte [esp + 0x14], 7
call fcn.00411e50
lea ecx, [esi + 0x5cc]
mov byte [esp + 0x14], 8
call fcn.00411410
lea ecx, [esi + 0x6a4]
mov byte [esp + 0x14], 9
call fcn.00411410
lea ecx, [esi + 0x77c]
mov byte [esp + 0x14], 0xa
call fcn.00410550
lea ecx, [esi + 0x88c]
mov byte [esp + 0x14], 0xb
call fcn.0040fdd0
lea ecx, [esi + 0x954]
mov byte [esp + 0x14], 0xc
call fcn.00411e50
lea ecx, [esi + 0xa04]
mov byte [esp + 0x14], 0xd
call fcn.00411e50
lea ecx, [esi + 0xab4]
mov byte [esp + 0x14], 0xe
call fcn.00411e50
lea ecx, [esi + 0xb70]
mov byte [esp + 0x14], 0xf
call fcn.00404740
lea ecx, [esi + 0x1390]
mov byte [esp + 0x14], 0x10
call fcn.004010d0
mov edx, dword [str._D_D]
mov dword [esi + 0x13b8], edx
lea ecx, [esi + 0x13bc]
mov byte [esp + 0x14], 0x12
call fcn.00404a40
lea ecx, [esi + 0x150c]
mov byte [esp + 0x14], 0x13
call fcn.0040bf50
mov eax, dword [str._D_D]
mov dword [esi + 0x18f8], eax
lea ecx, [esi + 0x18fc]
mov byte [esp + 0x14], 0x15
call fcn.00424d17
mov ecx, dword [str._D_D]
mov dword [esi + 0x1940], ecx
mov byte [esp + 0x14], 0x17
mov dword [esi], 0x434f50
call fcn.0042d700
call fcn.0042d700
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, esi
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf0], edi
mov dword [esi + 0xb64], edi
mov dword [esi + 0x1914], edi
mov dword [esi + 0x1508], edi
mov dword [esi + 0x1848], edi
mov dword [esi + 0x184c], edi
mov dword [esi + 0x193c], edi
call fcn.004076e0
test al, al
je 0x4070a1
call fcn.0042d700
mov eax, dword [eax + 8]
mov ecx, 0x443b10
push eax
call fcn.004032c0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40bdf0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push eax
xor ebp, ebp
call fcn.0040cf30
mov edi, eax
add esp, 4
test edi, edi
je 0x40beaa
call fcn.0042d700
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40beaa
lea ecx, [esp + 0x14]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x120]
lea edx, [esp + 0x14]
push esi
push ebp
push 0x43fd5c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebp
push 0x100
push 2
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40beaa
call fcn.0042d700
mov eax, dword [eax + 8]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x40d1c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push eax
mov byte [ebp], 0
call fcn.0040cf30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d23a
call fcn.0042d700
mov eax, dword [eax + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40d23a
call fcn.0042d700
mov eax, dword [eax + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
mov esi, eax
push ecx
push esi
push edi
call fcn.0040d040
add esp, 0xc
test eax, eax
je 0x40d23a
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub esi, eax
push edx
push ebp
add esi, edi
push ecx
push esi
push eax
call fcn.0040d0f0
add esp, 0x14
xor eax, eax
pop edi
test ebx, ebx
pop esi
pop ebp
setne al
pop ebx
ret

Function at 0x40d250
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push eax
call fcn.0040d1c0
add esp, 0x14
test eax, eax
je 0x40d290
cmp byte [esi], 0
jne 0x40d2a4
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push ebx
push edi
push esi
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40e7f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
call fcn.0042d700
mov ecx, dword [esp + 8]
mov eax, dword [eax + 8]
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40e80f
pop edi
ret
push ebx
push ebp
push esi
xor ebp, ebp
call fcn.0042d700
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40e8a4
mov eax, dword [0x443eb8]
test eax, eax
je 0x40e88f
call fcn.0042d700
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call fcn.00425c9f
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40e88f
mov ecx, edi
mov edi, ebx
mov edx, ecx
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call fcn.0040e090
push ebx
mov ebp, eax
call fcn.00425cc8
add esp, 0x10
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push esi
call fcn.0040e090
add esp, 0xc
mov ebp, eax
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
ret
Function at 0x4130a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x432830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [str._D_D]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x30]
lea edx, [edi + 0x1a4]
push ecx
lea eax, [esp + 0x34]
xor ebx, ebx
push edx
push eax
mov dword [esp + 0x30], ebx
call fcn.004259e2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00425886
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.00425799
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0xc]
mov eax, dword [edi + 0x1a0]
push ebx
push ecx
push esi
push str.Bitmap
push edx
push eax
call fcn.0040ee40
add esp, 0x18
test eax, eax
jne 0x41314d
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00425799
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [edi + 0x1a0]
mov ecx, dword [esp + 0xc]
push ebp
push eax
lea eax, [esi + 0x14]
push eax
push 0x43fe00
push ecx
call fcn.0040d3e0
mov eax, dword [edi + 0x1a0]
mov edx, dword [esp + 0x20]
lea ebp, [esi + 0xc]
push eax
push ebp
push str.Size
push edx
call fcn.0040d420
mov eax, dword [edi + 0x1a0]
push eax
mov eax, dword [esp + 0x34]
push ebx
push str.Rectangles
push eax
call fcn.0040d2b0
add esp, 0x30
cmp eax, ebx
mov dword [esi + 4], eax
je 0x4131fa
shl eax, 4
push eax
call fcn.00425c9f
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
add esp, 4
xor ebp, ebp
cmp eax, ebx
jle 0x413228
push ebp
lea ecx, [esp + 0x18]
push 0x43ffc8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [edi + 0x1a0]
mov ecx, dword [esi + 8]
mov edx, ebx
push eax
add edx, ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call fcn.0040d500
mov eax, dword [esi + 4]
add esp, 0x1c
inc ebp
add ebx, 0x10
cmp ebp, eax
jl 0x4131bb
jmp 0x413228
push 0x10
mov dword [esi + 4], 1
call fcn.00425c9f
mov dword [esi + 8], eax
mov dword [eax + 4], ebx
mov edx, dword [esi + 8]
add esp, 4
mov dword [edx], ebx
mov eax, dword [esi + 8]
mov ecx, dword [ebp]
mov dword [eax + 8], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [edx + 0xc], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00425799
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x41c43d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x443050
cmp edx, dword [eax]
je 0x41c45f
add eax, 8
inc ecx
cmp eax, 0x4430e0
jl 0x41c450
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x443050]
jne 0x41c58d
mov eax, dword [0x445ee0]
cmp eax, 1
je 0x41c567
test eax, eax
jne 0x41c490
cmp dword [0x440914], 1
je 0x41c567
cmp edx, 0xfc
je 0x41c58d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c4c7
lea eax, [ebp - 0x1a4]
push 0x438840
push eax
call fcn.0041a330
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417c70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c50a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417c70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43883c
push edi
call fcn.0041e500
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x438820
push eax
call fcn.0041a330
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041a340
lea eax, [ebp - 0xa0]
push 0x43881c
push eax
call fcn.0041a340
push dword [esi + 0x443054]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041a340
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4387f4
push eax
call fcn.0041e46c
add esp, 0x2c
pop edi
jmp 0x41c58d
lea eax, [ebp + 8]
lea esi, [esi + 0x443054]
push 0
push eax
push dword [esi]
call fcn.00417c70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x423600
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.00416f60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4236cb
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 0x4236cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42367e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x423689
or bh, 8
and edi, 0x8000000
je 0x4236a4
mov eax, dword [0x44767c]
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 0x4236cb
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 0x423aa0
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 0x423acb
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 0x423aef
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 0x423b0a
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 0x427714
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42774c
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.00425bf4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00425bcc
jmp 0x427758
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x428cea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x428d2c
call fcn.0042d700
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x428d2c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x428d23
xor eax, eax
jmp 0x428d34
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00428d3a
pop edi
pop esi
pop ebx
ret 4

Function at 0x429571
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x429593
cmp dword [edi + 0x3c], 0
jne 0x429593
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042d700
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004295c0
pop edi
pop esi
pop ebx
ret 8