joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452d0e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x452d5a
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x150]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x452d5a
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x278]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
cmp dword [esi + 0x3bc], 0
je 0x452dd2
lea ebx, [esi + 0x3cc]
cmp dword [ebx], 0
je 0x452d77
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x3bc], edi
jne 0x452dcb
push edi
call fcn.00432902
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.00432dee
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x3bc], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x453098
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x3cc]
cmp dword [edi], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x4530c9
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov ebx, dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x45310d
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x150]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x45310d
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x278]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x3b8]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x453261
push eax
call fcn.00432902
mov edi, eax
test edi, edi
pop ecx
je 0x4531e0
mov eax, dword [edi + 0x14]
push 2
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x453154
push 1
push edi
push esi
call fcn.004510e2
movzx eax, word [ebp + 0xc]
movzx ebx, bx
shl ebx, 0x10
or ebx, eax
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00432dee
mov eax, dword [ebp - 4]
cmp dword [esi + 0x3b8], eax
jne 0x4531aa
mov ecx, dword [edi + 0x44]
xor eax, eax
cmp ecx, eax
je 0x45319c
cmp word [ecx], ax
je 0x45319c
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4531e0
cmp dword [edi + 0x14], eax
je 0x4531e0
mov dword [ebp - 0xc], 1
jmp 0x4531e0
mov eax, dword [edi]
push 1
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x4531c9
push 1
push edi
push esi
call fcn.004510e2
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.00432dee
mov dword [ebp - 0x10], 1
xor eax, eax
cmp dword [ebp - 0xc], eax
mov dword [esi + 0x3b8], eax
je 0x453222
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x20], 1
call dword [eax + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x453261
cmp dword [ebp - 0x10], eax
je 0x453261
mov ecx, dword [ebp - 8]
cmp ecx, eax
je 0x453261
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
add esi, 0x3b4
cmp eax, dword [esi]
jne 0x453261
and dword [esi], 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45383a
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x50fb35
call fcn.0050bbc8
sub esp, 0x7c
push ebx
push esi
push edi
lea eax, [ebp - 0x88]
push eax
mov esi, ecx
call fcn.0040177e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x408], ebx
mov dword [esi + 0x3fc], ebx
mov dword [esi + 0x3e8], 0x80090000
mov dword [esi + 0x3ec], 0x10000
call fcn.00451082
push 1
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x88]
mov dword [esi + 0x3f0], ebx
mov dword [esi + 0x3f4], ebx
mov dword [esi + 0x3f8], ebx
call fcn.004033fb
cmp byte [ebp - 0x44], bl
je 0x45391c
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x4538b6
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004087e3
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
inc eax
push eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [ebp - 0x40]
lea ecx, [ebp + 8]
push str.__errorid_d__errorrow_d__errorcolom_d_n
call fcn.00454b2c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.0045475f
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004058ad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00402b39
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 4
lea eax, [ebp - 0x88]
call fcn.004028af
push eax
mov edi, esi
call fcn.004541cc
mov ebx, eax
jmp 0x4538fa

Function at 0x4565f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x456653
cmp dword [ebp + 0xc], 1
je 0x45662c
cmp dword [ebp + 0xc], 2
je 0x45662c
push 0xd
pop eax
jmp 0x456653
test edi, edi
mov eax, dword [ebp - 4]
je 0x45664d
test eax, eax
je 0x456649
test al, 1
jne 0x456627
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x45664d
jmp 0x456627
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x456751
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x50d1b7
call fcn.0050bbc8
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, esi
call fcn.00404ec2
push edi
call fcn.00407f13
mov dword [esp], str.toolconfig.dat
push edi
call fcn.00406039
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45678d
test al, 0x10
jne 0x456795
push dword [esi]
call fcn.00425b4a
pop ecx
push str.http:__files.qxiangsoft.com_config_zip_toolconfig.dat
lea eax, [ebp - 0x10]
push eax
call fcn.00405b1d
and dword [ebp - 4], 0
xor esi, esi
push dword [edi]
push dword [ebp - 0x10]
call fcn.00406657
test eax, eax
pop ecx
pop ecx
je 0x4567c7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x4567a9
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058ad
push edi
push edi
call fcn.00456b9b
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x458a32
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x50fdb6
call fcn.0050bbc8
sub esp, 0x21c
mov eax, dword [0x55ba6c]
push ebx
push esi
push edi
mov ecx, 0x55ba6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x226]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x228], bx
call fcn.004ee5c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405d38
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405d38
push 0x2e
lea esi, [ebp - 0x10]
call fcn.004060e4
cmp eax, 0xffffffff
je 0x458ae7
mov ecx, eax
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.004061ee
mov edi, esi
mov byte [ebp - 4], 1
call fcn.00404ec2
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058ad
mov eax, dword [0x55ba6c]
mov ecx, 0x55ba6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
fld1
lea eax, [ebp - 0x10]
fstp qword [ebp - 0x20]
push eax
call fcn.00458732
test eax, eax
jne 0x458b44
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004058ad
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058ad
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x458b7f
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004058ad
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058ad
mov eax, ebx
jmp 0x458b33
push ebx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x458be7
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp - 0x14], ebx
call fcn.00406ce0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
je 0x458bdd
cmp dword [ebp - 0x14], edi
jne 0x458bdd
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x458bc5
fld qword [ebp - 0x20]
fstp qword [eax]
mov esi, dword [ebp + 0xc]
mov eax, edi
call fcn.0040882e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x458b65
mov edx, dword [ebp + 0xc]
xor eax, eax
call fcn.00406d06
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x458b65
Function at 0x45b058
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x50d925
call fcn.0050bbc8
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
fld1
fstp qword [esi + 0x10]
mov dword [esi], vtable.CBkPngSkin.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov eax, vtable.CBkBitmap.0
mov dword [esi + 0x48], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov byte [ebp - 4], 2
mov dword [esi + 0x74], edi
call fcn.00461f56
lea ecx, [esi + 0x7c]
mov dword [ecx], eax
mov byte [eax + 0x15], 1
mov eax, dword [ecx]
mov dword [eax + 4], eax
mov eax, dword [ecx]
mov dword [eax], eax
mov ecx, dword [ecx]
mov dword [ecx + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x80], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x45ed4c
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x45edc3
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x45edc3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x14]
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x541b18]
fcomp qword [0x541b10]
fnstsw ax
test ah, 1
jne 0x45edc3
inc esi
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x45f13d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 0xa8c], 0
jne 0x45f179
push esi
lea esi, [ebp - 4]
call fcn.0045f181
push dword [eax]
push 2
push 0x53d290
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0xa8c], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004058ad
pop esi
mov eax, dword [edi + 0xa8c]
leave
ret
Function at 0x45f4b4
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ecx
push esi
mov esi, eax
xor eax, eax
cmp dword [esi + 0x924], 1
push edi
sete al
mov edi, eax
call fcn.00407e3a
cmp eax, 6
jg 0x45f4f6
test edi, edi
jne 0x45f51b
push 2
push 2
push 0x540ed8
push dword [esi + 0x920]
push str._rN_e
push dword [esi + 4]
call fcn.0044f93d
add esp, 0x18
jmp 0x45f51b
push esi
call fcn.0045f58b
test eax, eax
jne 0x45f51b
call fcn.0045f717
test eax, eax
je 0x45f51b
mov edi, esi
call fcn.0045f7a0
test eax, eax
jne 0x45f51b
mov ecx, esi
call fcn.00450498
call fcn.0045670f
mov esi, eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45f53b
test al, 0x10
jne 0x45f53b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ecx
ret

