joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8d80
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d27ab
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4c8f7b
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x4c8f7b
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4c8f7b
push edi
call fcn.004c8fa0
add esp, 4
test al, al
jne 0x4c8de6
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xa1
jmp 0x4c8f88
push edi
mov ecx, esi
call fcn.004c8cf0
test eax, eax
je 0x4c8dfa
push edi
mov ecx, esi
call fcn.004c90d0
call fcn.004c8430
mov eax, dword [edi]
push 0
push 0x42000000
push 3
push 0
push 3
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c8e34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x4c8f88
push 0xa05c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x4c8e7b
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov dl, byte [esi + 0x40]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push ecx
push ebp
push edx
push edi
push ebx
mov ecx, eax
call fcn.004c9720
mov edi, eax
jmp 0x4c8e7d
xor edi, edi
test edi, edi
mov dword [esp + 0x18], 0xffffffff
jne 0x4c8ea2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xe
jmp 0x4c8f88
mov eax, dword [esi + 4]
push 0
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
mov dword [esi + 4], eax
jne 0x4c8ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov ecx, edi
mov esi, eax
call fcn.004c99a0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x4c8f88
mov eax, dword [esi + 8]
test eax, eax
jne 0x4c8f26
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
push 0x4c9bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
jne 0x4c8f18
push eax
mov ecx, edi
call fcn.004c99a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
mov eax, 0xa4
je 0x4c8f88
call esi
jmp 0x4c8f88
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x20]
test eax, eax
mov dword [esi + 0xc], edx
je 0x4c8f69
mov eax, dword [esi + 4]
mov ecx, edi
push eax
call fcn.004c9a30
mov ebx, eax
test ebx, ebx
je 0x4c8f4b
push 0
mov ecx, edi
call fcn.004c99a0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x4c8f88
mov ecx, dword [esp + 0x28]
push esi
call fcn.004c8650
push edi
mov ecx, esi
call fcn.004c92e0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4c8f88
push 0xa4
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xa4
jmp 0x4c8f88
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x57
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x18
Function at 0x4c8fa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c8fbc
test al, 0x10
je 0x4c8fbc
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4ca970
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0x698690
push 0
push esi
push 0x4caa10
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [0x69868c], eax
test eax, eax
je 0x4ca9a9
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x69868c]
test eax, eax
setne al
pop esi
ret
Function at 0x11243541
Capabilities:
Execute anti-debugging instructions

Disassembly:
bswap ecx
mov dword [esp + 4], eax
pushal
mov byte [esp + 4], ah
jmp 0x1124357b
lea esp, [esp + 0x24]
Function at 0x1132e945
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
call fcn.1132e021
mov dword [esp + 0xa0], edi
lea esp, [esp + 0xa0]
jmp 0x1132e9d4
push ebx
pushal
mov di, 0xba73
mov bp, 0xf27
jmp 0x1132e9fd
push edx
mov edx, eax
mov eax, dword [edx]
pop edx
jmp 0x1132e9a6
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x1132e9bd
mov byte [esp + 9], bh
lea esp, [esp + 0x1c]
popal
jmp 0x1132ea38
mov si, dx
xchg bx, bp
mov dword [esp + 0x10], eax
pushal
mov byte [esp + 3], ah
pop dword [esp + 0xe]
jmp 0x1132e9e2
lea ebx, [ebx + 8]
mov eax, dword [ebx]
pop ebx
jmp 0x1132ea85
push eax
jmp 0x1132e01c

