joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45154c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4516f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4516d8
mov dl, 1
mov eax, dword [0x41572c]
call fcn.00403480
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042a8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4516c7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043f48c
test al, al
je 0x4516ba
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x451708
lea eax, [ebp - 0x254]
call fcn.00409204
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4516ba
xor eax, eax
push ebp
push 0x4516b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x451740
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45169c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404518
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45169c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4516ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4515bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419b00
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4516fe
lea eax, [ebp - 0x260]
call fcn.004042a8
ret

Function at 0x452040
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x461bb8]
cmp byte [eax + 0xa5], 0
jne 0x4520b1
cmp dword [0x461bd0], 0
jne 0x452072
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451ffc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x461bd0], eax
cmp dword [0x461bcc], 0
jne 0x45208d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x461bcc], eax
cmp dword [0x461bd4], 0
jne 0x4520b1
push esp
push 0
push 0
push 0x451fa0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x461bd4], eax
pop edx
ret
Function at 0x452744
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x461bb8]
cmp dword [eax + 0x30], 0
je 0x4527ee
cmp dword [ebx + 0x94], 0
jne 0x4527e8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4526d4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4527e8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4527ae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4527e8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417780
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4527bd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45334c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x453381
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404398
jmp 0x45338e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4544a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4544e1
mov eax, esi
call fcn.0043aab8
test al, al
je 0x4544e1
mov eax, dword [ebx + 0x84]
call fcn.0043a7b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4544e1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a7b4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4551c4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4148c4]
call fcn.00404c18
xor eax, eax
push ebp
push 0x455308
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45fdbc], 0
jne 0x455217
mov ecx, dword [0x460460]
mov dl, 1
mov eax, dword [0x40744c]
call fcn.0040bc5c
call fcn.00403c38
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402ec0
mov eax, ebx
call fcn.00404ae4
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x455318
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405c30
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404af4
test eax, eax
jle 0x4552af
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4552a8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404530
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404518
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040825c
test eax, eax
jne 0x4552a8
mov ebx, 0x15
jmp 0x4552b4
mov ebx, 0x10
jmp 0x4552b4
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x45fdbc]
call fcn.0045511c
mov eax, dword [ebp - 8]
call fcn.0045511c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405c48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45530f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004042cc
lea eax, [ebp - 0x10]
mov edx, dword [0x4148c4]
call fcn.00404cdc
ret
Function at 0x401794
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc88]
sub esp, 0xd08
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0xc84], eax
push ebx
mov ebx, dword [ebp + 0xc90]
push esi
push edi
mov edi, dword [ebp + 0xc94]
xor esi, esi
cmp edi, str._alone
je 0x4017e8
cmp dword [0x48956c], esi
jne 0x4017d8
cmp dword [0x489574], esi
je 0x4017e8
push 0x489544
push edi
call fcn.004018c6
jmp 0x4018ac
xor eax, eax
mov word [ebp - 0x4e], ax
push 0x258
lea eax, [ebp + 0x7d4]
push eax
push dword [0x48ab14]
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x7d4]
cmp edi, esi
je 0x40183c
push edi
push eax
lea eax, [ebp - 0x2c]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40184f
push eax
lea eax, [ebp - 0x2c]
push 0x474250
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp + 0x7d4]
push 0x5c
push eax
call fcn.00468940
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x7d4]
push eax
push esi
push 0x4000000
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40189d
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
jmp 0x4018ac
push esi
lea eax, [ebp + 0x7d4]
push eax
push ebx
call dword [sym.imp.PPLIB32W.DLL__PPErrorBox_12]
mov ecx, dword [ebp + 0xc84]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
add ebp, 0xc88
leave
ret 8
Function at 0x402004
Capabilities:
Create thread
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
xor esi, esi
cmp dword [ebp - 8], 0x1f400000
jae 0x402039
push 0x473b00
push 3
push esi
push esi
call dword [sym.imp.PPLIB32W.DLL_XMessage]
add esp, 0x10
cmp dword [0x487010], esi
jne 0x40206b
push esi
call dword [sym.imp.PPLIB32W.DLL__PPxRegisterThread_4]
test eax, eax
je 0x402059
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401af8
jmp 0x402087
push str.RunNewPPc
push 0xbfff
call dword [sym.imp.PPLIB32W.DLL__PPxCommonExtCommand_8]
jmp 0x402087
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push fcn.00405056
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret 8

