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

Disassembly:
push 0xffffffffffffffff
push 0x59bd00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x30], 1
call fcn.005723d1
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 2
call fcn.005723d1
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x34], 1
call fcn.004e7dc0
mov eax, dword [esp + 8]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x4e7a3a
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.0057265c
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.0057265c
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.0057265c
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x24
ret 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push edx
push ecx
push str._i__i__i
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call fcn.0055b033
mov eax, dword [esp + 0x28]
xor edx, edx
mov dh, byte [esp + 0x20]
and eax, 0xff
mov dl, byte [esp + 0x24]
add esp, 0x14
shl edx, 8
or edx, eax
lea ecx, [esp + 8]
mov esi, edx
mov byte [esp + 0x28], 1
call fcn.0057265c
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.0057265c
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.0057265c
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0xc
Function at 0x4f0460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59c1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, 0xaa
mov ecx, 0x55
xor esi, esi
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]
mov dword [esp + 0x38], esi
push eax
push 1
push 1
push 8
push 8
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.00579297
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], vtable.CBrush.0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
mov byte [esp + 0x38], 1
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.00579297
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00578907
mov ebp, dword [esi]
push 0xf
mov ecx, edi
mov ebx, eax
call fcn.00455480
push eax
mov ecx, esi
call dword [ebp + 0x2c]
mov edx, dword [esi]
push 0x14
mov ecx, edi
mov ebp, eax
mov dword [esp + 0x44], edx
call fcn.00455480
mov edx, dword [esp + 0x40]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
push 0xf00021
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 8]
sub ecx, edx
sub eax, edi
push ecx
push eax
mov eax, dword [esi + 4]
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push ebx
mov ecx, esi
call fcn.00578907
mov edx, dword [esi]
push ebp
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.005792ee
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call fcn.005792ee
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 3
call fcn.005792ee
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 0x4ff4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59c6b8
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.005792ee
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4ff547
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 0x4ff547
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4ff547
cmp ebx, 0xa
jb 0x4ff547
push 0
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.0057dd9f
lea eax, [esp + 0xc]
mov ecx, ebp
push eax
mov dword [esp + 0x40], 0
call fcn.004ff560
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.0057de18
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 0x50d630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59d568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
push 1
lea ecx, [esp + 8]
call fcn.0050b3c0
mov ecx, dword [esp + 0x48]
lea eax, [esp + 4]
push 0
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x48]
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x4c], 0
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.0050d830
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.0050ad60
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 0x14
Function at 0x516a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x59dfe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.0044f420
push ecx
mov esi, eax
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x5f18e0
call fcn.005726ca
mov eax, dword [ebx + 0x78]
mov edi, dword [esi]
push eax
mov ecx, esi
mov dword [esp + 0x54], 0xffffffff
call fcn.004de400
push eax
mov ecx, esi
call dword [edi + 4]
push 0
push 0x963
push 0
push 9
mov ecx, eax
call fcn.0044fc40
test eax, eax
jne 0x516a8c
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
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 0x516ae3
mov ebp, dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov ecx, 0xc
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], 0x30
mov dword [esp + 0x28], 0x10
call ebp
mov eax, dword [esp + 0x1c]
test ah, 1
jne 0x516a77
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x516aa6
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret
Function at 0x517e80
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 0x517ece
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x517ece
push 0
push 0
push 0x211
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
ret 4
Function at 0x519670
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.005194e0
mov esi, eax
mov dword [esp + 0x1c], 0
cmp esi, 0xffffffff
je 0x519733
push esi
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.005169e0
mov ecx, eax
call fcn.00516400
test eax, eax
jne 0x5196e3
push esi
push ebx
push edi
mov ecx, ebp
call fcn.005194e0
mov esi, eax
mov eax, dword [esp + 0x10]
cmp esi, eax
je case.0x5197f5.1
push esi
mov ecx, edi
call fcn.005169e0
mov ecx, eax
call fcn.00516400
test eax, eax
je 0x5196b8
mov dword [esp + 0x14], esi
push esi
push ebx
push edi
mov ecx, ebp
call fcn.005194e0
mov esi, eax
mov ecx, edi
push esi
call fcn.005169e0
mov ecx, eax
call fcn.00516400
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x519710
cmp esi, eax
jne 0x5196e7
jmp 0x51971c
cmp eax, esi
je 0x51971c
mov eax, dword [esp + 0x14]
cmp esi, eax
jne 0x519728
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 1
cmp eax, 0xffffffff
mov esi, eax
jne 0x519839
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x519792
cmp ebx, 0x20
jne 0x51974d
mov ecx, dword [edi + 0x60]
test ecx, ecx
jne 0x519783
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x51976c
test eax, eax
je 0x519792
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x519792
cmp eax, edi
je 0x519792
push 0
push ebx
push eax
mov ecx, ebp
call fcn.005194e0
cmp eax, 0xffffffff
je 0x519792
mov ecx, ebp
call fcn.00519870
test eax, eax
je case.default.0x5197f5
mov edi, dword [ebp + 0x14]
jmp 0x51967d
xor esi, esi
mov dword [esp + 0x1c], 1
jmp 0x519839
mov ecx, dword [edi + 0x78]
test ecx, ecx
je case.default.0x5197f5
mov eax, dword [ebp + 0x20]
test eax, eax
jne case.default.0x5197f5
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.0x5197f5
jmp dword [ecx*4 + 0x519860]
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
test bl, 0x10
jne case.default.0x5197f5
mov ecx, ebp
call fcn.00518ee0
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.0x5197f5
mov ecx, edi
call fcn.005169a0
cmp esi, eax
jl case.default.0x5197f5
cmp esi, 0xffffffff
je case.default.0x5197f5
push esi
push edi
mov ecx, ebp
call fcn.00518510
mov eax, dword [esp + 0x1c]
test eax, eax
je case.default.0x5197f5
push 0xd
push edi
mov ecx, ebp
call fcn.00519200
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x51a010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59e15b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push 0x48
call fcn.0056dbe7
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 0x51a04e
push edi
mov ecx, eax
call fcn.00517e00
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.0051a2a0
mov ecx, esi
mov edi, eax
call fcn.00516070
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x51f010
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [ebp + 0x1dc]
test bl, 0x80
jne 0x51f0eb
push esi
push edi
mov edi, ebx
and edi, 2
call fcn.004de050
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 0x51f078
test edi, edi
jne 0x51f06c
and ebx, 4
or ebx, 0x10
shr ebx, 2
jmp 0x51f076
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 0x51f08c
mov edi, 2
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 0x1c]
jne 0x51f09e
mov edi, 3
jmp 0x51f0c4
mov ebx, dword [ebp + 0x1c]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
jne 0x51f0c4
push 0
push 0
push 0x129
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
test al, 1
jne 0x51f0c4
mov edi, 4
mov ecx, ebp
call fcn.00571d84
test eax, eax
jne 0x51f0d4
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.0044fd60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x51f6b7
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 0x51f731
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 0x51f731
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.0056ea67
pop esi
add esp, 0x20
ret 0xc
Function at 0x521950
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 0x5219ed
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x44]
shr eax, 8
cmp al, 2
jne 0x5219ed
test edi, edi
je 0x5219ed
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push ebx
lea ecx, [esi + 8]
push ebp
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x521996
mov eax, dword [edi + 0x2c]
jmp 0x5219b8
mov eax, dword [esi + 4]
mov ecx, ebx
test eax, eax
jne 0x5219a1
mov ecx, ebp
mov eax, dword [esi + 0x20]
add eax, ecx
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jl 0x5219b6
mov edx, dword [edi + 0x38]
add ecx, edx
cmp eax, ecx
jl 0x5219b8
mov eax, ecx
mov edi, dword [esp + 0x10]
push eax
mov ecx, edi
call fcn.005218b0
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 0x202
mov dword [esi], 1
pop ebx
je 0x5219e4
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x5219ed
push 0
mov ecx, edi
call fcn.005217b0
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x52ef90
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0x100]
test esi, esi
push edi
mov dword [esp + 8], ecx
je 0x52f02a
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x34]
shr eax, 8
cmp al, 2
jne 0x52f02a
test edi, edi
je 0x52f02a
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push ebx
lea ecx, [esi + 4]
push ebp
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x52efd6
mov eax, dword [edi + 0x2c]
jmp 0x52effb
mov edx, dword [esi + 0x34]
mov ecx, ebx
mov eax, dword [edx + 0x58]
test eax, eax
jne 0x52efe4
mov ecx, ebp
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [edi + 0x40]
cmp eax, ecx
jl 0x52eff9
mov edx, dword [edi + 0x3c]
add ecx, edx
cmp eax, ecx
jl 0x52effb
mov eax, ecx
mov esi, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.0052ef10
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 0x202
pop ebx
je 0x52f021
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x52f02a
push 0
mov ecx, esi
call fcn.0052ee00
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x535920
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59f728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebx, ecx
push esi
mov dword [esp + 0xc], ebx
call fcn.0050ad20
mov ebp, dword [esp + 0x28]
lea eax, [ebx + 0x20]
xor esi, esi
push eax
mov dword [esp + 0x1c], esi
mov dword [ebx], 0x5c0114
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
cmp ebp, esi
jle 0x5359bb
lea esi, [ebp*8]
push edi
push esi
call fcn.0056dbe7
mov ecx, esi
mov esi, dword [esp + 0x28]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebx + 0x14], eax
push ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0056dbe7
mov esi, dword [esp + 0x30]
mov ecx, ebp
mov dword [ebx + 0x1c], eax
mov edi, eax
mov eax, ecx
add esp, 8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov ecx, ebx
call fcn.005359e0
mov ecx, dword [esp + 0x10]
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x543d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a0d3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5eb854]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x28], 1
call fcn.0056b3b3
mov esi, dword [esp + 0x30]
add esp, 0x14
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.005723d1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.0057265c
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x549b50
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 0
call fcn.005499a0
mov ecx, dword [eax + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ecx, ecx
je 0x549bc6
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
cmp edi, ebx
je 0x549ba2
call fcn.005499a0
mov esi, eax
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x549b96
mov eax, dword [esi]
push str.GdipCreateFromHDC2
push eax
call ebp
mov dword [esi + 0x24], eax
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
call dword [esi + 0x24]
jmp 0x549bc6
call fcn.005499a0
mov esi, eax
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x549bbd
mov edx, dword [esi]
push str.GdipCreateFromHDC
push edx
call ebp
mov dword [esi + 0x28], eax
lea eax, [esp + 0x10]
push eax
push edi
call dword [esi + 0x28]
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x549bd6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call fcn.005499a0
mov esi, eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x549bf1
mov ecx, dword [esi]
push str.GdipSetPageUnit
push ecx
call ebp
mov dword [esi + 0x18], eax
push 2
push edi
call dword [esi + 0x18]
mov edi, dword [esp + 0x10]
call fcn.005499a0
mov esi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x549c16
mov edx, dword [esi]
push str.GdipSetSmoothingMode
push edx
call ebp
mov dword [esi + 0x1c], eax
push 2
push edi
call dword [esi + 0x1c]
mov edi, dword [esp + 0x10]
call fcn.005499a0
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x549c3b
mov eax, dword [esi]
push str.GdipSetPixelOffsetMode
push eax
call ebp
mov dword [esi + 0x14], eax
push 4
push edi
call dword [esi + 0x14]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x56a2c0
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.00556e50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x56a38b
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 0x56a38b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x56a33e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x56a349
or bh, 8
and edi, 0x8000000
je 0x56a364
mov eax, dword [0x605edc]
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 0x56a38b
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 0x56a760
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 0x56a78b
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 0x56a7af
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 0x56a7ca
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