joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x52a994
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403fdd
push esi
mov esi, dword [esp + 0x118]
push 0x52a984
push esi
call fcn.004a1b19
add esp, 8
test eax, eax
je 0x403fd1
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push esi
push ecx
mov byte [esp + 0x28], 0
mov dword [esp + 0x20], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
cmp dword [esp + 0xc], 1
je 0x403f7d
mov byte [esp + 0x10], 0
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403f84
sub eax, edx
cmp byte [esp + eax + 0xf], 0x5c
jne 0x403fad
lea eax, [esp + 0x10]
lea edx, [eax + 1]
jmp 0x403fa0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403fa0
sub eax, edx
mov byte [esp + eax + 0xf], cl
lea edx, [esp + 0x10]
push 0x52a984
push edx
call fcn.004a1b19
add esp, 8
test eax, eax
je 0x403fd1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.rgss102j.dll_RGSSAddRTPPath]
add esp, 4
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop esi
add esp, 0x110
ret 4

Function at 0x4066c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x800
push ebx
push ebp
push esi
lea ebp, [ecx + 0x1fc8]
push edi
mov ebx, 1
mov esi, ebp
mov ecx, dword [esi]
mov edx, dword [ecx - 0xc]
test edx, edx
mov edi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x406728
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x406708
mov eax, dword [ecx - 8]
test eax, eax
jl 0x4067bc
mov dword [ecx - 0xc], 0
mov eax, dword [esi]
mov byte [eax], 0
jmp 0x406728
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40671c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
inc ebx
add esi, 4
cmp ebx, 9
jle 0x4066d7
mov ebx, dword [sym.imp.user32.dll_wsprintfA]
mov edi, ebp
mov ebp, dword [esp + 0x814]
mov esi, 1
jmp 0x406750
push esi
lea ecx, [esp + 0x414]
push 0x52bb40
push ecx
call ebx
add esp, 0xc
push ebp
push 0x400
lea edx, [esp + 0x18]
push edx
push 0x52a984
lea eax, [esp + 0x420]
push eax
push 0x52bb38
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x10]
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406790
sub eax, ecx
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00401ff0
inc esi
add edi, 4
cmp esi, 9
jle 0x406750
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret 4
push 0x80070057
call fcn.00401180
int3
Function at 0x4085e0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push esi
push eax
mov esi, ecx
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x1c], eax
call dword [sym.imp.kernel32.dll_lstrlen]
inc eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 4], eax
xor eax, eax
cmp esi, eax
jne 0x408616
mov dword [esp + 8], eax
jmp 0x40861d
mov ecx, dword [esi + 0x1c]
mov dword [esp + 8], ecx
lea edx, [esp + 4]
push edx
push 0x408590
mov dword [esp + 0x14], eax
call dword [sym.imp.user32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
push eax
call fcn.004fe74c
pop esi
add esp, 0x18
ret 4
Function at 0x40e1b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x94]
test eax, eax
push edi
mov dword [esp + 0x10], 1
mov dword [esi + 0xa4], ecx
jl 0x40e2d0
cmp eax, dword [esi + 0x5c]
jge 0x40e2d0
mov edx, dword [esi + 0x58]
imul eax, eax, 0x38
add eax, edx
mov dword [esi + 0x98], 0xffffffff
mov edi, dword [eax + 8]
dec edi
mov dword [esp + 0x14], eax
js 0x40e2b9
mov ebx, edi
shl ebx, 5
test edi, edi
jl 0x40e2d0
cmp edi, dword [eax + 8]
jge 0x40e2d0
mov edx, dword [eax + 4]
lea ecx, [edx + ebx]
cmp dword [ecx], 0xffffffff
je 0x40e2ad
fild dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
lea eax, [esp + 0x18]
push eax
fmul qword [0x52f9a0]
mov eax, dword [ecx + 8]
push edx
sub esp, 8
fstp qword [esp]
push 0x60
cdq
push 0x60
sub eax, edx
push 0xc0
sar eax, 1
push 0xc0
push eax
mov eax, dword [ecx + 4]
cdq
sub eax, edx
sar eax, 1
push eax
mov ecx, esi
call fcn.0040daa0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
je 0x40e2a9
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esi + 0x98], edi
je 0x40e2b9
push 0x11
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jge 0x40e2b9
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
dec edi
sub ebx, 0x20
test edi, edi
jge 0x40e21c
mov eax, dword [esi + 0x1c]
push 1
push 0
push eax
call dword [sym.imp.user32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004f797e
int3
Function at 0x413ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51b850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x58]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x52fea0
push ecx
mov dword [esp + 0x2c], 0
call fcn.004024a0
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.rgss102j.dll_RGSSGetInt]
push edx
call ebp
mov ebx, eax
mov eax, dword [esi + 0x58]
push edi
push eax
lea ecx, [esp + 0x2c]
push 0x52fe74
push ecx
call fcn.004024a0
mov edx, dword [esp + 0x34]
push edx
call ebp
add esp, 0x28
mov ebp, eax
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
push ebx
lea eax, [esp + 0x28]
push 0x52fe6c
push eax
mov byte [esp + 0x28], 1
call fcn.004024a0
mov ecx, dword [esp + 0x30]
add esp, 0xc
push 0
push 0
push 0
push 0
push ecx
push edi
push 1
mov ecx, esi
call fcn.004f8624
push ebp
lea edx, [esp + 0x14]
push 0x52fe54
push edx
call fcn.004024a0
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.rgss102j.dll_RGSSGetStringACP]
push eax
push ebp
lea eax, [esp + 0x3c]
push 0x52e53c
push eax
call fcn.004024a0
mov ebp, dword [esp + 0x44]
add esp, 0x20
push ebp
push 1
push edi
mov ecx, esi
call fcn.004f8286
lea eax, [ebp - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413fdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x414003
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x423b10
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
push esi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0xa8]
push 0x130b
push eax
call ebx
push eax
mov ecx, esi
call fcn.00423090
test eax, eax
je 0x423b6c
mov ecx, dword [esi + 0xa8]
push 0
push 0
push 0x130b
push ecx
call ebx
cmp eax, 0xc
je 0x423b71
push 0x5340e0
mov ecx, 0x589134
mov dword [esi + 0x118], 1
call fcn.004095a0
test eax, eax
jne 0x423b71
pop esi
xor eax, eax
pop ebx
ret
push edi
xor eax, eax
push eax
mov ecx, 0xd
lea edi, [esi + 0xe8]
rep stosd dword es:[edi], eax
push eax
mov ecx, 0xd
lea edi, [esi + 0x11c]
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0xa8]
push 0x130b
push edx
call ebx
push 0
push 0x3e9
mov ecx, esi
mov dword [esi + eax*4 + 0x11c], 1
call fcn.004fc559
mov ecx, eax
call fcn.004fc7a9
call fcn.005157bf
mov ecx, dword [eax + 4]
call fcn.00401780
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x5c]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x463cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x524500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x10e0]
mov dword [esp + 0x1c], 0
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ebx
push eax
push esi
lea ecx, [esp + 0x1c]
push 0x54eaa4
push ecx
mov byte [esp + 0x30], 1
call fcn.004024a0
mov ebp, dword [esp + 0x24]
add esp, 0x14
push ebp
mov ecx, 0x589134
call fcn.004095a0
lea edx, [esp + 0x24]
push esi
push edx
call fcn.004601d0
mov eax, dword [eax]
add esp, 8
push eax
mov eax, dword [edi + 0x10a0]
push esi
push 0x181
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463da0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc esi
push esi
lea ecx, [edi + 0x1084]
call fcn.00465500
lea eax, [ebp - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463dcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x463df2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4659b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
push 0
add eax, 0x10
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x1c]
push 0x188
push eax
call ebx
push 0x10
mov edi, eax
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jge 0x4659f7
mov eax, dword [esi + 0x58]
test eax, eax
jge 0x4659fa
mov dword [esi + 0x58], edi
mov eax, dword [esi + 0x58]
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x465a0d
mov dword [esp + 0x10], eax
mov ebp, edi
jg 0x465a0f
mov ebp, eax
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x18b
push ecx
call ebx
dec eax
cmp ebp, eax
jne 0x465a41
cmp edi, ebp
jl 0x465a2d
cmp dword [esp + 0x10], ebp
jge 0x465a41
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x18b
push edx
call ebx
mov ebp, eax
sub ebp, 2
mov eax, dword [esi + 0x1c]
xor edi, edi
push edi
push edi
push 0x18b
push eax
call ebx
test eax, eax
jle 0x465ab4
cmp edi, dword [esi + 0x5c]
jl 0x465a65
cmp edi, dword [esi + 0x60]
jg 0x465a65
mov ecx, 1
jmp 0x465a67
xor ecx, ecx
cmp edi, dword [esp + 0x10]
jl 0x465a78
cmp edi, ebp
jg 0x465a78
mov eax, 1
jmp 0x465a7a
xor eax, eax
cmp ecx, eax
je 0x465aa0
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edi
push 0x198
push edx
call ebx
mov ecx, dword [esi + 0x1c]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.user32.dll_InvalidateRect]
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x18b
push edx
inc edi
call ebx
cmp edi, eax
jl 0x465a54
mov eax, dword [esp + 0x10]
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esi + 0x60], ebp
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x465ae0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
add esp, 0x18
ret
Function at 0x465c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5246e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
mov ebp, dword [sym.imp.user32.dll_SendMessageA]
push 0
push 0
push 0x188
push eax
mov dword [esp + 0x30], 0
call ebp
mov esi, eax
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push eax
push esi
lea ecx, [esp + 0x18]
push 0x54f2c4
push ecx
mov byte [esp + 0x30], 1
call fcn.004024a0
mov ebx, dword [esp + 0x20]
add esp, 0x10
push ebx
mov ecx, 0x589134
call fcn.004095a0
mov edx, dword [edi + 0x1c]
push 0
push esi
push 0x182
push edx
call ebp
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004601d0
mov eax, dword [eax]
mov ecx, dword [edi + 0x1c]
add esp, 8
push eax
push esi
push 0x181
push ecx
call ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465ce5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
mov ecx, edi
call fcn.00465500
lea eax, [ebx - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x465d10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465d36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x46f2d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
jne 0x46f2dd
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x30]
mov edi, eax
lea ecx, [edi + 4]
push ecx
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
push 0
mov ebp, eax
push 0
mov dword [ebp], edi
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi]
push edi
add ebp, 4
push ebp
mov ecx, esi
call dword [eax + 0x34]
push ebx
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_EmptyClipboard]
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call dword [sym.imp.user32.dll_SetClipboardData]
mov esi, eax
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x46f350
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x46f36c
push 0
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
jne 0x46f370
xor eax, eax
pop esi
ret
push edi
push esi
call dword [sym.imp.user32.dll_GetClipboardData]
mov edi, eax
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
push ecx
add eax, 4
push eax
mov ecx, esi
call dword [edx + 0x38]
mov edx, dword [esi]
push 0
push 0
push 0
mov ecx, esi
call dword [edx + 0x28]
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
mov eax, 1
pop esi
ret