Function at 0x402124
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esp + 0x10], ebx
jne 0x402152
cmp dword [esi + 0x24], ebx
jg 0x40214b
push ebx
push dword [esi + 0x88]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4021ac
xor eax, eax
jmp 0x40220a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push dword [esi + 0x88]
call edi
cmp eax, 0x102
jne 0x4021ab
movzx eax, word [esi + 0x3c]
push eax
push str.FixClosedPPc_timeout_:__c
push 0x1a
push ebx
push dword [esi + 0xc]
call dword [sym.imp.PPLIB32W.DLL_XMessage]
add esp, 0x14
push dword [esi + 0x98]
push 0xbff6
call dword [sym.imp.PPLIB32W.DLL__PPxCommonExtCommand_8]
push ebx
push dword [esi + 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x64
push dword [esi + 0x88]
call edi
pop edi
push dword [esi + 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esi + 0x1d40]
push eax
call fcn.00454daf
lea eax, [esi + 0x1d34]
push eax
call fcn.00454daf
lea eax, [esi + 0x2260]
cmp dword [eax], ebx
je 0x4021ee
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.PPLIB32W.DLL__GetColumnExtMenu_16]
cmp dword [esi + 0x24], ebx
mov dword [esi], 0x40210c
mov dword [esi + 0xc], 0xfffffffe
jg 0x402207
mov ecx, esi
call fcn.00424f83
xor eax, eax
inc eax
pop esi
pop ebx
ret 8
Function at 0x402a10
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0xc]
mov dword [ebp - 0x30], 8
push 0x120b
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x402b9d
push esi
mov esi, dword [ebp - 0x18]
test esi, esi
jl 0x402b9c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2280]
push ebx
mov ebx, dword [eax + 0x3b9c]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 4]
mov dword [ebp + 0x10], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 0x10]
cdq
idiv ecx
test eax, eax
jne 0x402a79
inc eax
mov edx, 0xff
cmp eax, edx
cmovg eax, edx
shr esi, 0x10
add esi, ebx
mov bl, byte [esi]
movzx ecx, bl
cmp ecx, 0x2c
jg 0x402b16
je 0x402b0c
cmp ecx, 8
jg 0x402ae2
je 0x402ad9
test ecx, ecx
jle 0x402b82
cmp ecx, 2
jle 0x402af9
cmp ecx, 3
jle 0x402b82
cmp ecx, 5
jle 0x402b36
cmp ecx, 7
jne 0x402b82
cmp eax, 0x15
jle 0x402acb
push 0x15
pop eax
movzx ecx, byte [esi + 1]
mov byte [esi + 1], al
sub eax, ecx
jmp 0x402b7f
cmp eax, 0xa
jle 0x402b0c
push 0xa
jmp 0x402b13
cmp ecx, 0xb
jl 0x402b82
cmp ecx, 0xc
jle 0x402b0c
cmp ecx, 0x25
jne 0x402b82
movzx ecx, byte [esi + 1]
cmp bl, 0x25
jne 0x402acf
cmp eax, 1
jge 0x402acf
xor eax, eax
inc eax
jmp 0x402acf
cmp eax, 4
jge 0x402af9
push 4
pop eax
jmp 0x402af9
cmp ecx, 0x2e
je 0x402b58
cmp ecx, 0x33
jle 0x402b82
cmp ecx, 0x35
jle 0x402b36
cmp ecx, 0x36
je 0x402acb
cmp ecx, 0x3d
je 0x402af9
jle 0x402b82
cmp ecx, 0x3f
jg 0x402b82
movzx ecx, byte [esi + 2]
movzx edi, byte [esi + 1]
cmp ecx, edx
jne 0x402b44
xor ecx, ecx
cmp eax, ecx
jg 0x402b4b
lea eax, [ecx + 1]
mov dl, al
sub dl, cl
sub eax, ecx
mov byte [esi + 1], dl
sub eax, edi
jmp 0x402b7f
cmp dword [ebp + 0x10], 5
jl 0x402b82
cmp dword [ebp + 0x10], 0x81
jg 0x402b82
mov eax, dword [edi + 0x14]
mov al, byte [eax + 4]
movzx ecx, byte [esi + 1]
dec al
mov byte [esi + 1], al
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 4]
sub eax, ecx
dec eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add dword [eax + 0x3b88], ecx
push 0
push 0
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
pop esi
pop edi
leave
ret 0xc

Function at 0x402dfd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0x2a8
lea ecx, [ebp - 0x554]
push ecx
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x554]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046890b
leave
ret 8
Function at 0x402ff2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
lea ebx, [esi + 0x381c]
push dword [ebp + 0xc]
push dword [esi + 0xc]
push ebx
call fcn.0045616c
mov edi, eax
test edi, edi
je 0x4031a0
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x40304d
lea eax, [edi + edi]
push eax
push dword [esi + 0x5468]
call fcn.004221e3
push 1
push 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4031a0
test byte [ebp + 0xc], 8
je 0x40309f
cmp dword [esi + 0x3858], 0
je 0x403062
push ebx
call fcn.00455f4c
xor eax, eax
test byte [ebp + 0xc], 4
je 0x403087
test edi, edi
setle al
lea eax, [eax + eax + 0xd6b]
push eax
push 0
push dword [esi + 0xc]
call dword [sym.imp.PPLIB32W.DLL__PPxCommonCommand_12]
jmp 0x4031a0
test edi, edi
setle al
dec eax
and eax, 0x14
add eax, 0xfffffff6
push eax
push esi
call fcn.0040e741
jmp 0x4031a0
cmp dword [esi + 0x2274], 0
je 0x403134
mov ecx, dword [ebp + 0x10]
movsx eax, word [ebp + 0x10]
shr ecx, 0x10
movsx ecx, cx
push ecx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
test byte [ebp + 0xc], 2
mov ebx, eax
je 0x403102
cmp dword [esi + 0x3858], 0
je 0x4030de
lea eax, [esi + 0x381c]
push eax
call fcn.00455f4c
movzx eax, di
push ebx
shl eax, 0x10
or eax, 0xba4d
push eax
push dword [0x48b024]
push dword [esi + 0x4a14]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4031a0
cmp dword [0x488430], 0
jne 0x403134
cmp ebx, dword [esi + 0xc]
je 0x403134
push 0xfffffffffffffff4
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, 0x1f80
jne 0x403134
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x20a
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4031a0
cmp edi, 0xfffffffd
push 3
pop ecx
jle 0x403140
cmp edi, ecx
jl 0x403149
mov eax, edi
cdq
mov edi, ecx
idiv edi
mov edi, eax
cmp dword [esi + 0x279c], 0
je 0x403171
test byte [ebp + 0xc], 0x10
jne 0x403189
push 4
lea eax, [ebp + 0xc]
push eax
push 0x47449c
mov dword [ebp + 0xc], ecx
call dword [sym.imp.PPLIB32W.DLL__GetCustData_12]
mov eax, dword [ebp + 0xc]
jmp 0x40318f
cmp dword [0x4870fc], 2
je 0x403180
test byte [ebp + 0xc], 0x10
je 0x403189
mov eax, dword [esi + 0x27ac]
imul edi, eax
mov eax, dword [esi + 0x27b0]
imul eax, edi
push 0x48a980
neg eax
push eax
push esi
call fcn.00407dcb
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404459
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x53c]
sub esp, 0x5bc
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x538], eax
mov eax, dword [ebp + 0x548]
push ebx
push esi
mov esi, dword [ebp + 0x544]
xor ebx, ebx
cmp dword [esi + 0x1d54], ebx
mov dword [ebp - 0x80], eax
jle 0x40454c
mov eax, dword [esi + 0x1d40]
mov edx, dword [esi + 0x1d34]
mov dword [ebp - 0x7c], eax
push edi
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x80]
imul eax, eax, 0x278
lea eax, [eax + edx + 0x50]
mov di, word [eax]
cmp di, word [ecx]
jne 0x4044db
test di, di
je 0x4044d7
mov di, word [eax + 2]
cmp di, word [ecx + 2]
jne 0x4044db
add eax, 4
add ecx, 4
test di, di
jne 0x4044b5
xor eax, eax
jmp 0x4044e0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4044f3
add dword [ebp - 0x7c], 4
inc ebx
cmp ebx, dword [esi + 0x1d54]
jl 0x4044a3
jmp 0x40454b
mov ecx, dword [esi + 0x1d40]
push dword [ebp - 0x80]
mov eax, ebx
shl eax, 2
mov ecx, dword [ecx + eax]
imul ecx, ecx, 0x278
mov dword [ecx + edx + 0x1c], 0xfffffffd
mov ecx, dword [esi + 0x1d40]
mov eax, dword [eax + ecx]
mov ecx, dword [esi + 0x1d34]
imul eax, eax, 0x278
and dword [eax + ecx + 0x20], 0
lea eax, [ebp - 0x78]
push str.Icon_broken_:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
xor edx, edx
mov ecx, esi
call fcn.00427caa
pop edi
lea eax, [ebp - 0x7c]
push eax
xor eax, eax
push eax
push esi
push 0x43dbfc
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 0x538]
mov dword [esi + 0x88], eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
add ebp, 0x53c
leave
ret 8

Function at 0x404bee
Capabilities:
Write clipboard data

Disassembly:
push ebp
lea ebp, [esp - 0x464]
sub esp, 0x4e4
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp + 0x460], eax
mov eax, dword [0x4873a0]
push esi
mov esi, dword [ebp + 0x46c]
cmp eax, 0xffffffff
jne 0x404c36
push str.GetGUIThreadInfo
push 0x473a68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4873a0], eax
test eax, eax
je 0x404ca4
lea eax, [ebp - 0x80]
push eax
push 0
mov dword [ebp - 0x80], 0x30
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [0x4873a0]
test eax, eax
je 0x404ca4
mov eax, dword [ebp - 0x74]
push 0x258
lea ecx, [ebp - 0x50]
test eax, eax
cmove eax, dword [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x404ca4
lea eax, [ebp - 0x50]
push 0x4745e0
push eax
call fcn.00468b65
pop ecx
pop ecx
test eax, eax
je 0x404cb6
lea eax, [ebp - 0x50]
push str..EDIT.
push eax
call fcn.0046896c
pop ecx
pop ecx
test eax, eax
jne 0x404cb6
push dword [esi + 0x49f8]
push dword [0x48b04c]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [ebp + 0x460]
xor ecx, ebp
pop esi
call fcn.0046890b
add ebp, 0x464
leave
ret 4
Function at 0x407345
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.PPLIB32W.DLL__GetFileAttributesL_4]
cmp eax, 0xffffffff
jne 0x4073e3
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x40738c
cmp edi, 3
je 0x40738c
cmp edi, 0x35
je 0x40738c
cmp edi, 0x10b
jne 0x4073de
lea edx, [ebp - 0x4b4]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x407396
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.PPLIB32W.DLL__VFSFindLastEntry_4]
cmp word [eax], 0
je 0x4073de
xor ecx, ecx
mov word [eax], cx
cmp edi, 3
jne 0x4073cf
lea eax, [ebp - 0x4b4]
push eax
push ecx
call dword [sym.imp.PPLIB32W.DLL__VFSChangeDirectory_8]
push ebx
lea eax, [ebp - 0x4b4]
push eax
call fcn.00407345
mov edi, eax
mov eax, edi
pop edi
jmp 0x4073ee
push ebx
push esi
push ebx
call dword [sym.imp.PPLIB32W.DLL__VFSFullPath_12]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046890b
leave
ret 8

Function at 0x407861
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x488548]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov cx, word [esi + 0x584]
mov edi, eax
call fcn.00455ea3
movzx ecx, ax
sub ecx, 0x41
xor eax, eax
add ecx, dword [ebp + 0xc]
jns 0x40789d
push 0x19
pop ecx
cmp ecx, 0x19
jle 0x4078a4
xor ecx, ecx
xor edx, edx
inc edx
shl edx, cl
test edi, edx
jne 0x4078b3
inc eax
cmp eax, 0x1a
jl 0x407895
add ecx, 0x41
push ecx
lea eax, [ebp - 0x4b4]
push 0x474874
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
call fcn.00427c7a
push 1
lea eax, [ebp - 0x4b4]
push eax
push esi
call fcn.00427b6e
push 0
push esi
call fcn.00418778
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046890b
leave
ret 8
Function at 0x40e88b
Capabilities:
Open clipboard

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
push 6
pop ebx
jmp 0x40e8a8
dec ebx
je 0x40e8b6
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x40e89d
xor eax, eax
inc eax
jmp 0x40e8c6
push 0x475c18
xor edx, edx
mov ecx, esi
call fcn.00427caa
xor eax, eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x40e8cc
Capabilities:
Write clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call fcn.0040e88b
test eax, eax
je 0x40e9ac
push ebx
push ebp
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [esp + 0x18]
and ebp, 1
mov ebx, dword [sym.imp.USER32.dll_SetClipboardData]
je 0x40e97b
push esi
mov esi, dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push str.Shell_IDList_Array
call esi
push str.FileNameW
mov dword [0x48b04c], eax
call esi
push str.Preferred_DropEffect
mov dword [0x48a9d8], eax
call esi
push 4
push 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea esi, [edi + 0x4a08]
mov dword [esi], eax
test eax, eax
je 0x40e94f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call fcn.0043a3eb
mov dword [edi + 0x49fc], eax
pop esi
test eax, eax
je 0x40e965
push eax
push 0xf
call ebx
push edi
call fcn.0043a518
push 0
mov dword [edi + 0x49f8], eax
push dword [0x48b04c]
call ebx
test byte [esp + 0x18], 2
je 0x40e994
push edi
call fcn.0043a2e7
push 0
push 0xd
mov dword [edi + 0x4a00], eax
call ebx
test ebp, ebp
je 0x40e9a4
push dword [edi + 0x4a08]
push dword [esp + 0x14]
call ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebp
pop ebx
pop edi
ret 0xc

Function at 0x40e9b0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.00454e93
mov edi, dword [ebp + 8]
lea eax, [edi + 0x584]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00454ea4
lea eax, [ebp - 0x10]
push eax
call fcn.00454d82
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov ebx, eax
test ebx, ebx
cmove ebx, dword [ebp - 8]
push edi
call fcn.0040e88b
test eax, eax
je 0x40ea30
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push str.CPPNClip_dir_done
xor edx, edx
mov ecx, edi
call fcn.00427caa
pop edi
pop ebx
leave
ret 4