joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405803
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.00440560
push ebx
push esi
push edi
push dword [ebp + 0x10]
call fcn.00405da8
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0x14], eax
je 0x405a36
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x405a2d
lea eax, [esi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push esi
push edi
push dword [ebp - 0x14]
call fcn.004067f7
mov byte [edi + esi], bl
add esp, 0xc
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x417]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x418], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x2017]
push ebx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x2018], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x1400
lea eax, [ebp - 0x1c18]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x405a0c
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
jle 0x405a09
lea eax, [ebp - 0x418]
push 0x44612c
push eax
call sub.msvcrt.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x405907
cmp dword [ebp - 8], ebx
je 0x4058f8
mov byte [ebp - 0x1c18], bl
mov byte [ebp - 0x1818], bl
mov byte [ebp - 0x1418], bl
mov byte [ebp - 0x1018], bl
mov byte [ebp - 0x2018], bl
jmp 0x4058ff
mov dword [ebp - 8], 1
mov dword [ebp - 4], ebx
jmp 0x405a09
cmp dword [ebp - 8], ebx
je 0x405a09
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x405926
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x2018]
jmp 0x405960
cmp eax, 1
jne 0x40593a
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x1418]
jmp 0x405960
cmp eax, 2
jne 0x40594e
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x1c18]
jmp 0x405960
cmp eax, 3
jne 0x40596d
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x1018]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
jmp 0x405a06
cmp eax, 4
jne 0x4059e2
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x1818]
push eax
call sub.msvcrt.dll_strcpy
push esi
lea eax, [ebp - 0x817]
push ebx
push eax
mov byte [ebp - 0x818], bl
call sub.msvcrt.dll_memset
add esp, 0x14
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 0xc]
call fcn.00406a24
pop ecx
pop ecx
push dword [ebp + 0x14]
lea eax, [ebp - 0x818]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x2018]
push eax
push dword [ebp + 8]
call fcn.004054b3
mov byte [ebp - 0x1c18], bl
mov byte [ebp - 0x1818], bl
mov byte [ebp - 0x1418], bl
mov byte [ebp - 0x1018], bl
jmp 0x405a06
jle 0x405a06
cmp byte [ebp - 0x418], bl
je 0x405a03
lea eax, [ebp - 0x418]
push 0x446130
push eax
call sub.msvcrt.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x405a06
mov dword [ebp - 4], ebx
inc dword [ebp - 4]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x418]
push eax
mov ebx, edi
call fcn.0040531c
test eax, eax
jne 0x4058b1
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405dda
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret

Function at 0x405f5f
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x405fbc
push ebx
push edi
push ebp
call sub.msvcrt.dll_wcslen
pop ecx
lea ebx, [eax + eax + 2]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x405fba
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x405fc7
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00405da8
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x406059
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x406042
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406042
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x40604b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x406062
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x406387
Capabilities:
Get common file path