Function at 0x45f58b
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x5102fb
call fcn.0050bbc8
sub esp, 0xc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
mov eax, dword [0x55ba6c]
mov edi, 0x55ba6c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0045f2ab
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x14]
push dword [0x55ca30]
call fcn.00406502
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004058ad
call fcn.00467142
lea esi, [ebp - 0x18]
call fcn.0046718d
mov eax, dword [eax]
push 1
push eax
lea esi, [ebp - 0x10]
call fcn.00407d46
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.004058ad
test bl, bl
jne 0x45f6ea
mov eax, dword [0x55ba6c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push str.installpath
mov ebx, esi
mov byte [ebp - 4], 3
call fcn.00405dd0
test eax, eax
mov ebx, dword [ebp - 0x18]
je 0x45f6e2
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f6e2
mov esi, dword [ebp + 8]
lea edi, [esi + 0xa84]
lea eax, [ebp - 0x18]
call fcn.00404ec2
xor eax, eax
inc eax
cmp dword [esi + 0x924], eax
mov dword [esi + 0x928], eax
je 0x45f6e2
mov eax, dword [esi + 0x920]
mov edi, dword [ebp - 0x14]
xor ecx, ecx
push ecx
push 3
push ecx
push eax
push edi
push ecx
call fcn.0044f93d
add esp, 0x18
test al, 1
je 0x45f6d5
call fcn.00467c24
push dword [esi + 0x928]
push 2
call fcn.00467c8a
lea eax, [ebx - 0x10]
call fcn.004058ad
lea eax, [edi - 0x10]
call fcn.004058ad
cmp dword [ebp - 0x10], 0
je 0x45f6d0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x45f706
lea eax, [ebx - 0x10]
call fcn.004058ad
lea eax, [edi - 0x10]
jmp 0x45f6f0
lea eax, [ebx - 0x10]
call fcn.004058ad
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058ad
cmp dword [ebp - 0x10], 0
je 0x45f704
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4605d9
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, eax
push edi
lea edi, [esi + 0x24]
push 0x67
mov eax, edi
call fcn.00461322
test eax, eax
je 0x4605fc
push 0x67
mov eax, edi
call fcn.0045092a
mov dword [0x5566dc], eax
xor ebx, ebx
push ebx
push 0x1e
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x64
mov eax, edi
call fcn.004509a2
push 1
push 0xc8
mov eax, edi
call fcn.004509a2
push ebx
call fcn.00460c93
push ebx
push ebx
push esi
push 0x4605c0
push ebx
push ebx
call fcn.004f1aa7
add esp, 0x18
pop edi
mov dword [esi + 0x91c], eax
pop esi
pop ebx
ret

Function at 0x46091a
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [edi]
lea esi, [ebp - 4]
call fcn.00428e57
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.004058ad
mov eax, dword [edi]
push 3
pop esi
cmp dword [eax - 0xc], esi
jl 0x4609db
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46095d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 1
je 0x4609db
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.004061ee
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, esi
mov eax, dword [ebp - 4]
setne bl
add eax, 0xfffffff0
call fcn.004058ad
test bl, bl
je 0x46098a
push 2
pop eax
jmp 0x4609de
push edi
call fcn.0046088e
test eax, eax
pop ecx
je 0x460999
mov eax, esi
jmp 0x4609de
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.004061ee
push dword [eax]
call fcn.0045ed4c
mov ebx, eax
mov eax, dword [ebp - 4]
neg ebx
sbb bl, bl
pop ecx
add eax, 0xfffffff0
inc bl
call fcn.004058ad
test bl, bl
je 0x4609c8
push 4
jmp 0x460987
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x96
jle 0x4609d7
push 5
jmp 0x460987
xor eax, eax
jmp 0x4609de
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x4609e2
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x50def5
call fcn.0050bbc8
sub esp, 0x44c
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x452]
push esi
push eax
mov word [ebp - 0x454], si
call fcn.004ee5c0
add esp, 0xc
lea eax, [ebp - 0x454]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1c]
push eax
push 0x11
push dword [ebx + 4]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [0x55ba6c]
mov edi, 0x55ba6c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
push 0x105
lea esi, [ebp - 0x18]
call fcn.004059de
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax - 8], ecx
jge 0x460a6f
push 0x80070057
call fcn.004059c6
mov dword [eax - 0xc], ecx
mov word [eax], cx
push 0x540d78
lea eax, [ebp - 0x18]
push eax
call fcn.00405d38
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x3c], eax
call fcn.00429732
mov dword [ebp - 0x38], eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], 0x540d84
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x460b7c
push 0x206
lea eax, [ebp - 0x24a]
push esi
push eax
mov word [ebp - 0x24c], si
call fcn.004ee5c0
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x55ba6c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24c]
push eax
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00428e57
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.0040658b
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004058ad
mov eax, dword [ebx + 0x92c]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.0040658b
mov esi, dword [ebp - 0x14]
push esi
push dword [ebx + 0xa5c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [ebp - 0x14]
call fcn.0046091a
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.004058ad
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004058ad
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x460f00
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x50d1b7
call fcn.0050bbc8
push ecx
push ecx
push esi
push edi
call fcn.00467142
lea esi, [ebp - 0x10]
call fcn.004674b0
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
add esi, 0xa84
mov edi, esi
call fcn.00404ec2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058ad
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x460f82
push 0
push 0x26
push 0x104
call fcn.004059de
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x460f6c
push eax
call fcn.004eef34
pop ecx
mov edx, esi
call fcn.004059a5
test edi, edi
jne 0x460f82
push 0x540e2c
push esi
call fcn.00405d38
mov ecx, esi
call fcn.0040901f
push 0x53b6ec
push esi
call fcn.00406039
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x92c]
push dword [eax - 0xc]
push eax
mov eax, esi
call fcn.0040658b
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4

Function at 0x460fb8
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, eax
and dword [esi + 0x520], 0
cmp dword [esp + 8], 0x61
je 0x460fd0
cmp dword [esp + 8], 0x41
jne 0x461004
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x461004
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
add esi, 0xa5c
push dword [esi]
call edi
push 0
push 0
push 0xb7
push dword [esi]
call edi
pop edi
pop esi
ret 4

Function at 0x461008
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x50d1b7
call fcn.0050bbc8
push ecx
mov eax, dword [0x55ba6c]
push esi
push edi
mov ecx, 0x55ba6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x105
lea esi, [ebp - 0x10]
call fcn.004059de
push 0x104
push eax
push dword [ebx + 0xa5c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x461056
xor eax, eax
jmp 0x46105d
push esi
call fcn.004eef34
pop ecx
lea edx, [ebp - 0x10]
call fcn.004059a5
lea edi, [ebp - 0x10]
call fcn.0046091a
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.004058ad
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret