joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d6d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f3060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
push ebp
lea ecx, [esp + 0x10]
call fcn.004c6628
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41d72a
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov byte [ecx], 0
mov ecx, dword [esp + 0x34]
mov byte [edx], 0
mov byte [eax], 0
mov byte [ecx], 0
jmp 0x41d798
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [0x5a4404]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], eax
mov byte [esp + 0x28], 1
xor esi, esi
lea edi, [esp + 0x10]
push 0x2e
push esi
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.004c6d16
test eax, eax
je 0x41d7c2
mov edx, dword [esp + 0x30]
push edx
call fcn.004a657b
mov ecx, dword [edi]
add esp, 4
inc esi
add edi, 4
cmp esi, 4
mov byte [ecx], al
jl 0x41d75e
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004c65ba
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004c65ba
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004c65ba
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004c65ba
mov ecx, dword [esp + 0x20]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14

Function at 0x41f785
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp dword [ebx + 4], 0x100
jne 0x41f7f6
cmp dword [ebx + 8], 9
jne 0x41f7f6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je 0x41f7f6
mov eax, dword [esi + 0x20]
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x41f7b8
mov eax, dword [esi + 0x1c]
push eax
call edi
push eax
call fcn.004c7c6e
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x41f7c8
push ecx
jmp 0x41f7cf
mov ecx, dword [eax + 0x1c]
push ecx
call edi
push eax
call fcn.004c7c6e
test eax, eax
pop edi
je 0x41f7f6
mov edx, dword [eax + 0x1c]
push 0
push 2
push 0x8141
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
mov eax, 1
pop ebx
ret 4
push ebx
mov ecx, esi
call fcn.004c857e
pop esi
pop ebx
ret 4
Function at 0x42fe10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f4335
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.0042f580
mov al, byte [esp + 0x13]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov byte [esi + 0x48], al
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov cl, byte [esp + 0x13]
mov dword [esi + 0x58], ebx
mov byte [esi + 0x5c], cl
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dl, byte [esp + 0x13]
mov dword [esi + 0x78], ebx
mov byte [esi + 0x74], dl
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov al, byte [esp + 0x13]
mov dword [esi + 0x88], ebx
mov byte [esi + 0x84], al
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov cl, byte [esp + 0x13]
mov dword [esi + 0x98], ebx
mov byte [esi + 0x94], cl
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi], vtable.CPointParamGrid.0
mov dword [esi + 0x3c], 2
mov byte [esi + 0x40], bl
mov dword [esi + 0x44], ebx
mov edi, dword [esi + 0x50]
mov ebp, dword [esi + 0x4c]
cmp edi, edi
mov byte [esp + 0x28], 5
mov dword [esp + 0x14], edi
je 0x42fee7
push edi
mov ecx, ebp
call fcn.0042ffa0
mov eax, dword [esp + 0x14]
add edi, 0x70
add ebp, 0x70
cmp edi, eax
jne 0x42fed1
mov eax, dword [esi + 0x50]
mov edi, ebp
cmp ebp, eax
mov dword [esp + 0x14], eax
je 0x42ff07
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 8]
mov eax, dword [esp + 0x14]
add edi, 0x70
cmp edi, eax
jne 0x42fef4
mov dword [esi + 0x50], ebp
mov eax, dword [esi + 0x64]
mov edi, dword [esi + 0x60]
mov ecx, eax
cmp ecx, eax
mov dword [esp + 0x18], eax
je 0x42ff54
cmp edi, ecx
je 0x42ff4a
mov al, byte [ecx + 0x68]
mov edx, ecx
mov byte [edi + 0x68], al
lea eax, [edi + 4]
sub edx, edi
mov dword [esp + 0x14], 0x18
mov ebp, dword [edx + eax]
mov dword [eax], ebp
mov ebp, dword [esp + 0x14]
add eax, 4
dec ebp
mov dword [esp + 0x14], ebp
jne 0x42ff33
mov eax, dword [esp + 0x18]
add ecx, 0x70
add edi, 0x70
cmp ecx, eax
jne 0x42ff1a
mov eax, dword [esi + 0x64]
mov ebp, edi
cmp edi, eax
mov dword [esp + 0x18], eax
je 0x42ff75
mov edx, dword [ebp]
push ebx
mov ecx, ebp
call dword [edx + 8]
mov eax, dword [esp + 0x18]
add ebp, 0x70
cmp ebp, eax
jne 0x42ff61
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x64], edi
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x43b0e0
Capabilities:
Open clipboard