Disassembly:
cmp word [0x44e670], 0
push esi
mov esi, 0x44e670
jne 0x4063a8
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x44e87c], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x44e87c]
pop ecx
pop ecx
pop esi
ret
Function at 0x40661e
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x4414ec
push eax
push eax
push dword [esp + 0x14]
push 0x446230
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x406a72
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406acf
cmp word [ebp - 0x224], 0x2e
jne 0x406ab5
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406a97
jmp 0x406ac8
mov edi, dword [ebp + 0xc]
mov ecx, 0x94
lea esi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40702b
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x407057
lea eax, [esi + 0x28c]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x407072
lea ecx, [esi + 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [esp + 4], eax
jne 0x407079
call fcn.004070c4
cmp dword [esp + 4], 0
je 0x4070bd
push ebx
push ebp
push edi
lea edi, [esi + 0x4dc]
lea ebx, [esi + 0x2b8]
add esi, 0x764
push esi
call sub.msvcrt.dll_wcslen
push ebx
mov ebp, eax
call sub.msvcrt.dll_wcslen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x4070b6
push ebx
push esi
mov eax, edi
call fcn.0040630d
pop ecx
pop ecx
jmp 0x4070ba
and word [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x407503
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6390
call fcn.00440560
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40764c
push 0x20
lea eax, [ebp - 0x90]
push eax
push ebx
push edi
call fcn.00406835
add esp, 0x10
cmp byte [ebp - 0x78], 0x34
je 0x407645
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov eax, 0x5000
cmp dword [ebp - 8], eax
mov dword [ebp + 0xc], eax
jbe 0x407645
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 0x2190]
push edi
call fcn.00407472
test eax, eax
je 0x407631
push 4
lea eax, [ebp - 0x215c]
push eax
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0x100
jbe 0x4075b2
mov dword [ebp - 4], 0x68
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x2190]
push 0x40
push eax
call sub.msvcrt.dll_strchr
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x407626
inc esi
push 0x3f
push esi
call sub.msvcrt.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x4075dd
mov byte [eax], bl
push esi
call sub.msvcrt.dll__strlwr
mov dword [esp], 0x41fe
lea eax, [ebp - 0x638e]
push ebx
push eax
mov word [ebp - 0x6390], bx
call sub.msvcrt.dll_memset
push 0x2000
lea eax, [ebp - 0x6390]
push eax
push esi
call fcn.00406a59
add esp, 0x18
push ebx
lea eax, [ebp - 0x6390]
push eax
mov eax, dword [ebp + 8]
add eax, 8
call fcn.00406bec
mov eax, dword [ebp - 0xc]
shl eax, 7
add dword [ebp + 0xc], eax
jmp 0x407638
add dword [ebp + 0xc], 0x80
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jb 0x40756e
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret 8
Function at 0x4076ee
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
xor edi, edi
push 0x208
lea eax, [ebp - 0x222]
push edi
push eax
mov word [ebp - 0x224], di
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x22
pop eax
lea ebx, [ebp - 0x224]
call fcn.0040fdaf
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x24]
lea eax, [ebp - 0x224]
push eax
mov ecx, esi
call fcn.00407652
cmp ebx, dword [esi + 0x24]
jne 0x407827
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov edi, 0xfa00
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0x1388
mov ebx, edi
call fcn.004071d5
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x14]
push eax
push edi
push str.visited:
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
test eax, eax
mov dword [ebp - 8], eax
je 0x40781f
mov eax, dword [edi + 4]
push 0x40
push eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x4077c7
inc eax
inc eax
push 0
mov dword [ebp - 0x18], eax
add esi, 8
push eax
mov eax, esi
call fcn.00406bec
mov eax, dword [edi + 4]
push 0x3f
push eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x4077c4
and word [eax], 0
push 0
push dword [ebp - 0x18]
mov eax, esi
call fcn.00406bec
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x407780
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x407816
mov ebx, dword [ebp - 4]
add ebx, 0x2710
mov edi, ebx
lea eax, [ebp - 0x14]
call fcn.004071d5
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x407780
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
lea esi, [ebp - 0x14]
call fcn.004071ee
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40782e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + 0x28]
mov dword [ebp - 0x1c], esi
call fcn.00406b1c
lea eax, [ebp - 0xc]
push eax
push str.SoftwareMicrosoftInternet_ExplorerIntelliFormsStorage2
push dword [ebx + 4]
call fcn.0040f6a4
add esp, 0xc
test eax, eax
jne 0x407974
push edi
add ebx, 0x68
mov esi, 0x2000
xor edi, edi
mov edx, esi
mov eax, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], ebx
call fcn.00406c65
push 0x1fe
lea eax, [ebp - 0x21a]
push edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0xff
mov dword [ebp - 4], esi
mov word [ebp - 0x21c], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.00406cb4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x40796a
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp + 8], eax
lea eax, [ebp - 0x21c]
push eax
call sub.msvcrt.dll__wcsupr
pop ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00406b42
push dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.00406cb4
push eax
mov eax, dword [ebp + 8]
call fcn.00406b42
inc dword [ebp - 8]
push 0x1fe
lea eax, [ebp - 0x21a]
push edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0xff
mov dword [ebp - 4], esi
mov word [ebp - 0x21c], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00406cb4
push eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x4078df
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4086b0
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x44dec8
push dword [esp + 0xc]
push esi
push 0x4414ec
push dword [esp + 0x14]
push 0x44e0d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x4086d5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00440560
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x44dec8
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4414ec
push dword [ebp + 8]
push 0x44e0d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x408744
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcscpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x408748
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00440560
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x44dec8
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4414ec
push dword [ebp + 8]
mov esi, 0x44e0d8
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x4087af
cmp dword [ebp + 0x10], 0
jne 0x4087af
xor eax, eax
jmp 0x4087bd
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret

Function at 0x408b10
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.004061ac
test eax, eax
pop ecx
je 0x408b97
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x44dec8
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x44e0d8
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x446578
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x44e160
mov dword [0x44e15c], eax
call fcn.004086b0
push 0x3f
push str.TranslatorName
mov esi, 0x44e1e0
call fcn.004086b0
push 0xff
push str.TranslatorURL
mov esi, 0x44e260
call fcn.004086b0
add esp, 0x18
pop edi
pop esi
ret