Function at 0x46f3c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
push 0
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
jne 0x46f3da
pop edi
pop esi
ret
inc esi
push esi
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [edi]
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x46f3f1
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.user32.dll_SetClipboardData]
mov esi, eax
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
ret

Function at 0x46f420
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 1
call dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x46f438
push 0
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
jne 0x46f43b
xor eax, eax
ret
push esi
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [esp + 8]
push eax
call fcn.00402680
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, 1
pop esi
ret
Function at 0x46f470
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push esi
lea eax, [esp + 8]
push eax
push 0x104
mov dword [esp + 0xc], 0
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea ecx, [esp + 0x10c]
push ecx
push 0
push 0x554778
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
mov esi, dword [esp + 0x214]
mov ecx, esi
jne 0x46f4ca
push 0x52a984
call fcn.00402700
mov eax, esi
pop esi
add esp, 0x20c
ret
lea eax, [esp + 0x10c]
push eax
call fcn.00402700
mov eax, esi
pop esi
add esp, 0x20c
ret
Function at 0x46f730
Capabilities:
Delete file
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x525638
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, dword [esp + 0x40]
push esi
call dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x46f768
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
lea eax, [esp + 4]
push ebx
push eax
call fcn.0046f470
add esp, 4
mov eax, dword [esp + 8]
mov ecx, dword [eax - 0xc]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
jne 0x46f7bc
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f7a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
lea ecx, [esp + 0x10]
call fcn.004b7640
mov eax, dword [esp + 8]
push 6
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.004b7710
cmp dword [esp + 0x14], ebx
jne 0x46f7f3
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.004b7660
mov eax, dword [esp + 8]
jmp 0x46f787
push ebx
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
jne 0x46f814
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.004b7660
mov eax, dword [esp + 8]
jmp 0x46f787
push esi
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [eax]
push ecx
add eax, 4
push eax
lea ecx, [esp + 0x18]
call fcn.004b7550
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
lea ecx, [esp + 0x10]
call fcn.004b74e0
call dword [sym.imp.user32.dll_CloseClipboard]
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
push eax
push 0x52fc50
mov byte [esp + 0x44], 2
call dword [sym.imp.rgss102j.dll_RGSSSetStringACP]
mov ecx, dword [esp + 0x50]
push ecx
lea edx, [esp + 0x18]
push 0x5547ac
push edx
call fcn.004024a0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.rgss102j.dll_RGSSEval]
add esp, 0x18
test eax, eax
je 0x46f8ca
lea ecx, [esp + 0xc]
call fcn.00401a60
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.004b7660
lea ecx, [esp + 8]
call fcn.00401a60
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
call fcn.00401a60
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.004b7660
lea ecx, [esp + 8]
call fcn.00401a60
mov ecx, dword [esp + 0x34]
pop ebx
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x472430
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
push edi
mov edi, dword [esp + 0x214]
push 0x52a984
push edi
call fcn.004a1b19
add esp, 8
test eax, eax
jne 0x47245a
xor eax, eax
pop edi
add esp, 0x20c
ret
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472460
sub eax, edx
cmp eax, 2
jne 0x472474
cmp byte [edi + 1], 0x3a
je 0x472450
push ebx
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryA]
push 0
push edi
call ebx
test eax, eax
je 0x472492
pop ebx
mov eax, 1
pop edi
add esp, 0x20c
ret
push esi
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4724b1
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x20c
ret
call esi
cmp eax, 3
je 0x4724c4
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x20c
ret
push 0
push 0
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.004a2901
push 0
push 0
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004a45fb
lea eax, [esp + 0x3c]
add esp, 0x28
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472500
sub eax, edx
mov dword [esp + 0x10], eax
je 0x47253d
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472516
sub eax, edx
cmp byte [esp + eax + 0x13], 0x5c
jne 0x47253d
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472530
sub eax, edx
mov byte [esp + eax + 0x13], cl
lea edx, [esp + 0x14]
push edx
call fcn.00472430
add esp, 4
test eax, eax
je 0x4724b8
push 0
push edi
call ebx
neg eax
pop esi
sbb eax, eax
pop ebx
neg eax
pop edi
add esp, 0x20c
ret

Function at 0x472570
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ecx, 0x82
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x230]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
push 0x104
push ecx
lea edx, [esp + 0x30]
push edx
mov word [esp + 0x30], ax
call fcn.004a35ff
mov eax, dword [ebp + 0xc]
push 0x104
push eax
lea ecx, [esp + 0x244]
push ecx
call fcn.004a35ff
add esp, 0x18
lea ecx, [esp + 8]
lea edx, [esp + 0x28]
lea eax, [esp + 0x230]
push ecx
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], 0x14
call dword [sym.imp.shell32.dll_SHFileOperation]
neg eax
sbb eax, eax
inc eax
pop edi
mov esp, ebp
pop ebp
ret