joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4314f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push esi
lea ecx, [esp + 0xc]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea edx, [esp + 4]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.MicrosoftWindowsCurrentVersionRun
push ecx
call esi
lea edx, [esp + 0x10]
push 0x104
push edx
push 0
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x10]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [esp + 4]
test eax, eax
jne 0x4315a3
push edi
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x14]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push 0x4ba490
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 8], eax
pop edi
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov eax, dword [esp + 4]
pop esi
test eax, eax
sete al
add esp, 0x110
ret

Function at 0x4315d0
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0x20019
push 0
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push str.MicrosoftWindowsCurrentVersionRun
push edx
call esi
mov esi, eax
test esi, esi
jne 0x431623
mov eax, dword [esp + 8]
push 0x4ba490
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call edi
test esi, esi
pop edi
pop esi
sete al
add esp, 8
ret

Function at 0x435620
Capabilities:
Link many functions at runtime

Disassembly:
mov ecx, 0x4c3a38
jmp 0x435620
push esi
mov esi, ecx
push str.uxtheme.dll
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x14], eax
je 0x43568a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsThemeActive
push eax
call edi
mov dword [esi], eax
mov eax, dword [esi + 0x14]
push str.OpenThemeData
push eax
call edi
mov ecx, dword [esi + 0x14]
push str.CloseThemeData
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi + 0x14]
push str.GetThemeBackgroundContentRect
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x14]
push str.DrawThemeBackground
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, esi
pop edi
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x4379b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x49ac76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 0x34]
mov eax, dword [ebp + 0x194]
add eax, 0x15c
push eax
push str._s.hdt
push ecx
call fcn.00445f52
mov edx, dword [0x4bfcf8]
add esp, 0xc
mov dword [esp + 0xc], edx
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], ebx
call fcn.0043d848
lea eax, [esp + 0x34]
push ebx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 1
call fcn.0043d90b
test eax, eax
setne al
cmp al, bl
jne 0x437a6f
lea ecx, [esp + 0x18]
call fcn.0043d8c1
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], bl
call fcn.0043d885
lea ecx, [esp + 0xc]
mov dword [esp + 0x140], 0xffffffff
call fcn.004736e5
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
add esp, 0x13c
ret
push esi
push edi
mov dword [ebp + 0x23c], ebx
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x20]
call fcn.0043db2b
test eax, eax
lea ecx, [esp + 0x20]
setne byte [esp + 0x13]
call fcn.0043daf2
test eax, eax
jne 0x437bb4
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call fcn.0043dbfa
mov edi, dword [eax]
mov eax, dword [ebp + 0x23c]
mov edx, eax
or ecx, 0xffffffff
shl edx, 6
add edx, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + edx*4 + 0x240]
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]
lea ecx, [esp + 0x1c]
call fcn.004736e5
mov eax, dword [ebp + 0x23c]
push 0x8002
mov ecx, eax
shl ecx, 6
add ecx, eax
lea edx, [ebp + ecx*4 + 0x240]
push edx
call fcn.00454d99
lea ecx, [ebp + 0x1a0]
push 0x94
push ecx
push eax
mov dword [ebp + 0x238], eax
call fcn.004510e4
add esp, 0x14
cmp eax, 0x94
jne 0x437ba5
lea esi, [ebp + 0x1c4]
lea edx, [ebp + 0x1a4]
push esi
push edx
lea eax, [esp + 0x1c]
push str._s__s_n:__s_
push eax
call fcn.0046c3e9
mov eax, dword [ebp + 0x190]
add esp, 0x10
add eax, 0x40
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x437b74
cmp cl, bl
je 0x437b70
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x437b74
add eax, 2
add esi, 2
cmp cl, bl
jne 0x437b50
xor eax, eax
jmp 0x437b79
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x437b87
mov eax, dword [ebp + 0x23c]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x170]
push ecx
push ebx
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [ebp + 0x23c]
mov eax, dword [ebp + 0x238]
push eax
call fcn.0044fac8
add esp, 4
cmp byte [esp + 0x13], bl
jne 0x437a7b
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x170]
push ebx
push ecx
push 0x14e
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, ebp
call fcn.00437c20
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], bl
call fcn.0043d885
lea ecx, [esp + 0x14]
mov dword [esp + 0x148], 0xffffffff
call fcn.004736e5
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x437c20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x204
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x134]
push 0
push 0
push 0x1009
push eax
call esi
mov ecx, dword [ebx + 0x170]
push 0
push 0
push 0x147
push ecx
call esi
mov edx, eax
push 0x8002
shl edx, 6
add edx, eax
lea eax, [ebx + edx*4 + 0x240]
push eax
call fcn.00454d99
lea ecx, [ebx + 0x1a0]
push 0x94
push ecx
push eax
mov dword [ebx + 0x238], eax
call fcn.004510e4
add esp, 0x14
cmp eax, 0x94
je 0x437cae
mov edx, dword [ebx + 0x238]
push edx
call fcn.0044fac8
add esp, 4
mov ecx, ebx
call fcn.00437e80
pop esi
pop ebx
add esp, 0x204
ret
push ebp
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [ebx + 0x22c8]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x1f0]
test eax, eax
jle 0x437da3
mov al, byte [ebx + ebp + 0x1f4]
test al, al
je 0x437d94
mov ecx, dword [ebx + 0x190]
and eax, 0xff
mov edx, dword [ecx + 0xed4]
push edx
push eax
call fcn.00408a90
mov dword [esp + 0x18], eax
lea edi, [eax + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dl, byte [ebx + ebp + 0x1f4]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
push eax
mov cl, byte [ebx + ebp + 0x214]
mov dword [ebx + edx*4 + 0x22c8], ecx
xor ecx, ecx
mov cl, byte [ebx + ebp + 0x1f4]
lea edx, [esp + 0x120]
push ecx
push str.__02X___s
push edx
call fcn.00445f52
add esp, 0x18
lea eax, [esp + 0x114]
lea esi, [ebx + 0x118]
push 0
push 0
push 0
push 0
push eax
push ebp
push 3
mov ecx, esi
call fcn.0046c979
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ecx, esi
call fcn.0046c9fb
mov eax, dword [ebx + 0x1f0]
inc ebp
cmp ebp, eax
jl 0x437ccf
mov edx, dword [ebx + 0x238]
push edx
call fcn.0046b255
mov ecx, eax
mov eax, 0x51eb851f
sub ecx, 0x94
add esp, 4
mul ecx
shr edx, 7
pop edi
mov dword [ebx + 0x22c0], edx
lea eax, [edx + edx*4]
pop ebp
lea esi, [eax + eax*4]
mov eax, dword [ebx + 0x22c4]
shl esi, 4
test eax, eax
je 0x437de8
push eax
call fcn.0047292e
add esp, 4
mov eax, dword [ebx + 0x22c0]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 4
push edx
call fcn.00472905
add esp, 4
mov dword [ebx + 0x22c4], eax
test eax, eax
je 0x437e1b
push esi
push eax
mov eax, dword [ebx + 0x238]
push eax
call fcn.004510e4
add esp, 0xc
mov ecx, ebx
call fcn.00437e80
pop esi
pop ebx
add esp, 0x204
ret
Function at 0x43b990
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x1c]
push 0
push 0x476
push eax
call ebx
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43ba08
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x43ba08
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x14], 0xffffff37
mov dword [esp + 0xc], ecx
mov ecx, esi
call fcn.004721bf
lea edx, [esp + 0xc]
mov dword [esp + 0x10], eax
push edx
push eax
push 0x4e
push edi
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x43b9ff
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x450461
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c1608
cmp edx, dword [eax]
je 0x450483
add eax, 8
inc ecx
cmp eax, 0x4c1698
jl 0x450474
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c1608]
jne 0x4505b1
mov eax, dword [0x4c5b3c]
cmp eax, 1
je 0x45058b
test eax, eax
jne 0x4504b4
cmp dword [0x4c0d14], 1
je 0x45058b
cmp edx, 0xfc
je 0x4505b1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4504eb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0044f180
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0044ed40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x45052e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0044ed40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a8aa4
push edi
call fcn.00446d50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0044f180
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0044f190
lea eax, [ebp - 0xa0]
push 0x4bd438
push eax
call fcn.0044f190
push dword [esi + 0x4c160c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0044f190
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004550c1
add esp, 0x2c
pop edi
jmp 0x4505b1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c160c]
push 0
push eax
push dword [esi]
call fcn.0044ed40
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 0x45ea50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49cc71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esi + 8], edi
mov dword [esi + 4], vtable.CFont.0
mov dword [esp + 0x1c], edi
mov dword [esi + 0x5c], 0x4a9d10
mov dword [esi + 0x60], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
mov ebx, 1
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], bl
call fcn.0046dd2d
lea ebp, [esi + 0x14]
mov dword [esi + 0x84], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov ecx, 0xa
xor eax, eax
mov edi, ebp
mov dword [esi], 0x4a9d0c
mov dword [esi + 0x40], ebx
mov ebx, dword [esp + 0x24]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov byte [esp + 0x1c], 2
cmp ebx, ecx
jne 0x45eae8
mov dword [esi + 0x24], ecx
jmp 0x45eb0b
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
inc edi
push edi
call fcn.00472905
push ebx
push edi
push eax
mov dword [esi + 0x24], eax
call fcn.00461b50
add esp, 0x10
or ecx, 0xffffffff
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 8
mov dword [ebp], 0x11
mov dword [esi + 0x18], esi
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x3c], 0x8000
call edi
push 5
mov dword [esi + 0xc], eax
call edi
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x461120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49ce98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4bfcf8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
push ecx
lea ecx, [esi + 0x3c]
call fcn.0046ff4b
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push edx
call edi
push eax
call fcn.0046f555
mov eax, dword [eax + 0x1c]
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.004721bf
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
test eax, eax
mov dword [esp + 0x18], 0xffffff96
mov dword [esp + 0x1c], 1
je 0x4611a3
mov ecx, dword [esi + 0x250]
mov dword [esp + 0x20], ecx
jmp 0x4611ab
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [esi + 0x24c]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
mov eax, dword [eax - 8]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.0046f555
mov ecx, dword [esi + 0x1c]
mov ebx, eax
push ecx
call edi
push eax
call fcn.0046f555
mov edx, dword [eax + 0x1c]
push edx
call edi
push eax
call fcn.0046f555
mov ecx, ebx
mov edi, eax
call fcn.004721bf
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x4e
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004736e5
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 4