Disassembly:
push esi
mov esi, ecx
call fcn.004208e0
test eax, eax
jg 0x43b0f0
xor al, al
pop esi
ret
mov ecx, esi
call fcn.00420920
push eax
mov ecx, esi
call fcn.004208e0
push eax
mov ecx, esi
call fcn.00439cc0
test byte [eax + 0xc], 0x10
je 0x43b134
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43b134
push ebx
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
test bl, bl
pop ebx
mov al, 1
jne 0x43b139
mov al, byte [0x5a9e50]
pop esi
ret
Function at 0x442971
Capabilities:
Open clipboard

Disassembly:
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x22c1]
test al, al
je 0x4429e3
call fcn.004208e0
push 0
push eax
push 0
push eax
mov ecx, esi
call fcn.00412310
test byte [eax + 0xc], 0x10
je 0x4429be
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4429be
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
test bl, bl
je 0x4429be
pop esi
mov al, 1
pop ebx
ret
mov al, byte [0x5aa238]
test al, al
je 0x4429de
mov eax, dword [0x5aa234]
mov ecx, dword [esi + 0x22c4]
cmp eax, ecx
jne 0x4429de
pop esi
mov eax, 1
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x442a07
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
pop esi
pop ebx
ret
pop esi
xor al, al
pop ebx
ret
Function at 0x44e310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f6037
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x5a4404]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], 1
mov dword [esp + 8], eax
mov eax, dword [esi + 0x4060]
mov bl, 2
dec eax
mov byte [esp + 0x30], bl
cmp eax, 4
ja case.default.0x44e35f
jmp dword [eax*4 + 0x44e4fc]
lea eax, [esp + 0x10]
push 0x11ba
push eax
call fcn.00401930
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 3
call fcn.004c66f3
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x10]
jmp 0x44e43e
lea ecx, [esp + 0x14]
push 0x1358
push ecx
call fcn.00401930
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 4
call fcn.004c66f3
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x14]
jmp 0x44e43e
lea edx, [esp + 0x18]
push 0x1605
push edx
call fcn.00401930
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 5
call fcn.004c66f3
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x18]
jmp 0x44e43e
lea eax, [esp + 0x1c]
push 0x12bf
push eax
call fcn.00401930
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 6
call fcn.004c66f3
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x1c]
jmp 0x44e43e
lea ecx, [esp + 0x20]
push 0x15bf
push ecx
call fcn.00401930
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 7
call fcn.004c66f3
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x20]
call fcn.004c65ba
cmp dword [esi + 0x4060], 3
jne 0x44e465
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push edx
push 0x576e7c
push eax
call fcn.004c0067
add esp, 0xc
jmp 0x44e4b0
lea ecx, [esp + 0x20]
push 0x118d
push ecx
call fcn.00401930
add esp, 8
mov ecx, dword [eax]
mov eax, dword [esi + 0xc8]
mov byte [esp + 0x30], 8
mov edx, dword [eax + 4]
push edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x10]
inc eax
push eax
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
call fcn.004c0067
add esp, 0x18
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], bl
call fcn.004c65ba
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004c632f
mov dword [esp + 0x24], 1
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.004c65ba
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.004c65ba
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x44e32e
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f6037
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x5a4404]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], 1
mov dword [esp + 8], eax
mov eax, dword [esi + 0x4060]
mov bl, 2
dec eax
mov byte [esp + 0x30], bl
cmp eax, 4
ja case.default.0x44e35f
jmp dword [eax*4 + 0x44e4fc]
lea eax, [esp + 0x10]
push 0x11ba
push eax
call fcn.00401930
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 3
call fcn.004c66f3
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x10]
jmp 0x44e43e
lea ecx, [esp + 0x14]
push 0x1358
push ecx
call fcn.00401930
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 4
call fcn.004c66f3
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x14]
jmp 0x44e43e
lea edx, [esp + 0x18]
push 0x1605
push edx
call fcn.00401930
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 5
call fcn.004c66f3
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x18]
jmp 0x44e43e
lea eax, [esp + 0x1c]
push 0x12bf
push eax
call fcn.00401930
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 6
call fcn.004c66f3
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x1c]
jmp 0x44e43e
lea ecx, [esp + 0x20]
push 0x15bf
push ecx
call fcn.00401930
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 7
call fcn.004c66f3
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x20]
call fcn.004c65ba
cmp dword [esi + 0x4060], 3
jne 0x44e465
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push edx
push 0x576e7c
push eax
call fcn.004c0067
add esp, 0xc
jmp 0x44e4b0
lea ecx, [esp + 0x20]
push 0x118d
push ecx
call fcn.00401930
add esp, 8
mov ecx, dword [eax]
mov eax, dword [esi + 0xc8]
mov byte [esp + 0x30], 8
mov edx, dword [eax + 4]
push edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x10]
inc eax
push eax
push edx
lea eax, [esp + 0x1c]
push ecx
push eax
call fcn.004c0067
add esp, 0x18
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], bl
call fcn.004c65ba
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004c632f
mov dword [esp + 0x24], 1
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.004c65ba
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.004c65ba
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x45ec50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f72df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5a4404]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x30]
mov ebx, 1
test ebp, ebp
mov dword [esp + 0x1c], ebx
jne 0x45ec9d
mov eax, dword [esi + 0x190]
mov edx, dword [esi + 0x198]
jmp 0x45ecb1
cmp ebp, ebx
jne 0x45ee61
mov eax, dword [esi + 0x194]
mov edx, dword [esi + 0x19c]
push edi
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 8]
cmp ecx, 0xe
jne 0x45ecfc
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x30]
push edi
push eax
push ecx
call fcn.00429930
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.004c66f3
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.004c65ba
mov ecx, dword [esi + 0x3c]
push ebp
push edi
call fcn.0044e240
jmp 0x45ee28
cmp ecx, 0xf
jne 0x45ed30
mov edx, dword [esp + 0x30]
push edx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00429930
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call fcn.004c66f3
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x30]
jmp 0x45ee23
cmp ecx, 0x10
jne 0x45ed64
mov ecx, dword [esp + 0x30]
push ecx
push edx
lea edx, [esp + 0x38]
push edx
call fcn.00429930
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 4
call fcn.004c66f3
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x30]
jmp 0x45ee23
cmp ecx, 0x11
jne 0x45edf4
mov edi, dword [esp + 0x30]
test ebp, ebp
jne 0x45eda5
mov ecx, dword [esi + 0x3c]
push 0
push edi
mov dword [esi + 0x188], edi
call fcn.0044ea70
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x190], eax
mov eax, dword [esi + 0x188]
push 0
push eax
call fcn.0044ebc0
mov dword [esi + 0x198], eax
jmp 0x45edd5
cmp ebp, ebx
jne 0x45edd5
mov ecx, dword [esi + 0x3c]
push ebx
push edi
mov dword [esi + 0x18c], edi
call fcn.0044ea70
mov edx, dword [esi + 0x18c]
mov ecx, dword [esi + 0x3c]
push ebx
push edx
mov dword [esi + 0x194], eax
call fcn.0044ebc0
mov dword [esi + 0x19c], eax
push edi
lea eax, [esp + 0x14]
push 0x578158
push eax
call fcn.004c0067
mov ecx, dword [esi + 0x3c]
add esp, 0xc
push ebp
push edi
call fcn.0044e290
jmp 0x45ee28
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push ebp
push edx
lea eax, [esp + 0x3c]
push edi
push eax
mov ecx, esi
call fcn.0045e8b0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.004c66f3
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x30]
call fcn.004c65ba
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004c632f
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x20], 0
call fcn.004c65ba
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
push 0x5a9438
lea ecx, [esp + 0x10]
call fcn.004c6743
mov esi, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004c632f
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.004c65ba
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
Function at 0x468b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f7be0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
xor eax, eax
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], vtable.CPen.0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0xc]
call fcn.004cfc74
mov esi, dword [esp + 0x20]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004ceb59
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov edi, eax
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
call fcn.004cf212
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, esi
call fcn.004cf25e
push edi
mov ecx, esi
call fcn.004ceb59
lea ecx, [esp + 8]
call fcn.004cfccb
mov dword [esp + 8], vtable.CGdiObject.0
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call fcn.004cfccb
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x20

