joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e03c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push ecx
mov byte [esp], dl
mov esi, eax
xor ebx, ebx
test byte [esp], 1
je 0x48e04f
add ebx, 0x20
test byte [esp], 2
je 0x48e058
add ebx, 2
test byte [esp], 4
je 0x48e05f
inc ebx
test byte [esp], 8
je 0x48e068
add ebx, 4
test byte [esp], 0x10
je 0x48e074
add ebx, 0x100
test byte [esp], 0x20
je 0x48e080
add ebx, 0x1000
push ebx
mov eax, esi
call fcn.004046b8
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb eax, eax
inc eax
pop edx
pop esi
pop ebx
ret

Function at 0x48fe30
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046a8
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x48ffb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x48ffd4
call fcn.004047fc
test eax, eax
jne 0x48fe7b
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x48ffe0
call fcn.00404504
mov eax, esi
mov edx, 0x3c
call fcn.0048e024
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.00402784
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.00402784
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.00402784
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.00402784
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.00402784
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.00402784
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004044b8
push eax
mov eax, dword [ebp - 4]
call fcn.004046b8
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x48ff71
mov eax, edi
mov edx, dword [esi + 4]
call fcn.004043f0
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.004043f0
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.004043f0
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.004043f0
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.004043f0
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.004043f0
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 0x34]
call fcn.004027a4
mov eax, dword [esi + 0x2c]
call fcn.004027a4
mov eax, dword [esi + 0x24]
call fcn.004027a4
mov eax, dword [esi + 0x1c]
call fcn.004027a4
mov eax, dword [esi + 0x10]
call fcn.004027a4
mov eax, dword [esi + 4]
call fcn.004027a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ffbe
lea eax, [ebp - 4]
call fcn.004041f8
ret
Function at 0x4900d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x4900e9
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x4900f6
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x490114
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x490138
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x49017f
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.0040445c
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.0040445c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4904e0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x4904fd
add esp, 0xfffffff0
call fcn.00403728
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4905fc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x49054a
mov eax, esi
call fcn.004046b8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
mov eax, edi
and eax, 2
cmp eax, 2
je 0x49053b
mov eax, edi
and eax, 1
cmp eax, 1
jne 0x49054a
push 0x20
mov eax, esi
call fcn.004046b8
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
xor eax, eax
mov al, byte [ebp + 0xc]
mov eax, dword [eax*4 + 0x49dd78]
push eax
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.004046b8
push eax
call sub.kernel32.dll_CreateFileA
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a85c
cmp dword [ebx + 4], 0
jge 0x4905cd
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00408c50
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x1c]
call fcn.0040b60c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [0x49e52c]
mov dl, 1
mov eax, dword [0x41586c]
call fcn.0040bf18
call fcn.00403b90
cmp byte [ebp + 8], 0
je 0x4905e1
push edi
mov eax, esi
call fcn.004046b8
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490603
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040421c
ret
Function at 0x490f40
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x49105d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.00490e08
pop ecx
test al, al
je 0x491038
mov eax, dword [ebp + 8]
push eax
call fcn.00490c4c
pop ecx
test al, al
jne 0x491038
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x140]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x491038
mov eax, dword [ebp + 8]
push eax
mov eax, 0x13
call fcn.00490c8c
pop ecx
test al, al
je 0x491038
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404468
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00408764
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x188], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x188]
cmp esi, 0xc8
je 0x491003
mov eax, dword [ebp + 8]
cmp esi, 0xce
jne 0x491038
mov eax, dword [ebp + 8]
push eax
mov eax, 5
call fcn.00490c8c
pop ecx
test al, al
je 0x491038
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404468
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00408764
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
call fcn.00490c4c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491064
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040421c
ret
Function at 0x4967b0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046a8
xor eax, eax
push ebp
push 0x4968d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004082d8
mov edx, dword [ebp - 0x28]
mov eax, 0x4968f0
call fcn.004047fc
test eax, eax
jne 0x49680d
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4968f0
call fcn.00404504
push 0
push 0
push 0
push 0
push 0x4968f8
call sub.wininet.dll_InternetOpenA
mov ebx, eax
test ebx, ebx
je 0x4968b3
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004046b8
push eax
push ebx
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0xa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x13
push esi
call sub.wininet.dll_HttpQueryInfoA
lea edi, [ebp - 0x24]
lea eax, [ebp - 0x2c]
mov edx, edi
call fcn.004043f0
mov eax, dword [ebp - 0x2c]
mov edx, 0x496910
call fcn.00404604
je 0x49689e
lea eax, [ebp - 0x30]
mov edx, edi
call fcn.004043f0
mov eax, dword [ebp - 0x30]
mov edx, 0x49691c
call fcn.00404604
je 0x49689e
xor eax, eax
jmp 0x4968a0
mov al, 1
mov byte [ebp - 5], al
test esi, esi
je 0x4968ad
push esi
call sub.wininet.dll_InternetCloseHandle
push ebx
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4968dd
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040421c
lea eax, [ebp - 4]
call fcn.004041f8
ret
Function at 0x4054b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b4ab
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.0046199a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405532
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045bf25
mov eax, dword [eax]
push 0x487b90
push eax
call fcn.0044ea6a
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461c25
test bl, bl
je 0x405532
push 0x487b90
lea ecx, [esp + 0xc]
call fcn.00462001
push 0x487b9c
lea ecx, [esp + 0xc]
call fcn.00462001
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 0x40556e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461c25
jmp 0x405639
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 0x4055f2
lea edx, [esp + 0x7c]
push 0x487b98
push edx
call fcn.0044ea6a
add esp, 8
test eax, eax
je 0x4055f2
lea eax, [esp + 0x7c]
push 0x487b94
push eax
call fcn.0044ea6a
add esp, 8
test eax, eax
je 0x4055f2
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 0x405582
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.00461c25
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 0x405e60
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 0x405ec2
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 0x405ed0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b52b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48ef80]
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 0x406008
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x405f36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461c25
xor eax, eax
jmp 0x40607f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00461dae
push esi
lea ecx, [esp + 0xc]
call fcn.0046203d
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 0x40605d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00405e60
test eax, eax
jne 0x40605d
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 SysReAllocStringLen
mov ecx, edi
call fcn.00405e60
test eax, eax
jne 0x40605d
lea eax, [esp + 0x14]
push 0x487bb4
push eax
call fcn.0044efa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40603c
lea ecx, [esp + 0x14]
push 0x487bb0
push ecx
call fcn.0044ef20
mov esi, eax
add esp, 8
test esi, esi
jne 0x40603c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40603f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461d5e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x405f4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461c25
xor eax, eax
jmp 0x40607f
mov byte [esi], 0
push 0x487bac
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.00461c25
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 0x418be0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46c468
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.00419760
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 0x418c89
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.00418870
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.0046583b
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.0042ec50
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.004658ad
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
Function at 0x4191c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c490
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.00416dc0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x419219
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.00420900
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.004208f0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00418870
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.0046583b
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.0042ec50
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00416820
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.00420870
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x4192e4
push edi
mov ecx, esi
call fcn.00416930
push eax
push ebp
mov ecx, esi
call fcn.00416af0
cmp eax, dword [esp + 0x40]
jg 0x4192e0
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x4192be
mov eax, ebx
jmp 0x4192ea
cmp edi, ebx
jl 0x4192e8
mov eax, ebx
jmp 0x4192ea
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x4192fb
mov dword [esp + 0x30], eax
jmp 0x419306
cmp edi, ebx
jl 0x419301
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00420830
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x41934d
push edi
mov ecx, esi
call fcn.00416850
push eax
push ebx
mov ecx, esi
call fcn.00416c20
cmp eax, dword [esp + 0x44]
jg 0x419345
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x41931f
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x419357
cmp edi, ebp
jl 0x419351
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x419357
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x419360
mov ecx, eax
jmp 0x419369
cmp edi, ebp
jl 0x419366
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.00416840
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.004658ad
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 0x41c4c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46c6b8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00416dc0
test eax, eax
je 0x41c5c8
lea ecx, [esp + 0xc]
call fcn.00401150
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.00416dc0
mov ecx, eax
call fcn.00420c70
test eax, eax
je 0x41c5af
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x41c5af
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41c5af
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.00401380
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x41c591
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41c5af
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x49f7e0]
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], 0x4731e8
call fcn.00401380
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x41c610
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00416dc0
test eax, eax
je 0x41c6ff
mov ecx, edi
call fcn.00416dc0
mov ecx, eax
call fcn.00420b20
test eax, eax
jne 0x41c6ff
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41c6ff
mov eax, dword [0x49f7e0]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x41c672
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.00416dc0
mov ecx, eax
call fcn.00420d50
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 0x41c6ff
cmp ebx, eax
jne 0x41c6ff
cmp dword [esp + 0x10], eax
jne 0x41c6e5
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