joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4077fd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x40782a
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x407806
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407859
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
call fcn.0040608b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x407880
test al, 1
je 0x407880
test byte [esp + 0xc], 2
je 0x407880
call fcn.0040609e
mov dword [eax], 5
call fcn.0040608b
mov dword [eax], 0xd
jmp 0x407850
xor eax, eax
pop esi
ret

Function at 0x4094c1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4094ee
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4094ca
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40951d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
call fcn.0040608b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x409544
test al, 1
je 0x409544
test byte [esp + 0xc], 2
je 0x409544
call fcn.0040609e
mov dword [eax], 5
call fcn.0040608b
mov dword [eax], 0xd
jmp 0x409514
xor eax, eax
pop esi
ret
Function at 0x4098c5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x409902
cmp dword [ebp + 0x14], edi
je 0x409902
cmp ecx, edi
jne 0x409909
call fcn.0040608b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040b9a4
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40991d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40993e
cmp ebx, 0xffffffff
je 0x40992d
push ebx
push edi
push ecx
call fcn.00409210
add esp, 0xc
cmp esi, edi
je 0x4098ea
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4098ea
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40995a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x409961
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x409a52
test word [esi + 0xc], 0x10c
je 0x4099b5
mov eax, dword [esi + 4]
test eax, eax
je 0x4099b5
jl 0x409ab3
cmp ebx, eax
mov edi, ebx
jb 0x409986
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x409a5a
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004121ae
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x409a4a
cmp ebx, dword [ebp - 0xc]
jb 0x409a22
cmp dword [ebp - 0xc], 0
je 0x4099df
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4099d4
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4099db
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4099ea
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4099ea
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x409a86
push eax
push dword [ebp - 8]
push esi
call fcn.0040bb29
pop ecx
push eax
call fcn.004120b1
add esp, 0xc
test eax, eax
je 0x409ac5
cmp eax, 0xffffffff
je 0x409ab3
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x409a4a
push esi
call fcn.004119d0
cmp eax, 0xffffffff
pop ecx
je 0x409ab7
cmp dword [ebp - 4], 0
je 0x409a86
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x409969
mov eax, dword [ebp + 0x14]
jmp 0x409904
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x409a71
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00409210
add esp, 0xc
call fcn.0040608b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4098fa
cmp dword [ebp + 0xc], 0xffffffff
je 0x409a9c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00409210
add esp, 0xc
call fcn.0040608b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4098fa
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x409904
or dword [esi + 0xc], 0x10
jmp 0x409ab7
Function at 0x40a36f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x420448]
je 0x40a38a
inc edi
cmp edi, 0x17
jb 0x40a37b
cmp edi, 0x17
jae 0x40a50a
push ebp
push 3
call fcn.004136ea
cmp eax, 1
pop ecx
je 0x40a4d6
push 3
call fcn.004136ea
test eax, eax
pop ecx
jne 0x40a3be
cmp dword [section..data], 1
je 0x40a4d6
cmp ebx, 0xfc
je 0x40a509
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4220e8
push ebp
call fcn.0040c2a2
add esp, 0xc
test eax, eax
je 0x40a3f4
push esi
push esi
push esi
push esi
push esi
call fcn.0040b8a8
add esp, 0x14
push 0x104
mov esi, 0x422101
push esi
push 0
mov byte [0x422205], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a438
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c2a2
add esp, 0xc
test eax, eax
je 0x40a438
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040b8a8
add esp, 0x14
push esi
call fcn.004075a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40a47d
push esi
call fcn.004075a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4223fc
push 0x41c864
sub ecx, eax
push ecx
push eax
call fcn.00413637
add esp, 0x14
test eax, eax
je 0x40a47d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040b8a8
add esp, 0x14
jmp 0x40a47f
xor esi, esi
push 0x41c860
push ebx
push ebp
call fcn.004135c6
add esp, 0xc
test eax, eax
je 0x40a49f
push esi
push esi
push esi
push esi
push esi
call fcn.0040b8a8
add esp, 0x14
push dword [edi*8 + 0x42044c]
push ebx
push ebp
call fcn.004135c6
add esp, 0xc
test eax, eax
je 0x40a4c1
push esi
push esi
push esi
push esi
push esi
call fcn.0040b8a8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00413409
add esp, 0xc
jmp 0x40a509
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40a509
cmp ebp, 0xffffffff
je 0x40a509
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42044c]
push dword [esi]
call fcn.004075a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x413409
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040aeda
xor ebx, ebx
cmp dword [0x422b28], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4134df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4135bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4135bf
push eax
call fcn.0040ae6c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x422b28], eax
call esi
push eax
call fcn.0040ae6c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x422b2c], eax
call esi
push eax
call fcn.0040ae6c
mov dword [0x422b30], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040a0b1
test eax, eax
pop ecx
pop ecx
je 0x4134ad
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b8a8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4134df
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040ae6c
cmp eax, ebx
pop ecx
mov dword [0x422b38], eax
je 0x4134df
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ae6c
pop ecx
mov dword [0x422b34], eax
mov eax, dword [0x422b34]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x413564
cmp dword [0x422b38], ecx
je 0x413564
push eax
call fcn.0040aee3
push dword [0x422b38]
mov esi, eax
call fcn.0040aee3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x413564
cmp edi, ebx
je 0x413564
call esi
cmp eax, ebx
je 0x413531
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413531
test byte [ebp - 0x18], 1
jne 0x413564
lea eax, [ebp - 0x10]
push eax
call fcn.0040a0e8
test eax, eax
pop ecx
je 0x41354c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b8a8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41355b
or dword [ebp + 0x10], 0x200000
jmp 0x41359f
or dword [ebp + 0x10], 0x40000
jmp 0x41359f
mov eax, dword [0x422b2c]
cmp eax, dword [ebp - 8]
je 0x41359f
push eax
call fcn.0040aee3
cmp eax, ebx
pop ecx
je 0x41359f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41359f
mov eax, dword [0x422b30]
cmp eax, dword [ebp - 8]
je 0x41359f
push eax
call fcn.0040aee3
cmp eax, ebx
pop ecx
je 0x41359f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x422b28]
call fcn.0040aee3
cmp eax, ebx
pop ecx
je 0x4135bf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4135c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x4aa780
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00470e77
leave
ret 4

