joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc6ba
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x528860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.00505a96
xor edi, edi
mov ecx, esi
mov dword [esp + 0x44], edi
call fcn.0044ea00
mov edx, dword [eax]
push edi
push esi
mov ecx, eax
call dword [edx + 0xd0]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call fcn.00467540
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov byte [esp + 0x48], 1
call dword [edx + 0x148]
mov ebx, dword [eax + 4]
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x28]
add ebx, 4
cmp ecx, edi
jle 0x4bc770
test edi, edi
jl 0x4bc731
mov ecx, dword [eax + 0x28]
cmp edi, ecx
jge 0x4bc731
cmp edi, ecx
jge 0x4bc7a4
mov ecx, dword [eax + 0x24]
mov ebp, dword [ecx + edi*4]
lea eax, [ecx + edi*4]
jmp 0x4bc733
xor ebp, ebp
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 0x78]
test eax, eax
je 0x4bc762
mov eax, dword [ebp]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call dword [eax + 0x94]
mov eax, dword [eax + 4]
add eax, 4
cmp eax, ebx
jle 0x4bc762
mov ebx, eax
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x28]
inc edi
cmp edi, ecx
jl 0x4bc717
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 0
call fcn.00467590
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], 0xffffffff
call fcn.00505af1
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
jmp fcn.004f96a8
Function at 0x4c0250
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov eax, dword [0x582ddc]
push esi
mov esi, ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x4c0331
mov eax, dword [esi + 8]
test eax, eax
je 0x4c0271
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4c029d
call fcn.00517ba7
mov eax, dword [eax + 4]
test eax, eax
je 0x4c0289
mov ecx, dword [eax + 0x50]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0x64]
mov dword [esi + 0xc], edx
mov eax, dword [esi + 8]
test eax, eax
je 0x4c0297
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4c029d
xor eax, eax
pop esi
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
push edi
mov ecx, esi
jne 0x4c02d9
mov eax, dword [esi]
push ebp
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x4c02d0
mov ecx, dword [esp + 0x14]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov dword [esi + 0x10], eax
push edi
je 0x4c031f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov ebx, dword [esp + 0x1c]
push 0x2001f
push eax
call dword [edx + 8]
test ebx, ebx
mov edi, eax
jne 0x4c0300
test edi, edi
je 0x4c02d0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4c02c2
test edi, edi
je 0x4c02d0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4c02c2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop esi
ret 0xc
Function at 0x4c6b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x528f28
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov al, byte [esi + 0x1bc]
cmp al, 0xff
jne 0x4c6ba0
mov ecx, esi
call fcn.00500149
and al, 0xf
cmp al, 7
jne 0x4c6c37
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x4c6c37
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x4c6c37
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x31
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x60]
mov ebx, dword [edi]
push eax
call fcn.00505cee
push eax
mov ecx, edi
call dword [ebx + 0x28]
mov ebp, dword [edi]
push 0xf
mov ecx, esi
mov ebx, eax
call fcn.00469e60
push eax
mov ecx, edi
call dword [ebp + 0x2c]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0xc], edx
push edi
mov ecx, esi
call dword [eax + 0x15c]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4c6c42
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00467200
push 0x135
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
mov dword [esp + 0x64], 0
call fcn.004c5080
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.00505cee
push eax
lea ecx, [esp + 0x24]
call fcn.00505dd8
push 1
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.00505212
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call dword [edx + 0x15c]
push edi
lea ecx, [esp + 0x24]
call fcn.00505dd8
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
call fcn.00467400
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret 4
Function at 0x4cad70
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [ebp + 0x1dc]
test bl, bl
js 0x4cae4a
push esi
push edi
mov edi, ebx
and edi, 2
call fcn.0046acd0
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, edi
neg esi
sbb esi, esi
and esi, 3
add esi, 3
test bl, 8
jne 0x4cadd7
test edi, edi
jne 0x4cadcb
and ebx, 4
or ebx, 0x10
shr ebx, 2
jmp 0x4cadd5
and bl, 4
neg bl
sbb ebx, ebx
add ebx, 8
mov esi, ebx
mov eax, dword [ebp + 0x1e0]
test eax, eax
mov edi, 1
je 0x4cadeb
mov edi, 2
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 0x1c]
jne 0x4cadfd
mov edi, 3
jmp 0x4cae23
mov ebx, dword [ebp + 0x1c]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
jne 0x4cae23
push 0
push 0
push 0x129
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 1
jne 0x4cae23
mov edi, 4
mov ecx, ebp
call fcn.0050028f
test eax, eax
jne 0x4cae33
mov edi, 5
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push edi
push esi
push eax
call fcn.004459f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4cd1b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0xc8]
test esi, esi
mov dword [esp + 4], ecx
je 0x4cd24d
mov eax, dword [esp + 0xc]
shr eax, 8
cmp al, 2
push edi
mov edi, dword [esi + 0x44]
jne 0x4cd24c
test edi, edi
je 0x4cd24c
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push ebx
push ebp
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4cd1f6
mov eax, dword [edi + 0x2c]
jmp 0x4cd218
mov eax, dword [esi + 4]
test eax, eax
mov ecx, ebx
jne 0x4cd201
mov ecx, ebp
mov eax, dword [esi + 0x20]
add eax, ecx
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jl 0x4cd216
mov edx, dword [edi + 0x38]
add ecx, edx
cmp eax, ecx
jl 0x4cd218
mov eax, ecx
mov edi, dword [esp + 0x10]
push eax
mov ecx, edi
call fcn.004cd0f0
cmp dword [esp + 0x18], 0x202
pop ebp
mov dword [esi], 1
pop ebx
je 0x4cd243
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4cd24c
push 0
mov ecx, edi
call fcn.004cd030
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x4d5120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x529828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
je 0x4d5150
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4d5150
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00402aa0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
test eax, eax
mov dword [esp + 0x18], 0
jne 0x4d518d
push 0x55de50
call fcn.0042c3dd
add esp, 4
push eax
push 0x55de50
lea ecx, [esp + 0x14]
call fcn.00403390
push 0x5f
push 0x2e
lea ecx, [esp + 0x14]
call fcn.0047b050
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov ecx, esi
mov dword [esi + 4], ebx
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call fcn.004d4e20
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
push str.TEXTFILE
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d520b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4d51ed
push ebx
mov ecx, esi
call fcn.004d5080
mov edi, eax
test edi, edi
jne 0x4d520b
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4d5236
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4d5256
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d5240
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esi + 8]
shr eax, 1
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esi + 0xc], edx
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d529c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x4d5980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x529938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x30]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
push edi
mov dword [esp + 0x28], 1
call fcn.00403640
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebx, esp
push esi
mov byte [esp + 0x2c], 2
call fcn.00403640
add eax, 0x10
mov dword [ebx], eax
mov ebx, dword [esp + 0x34]
add esp, 4
push ebx
mov ecx, ebp
mov byte [esp + 0x2c], 1
call fcn.004d52c0
mov byte [esp + 0x20], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4d5a14
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov dword [esp + 0x20], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4d5a33
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0xc

Function at 0x4da8f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0x60]
test esi, esi
mov dword [esp + 4], ecx
je 0x4da987
mov eax, dword [esp + 0xc]
shr eax, 8
cmp al, 2
push edi
mov edi, dword [esi + 0x34]
jne 0x4da986
test edi, edi
je 0x4da986
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push ebx
push ebp
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4da933
mov eax, dword [edi + 0x2c]
jmp 0x4da958
mov edx, dword [esi + 0x34]
mov eax, dword [edx + 0x58]
test eax, eax
mov ecx, ebx
jne 0x4da941
mov ecx, ebp
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [edi + 0x40]
cmp eax, ecx
jl 0x4da956
mov edx, dword [edi + 0x3c]
add ecx, edx
cmp eax, ecx
jl 0x4da958
mov eax, ecx
mov esi, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.004da860
cmp dword [esp + 0x18], 0x202
pop ebp
pop ebx
je 0x4da97d
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4da986
push 0
mov ecx, esi
call fcn.004da770
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x4dbae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x529da8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
mov ebp, ecx
push esi
mov dword [ebp + 8], 0
call fcn.00505d53
mov esi, dword [esp + 0x44]
test esi, esi
jne 0x4dbb25
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
push ebx
push edi
mov edi, dword [esp + 0x48]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4dbb9c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4dbb9c
cmp ebx, 0xa
jb 0x4dbb9c
push 0
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.0051106c
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
mov dword [esp + 0x44], 0
call fcn.004db940
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x40], 0xffffffff
call fcn.005113e9
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov ecx, dword [esp + 0x38]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x4ddcd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x529f70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x1a4]
mov ebp, dword [eax]
push edi
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
push esi
lea ecx, [esp + 0x3c]
call fcn.00505a96
mov ecx, esi
mov dword [esp + 0x54], 0
call fcn.0044ea00
mov edx, dword [eax]
push 0
push esi
mov ecx, eax
call dword [edx + 0xd0]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
call fcn.00467540
mov ecx, esi
mov byte [esp + 0x54], 1
call fcn.0044ea00
mov edx, dword [eax]
push 0
push esi
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call dword [edx + 0x80]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
add edi, eax
mov eax, dword [esp + 0x24]
mov edx, esi
mov dword [edx], ebp
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
lea ecx, [esp + 0x28]
mov dword [edx + 0xc], eax
mov byte [esp + 0x54], 0
call fcn.00467590
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], 0xffffffff
call fcn.00505af1
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4
Function at 0x4e0060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52a109
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00500a9a
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi], 0x55f338
call fcn.005011a5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x50], eax
mov ebx, 1
mov byte [esp + 0x18], bl
call fcn.005011a5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x54], eax
mov dword [esi + 0x68], 0x55f2a8
mov dword [esi + 0x6c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x70], edi
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.0051cd7c
or eax, 0xffffffff
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
lea eax, [esi + 0x40]
push eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x3c], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x60], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x64], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4e62c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52a610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ecx, 0x55
mov eax, 0xaa
push esi
xor esi, esi
push edi
mov word [esp + 0x20], cx
mov word [esp + 0x22], ax
mov word [esp + 0x24], cx
mov word [esp + 0x26], ax
mov word [esp + 0x28], cx
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], cx
mov word [esp + 0x2e], ax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], vtable.CBitmap.0
lea eax, [esp + 0x20]
push eax
push 1
push 1
push 8
push 8
mov dword [esp + 0x4c], esi
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.00505cfc
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], vtable.CBrush.0
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [esp + 0x3c], 1
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.00505cfc
mov esi, dword [esp + 0x40]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00505dd8
mov edi, dword [esi]
push 0xf
mov ebp, eax
call fcn.00463b20
mov ecx, eax
call fcn.004634f0
push eax
mov ecx, esi
call dword [edi + 0x2c]
mov edi, dword [esi]
push 0x14
mov ebx, eax
call fcn.00463b20
mov ecx, eax
call fcn.004634f0
push eax
mov ecx, esi
call dword [edi + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 8]
push 0xf00021
sub ecx, edx
push ecx
sub eax, edi
push eax
mov eax, dword [esi + 4]
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push ebp
mov ecx, esi
call fcn.00505dd8
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0x10]
call fcn.00505d53
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
mov dword [esp + 0x10], esi
call fcn.00505d53
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x18], esi
call fcn.00505d53
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x4fe9a6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4fe9df
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042185b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004172e0
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4ffdec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4ffe2f
call fcn.00517ba7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ffe2f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4ffe4a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004fef60
test ebx, ebx
mov esi, eax
je 0x4ffe48
test edi, edi
je 0x4ffe48
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x50089c
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x522ceb
call fcn.0042e260
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x5008c1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x50090d
call fcn.005011a5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004030b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x501922
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x501959
call fcn.00517ba7
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x50196a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x5019a3
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x501988
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x501990
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x5019a1
test ax, ax
jne 0x5019a1
test si, si
je 0x5019a3
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x5019b2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret