joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498820
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0x3ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [esi + 0x100], 0
je 0x49885a
push dword [esi + 0x100]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x49885a
mov dword [esi + 0x100], 0
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 0x1e8]
jne 0x498884
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [esi + 0x1e8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4988a2
push 0
push dword [esi + 0x1e8]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 4]
mov dword [ebp - 8], 0xffffffff
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0xffffffff
push eax
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004f74b0
test eax, eax
je 0x498906
push edi
mov edi, dword [ebp - 8]
mov ecx, esi
push edi
call fcn.0050f820
mov ecx, esi
test eax, eax
jne 0x4988ef
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call fcn.0049a9b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push eax
push edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], eax
call fcn.004941c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x498910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0x3ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [esi + 0x100], 0
je 0x49894a
push dword [esi + 0x100]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x49894a
mov dword [esi + 0x100], 0
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 0x1e8]
jne 0x498974
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [esi + 0x1e8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x498992
push 0
push dword [esi + 0x1e8]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 4]
mov dword [ebp - 8], 0xffffffff
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0xffffffff
push eax
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004f74b0
test eax, eax
je 0x4989f6
push edi
mov edi, dword [ebp - 8]
mov ecx, esi
push edi
call fcn.0050f820
mov ecx, esi
test eax, eax
jne 0x4989df
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call fcn.0049abc0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push eax
push edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], eax
call fcn.00494420
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x498ae0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f438
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x583384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, 0x300
cmp ax, word [ebp + 8]
jne 0x498c0f
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x498b2a
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
mov dword [ebp - 4], 0
jge 0x498b60
push 0x200
lea ecx, [ebp + 8]
call fcn.00406dd0
mov esi, dword [ebp + 8]
push 0x200
push esi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp dword [edi + 0x11d8], 0
lea ecx, [edi + 0xe84]
jbe 0x498bf4
mov eax, dword [ecx + 0x350]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
cmp eax, 0xffffffff
je 0x498bf4
lea edx, [ebp + 0x10]
push edx
push eax
call fcn.00494680
mov eax, dword [ebp + 0x10]
and eax, 0xffff0000
cmp eax, 0x30000
jg 0x498be1
je 0x498bd3
cmp eax, 0x10000
je 0x498bc5
cmp eax, 0x20000
jne 0x498bf4
push esi
lea ecx, [edi + 0x1204]
call fcn.0049ae80
jmp 0x498bf4
push esi
lea ecx, [edi + 0xaf4]
call fcn.0049ae80
jmp 0x498bf4
push esi
lea ecx, [edi + 0x159c]
call fcn.0049ae80
jmp 0x498bf4
cmp eax, 0x40000
jne 0x498bf4
push esi
lea ecx, [edi + 0x1930]
call fcn.0049ae80
or eax, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x498c0f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x498f40
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 0x1e8]
jne 0x498f57
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [esi + 0x1e8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x498f75
push 0
push dword [esi + 0x1e8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x370], 0
pop esi
ret 0xc
Function at 0x4995b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x4997d1
mov ebx, dword [ebp + 0xc]
cmp ebx, 1
jne 0x4995eb
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.00495850
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x18
mov esi, dword [ebp + 0x10]
cmp ebx, 2
jne 0x499624
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], 1
push eax
push dword [ebp + 0x14]
push esi
push 2
call fcn.004487c0
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x4997ad
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x18
cmp ebx, 5
jne 0x499648
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.00498d90
mov ecx, dword [ebp + 0x18]
pop edi
pop esi
mov dword [ecx], eax
lea eax, [ebx - 4]
pop ebx
pop ebp
ret 0x18
cmp ebx, 0x18
jne 0x499686
cmp dword [ebp + 0x10], 0
jne 0x499671
push dword [edi + 0x1cfc]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x499671
push 0
push dword [edi + 0x1cfc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 1
pop ebp
ret 0x18
cmp ebx, 0x4e
jne 0x4996e3
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
cmp ecx, 0xfffffa81
jne 0x4996b7
lea ecx, [ebp + 0x1c]
push ecx
push eax
push dword [ebp + 0x10]
mov ecx, edi
call fcn.00495060
mov ecx, dword [ebp + 0x18]
pop edi
pop esi
mov dword [ecx], eax
lea eax, [ebx - 0x4d]
pop ebx
pop ebp
ret 0x18
cmp ecx, 0xfffffa84
jne 0x4997b5
lea ecx, [ebp + 0x1c]
push ecx
push eax
push dword [ebp + 0x10]
mov ecx, edi
call fcn.004962b0
mov ecx, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 1
pop ebp
ret 0x18
cmp ebx, 0x111
jne 0x4997b2
mov eax, 0x3f7
cmp ax, si
jne 0x49971f
lea eax, [ebp + 0x1c]
shr esi, 0x10
push eax
push dword [ebp + 0x14]
push 0x3f7
push esi
call fcn.00498ae0
mov ecx, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 1
pop ebp
ret 0x18
mov eax, 0x3f8
cmp ax, si
jne 0x49974f
lea eax, [ebp + 0x1c]
shr esi, 0x10
push eax
push dword [ebp + 0x14]
push 0x3f8
push esi
call fcn.00498c30
mov ecx, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 1
pop ebp
ret 0x18
mov eax, 0x3f9
cmp ax, si
jne 0x49977f
lea eax, [ebp + 0x1c]
shr esi, 0x10
push eax
push dword [ebp + 0x14]
push 0x3f9
push esi
call fcn.00498a00
mov ecx, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 1
pop ebp
ret 0x18
lea eax, [esi - 0x82a]
cmp ax, 9
ja 0x4997b2
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
push esi
shr esi, 0x10
push esi
call fcn.00495650
mov ecx, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 1
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
jmp 0x4997b8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
push 0
push ecx
push eax
push esi
push ebx
push dword [ebp + 8]
lea ecx, [edi + 0x3c]
call fcn.0041e400
test eax, eax
jne 0x4995df
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
Function at 0x49ae20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xa8], edx
mov dword [ecx + 0xac], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], edx
pop ebp
jmp fcn.004941c0