Function at 0x403b50
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x4908f8
mov dword [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
mov edi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x4aa83c
push 1
push 0
push 0x4aa90c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jne 0x403bc0
mov eax, dword [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x403bbf
push eax
push eax
push 3
push 4
push eax
push eax
push 0xa
push dword [ebx]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
pop ebx
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x403bd4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, ecx
push edi
push 0
push 0
push 0x1200
push dword [ebx + 0x14]
call esi
inc eax
xor ecx, ecx
mov dword [ebp - 8], eax
mov edx, 4
add eax, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004704a9
mov edi, eax
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
add esp, 4
shl eax, 3
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40904b
cmp dword [ebp - 0x10], 3
jne 0x40904b
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
jne 0x40904b
mov ecx, dword [ebp - 8]
lea eax, [ecx + 1]
lea eax, [edi + eax*4]
push eax
lea eax, [ecx - 1]
push eax
push 0x1212
push dword [ebx + 0x14]
call esi
mov eax, dword [ebp - 8]
xor esi, esi
test eax, eax
jle 0x409047
cmp dword [edi + esi*4], 0
jle 0x409042
mov edi, dword [edi + esi*4]
push 0x4e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp edi, eax
jge 0x40903c
mov dword [ebp - 0x44], 1
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], edi
push eax
test esi, esi
jne 0x40902a
push esi
push 0x120c
push dword [ebx + 0xc]
jmp 0x409036
lea eax, [esi - 1]
push eax
push 0x120c
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
inc esi
cmp esi, eax
jl 0x408ff8
mov byte [ebp - 1], 1
push edi
call fcn.00471723
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
mov edi, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push 0
push 0x1200
push dword [edi + 0x14]
mov dword [ebp - 0x20], eax
call esi
inc eax
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov edx, 4
add eax, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004704a9
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
lea ecx, [eax + 1]
mov dword [ebx + eax*4], 0
lea ecx, [ebx + ecx*4]
push ecx
lea ecx, [eax - 1]
push ecx
push 0x1211
push dword [edi + 0x14]
call esi
mov eax, dword [ebp - 0x18]
xor esi, esi
test eax, eax
jle 0x409142
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x14]
push eax
test esi, esi
jne 0x40910c
push esi
push 0x1207
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
push dword [edi + 0xc]
jmp 0x40912a
lea eax, [esi - 1]
push eax
push 0x1207
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
push dword [edi + 0x14]
call ebx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebp - 0x18]
cmp esi, eax
jl 0x4090e7
mov ebx, ecx
shl eax, 3
push eax
push ebx
push 3
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
call fcn.00471723
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00470e77
mov esp, ebp
pop ebp
ret 8

Function at 0x409300
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push edi
mov edi, ecx
je 0x409374
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
push 3
mov dword [ebp - 0x14], ecx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 8]
mov edx, ecx
sub edx, eax
mov eax, dword [ebp - 0xc]
push 0x44
sub ecx, edx
mov dword [ebp - 0x10], edx
push ecx
mov ecx, dword [ebp - 0x14]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret 4
push 0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00470e77
mov esp, ebp
pop ebp
ret 4
Function at 0x409390
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov esi, ecx
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [ebp + 0xc]
shr eax, 0x1c
and al, 1
cmp al, cl
setne bl
mov byte [ebp - 0x31], bl
test cl, cl
je 0x40945d
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 3
call ebx
push 2
mov dword [ebp - 0x3c], eax
call ebx
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x40], eax
cmp edi, ecx
jne 0x4093fa
mov dword [ebp - 0x38], 0
jmp 0x409403
mov eax, dword [esi + 0x90]
mov dword [ebp - 0x38], eax
cmp edi, ecx
jne 0x40940f
mov esi, dword [esi + 0x90]
jmp 0x409415
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
sub ebx, dword [ebp - 0x10]
sub ebx, dword [ebp - 0x3c]
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, ebx
cmp byte [ebp + 0x10], 0
je 0x409431
sub esi, dword [ebp - 0x40]
push 0x44
sub eax, ebx
push eax
mov eax, dword [ebp - 0x38]
sub esi, eax
push esi
push ebx
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov al, byte [ebp - 0x31]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret 0xc
test al, al
je 0x4094a7
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x1c
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 2
movdqu xmmword [ebp - 0x28], xmm0
push edi
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_SetScrollInfo]
push 0
push edi
mov ecx, esi
call fcn.00406f40
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470e77
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4094c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xfffffffffffffff0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [ebp + 8]
shr eax, 0x1c
and al, 1
cmp al, cl
setne bl
test cl, cl
je 0x409551
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 2
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov edx, ecx
sub edx, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cmp byte [ebp + 0xc], 0
je 0x409529
sub eax, dword [ebp - 0x34]
push 0x44
push eax
sub ecx, edx
push ecx
push 0
push edx
push 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret 8
test al, al
je 0x40959e
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x1c
push eax
push 2
push dword [edi + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_SetScrollInfo]
push 0
mov ecx, edi
call fcn.00409b00
push 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.00470e77
mov esp, ebp
pop ebp
ret 8