Function at 0x409bed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00440560
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x40aa69
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
push ebp
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_Create]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2a8], ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x40ab30
cmp dword [esi + 0x2b0], ebx
je 0x40ab00
push 0x2b0
lea eax, [esp + 0x230]
push ebx
push eax
mov dword [esp + 0x234], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2e]
push ebx
push eax
mov word [esp + 0x34], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x230]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x29c], eax
push eax
jmp 0x40ab21
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
push 5
push eax
mov dword [esi + 0x29c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x29c]
push 1
push 0x1003
push dword [esi + 0x294]
call edi
cmp dword [esi + 0x2ac], ebx
je 0x40ab67
push 1
push 1
push 0x19
push 0x20
push 0x20
call ebp
push 5
push eax
mov dword [esi + 0x2a0], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2a0]
push ebx
push 0x1003
push dword [esi + 0x294]
call edi
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
mov dword [esi + 0x298], eax
call ebp
push 0x1000
push 0x10
push 0x10
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x14], eax
call ebp
push 0x1000
push 0x10
push 0x10
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x298]
mov dword [esp + 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esi + 0x298]
call ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x298]
call ebp
push dword [esp + 0x10]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
call ebp
push dword [esp + 0x14]
call ebp
mov eax, dword [esi + 0x298]
mov esi, dword [esi + 0x294]
push eax
push ebx
push 0x1208
push esi
call fcn.00403b05
pop ecx
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x40b80e
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
push 0x4469d4
lea edi, [ebp - 0x208]
call fcn.0040612a
mov eax, dword [esi + 0x694]
pop ecx
push 1
push 1
mov ecx, edi
push ecx
push esi
push 2
pop edi
call fcn.0040b7de
test eax, eax
pop edi
je 0x40b888
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40b863
lea eax, [ebp - 0x208]
push eax
call fcn.00405fc7
pop ecx
jmp 0x40b869
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b87b
push dword [esi + 0x208]
mov ecx, eax
call fcn.00405e21
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret

Function at 0x40b8fd
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [esi + 0x694]
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.004096e0
test eax, eax
je 0x40b93a
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40b93a
mov eax, dword [ebp - 4]
add eax, 0x210
push eax
call fcn.00405f5f
pop ecx
mov eax, edi
call fcn.0040905d
pop edi
leave
ret
Function at 0x40da91
Capabilities:
Get common file path
Link many functions at runtime
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push edi
xor edi, edi
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 8], edi
jne 0x40dad1
lea ebx, [ebp - 0x210]
call fcn.004050f7
mov ebx, 0x104
jmp 0x40dae9
push dword [ebp + 8]
mov ebx, 0x104
mov eax, ebx
lea edi, [ebp - 0x210]
call fcn.004060ab
pop ecx
xor edi, edi
cmp word [ebp - 0x210], di
je 0x40dc0e
lea eax, [esi + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x208
lea eax, [ebp - 0x41e]
push edi
push eax
mov word [ebp - 0x420], di
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x445ffc
call sub.msvcrt.dll_wcslen
mov edi, eax
pop ecx
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_wcslen
lea eax, [edi + eax + 1]
cmp eax, ebx
pop ecx
jae 0x40db69
lea eax, [ebp - 0x210]
push 0x445ffc
push eax
lea eax, [ebp - 0x420]
call fcn.0040630d
pop ecx
pop ecx
xor edi, edi
jmp 0x40db72
xor edi, edi
mov word [ebp - 0x420], di
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
mov dword [esi], eax
jne 0x40dbb4
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 8
push edi
lea eax, [ebp - 0x420]
push eax
call ebx
cmp eax, edi
mov dword [esi], eax
jne 0x40dbb4
call fcn.0040da4c
push 8
push edi
lea eax, [ebp - 0x420]
push eax
call ebx
cmp eax, edi
mov dword [esi], eax
je 0x40dc0e
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NSS_Init
push dword [esi]
call ebx
push str.NSS_Shutdown
push dword [esi]
mov dword [esi + 4], eax
call ebx
push str.PK11_GetInternalKeySlot
push dword [esi]
mov dword [esi + 8], eax
call ebx
push str.PK11_FreeSlot
push dword [esi]
mov dword [esi + 0xc], eax
call ebx
push str.PK11_CheckUserPassword
push dword [esi]
mov dword [esi + 0x10], eax
call ebx
push str.PK11_Authenticate
push dword [esi]
mov dword [esi + 0x14], eax
call ebx
push str.PK11SDR_Decrypt
push dword [esi]
mov dword [esi + 0x18], eax
call ebx
mov dword [esi + 0x1c], eax
xor eax, eax
cmp dword [esi], edi
pop edi
setne al
pop ebx
leave
ret 4

Function at 0x40de32
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ebx
neg esi
lea eax, [ebx + 0x1b70]
sbb esi, esi
push edi
and esi, eax
call fcn.0043fe2d
mov esi, ebx
neg esi
lea eax, [ebx + 0x1af4]
sbb esi, esi
and esi, eax
lea edi, [esi + 0x2c]
call fcn.0040debf
add esi, 4
call fcn.004071ee
mov esi, ebx
neg esi
sbb esi, esi
lea eax, [ebx + 0xb0]
and esi, eax
add esi, 4
cmp dword [esi], 0
je 0x40de88
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
and dword [esi], 0
mov eax, ebx
neg eax
sbb eax, eax
lea ecx, [ebx + 0xac]
and eax, ecx
mov dword [eax], 0x4462b0
mov eax, ebx
neg eax
lea ecx, [ebx + 0x98]
sbb eax, eax
and eax, ecx
mov dword [eax], 0x44711c
call fcn.0040f337
mov edi, ebx
call fcn.004073f1
pop edi
pop esi
ret