Function at 0x462040
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x49cf08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
push 0x100c
push 0x800
call esi
mov ecx, dword [0x4bfcf8]
mov dword [esp + 4], ecx
push eax
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00473b18
push eax
push 0x100c
push 0x800
call esi
mov edx, dword [esp + 4]
lea ecx, [esp + 4]
mov eax, dword [edx - 8]
push eax
call fcn.00473aa1
push eax
call fcn.0044634d
add esp, 4
lea ecx, [esp + 4]
mov esi, eax
push 0xffffffffffffffff
call fcn.00473af0
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004736e5
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4620f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49cf5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046f134
lea edi, [esi + 0x3c]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.0046f134
mov dword [edi], vtable.CEdit.0
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x78], vtable.CFont.0
push ebp
push ebp
push ebp
push 0x1f
push 0xc
mov dword [esi + 0x80], ebp
lea ecx, [esi + 0x8c]
push 0x270f
mov byte [esp + 0x30], 2
mov dword [esi + 0x84], ebp
mov dword [esi + 0x88], ebp
call fcn.00445837
push ebp
push ebp
push ebp
push 1
push 1
lea ecx, [esi + 0x98]
push 0x64
call fcn.00445837
lea ecx, [esi + 0xa8]
call fcn.00462bb0
push 0x4c2a80
lea ecx, [esi + 0x248]
mov byte [esp + 0x1c], 3
mov dword [esi + 0x240], ebp
call fcn.00473753
mov dword [esi], method.CWnd.virtual_0
mov byte [esp + 0x18], 4
mov dword [esi + 0x88], 2
call fcn.00462040
mov dword [esi + 0xa4], eax
mov eax, dword [0x4c6058]
cmp eax, ebp
je 0x4621cd
cmp dword [0x4c6040], ebp
jne 0x4621d2
call fcn.00461ee0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4697e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x154
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x168]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
push edi
and eax, 0x20
and ebx, 0x1f
mov ebp, dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x24], eax
call ebp
mov esi, dword [esp + 0x16c]
push 2
mov dword [esp + 0x20], eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [esp + 0x44]
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
push eax
push edi
call ebp
mov ebp, dword [esp + 0x48]
lea edx, [esp + 0x44]
lea ecx, [esp + 0x34]
mov eax, dword [edx]
push 0
push 0
push 0x31
mov dword [ecx], eax
mov eax, dword [edx + 8]
push edi
mov edx, dword [edx + 0xc]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x469871
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
push 0xf
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
call ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x12
call ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
push edi
push esi
push 0x135
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
push eax
mov ebp, dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push esi
call ebp
mov ebp, dword [esp + 0x170]
test ebp, 0x10
je 0x469906
cmp ebx, 7
je 0x469906
mov eax, dword [esp + 0x40]
push 0xf00021
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
push eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_PatBlt]
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov dword [esp + 0x28], eax
push 0
push 0
push 0xf2
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x18], 0
mov ecx, eax
and ecx, 3
mov dword [esp + 0x30], ecx
cmp ecx, 1
sbb ecx, ecx
and eax, 4
inc ecx
mov dword [esp + 0x54], eax
sar eax, 1
or eax, ecx
mov edx, eax
shl eax, 3
sub eax, edx
add eax, eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x14], eax
jne 0x46996d
add ecx, 2
mov eax, ecx
shl ecx, 3
sub ecx, eax
mov eax, dword [esp + 0x14]
lea edx, [eax + ecx*2]
mov dword [esp + 0x14], edx
test ebp, 0xa
jne 0x46997e
test ebx, ebx
je 0x46997e
cmp ebx, 1
jne 0x469993
lea eax, [esp + 0x64]
push 0x100
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [esp + 0x24], eax
cmp ebx, 9
ja 0x469cd9
jmp dword [ebx*4 + 0x479d04]
mov eax, dword [esp + 0x2c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x10], 0
je 0x469cf8
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x154
ret
Function at 0x46a780
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.00446420
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x46a84b
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 0x46a84b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x46a7fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x46a809
or bh, 8
and edi, 0x8000000
je 0x46a824
mov eax, dword [0x4c799c]
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 0x46a84b
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 0x46ac20
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 0x46ac4b
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 0x46ac6f
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 0x46ac8a
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 0x46ff4b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46ff83
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.00473b18
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00473af0
jmp 0x46ff8f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4