joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455290
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x20]
push edi
mov edi, ecx
mov ecx, dword [ebx]
push eax
push ecx
push esi
mov ebp, 0x6010
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x455371
mov edx, dword [ebx + 4]
mov eax, dword [esi + 4]
cmp edx, eax
jle 0x455371
push 0xf
mov dword [esp + 0x14], 1
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, eax
call fcn.00453190
mov eax, dword [eax + 4]
push ebx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
cmp dword [esp + 0x1c], 1
jne 0x455308
mov ecx, dword [edi + 0x3c]
mov dword [ecx + 0x1dc], 5
jmp 0x455315
mov edx, dword [edi + 0x3c]
mov dword [edx + 0x1dc], 4
mov eax, dword [esp + 0x28]
mov edx, esi
mov dword [edi + 0x354], eax
lea ecx, [edi + 0x358]
mov ebx, dword [edx]
mov dword [ecx], ebx
mov ebx, dword [edx + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [edx + 8]
mov dword [ecx + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, dword [edi + 0x34c]
cmp ecx, eax
jne 0x45535d
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x350]
cmp ecx, dword [eax + 0x1dc]
jne 0x45535d
mov ebp, 0x2210
mov edx, dword [esp + 0x18]
push ebp
push 4
push esi
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_DrawFrameControl]
jmp 0x45538b
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, eax
call fcn.00453190
mov ecx, dword [eax + 4]
push edi
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov ebx, dword [0x53e980]
sub eax, ecx
sub eax, ebx
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
cdq
sub eax, edx
push 0x11
mov edi, eax
mov eax, dword [esi + 0xc]
sar edi, 1
add edi, ecx
mov ecx, dword [esi + 4]
sub eax, ecx
sub eax, ebx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
add ebx, ecx
call ebp
mov si, ax
push 0x10
and esi, 0x8000
call ebp
and eax, 0x8000
test esi, esi
je 0x4553ef
test eax, eax
je 0x455408
mov edx, dword [esp + 0x1c]
dec edx
neg edx
sbb edx, edx
and edx, 2
add edx, 5
mov dword [esp + 0x1c], edx
jmp 0x45541b
test eax, eax
je 0x45541b
mov eax, dword [esp + 0x1c]
dec eax
neg eax
sbb eax, eax
and eax, 2
add eax, 9
mov dword [esp + 0x1c], eax
jmp 0x45541b
mov ecx, dword [esp + 0x1c]
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 0xd
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x455427
dec dword [esp + 0x1c]
call fcn.00453190
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x455437
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 4]
push 0
push ebx
push edi
push ecx
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
Function at 0x45b930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x500ec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x574900]
push esi
mov dword [esp + 0xc], eax
push 0x8010
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.004dc5aa
lea ecx, [esp + 0xc]
push ecx
call fcn.00486120
mov ecx, eax
call fcn.004868b0
mov edx, dword [0x574900]
mov dword [esp + 4], edx
mov esi, dword [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.0040b6b0
mov eax, dword [eax + 0x36c]
lea ecx, [esp + 4]
push eax
push esi
push ecx
call fcn.004d3af7
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004d5ee2
mov byte [esp + 0x2c], 2
call fcn.0040b6b0
test byte [eax + 0x1a4], 1
je 0x45b9d5
mov edx, dword [esp + 0x18]
push 0xef4e
push edx
lea ecx, [esp + 0x18]
call fcn.004d5f6e
call fcn.0040b6b0
test byte [eax + 0x1a4], 2
je 0x45b9f6
mov eax, dword [esp + 0x18]
push 0x8021
push eax
lea ecx, [esp + 0x18]
call fcn.004d5f6e
call fcn.0040b6b0
cmp dword [eax + 0x374], 1
jne 0x45ba10
mov ecx, dword [esp + 0x18]
push 0xef4b
push ecx
jmp 0x45ba42
call fcn.0040b6b0
cmp dword [eax + 0x374], 2
jne 0x45ba2a
mov edx, dword [esp + 0x18]
push 0xef4c
push edx
jmp 0x45ba42
call fcn.0040b6b0
cmp dword [eax + 0x374], 3
jne 0x45ba4b
mov eax, dword [esp + 0x18]
push 0xef4d
push eax
lea ecx, [esp + 0x18]
call fcn.004d5f6e
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x45bae5
push 0x53eaf4
lea ecx, [esp + 8]
call fcn.004dc2b2
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x45bad7
mov ecx, dword [0x574900]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 3
mov eax, dword [edx + esi*4]
push eax
call fcn.004dc5aa
lea ecx, [esp + 8]
push ecx
call fcn.00486120
mov ecx, eax
call fcn.004868b0
test esi, esi
jle 0x45bab2
push 0x53eaec
lea ecx, [esp + 8]
call fcn.004dc2b2
lea edx, [esp + 8]
lea ecx, [esp + 4]
push edx
call fcn.004dc2ee
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.004dbec1
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x45ba6f
push 0x53eae8
lea ecx, [esp + 8]
call fcn.004dc2b2
mov eax, dword [esp + 4]
push 0
push 0x30
push eax
call fcn.004e36e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.004d5f15
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 0
call fcn.004dbec1
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dbec1
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x46bad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5017e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004db6cc
xor edi, edi
mov dword [esi + 0x5c], 0x5162a4
mov dword [esp + 0x1c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], 0xa
mov dword [esi + 0x78], 0x516298
mov dword [esi + 0x7c], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x80], edi
lea ecx, [esi + 0x90]
mov byte [esp + 0x1c], 2
call fcn.004709a0
lea ebx, [esi + 0xc4]
mov dword [esp + 0x10], ebx
lea ecx, [ebx + 0x10]
mov dword [ecx], 0x51025c
mov dword [ecx + 4], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], edi
push 0xa
push edi
mov byte [esp + 0x24], 5
mov dword [ebx], method.CCommandLineInfo.virtual_0
call fcn.00490de0
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x24], edi
lea ecx, [esi + 0xec]
mov byte [esp + 0x1c], 6
call fcn.004d5ee2
lea ecx, [esi + 0x100]
mov byte [esp + 0x1c], 7
call fcn.004d5ee2
lea ecx, [esi + 0x114]
mov byte [esp + 0x1c], 8
call fcn.004d5ee2
mov dword [esi], 0x516200
mov dword [esi + 0x28], 0xfffffffb
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], 4
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], 0x10
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov eax, dword [ebx + 0xc]
cmp eax, edi
mov byte [esp + 0x1c], 9
jg 0x46bc05
mov dword [ebx + 0xc], 0x1000
cmp dword [ebx + 0x24], edi
jle 0x46bc11
mov ecx, ebx
call fcn.00429b80
mov ecx, dword [esp + 0x14]
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x12c], edi
mov dword [esi + 0x1c], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46c6c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5018b0
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov edi, ecx
mov eax, ebx
cdq
mov ecx, dword [edi + 0xd0]
mov ebp, dword [edi + 0xd8]
idiv ecx
mov esi, eax
mov eax, ebx
cdq
idiv ecx
mov ecx, dword [ebp + esi*4]
mov esi, dword [esp + 0x28]
lea eax, [edx + edx*4]
lea ebp, [ecx + eax*8]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46c720
test esi, esi
jge 0x46c720
push eax
call fcn.004bf93a
mov esi, eax
mov eax, dword [esp + 0x28]
add esp, 4
mov edx, dword [0x574900]
mov dword [esp + 0x28], edx
push esi
push eax
lea eax, [esi + 2]
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x24], 0
call fcn.004dc306
push eax
call fcn.004bf864
add esp, 0xc
lea ecx, [esp + 0x28]
push esi
call fcn.004dc356
mov ecx, dword [0x574900]
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
push eax
add eax, 2
push edx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call fcn.004dc306
push eax
call fcn.004bf864
mov eax, dword [ebp + 4]
add esp, 0xc
lea ecx, [esp + 0x20]
push eax
call fcn.004dc356
push 0x20
lea ecx, [esp + 0x24]
call fcn.004dc2d9
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.004dc2ee
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
push ebx
mov ecx, edi
call fcn.0046c0e0
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.004dbec1
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.004dbec1
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x10
Function at 0x4709a0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x501a03
push eax
mov dword fs:[0], esp
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esi], method.CCommandLineInfo.virtual_0
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x14], 0x5162bc
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 4]
mov dword [esi + 0x2c], edi
cmp eax, edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x10], 0x64
je 0x470a00
push eax
call fcn.004dbc23
add esp, 4
mov dword [esi + 4], edi
mov ecx, dword [esp + 8]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x474c50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x501b08
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, ecx
push edi
push ebx
mov eax, dword [esi]
call dword [eax + 0x150]
mov edi, eax
test edi, edi
jne 0x474c9a
mov eax, dword [esi + 0x1fc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov ecx, dword [0x574900]
mov dword [esp + 0x30], ecx
mov edx, dword [esi]
push ebx
mov ecx, esi
mov dword [esp + 0x28], 0
call dword [edx + 0x158]
lea ecx, [esp + 0x30]
push ecx
push edi
push 0
push eax
mov ecx, esi
call fcn.00471d80
add esi, 0x218
lea edi, [esp + 0xc]
push 0xc10
push edi
mov edx, dword [esi]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0xc]
mov esi, dword [ecx]
mov dword [esp + 0x20], edx
mov edx, dword [eax - 8]
push edx
push eax
call dword [esi + 0x68]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
sub esi, eax
mov dword [esp + 0x24], 0xffffffff
call fcn.004dbec1
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x47ba90
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0xffffffffffffffff
push 0x501e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
push 1
lea ecx, [esp + 0x10]
lea eax, [esi + 0x14]
push eax
call fcn.004becab
mov edi, dword [esi + 8]
mov ebx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x20], 0
test edi, edi
jle 0x47bae4
mov ecx, dword [esi + 4]
cmp dword [ecx], ebx
je 0x47bb85
inc eax
add ecx, 4
cmp eax, edi
jl 0x47bad4
push ebp
lea ecx, [edi + 1]
push 0xffffffffffffffff
push ecx
mov ecx, esi
call fcn.00490de0
mov edx, dword [esi + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edx + edi*4], ebx
mov eax, dword [esi + 0x34]
mov bl, byte [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
test eax, eax
jne 0x47bb25
test bl, 2
je 0x47bb25
call ebp
push eax
push 0
push 0x47ba10
push 2
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x47bb42
test bl, 1
je 0x47bb42
call ebp
push eax
push 0
push 0x47ba50
push 7
call edi
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x47bb5f
test bl, 4
je 0x47bb5f
call ebp
push eax
push 0
push 0x47b9d0
push 0xc
call edi
mov dword [esi + 0x3c], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.004bece7
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004bece7
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x47e1e0
Capabilities:
Encrypt data using blowfish

Disassembly:
sub esp, 0xc
mov ecx, 0x53f610
xor eax, eax
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, ebx
push edi
lea edx, [ebx + 0x8c]
sub esi, ecx
mov edi, dword [ecx]
sub edx, 4
mov dword [esi + ecx], edi
mov edi, dword [ecx]
mov dword [edx + 4], edi
mov ebp, dword [ecx]
mov edi, eax
add eax, eax
shr edi, 0x1f
or edi, eax
add ecx, 4
add edi, ebp
cmp ecx, 0x53f658
mov eax, edi
jl 0x47e1fc
mov ecx, 0x53f658
lea edx, [ebx + 0x90]
mov esi, 0x100
mov edi, dword [ecx]
lea ebp, [eax + eax*2]
mov dword [edx], edi
lea edi, [eax + eax*2]
add edx, 4
add ecx, 4
lea edi, [eax + edi*4]
lea eax, [eax + ebp*4]
mov ebp, dword [ecx - 4]
shr edi, 0x15
shl eax, 0xb
or edi, eax
add edi, ebp
dec esi
mov eax, edi
jne 0x47e233
cmp ecx, str.Error_in_crypt_block_routine
jl 0x47e22e
cmp eax, 0x55861a61
je 0x47e283
push str.Bad_initialization_data
push ebx
call fcn.004bf83f
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
mov esi, 0xa
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
push ebp
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.0047dce0
add esp, 0xc
dec esi
jne 0x47e292
mov edi, dword [esp + 0x14]
mov esi, 0xa
push 1
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.0047dce0
add esp, 0xc
dec esi
jne 0x47e2ad
cmp edi, 0xaafe4ebd
jne 0x47e3a6
cmp dword [esp + 0x14], ebp
jne 0x47e3a6
cmp dword [esp + 0x18], ebp
jne 0x47e3a6
xor esi, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], 0x12
xor ecx, ecx
mov edi, 4
mov eax, esi
mov ebp, dword [esp + 0x20]
cdq
idiv dword [esp + 0x24]
xor eax, eax
shl ecx, 8
mov al, byte [edx + ebp]
mov edx, eax
or ecx, edx
inc esi
dec edi
jne 0x47e2f5
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
add eax, 4
xor edx, ecx
mov dword [esp + 0x28], eax
mov dword [eax - 4], edx
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x47e2ee
mov esi, ebx
lea edi, [ebx + 0x88]
mov ebp, 9
push 0
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0047dce0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esi], eax
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
sub edi, 8
mov dword [esi + 4], eax
mov dword [edi + 8], eax
add esi, 8
dec ebp
jne 0x47e33a
lea esi, [ebx + 0x94]
mov ebp, 4
mov edi, 0x80
push 0
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.0047dce0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esi - 4], edx
mov dword [esi], eax
add esp, 0xc
add esi, 8
dec edi
jne 0x47e376
dec ebp
jne 0x47e371
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push str.Error_in_crypt_block_routine
push ebx
call fcn.004bf83f
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x47f670
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x502138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [ecx + 0x1c]
push 3
push eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.004d849b
mov ecx, dword [0x574900]
mov dword [esp], ecx
test eax, eax
mov dword [esp + 0x3c], 0
je 0x47f6c0
lea edx, [esp]
mov ecx, eax
push edx
call fcn.004d8e5b
push 0x26
lea ecx, [esp + 4]
call fcn.004dc3d6
test eax, eax
mov dword [esp + 8], eax
jl 0x47f83b
mov ecx, dword [esp]
mov ecx, dword [ecx - 8]
dec ecx
cmp eax, ecx
jge 0x47f83b
push ebx
push ebp
push esi
push edi
push 0xff0000
lea ecx, [esp + 0x30]
call fcn.004dfaba
push 0xffffff
push 0
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 1
call fcn.004dfa6a
mov esi, dword [esp + 0x54]
lea edx, [esp + 0x24]
push edx
mov ecx, esi
mov byte [esp + 0x50], 2
call fcn.004df02d
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.004df02d
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x54], eax
mov ebx, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov dword [esp + 0x3c], eax
mov ecx, dword [ecx + 0xc]
mov eax, ecx
mov ebp, ecx
sub eax, edx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
sub ebp, edi
add ecx, edi
lea eax, [edi + ebx]
sub ebx, edi
push ebp
push ebx
push ecx
push eax
push ecx
mov ecx, dword [esi + 4]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.GDI32.dll_Pie]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov ecx, dword [eax + 0x90]
push ecx
mov ecx, esi
call dword [edx + 0x28]
mov edx, dword [esi]
push 0xffffff
mov ecx, esi
mov dword [esp + 0x5c], eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov ax, word [eax + ecx*2 + 2]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov edx, dword [esi]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 1
add ebp, 2
push eax
add edi, ebx
push ebp
push edi
mov ecx, esi
call dword [edx + 0x5c]
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, esi
call fcn.004df02d
mov edx, dword [esp + 0x20]
mov ecx, esi
push edx
call fcn.004df02d
mov ecx, dword [esp + 0x58]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 3
call fcn.004dfa54
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 4
call fcn.004dfa54
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004dbec1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004dbec1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
Function at 0x47f860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x502158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.004d849b
push eax
lea ecx, [esp + 0x30]
call fcn.004df755
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x1c]
push edx
call edi
push eax
call fcn.004d849b
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.004df60b
mov eax, dword [esi + 0xf4]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x47f996
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xf0]
call fcn.004dee99
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x100]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.004df9fd
test edi, edi
je 0x47f942
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf4]
push edi
push eax
call fcn.004defda
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xf4]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xf0]
sub ecx, edi
test edx, edx
je 0x47f9b7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.004df7c7
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x47ffc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5021b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [eax]
mov esi, dword [esp + 0x50]
mov ebp, dword [edi + 0x74]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 8]
test ebp, ebp
mov edx, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jne 0x4800e3
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0x10
call ebx
push eax
push 1
push 0
lea ecx, [esp + 0x24]
call fcn.004dfa6a
lea eax, [esp + 0x18]
mov ecx, esi
push eax
mov dword [esp + 0x4c], 0
call fcn.004df02d
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add ecx, 3
lea eax, [esp + 0x20]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004df4d9
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
add ecx, 0xfffffffd
push ecx
push edx
mov ecx, esi
call fcn.004df525
push 0x14
call ebx
push eax
push 1
push 0
lea ecx, [esp + 0x1c]
call fcn.004dfa6a
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x4c], 1
call fcn.004df02d
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add ecx, 3
inc edx
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call fcn.004df4d9
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
add ecx, 0xfffffffd
inc edx
push ecx
push edx
mov ecx, esi
call fcn.004df525
mov ebx, vtable.CGdiObject.0
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
call fcn.004dfa54
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 3
call fcn.004dfa54
push 0xfffffffffffffffe
lea eax, [esp + 0x34]
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi + 0x124]
test eax, eax
je 0x480103
mov eax, 1
jmp 0x48010f
mov eax, dword [edi + 0x118]
test eax, eax
je 0x480186
xor eax, eax
mov edx, dword [esp + 0x30]
mov ebx, 2
sub edx, ebx
test ebp, ebp
mov dword [esp + 0x30], edx
je 0x48012a
mov ecx, edx
sub ecx, ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
push eax
lea ecx, [esp + 0x28]
push ebp
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push esi
mov ecx, edi
call fcn.0047fb40
mov ecx, dword [esp + 0x30]
add ecx, ebx
test ebp, ebp
mov dword [esp + 0x30], ecx
je 0x4801b5
mov ecx, dword [esi + 4]
push 0xf
lea eax, [esp + 0x34]
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
jmp 0x4801b5
mov ecx, dword [edi + 0x54]
mov eax, 1
test ecx, ecx
je 0x480197
mov eax, 0x101
test ebp, ebp
je 0x4801a0
or ah, 2
jmp 0x4801a3
or ah, 0x40
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x34]
push 3
push edx
push eax
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 8