Function at 0x468d30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f7c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004ce8d6
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], vtable.CBitmap.0
mov byte [esp + 0x28], 1
call fcn.004e4e26
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
and ecx, 0xffff
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0xc]
call fcn.004cfc74
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x468da0
xor eax, eax
jmp 0x468da3
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x14]
call fcn.004ce98d
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.004ceb06
mov ecx, dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0x10]
mov edx, dword [edi + 4]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
mov ecx, dword [esp + 0x38]
push 0
push 0
push eax
mov eax, dword [esp + 0x48]
push 0x51
push 0xdc
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test esi, esi
je 0x468e09
mov esi, dword [esi + 4]
mov eax, dword [edi + 4]
push esi
push eax
call fcn.004ceb06
lea ecx, [esp + 0x10]
call fcn.004ce9f5
mov dword [esp + 8], vtable.CGdiObject.0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.004cfccb
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.004cea0b
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x476850
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f8855
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
mov eax, dword [0x5a4404]
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov edx, dword [esp + 0x428]
mov eax, dword [esp + 0x424]
lea ecx, [esp + 4]
mov dword [esp + 0x418], 1
push ecx
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4768f1
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push eax
mov eax, dword [esp + 0x43c]
push eax
push ecx
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4768e6
lea edx, [esp + 0x10]
lea ecx, [esp]
push edx
call fcn.004c6743
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [esp + 0x424]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004c632f
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x41c], 0
call fcn.004c65ba
mov ecx, dword [esp + 0x414]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x41c
ret 0x10