Function at 0x417080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x4170a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4170a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417098
mov eax, 1
add ebx, ebx
jne 0x4170bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4170b0
jne 0x4170cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4170b0
xor ecx, ecx
sub eax, 3
jb 0x4170e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417152
mov ebp, eax
add ebx, ebx
jne 0x4170eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4170f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41711c
inc ecx
add ebx, ebx
jne 0x417108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4170fd
jne 0x417119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4170fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41713c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41712d
jmp 0x41709e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41713c
add edi, ecx
jmp 0x41709e
pop esi
mov edi, esi
mov ecx, 0x379
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41715a
cmp byte [edi], 5
jne 0x41715a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41715f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x4171d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1703c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41718c
mov ecx, edi
jns 0x4171bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x17040]
or eax, eax
je 0x4171d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4171a9
call dword [esi + 0x17044]
popal
jmp 0x402cd0
Function at 0x79a3b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x27e000]
push edi
or ebp, 0xffffffff
jmp 0x79a3d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x79a3d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x79a3c8
mov eax, 1
add ebx, ebx
jne 0x79a3eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x79a3fc
jne 0x79a41b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x79a41b
dec eax
add ebx, ebx
jne 0x79a408
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x79a3e0
add ebx, ebx
jne 0x79a417
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x79a46d
xor ecx, ecx
sub eax, 3
jb 0x79a433
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x79a4a2
sar eax, 1
mov ebp, eax
jmp 0x79a43e
add ebx, ebx
jne 0x79a43e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x79a40c
inc ecx
add ebx, ebx
jne 0x79a44c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x79a40c
add ebx, ebx
jne 0x79a459
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x79a44e
jne 0x79a46a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x79a44e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x79a48c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x79a47e
jmp 0x79a3ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x79a48c
add edi, ecx
jmp 0x79a3ce
pop esi
mov edi, esi
mov ecx, 0xa228
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x79a4aa
cmp byte [edi], 0x22
jne 0x79a4aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x79a4af
lea edi, [esi + 0x397000]
mov eax, dword [edi]
or eax, eax
je 0x79a527
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x39ef6c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x39f090]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x79a4dc
mov ecx, edi
jns 0x79a50b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x39f098]
or eax, eax
je 0x79a521
mov dword [ebx], eax
add ebx, 4
jmp 0x79a4f9
call dword [esi + 0x39f094]
mov ebp, dword [esi + 0x39f09c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x79a55b
sub esp, 0xffffff80
jmp 0x542bf1
Function at 0x406460
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4765fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046c777
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4064e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00466c98
mov eax, dword [eax]
push 0x494c10
push eax
call fcn.00458b3a
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046ca02
test bl, bl
je 0x4064e2
push 0x494c10
lea ecx, [esp + 0xc]
call fcn.0046cdde
push 0x494c1c
lea ecx, [esp + 0xc]
call fcn.0046cdde
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40651e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046ca02
jmp 0x4065e9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4065a2
lea edx, [esp + 0x7c]
push 0x494c18
push edx
call fcn.00458b3a
add esp, 8
test eax, eax
je 0x4065a2
lea eax, [esp + 0x7c]
push 0x494c14
push eax
call fcn.00458b3a
add esp, 8
test eax, eax
je 0x4065a2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406532
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046ca02
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x406e00
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406e62
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x406e70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47667b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a2700]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x406fa8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406ed6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ca02
xor eax, eax
jmp 0x40701f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046cb8b
push esi
lea ecx, [esp + 0xc]
call fcn.0046ce1a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x406ffd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00406e00
test eax, eax
jne 0x406ffd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00406e00
test eax, eax
jne 0x406ffd
lea eax, [esp + 0x14]
push 0x494c34
push eax
call fcn.00459070
mov esi, eax
add esp, 8
test esi, esi
jne 0x406fdc
lea ecx, [esp + 0x14]
push 0x494c30
push ecx
call fcn.00458ff0
mov esi, eax
add esp, 8
test esi, esi
jne 0x406fdc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x406fdf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046cb3b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x406eee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ca02
xor eax, eax
jmp 0x40701f
mov byte [esi], 0
push 0x494c2c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046ca02
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x419ae0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4775b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0041a660
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x419b89
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00419770
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push edi
lea ecx, [esp + 0x4c]
call fcn.00470618
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.0042fb30
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.0047068a
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
Function at 0x41a0c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4775e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00417cc0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x41a119
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00421800
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.004217f0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00419770
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x4c]
call fcn.00470618
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0042fb30
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00417720
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, ebx
call fcn.00421770
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x41a1e4
push edi
mov ecx, esi
call fcn.00417830
push eax
push ebp
mov ecx, esi
call fcn.004179f0
cmp eax, dword [esp + 0x40]
jg 0x41a1e0
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x41a1be
mov eax, ebx
jmp 0x41a1ea
cmp edi, ebx
jl 0x41a1e8
mov eax, ebx
jmp 0x41a1ea
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x41a1fb
mov dword [esp + 0x30], eax
jmp 0x41a206
cmp edi, ebx
jl 0x41a201
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00421730
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x41a24d
push edi
mov ecx, esi
call fcn.00417750
push eax
push ebx
mov ecx, esi
call fcn.00417b20
cmp eax, dword [esp + 0x44]
jg 0x41a245
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x41a21f
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x41a257
cmp edi, ebp
jl 0x41a251
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x41a257
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x41a260
mov ecx, eax
jmp 0x41a269
cmp edi, ebp
jl 0x41a266
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00417740
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.0047068a
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x41d3c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x477808
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00417cc0
test eax, eax
je 0x41d4c8
lea ecx, [esp + 0xc]
call fcn.004013a0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00417cc0
mov ecx, eax
call fcn.00421b70
test eax, eax
je 0x41d4af
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x41d4af
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41d4af
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
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]
lea ecx, [esp + 0x10]
call fcn.004015d0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x41d491
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41d4af
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4b3908]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x47f040
call fcn.004015d0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x41d510
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00417cc0
test eax, eax
je 0x41d5ff
mov ecx, edi
call fcn.00417cc0
mov ecx, eax
call fcn.00421a20
test eax, eax
jne 0x41d5ff
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41d5ff
mov eax, dword [0x4b3908]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x41d572
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00417cc0
mov ecx, eax
call fcn.00421c50
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x41d5ff
cmp ebx, eax
jne 0x41d5ff
cmp dword [esp + 0x10], eax
jne 0x41d5e5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc