joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4423f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4914bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push str.TEXTFILE
push str.THEMES_INI
mov eax, dword [esi + 0x24]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x44244f
mov esi, dword [esp + 0x1c]
push 0x4b8c40
mov ecx, esi
call fcn.004810cc
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov ecx, dword [esi + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x442479
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push str._File.
push eax
call fcn.00477301
mov esi, eax
add esp, 8
test esi, esi
jne 0x44249d
mov esi, dword [esp + 0x1c]
push 0x4b8c40
mov ecx, esi
call fcn.004810cc
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push 0x5d
push esi
call fcn.004772d8
sub eax, esi
add esi, 0xc
sar eax, 1
sub eax, 6
lea edx, [esp + 0xc]
push eax
push esi
push edx
call fcn.00442510
add esp, 0x14
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push str._ini
push eax
push esi
mov dword [esp + 0x20], 1
call fcn.004812f3
lea ecx, [esp + 4]
mov dword [esp + 8], 1
mov byte [esp + 0x14], 0
call fcn.0048105e
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x449e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00483730
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
lea edi, [esi + 0x18]
mov edx, dword [esp + 0x30]
mov ecx, edi
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x20], 0
mov dword [ecx], ebx
mov dword [esi + 0x10], eax
mov dword [esi], method.CDC.virtual_0
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 0xc], edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004837e7
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
sub eax, edx
mov edx, dword [edi]
push eax
sub ecx, edx
mov edx, dword [esi + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x14], eax
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
neg ebp
neg ebx
push ebp
lea ecx, [esp + 0x2c]
push ebx
push ecx
mov ecx, esi
mov dword [esi + 0x28], eax
call fcn.00483aa9
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x44d3e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x491bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00430de0
push ecx
mov esi, eax
mov ecx, esp
mov dword [esp + 0x14], esp
push str.MENU
call fcn.004810cc
mov eax, dword [ebx + 0x78]
mov edi, dword [esi]
push eax
mov ecx, esi
mov dword [esp + 0x50], 0xffffffff
call fcn.0043cfd0
push eax
mov ecx, esi
call dword [edi + 4]
push 0
push 0x963
push 0
push 9
mov ecx, eax
call fcn.00431610
test eax, eax
jne 0x44d45c
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [ebx + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
jle 0x44d4b3
mov ebp, dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x3c]
push edx
push 1
push esi
push eax
mov dword [esp + 0x24], 0x2c
mov dword [esp + 0x28], 0x10
call ebp
mov eax, dword [esp + 0x1c]
test ah, 1
jne 0x44d447
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x44d476
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret
Function at 0x44e850
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
lea eax, [edi + 4]
mov dword [esi + 0x14], edi
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, 1
mov dword [esi + 4], eax
mov dword [edi + 0x68], 0
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x44e89e
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x44e89e
push 0
push 0
push 0x211
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
ret 4
Function at 0x450030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ebp, ecx
mov eax, dword [edi + 0x54]
mov ebx, dword [esp + 0x20]
push eax
push ebx
push edi
mov ecx, ebp
call fcn.0044fea0
mov esi, eax
mov dword [esp + 0x1c], 0
cmp esi, 0xffffffff
je 0x4500f3
push esi
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.0044d3b0
mov ecx, eax
call fcn.0044cdc0
test eax, eax
jne 0x4500a3
push esi
push ebx
push edi
mov ecx, ebp
call fcn.0044fea0
mov esi, eax
mov eax, dword [esp + 0x10]
cmp esi, eax
je case.0x4501b5.1
push esi
mov ecx, edi
call fcn.0044d3b0
mov ecx, eax
call fcn.0044cdc0
test eax, eax
je 0x450078
mov dword [esp + 0x14], esi
push esi
push ebx
push edi
mov ecx, ebp
call fcn.0044fea0
mov esi, eax
mov ecx, edi
push esi
call fcn.0044d3b0
mov ecx, eax
call fcn.0044cdc0
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x4500d0
cmp esi, eax
jne 0x4500a7
jmp 0x4500dc
cmp eax, esi
je 0x4500dc
mov eax, dword [esp + 0x14]
cmp esi, eax
jne 0x4500e8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 1
cmp eax, 0xffffffff
mov esi, eax
jne 0x4501f9
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x450152
cmp ebx, 0x20
jne 0x45010d
mov ecx, dword [edi + 0x60]
test ecx, ecx
jne 0x450143
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x45012c
test eax, eax
je 0x450152
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x450152
cmp eax, edi
je 0x450152
push 0
push ebx
push eax
mov ecx, ebp
call fcn.0044fea0
cmp eax, 0xffffffff
je 0x450152
mov ecx, ebp
call fcn.00450230
test eax, eax
je case.default.0x4501b5
mov edi, dword [ebp + 0x14]
jmp 0x45003d
xor esi, esi
mov dword [esp + 0x1c], 1
jmp 0x4501f9
mov ecx, dword [edi + 0x78]
test ecx, ecx
je case.default.0x4501b5
mov eax, dword [ebp + 0x20]
test eax, eax
jne case.default.0x4501b5
mov ebx, dword [edi + 0x60]
mov edx, dword [edi + 0x5c]
neg ebx
sbb ebx, ebx
mov eax, dword [edi + 0x3c]
and ebx, 0x2000
push eax
neg edx
sbb edx, edx
mov eax, dword [esp + 0x24]
and edx, 0xfffffff0
and eax, 0xffff
add edx, 0x10
or ebx, edx
mov edx, ebx
and edx, 0xffff
shl edx, 0x10
or edx, eax
push edx
push 0x120
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 3
ja case.default.0x4501b5
jmp dword [ecx*4 + 0x450220]
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
test bl, 0x10
jne case.default.0x4501b5
mov ecx, ebp
call fcn.0044f8a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov dword [esp + 0x1c], 1
movsx esi, ax
test esi, esi
jl case.default.0x4501b5
mov ecx, edi
call fcn.0044d370
cmp esi, eax
jl case.default.0x4501b5
cmp esi, 0xffffffff
je case.default.0x4501b5
push esi
push edi
mov ecx, ebp
call fcn.0044eee0
mov eax, dword [esp + 0x1c]
test eax, eax
je case.default.0x4501b5
push 0xd
push edi
mov ecx, ebp
call fcn.0044fbc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x4509d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push 0x48
call fcn.00480d9f
add esp, 4
mov dword [esp + 8], eax
mov edi, dword [esp + 0x2c]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x14], esi
je 0x450a0e
push edi
mov ecx, eax
call fcn.0044e7d0
mov esi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push edi
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.00450c30
mov ecx, esi
mov edi, eax
call fcn.0044ca30
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x455960
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [ebp + 0x1dc]
test bl, 0x80
jne 0x455a3b
push esi
push edi
mov edi, ebx
and edi, 2
call fcn.0043cc10
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_SendMessageA]
mov esi, edi
neg esi
sbb esi, esi
and esi, 3
add esi, 3
test bl, 8
jne 0x4559c8
test edi, edi
jne 0x4559bc
and ebx, 4
or ebx, 0x10
shr ebx, 2
jmp 0x4559c6
and bl, 4
neg bl
sbb ebx, ebx
add ebx, 8
mov esi, ebx
mov eax, dword [ebp + 0x1e0]
mov edi, 1
test eax, eax
je 0x4559dc
mov edi, 2
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 0x1c]
jne 0x4559ee
mov edi, 3
jmp 0x455a14
mov ebx, dword [ebp + 0x1c]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
jne 0x455a14
push 0
push 0
push 0x129
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
test al, 1
jne 0x455a14
mov edi, 4
mov ecx, ebp
call fcn.00480c4f
test eax, eax
jne 0x455a24
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.00431730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x456007
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x20
lea eax, [esp + 0x10]
push esi
mov esi, ecx
push eax
push 0
mov ecx, dword [esi + 0x1c]
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
cmp eax, dword [esi + 0x1e0]
je 0x456081
mov edx, dword [esi + 0x1c]
push 0
push 0
push edx
mov dword [esi + 0x1e0], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x1e0]
test eax, eax
je 0x456081
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov ecx, esi
call fcn.0047d7fa
pop esi
add esp, 0x20
ret 0xc
Function at 0x458290
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0xd8]
test esi, esi
push edi
mov dword [esp + 8], ecx
je 0x45832c
mov edi, dword [esi + 0x44]
xor eax, eax
mov al, byte [esp + 0x11]
cmp al, 2
jne 0x45832c
test edi, edi
je 0x45832c
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push ebp
lea ecx, [esi + 8]
push ebx
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4582d5
mov eax, dword [edi + 0x2c]
jmp 0x4582f7
mov eax, dword [esi + 4]
mov ecx, ebp
test eax, eax
jne 0x4582e0
mov ecx, ebx
mov eax, dword [esi + 0x20]
add eax, ecx
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jl 0x4582f5
mov edx, dword [edi + 0x38]
add ecx, edx
cmp eax, ecx
jl 0x4582f7
mov eax, ecx
mov edi, dword [esp + 0x10]
push eax
mov ecx, edi
call fcn.004581f0
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 0x202
mov dword [esi], 1
pop ebx
je 0x458323
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x45832c
push 0
mov ecx, edi
call fcn.004580f0
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x45b690
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x45b71a
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x44]
push 0
push ecx
lea edx, [esp + 0x10]
push 0xe
push edx
push esi
call edi
test eax, eax
je 0x45b713
cmp dword [esp + 0x44], 0xe
jne 0x45b713
lea eax, [esp + 0x44]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x28
push ecx
push esi
call edi
test eax, eax
je 0x45b713
cmp dword [esp + 0x44], 0x28
jne 0x45b713
xor edx, edx
cmp word [esp + 0x26], 0x20
push esi
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x38
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret

Function at 0x45b730
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x45b7c4
lea ecx, [esp + 4]
push 0
push ecx
lea edx, [esp + 0x10]
push 4
push edx
push ebp
mov byte [esp + 0x24], 0x89
mov byte [esp + 0x25], 0x50
mov byte [esp + 0x26], 0x4e
mov byte [esp + 0x27], 0x47
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45b7bd
cmp dword [esp + 4], 4
jne 0x45b7bd
push ebx
push esi
push edi
mov ecx, 4
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x45b7a7
sbb ebx, ebx
sbb ebx, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
test ebx, ebx
pop esi
pop ebx
sete al
pop ebp
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
add esp, 8
ret
Function at 0x45d5d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x492838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
lea ecx, [esp + 0x14]
call fcn.00483730
xor ebx, ebx
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.004837e7
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.0045d480
add esp, 0x14
test eax, eax
jne 0x45d659
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00483865
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 8]
push ebp
neg eax
sbb eax, eax
push edi
and eax, edx
push ebx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, dword [esp + 0x14]
mov ebp, eax
cmp edi, ebx
je 0x45d6a7
cmp ebp, ebx
je 0x45d6a7
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x45d6bc
push eax
call fcn.00423cc2
add esp, 4
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x45d6d1
push eax
call fcn.00423cc2
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x45d6df
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xffffffff
call fcn.00483865
mov ecx, dword [esp + 0x2c]
mov eax, ebp
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x45f6f0
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x45f720
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
mov ax, word [esp]
pop ecx
ret
Function at 0x45fdd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov dword [esp + 8], ecx
push esi
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00480fe9
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, edi
push 6
shr eax, 4
inc eax
and eax, 0xffff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x45fe0d
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x45fe21
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x45fe36
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x45fe55
cmp esi, eax
jae 0x45fe59
xor ecx, ecx
dec edi
mov cx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x45fe45
cmp esi, eax
jb 0x45fe63
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
xor ebx, ebx
mov bx, word [esi]
test ebx, ebx
jne 0x45fe76
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x45fe86
mov ebp, dword [eax + 4]
jmp 0x45fe88
xor ebp, ebp
push 0
push 0
push 0
lea edi, [esi + 2]
push 0
push ebx
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x20]
mov esi, eax
push esi
call fcn.00481455
push 0
push 0
push esi
push eax
push ebx
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x20]
push esi
call fcn.0048142d
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x462c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x492c38
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [ebp + 8], 0
call fcn.004842a3
mov esi, dword [esp + 0x48]
test esi, esi
je 0x462d37
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
pop edi
je 0x462d37
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x462d37
cmp ebx, 0xa
jb 0x462d37
push 0
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.004878d5
lea eax, [esp + 0xc]
mov ecx, ebp
push eax
mov dword [esp + 0x40], 0
call fcn.00462d50
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.00487923
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov ecx, dword [esp + 0x34]
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x476910
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00424180
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4769db
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4769db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x47698e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x476999
or bh, 8
and edi, 0x8000000
je 0x4769b4
mov eax, dword [0x4c52bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4769db
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x476ddb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x476dff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x476e1a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20