Function at 0x476940
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
xor esi, esi
push eax
push 0x20006
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47699e
mov edx, dword [esp + 0x14]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 1
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret 0x10
mov eax, esi
pop esi
ret 0x10
Function at 0x4a8242
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a8262
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a9971
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4a8285
test byte [esp + 8], 2
je 0x4a8285
call fcn.004a99e4
mov dword [eax], 0xd
call fcn.004a99ed
mov dword [eax], 5
jmp 0x4a825e
xor eax, eax
ret

Function at 0x4b2993
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5a80f8
cmp edx, dword [eax]
je 0x4b29b5
add eax, 8
inc ecx
cmp eax, 0x5a8188
jl 0x4b29a6
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5a80f8]
jne 0x4b2ae3
mov eax, dword [0x5b5aec]
cmp eax, 1
je 0x4b2abd
test eax, eax
jne 0x4b29e6
cmp dword [0x5a57f4], 1
je 0x4b2abd
cmp edx, 0xfc
je 0x4b2ae3
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b2a1d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004aed70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004a93f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b2a60
lea eax, [ebp - 0x1a4]
push eax
call fcn.004a93f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x589804
push edi
call fcn.004a6f30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004aed70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004aed80
lea eax, [ebp - 0xa0]
push 0x55ce04
push eax
call fcn.004aed80
push dword [esi + 0x5a80fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004aed80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004b7473
add esp, 0x2c
pop edi
jmp 0x4b2ae3
lea eax, [ebp + 8]
lea esi, [esi + 0x5a80fc]
push 0
push eax
push dword [esi]
call fcn.004a93f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4bec10
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.004a68d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4becdb
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 0x4becdb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4bec8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4bec99
or bh, 8
and edi, 0x8000000
je 0x4becb4
mov eax, dword [0x5b72fc]
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 0x4becdb
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