joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493730
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0xa8], eax
mov dword [esi + 0xa4], 1
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 0xa8]
mov ecx, esi
push edx
push 2
call fcn.004931d0
mov dword [0x6825e0], esi
mov dword [esi + 0xa4], edi
call fcn.005d8819
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x2c]
push eax
push edi
push 0x4936e0
push 0xffffffffffffffff
call ebx
mov dword [0x6825e4], eax
mov ecx, dword [esi + 0xa8]
mov dword [esi + 0x88], 2
mov edx, dword [esi + 0x90]
push esi
mov ecx, dword [edx + ecx*4]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x6825e4]
push ecx
call ebp
mov dword [0x6825e4], edi
mov dword [0x6825e0], edi
cmp dword [esi + 0xa4], 1
je 0x493758
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.004931d0
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4967e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ecb68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x26
lea eax, [esi + 8]
lea edi, [esi + 0x28]
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi]
mov ebp, dword [eax + 4]
mov ebx, dword [ecx - 8]
mov ecx, edi
mov edx, dword [eax + 8]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x3c], eax
call fcn.005bc8e8
sub ebx, eax
lea edx, [esp + 0x28]
dec ebx
mov ecx, edi
push ebx
push edx
mov dword [esp + 0x1c], eax
call fcn.005b87f2
mov ebx, eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x5c], 0
call fcn.005b886e
push ebx
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x60], 1
call fcn.005bc650
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 4
call fcn.005bc421
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 3
call fcn.005bc421
mov edi, dword [esp + 0x5c]
push 1
mov ecx, edi
call fcn.005c4bd2
mov eax, dword [edi]
push 0x6825d8
mov ecx, edi
call dword [eax + 0x28]
mov ecx, dword [0x668e04]
mov ebx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
sub eax, ecx
lea ecx, [ebp + 5]
add ebx, ecx
add edx, eax
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x1c], edx
push ebx
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push 0x920
mov dword [esp + 0x48], edx
mov edx, dword [edi]
push ecx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x68]
mov eax, dword [esp + 0x5c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x2c]
add ecx, ebp
add eax, edx
mov edx, dword [esp + 0x60]
add ecx, ebx
add eax, edx
push ecx
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.005c4f8b
mov eax, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x60]
add ebp, esi
add eax, ecx
add ebx, ebp
add eax, edx
push ebx
push eax
mov ecx, edi
call fcn.005c4fd7
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0xffffffff
call fcn.005bc421
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 0xc
Function at 0x4b5200
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5ee640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
mov ebp, ecx
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov ecx, 0x6756e0
push eax
mov dword [esp + 0x30], 1
call fcn.0047ec70
mov dword [esp + 0x24], eax
mov eax, dword [0x6707bc]
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0x1dc]
push ebx
push ebx
push 0x1004
push ecx
mov byte [esp + 0x6c], 2
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x4b53cd
push esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], ebx
test eax, eax
mov edi, 0x674ee0
jne 0x4b529a
mov esi, edi
jmp 0x4b5328
push ebx
lea ecx, [ebp + 0x1c0]
call fcn.005b9da1
mov edx, dword [0x6760f0]
mov eax, dword [edx + eax*4]
mov edx, dword [eax + 0x1c]
mov esi, dword [edx - 8]
lea ecx, [eax + 0x1c]
test esi, esi
je 0x4b52eb
push ecx
lea eax, [esp + 0x28]
push 0x6653b0
push eax
call fcn.005bc72a
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 3
call fcn.005bc55a
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 2
call fcn.005bc421
jmp 0x4b5324
push 0
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x24]
push ecx
push edx
mov edx, dword [eax]
lea ecx, [eax + 8]
mov eax, dword [esp + 0x38]
push ecx
neg edx
sbb edx, edx
mov ecx, 0x6756e0
and edx, eax
push edx
call fcn.0047f0a0
test eax, eax
jne 0x4b5320
mov esi, dword [0x6760e8]
jmp 0x4b5328
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1dc]
lea eax, [esp + 0x30]
push eax
push 0
push 0x1006
push ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x48], 2
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xd
push esi
call fcn.0052fe10
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b536f
push 0xa
push esi
call fcn.0052fe10
mov edi, eax
add esp, 8
test edi, edi
je 0x4b539a
mov dl, byte [edi]
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17], dl
mov byte [edi], 0
call fcn.005bc5aa
mov al, byte [esp + 0x13]
push str._...
lea ecx, [esp + 0x1c]
mov byte [edi], al
call fcn.005bc7fd
mov esi, dword [esp + 0x18]
mov edx, dword [ebp + 0x1dc]
lea ecx, [esp + 0x30]
push ecx
push 0
push 0x1006
push edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x48], 3
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x2c]
inc ebx
cmp ebx, eax
jl 0x4b5282
pop esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 1
call fcn.005bc421
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 0
call fcn.005bc421
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], 0xffffffff
call fcn.005bc421
mov ecx, dword [esp + 0x54]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 4
Function at 0x4b59b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx + 0x68]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4b5a23
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
mov edi, dword [0x669510]
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
xor eax, eax
test ecx, ecx
jle 0x4b5a23
test byte [edx + 0x27], 0x20
jne 0x4b59f8
add edx, 0x28
inc eax
cmp eax, ecx
jl 0x4b59e6
pop edi
pop esi
pop ebx
ret
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
add ecx, esi
push eax
push ecx
call fcn.00501b50
mov edx, dword [ebx + 0x800]
add esp, 8
cmp eax, dword [edi + edx*4]
jmp 0x4b5a23
pop edi
pop esi
pop ebx
ret
Function at 0x4d0420
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f0150
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea eax, [esp + 4]
lea edx, [esp + 0xc]
push ebx
push ebp
push esi
mov ebx, dword [esp + 0x30]
push edi
mov ebp, ecx
push 0
push eax
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push 0
push ebx
mov ecx, ebp
call fcn.0049ce70
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4d05f3
cmp esi, 0xd
mov dword [esp + 0x10], 0
jne 0x4d0569
mov ecx, dword [esp + 0x1c]
mov ebx, ecx
mov eax, dword [ecx + 0x68]
test eax, eax
jne 0x4d0496
xor eax, eax
jmp 0x4d0499
mov eax, dword [ecx + 0x60]
mov edx, dword [esp + 0x18]
mov esi, dword [eax + edx*4]
mov eax, dword [ecx + 0xcc]
test eax, eax
jne 0x4d04ae
xor eax, eax
jmp 0x4d04b4
mov eax, dword [ecx + 0xc4]
lea edi, [eax + esi]
push edi
call fcn.004ee940
test al, 1
je 0x4d05f3
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4d04dd
lea ecx, [edi + 1]
call fcn.004eb2a0
test eax, eax
je 0x4d05f3
mov eax, dword [0x6707bc]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0
push ecx
push esi
mov ecx, ebx
call fcn.004ecd90
mov eax, dword [esp + 0x3c]
mov edi, 1
cmp eax, edi
jne 0x4d0529
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push 0
push edi
push edx
push esi
push ebx
push eax
call fcn.004d0a40
add esp, 0x28
jmp 0x4d0552
mov ecx, dword [esp + 0x34]
push edi
push 0
push 0
mov edx, dword [esp + 0x20]
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push esi
push ebx
push edx
call fcn.004d0290
add esp, 0x34
test eax, eax
je 0x4d0556
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005bc421
jmp 0x4d05e2
mov eax, dword [0x6707bc]
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x38]
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
push 1
push ecx
push edi
push ebx
mov ecx, ebp
mov dword [esp + 0x48], 1
call fcn.004d1b30
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push edi
push esi
call fcn.004b6e10
mov ecx, dword [ebp + 0x5c]
add esp, 8
push eax
call fcn.004d0610
test eax, eax
je 0x4d05cc
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005bc421
mov edi, 1
cmp dword [esp + 0x10], edi
jne 0x4d05f3
push 0
push 0
mov ecx, ebp
call fcn.004ca1a0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x4d6cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f07c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
push edi
mov eax, dword [esi]
add esi, 4
mov edi, dword [ecx]
mov dword [esp + 0xc], eax
mov cl, byte [eax]
mov dword [esp + 0x34], esi
cmp cl, 0x2e
je 0x4d6d11
push 0x6a
push eax
push 0xffffffffffffffff
push edi
call fcn.004d67d0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.004d6390
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je case.0x4d6d37.0
mov ebp, dword [edi + 0xcc]
inc eax
cmp eax, 0xb
ja case.0x4d6d37.0
jmp dword [eax*4 + 0x4d6e74]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0x70
push ecx
push edx
jmp 0x4d6e38
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push 0x6b
push eax
push ecx
jmp 0x4d6e38
push 0x6c
jmp 0x4d6e2e
push 0x6d
lea ecx, [edi + 0xbc]
call fcn.00491bb0
xor eax, eax
mov ecx, 0x6698cc
cmp dword [ecx], 3
je 0x4d6d91
add ecx, 0xc
inc eax
cmp ecx, 0x669998
jl 0x4d6d7b
jmp 0x4d6e41
lea esi, [eax + eax*2]
shl esi, 2
mov ecx, dword [esi + 0x6698c8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.005bc48f
mov edx, dword [esp + 0xc]
mov dword [esp + 0x2c], 0
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.005bc6b6
mov eax, dword [eax]
mov ecx, dword [esi + 0x6698d0]
push 0x6e
push eax
push ecx
push edi
mov byte [esp + 0x3c], 1
call fcn.004d67d0
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.005bc421
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005bc421
mov esi, dword [esp + 0x34]
jmp 0x4d6e41
test ebp, ebp
jle 0x4d6e2c
mov eax, dword [edi + 0xcc]
lea ecx, [edi + 0xbc]
test eax, eax
jne 0x4d6e16
xor eax, eax
jmp 0x4d6e19
mov eax, dword [ecx + 8]
mov al, byte [eax + ebp - 1]
cmp al, 0x6d
je 0x4d6e2c
cmp al, 0x53
je 0x4d6e2c
push 0x6d
call fcn.00491bb0
push 0x6e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
push edi
call fcn.004d67d0
add esp, 0x10
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push esi
push ebp
push ecx
mov ecx, dword [esp + 0x38]
call fcn.004d68a0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x4e7170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f0d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov edi, dword [esi + 0x1c]
call fcn.004918b0
mov dword [esp + 0x24], edi
xor edi, edi
mov dword [esp + 8], 0x5f7a5c
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x3c]
push 1
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], edi
call fcn.004e74b0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
push ecx
lea edx, [esp + 0xc]
push edi
push edx
push eax
mov ecx, esi
call fcn.004e7220
mov dword [esp + 8], 0x5f7a5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
mov dword [esp + 0xc], edi
call fcn.00491ab0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], 0x5f7940
call fcn.00491ab0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x4e89a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f0e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.004918b0
mov eax, dword [esp + 0x40]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x28], 0
call fcn.00491b70
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0xc]
call fcn.00491c20
mov edx, dword [esp + 0x34]
lea ecx, [esp + 8]
push edx
call fcn.00491c20
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4e8a12
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4e8a12
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.00492170
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov eax, ecx
neg eax
sbb eax, eax
push edi
and eax, edx
mov edx, dword [esi]
push ecx
push eax
mov ecx, esi
call dword [edx + 0xc]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 8], 0x5f7940
call fcn.00491ab0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18
Function at 0x4e8c30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5f0e68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.004918b0
lea eax, [esp + 0x38]
push 4
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.00492170
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0xc]
call fcn.00491b70
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4e8c99
push edi
call fcn.004ea860
add esp, 4
lea ecx, [esp + 8]
push eax
push edi
call fcn.00492170
jmp 0x4e8ca4
push 0
lea ecx, [esp + 0xc]
call fcn.00491bb0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 8]
push edx
call fcn.00491c20
mov eax, dword [esp + 0x30]
lea ecx, [esp + 8]
push eax
call fcn.00491c20
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
mov eax, ecx
neg eax
sbb eax, eax
push edi
and eax, edx
mov edx, dword [esi]
push ecx
push eax
mov ecx, esi
call dword [edx + 0xc]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 8], 0x5f7940
call fcn.00491ab0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18
Function at 0x4f11c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5f14e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x64]
mov dword [esp], ecx
push ebx
push ebp
mov ecx, dword [eax + 0x18]
push esi
mov esi, dword [eax + 4]
push edi
test ecx, ecx
jne 0x4f11f2
xor edi, edi
jmp 0x4f11f5
mov edi, dword [eax + 0x10]
lea ebp, [edi + esi*4]
lea ecx, [esp + 0x50]
lea ebx, [ebp + esi*4]
lea eax, [ebx + esi*4]
mov dword [esp + 0x74], eax
call fcn.004918b0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], 0
call fcn.004918b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
call fcn.004918b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.004918b0
test esi, esi
mov byte [esp + 0x6c], 3
jle 0x4f12ad
sub ebp, edi
sub ebx, edi
mov ecx, dword [esp + 0x78]
mov edx, dword [edi]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4f12a7
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4f12a7
shr eax, 2
push edx
push eax
push ecx
call fcn.004928c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4f12a7
mov ecx, dword [edi]
push ecx
lea ecx, [esp + 0x54]
call fcn.00491be0
mov edx, dword [edi + ebp]
lea ecx, [esp + 0x3c]
push edx
call fcn.00491be0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
call fcn.00491be0
mov ecx, dword [ebx + edi]
mov edx, dword [esp + 0x74]
add ecx, edx
push ecx
lea ecx, [esp + 0x18]
call fcn.00491c20
add edi, 4
dec esi
jne 0x4f1246
mov edi, dword [esp + 0x10]
lea esi, [edi + 8]
mov dword [edi + 4], 0
mov ecx, esi
call fcn.00491ab0
mov ecx, dword [esp + 0x60]
mov edx, ecx
mov eax, ecx
shr edx, 2
neg eax
mov dword [edi + 4], edx
mov edi, dword [esp + 0x58]
sbb eax, eax
push ecx
and eax, edi
mov ecx, esi
push eax
call fcn.00492170
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
mov ecx, esi
and eax, edi
push eax
call fcn.00492170
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
mov ecx, esi
and eax, edi
push eax
call fcn.00492170
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
mov ecx, esi
and eax, edi
push eax
call fcn.00492170
mov esi, 0x5f7940
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
mov dword [esp + 0x14], esi
call fcn.00491ab0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x28], esi
call fcn.00491ab0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x3c], esi
call fcn.00491ab0
lea ecx, [esp + 0x50]
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x50], esi
call fcn.00491ab0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8
Function at 0x4fa250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f1b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ebx, [edi + 8]
mov eax, ebx
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x28]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], edx
call fcn.005d4e56
mov esi, dword [esp + 0x58]
mov ebp, dword [sym.imp.GDI32.dll_GetCurrentObject]
push 1
mov eax, dword [esi + 8]
push eax
call ebp
push eax
call fcn.005c549a
mov ecx, dword [esi + 8]
push 2
push ecx
mov dword [esp + 0x18], eax
call ebp
push eax
call fcn.005c549a
xor ebp, ebp
push 0xffffff
push ebp
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], eax
call fcn.005c551c
lea edx, [esp + 0x20]
mov ecx, esi
push edx
mov dword [esp + 0x54], ebp
call fcn.005c4b3b
push 0x800000
lea ecx, [esp + 0x1c]
call fcn.005c556c
mov eax, ebx
push 1
push 1
push ebx
mov ecx, dword [eax]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x50], edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x28]
push ecx
push ebp
mov ecx, edi
call fcn.005d7a85
mov eax, dword [esp + 0x58]
mov edx, 1
mov ecx, ebp
shl edx, cl
test eax, edx
je 0x4fa36c
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4fa35e
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x24]
jmp 0x4fa37c
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.005c4b3b
jmp 0x4fa37c
cmp dword [esp + 0x5c], 1
jne 0x4fa39a
mov eax, dword [esi]
push 5
mov ecx, esi
call dword [eax + 0x24]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
inc ebp
cmp ebp, 8
jl 0x4fa32d
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.005c4b3b
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.005c4b3b
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call fcn.005c5506
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], 3
call fcn.005c5506
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 0xc
Function at 0x4fc890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov edi, ecx
jne 0x4fc8a6
xor ebx, ebx
jmp 0x4fc8a9
mov ebx, dword [eax + 0x1c]
call fcn.005d8819
push esi
push esi
push ebx
push 0x118
push 0x190
push esi
push esi
push 0x90000000
push esi
push esi
push esi
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
push esi
call fcn.005beb39
push eax
push esi
mov ecx, edi
call fcn.005be401
test eax, eax
je 0x4fc97f
push ebp
call fcn.005d8819
mov ebx, dword [eax + 8]
push 0xa
push 0x21d
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
cmp ebp, esi
je 0x4fc970
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x4fc970
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [esp + 0x24], eax
je 0x4fc970
push 0xffffff
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
push edi
lea esi, [edi + 0x3c]
push eax
push 0x50000000
push esi
mov dword [esp + 0x30], 0x190
mov dword [esp + 0x34], 0x118
call dword [0x675f90]
test eax, eax
je 0x4fc970
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [0x675f98]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 4