Function at 0x49ae50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xa8], edx
mov dword [ecx + 0xac], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], edx
pop ebp
jmp fcn.00494420
Function at 0x4a5440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4a5453
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
push esi
call fcn.0051f544
push esi
push dword [ebp + 0x10]
call fcn.004a5680
mov edi, eax
push 0
lea ecx, [edi + 4]
push ecx
push esi
call fcn.0051f544
push esi
call fcn.0051fb56
mov dl, al
add esp, 0x24
cmp dl, 1
jne 0x4a54c0
push esi
push 1
lea eax, [ebp + 0x14]
push 3
push eax
call fcn.0051f1da
movzx edi, byte [ebp + 0x16]
movzx eax, byte [ebp + 0x15]
shl edi, 8
or edi, eax
movzx eax, byte [ebp + 0x14]
shl edi, 8
or edi, eax
push 0
push edi
push esi
call fcn.0051f544
push esi
call fcn.0051fb56
add esp, 0x20
mov dl, al
sub edi, 4
push ebx
cmp dl, 2
jne 0x4a5535
push esi
lea eax, [edi + 8]
push 1
mov dword [ebp - 4], eax
lea eax, [ebp + 0x14]
push 3
push eax
call fcn.0051f1da
movzx ecx, byte [ebp + 0x16]
movzx eax, byte [ebp + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 0x14]
shl ecx, 8
push 0
or ecx, eax
push ecx
push esi
call fcn.0051f544
push esi
call fcn.0051fb56
mov edi, dword [ebp + 8]
mov dl, al
add esp, 0x20
test dl, dl
je 0x4a5530
nop dword [eax + eax]
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5515
sub ecx, ebx
push esi
mov byte [ecx + edi], dl
call fcn.0051fb56
mov dl, al
add esp, 4
test dl, dl
jne 0x4a5510
push dword [ebp - 4]
jmp 0x4a5582
mov edi, dword [ebp + 8]
mov ecx, edi
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5540
sub ecx, ebx
push esi
mov byte [ecx + edi], dl
call fcn.0051fb56
mov dl, al
add esp, 4
test dl, dl
je 0x4a5580
nop dword [eax + eax]
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5565
sub ecx, ebx
push esi
mov byte [ecx + edi], dl
call fcn.0051fb56
mov dl, al
add esp, 4
test dl, dl
jne 0x4a5560
push 0
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.004a55c0
add esp, 0xc
push edi
call fcn.004a53a0
add esp, 4
pop ebx
test eax, eax
je 0x4a55a0
mov byte [edi], 0
push esi
call fcn.004a53a0
add esp, 4
pop edi
test eax, eax
je 0x4a55b1
mov byte [esi], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a55c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test eax, eax
je 0x4a55dc
push 0
push eax
push esi
call fcn.0051f544
add esp, 0xc
push esi
call fcn.0051fb56
mov edi, dword [ebp + 8]
mov bl, al
add esp, 4
lea ecx, [ebx - 1]
cmp cl, 1
ja 0x4a5624
push esi
push 1
lea eax, [ebp + 0x10]
push 3
push eax
call fcn.0051f1da
movzx ecx, byte [ebp + 0x12]
movzx eax, byte [ebp + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 0x10]
shl ecx, 8
push 0
or ecx, eax
push ecx
push esi
call fcn.0051f544
add esp, 0x1c
jmp 0x4a563c
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5630
sub ecx, edx
mov byte [ecx + edi], bl
test bl, bl
je 0x4a5670
push esi
call fcn.0051fb56
mov dl, al
add esp, 4
test dl, dl
je 0x4a5670
nop
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5655
sub ecx, ebx
push esi
mov byte [ecx + edi], dl
call fcn.0051fb56
mov dl, al
add esp, 4
test dl, dl
jne 0x4a5650
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x4a5680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x583384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push edi
push 1
push 8
push eax
mov dword [ebp - 0x18], edi
call fcn.0051f1da
movzx esi, byte [ebp - 0x11]
add esp, 0x10
movzx eax, byte [ebp - 0x12]
movzx ebx, byte [ebp - 0xd]
shl esi, 8
or esi, eax
shl ebx, 8
movzx eax, byte [ebp - 0x13]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 0x14]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 0xe]
or ebx, eax
movzx eax, byte [ebp - 0xf]
shl ebx, 8
or ebx, eax
movzx eax, byte [ebp - 0x10]
shl ebx, 8
or ebx, eax
mov eax, ebx
sub eax, esi
cmp eax, 7
mov eax, dword [ebp + 8]
je 0x4a57dd
nop dword [eax + eax]
mov eax, 0x24924925
mov ecx, ebx
mul ebx
mov eax, 0x24924925
sub ecx, edx
shr ecx, 1
add ecx, edx
mul esi
mov eax, esi
shr ecx, 2
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
sub ecx, eax
test cl, 1
je 0x4a572c
inc ecx
shr ecx, 1
push 0
lea edi, [ecx*8]
sub edi, ecx
add edi, esi
push edi
push dword [ebp - 0x18]
call fcn.0051f544
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push 1
push 7
push eax
call fcn.0051f1da
movzx ecx, byte [ebp - 9]
add esp, 0x1c
movzx eax, byte [ebp - 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xc]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
cmp ecx, eax
je 0x4a5795
jae 0x4a5783
mov esi, edi
jmp 0x4a5785
mov ebx, edi
mov eax, ebx
sub eax, esi
cmp eax, 7
jne 0x4a5700
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
cmp ecx, eax
jbe 0x4a57b6
push 0
push esi
push edi
call fcn.0051f544
push edi
push 1
lea eax, [ebp - 0xc]
push 7
push eax
call fcn.0051f1da
add esp, 0x1c
movzx eax, byte [ebp - 6]
movzx ecx, byte [ebp - 7]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 8]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00513512
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
jmp 0x4a5798
Function at 0x4a6360
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ef48
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x583384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
mov edi, dword [ebp + 8]
test edi, edi
je 0x4a64d4
lea ecx, [ebp - 0x38]
call fcn.004a5930
mov dword [ebp - 0x38], vtable.CTabViewTabItem.0
push 0xffffffffffffffff
push 0x10
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
mov dword [ebp - 0x14], edi
call fcn.004a6500
cmp dword [ebp + 0xc], 1
mov esi, eax
jne 0x4a647f
test esi, esi
jns 0x4a6483
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4a646a
inc eax
push eax
mov dword [ebp - 0x40], eax
call fcn.005137cb
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a6467
push dword [ebp - 0x40]
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp dword [ebp + 0x10], 0
je 0x4a6450
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x7f
push edi
call esi
test eax, eax
jne 0x4a6443
push 0xffffffffffffffde
push edi
call dword [sym.imp.USER32.dll_GetClassLongA]
test eax, eax
jne 0x4a6443
push eax
push 1
push 0x7f
push edi
call esi
test eax, eax
jne 0x4a6443
push 0xfffffffffffffff2
push edi
call dword [sym.imp.USER32.dll_GetClassLongA]
test eax, eax
je 0x4a6450
mov ecx, dword [ebp - 0x3c]
push eax
push ebx
push edi
call fcn.004a5c60
jmp 0x4a645c
mov ecx, dword [ebp - 0x3c]
push 0xffffffffffffffff
push ebx
push edi
call fcn.004a5b60
push ebx
mov esi, eax
call fcn.005137d4
add esp, 4
mov ebx, dword [ebp - 0x3c]
test esi, esi
jns 0x4a6483
push 0xffffffffffffffff
push str.Untitled
push edi
mov ecx, ebx
call fcn.004a5b60
mov esi, eax
test esi, esi
js 0x4a648d
push 1
push esi
mov ecx, ebx
call fcn.004a7470
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 0x38], vtable.CCustomTabItem.0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a64b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4a64d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x4a64d7
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513512
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a8070
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f14e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x583384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi], vtable.CWaitThreadDlg.0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4a80e6
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 1
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4a810a
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
push 0
push 0x54727d
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
mov dword [esi + 0x28], 0
call fcn.00407040
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a8390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539430
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x583384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0x30]
or esi, 0xffffffff
mov dword [edi], vtable.CWaitThreadDlg.0
sub edx, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a83d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x2c]
sub edx, 0x10
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4a83f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4a83fe
push eax
call fcn.005162f3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a8590
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539430
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x583384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
or edi, 0xffffffff
mov dword [esi], vtable.CWaitThreadDlg.0
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a85d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x2c]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4a85f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a85fe
push eax
call fcn.005162f3
test byte [ebp + 8], 1
je 0x4a860f
push 0x34
push esi
call fcn.005137bd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4a8cb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f220
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x583384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x4a8d0b
push 0x80004005
call fcn.004063a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x178]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
push ecx
mov ecx, eax
call fcn.00465be0
test eax, eax
je 0x4a8e4d
cmp dword [ebp - 0x20], 0
jle 0x4a8e4d
push 0x100000
push 2
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4a8e46
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_LocalLock]
xor esi, esi
mov dword [ebp - 0x14], 0
mov ebx, eax
cmp dword [ebp - 0x20], esi
jle 0x4a8e1d
lea ecx, [ebp - 0x10]
call fcn.00406870
test esi, esi
js 0x4a8e35
cmp esi, dword [ebp - 0x20]
jge 0x4a8e35
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + esi*4]
call fcn.004b1c80
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4a8e13
push 2
push 0x5499a8
lea ecx, [ebp - 0x10]
call fcn.004241f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
add ecx, dword [ebp - 0x14]
cmp ecx, 0x100000
jbe 0x4a8dfb
push edi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push 2
push 0x200000
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov ebx, eax
mov eax, dword [ebp - 0x10]
add ebx, dword [ebp - 0x14]
push dword [eax - 0xc]
push eax
push ebx
call fcn.00517010
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax - 0xc]
add dword [ebp - 0x14], eax
add ebx, eax
inc esi
cmp esi, dword [ebp - 0x20]
jl 0x4a8d81
push edi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4a8e4d
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a8e6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4a8e7c
push eax
call fcn.0051effe
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret