joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408834
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.00406fe3
lea eax, [ebp - 0xc]
push eax
push str.SoftwareMicrosoftInternet_ExplorerIntelliFormsStorage2
push dword [ebx + 4]
call fcn.00410ea3
add esp, 0xc
test eax, eax
jne 0x408984
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.0040712c
call fcn.004106f1
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.0040717b
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 0x40897a
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.00407009
push dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.0040717b
push eax
mov eax, dword [ebp + 8]
call fcn.00407009
inc dword [ebp - 8]
call fcn.004106f1
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.0040717b
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 0x4088ea
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40913d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.004062cc
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x4091c6
push ebx
push esi
push edi
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
lea edi, [ebx + 5]
lea esi, [ebp - 0xc]
mov dword [ebp - 4], 0x1388
call fcn.004077a3
mov esi, dword [ebp - 0xc]
push ebx
push esi
push dword [ebp + 0xc]
call fcn.00406c0e
lea eax, [esi + ebx]
add esp, 0xc
mov byte [eax], 0
mov byte [eax + 1], 0
push 0
mov byte [eax + 2], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x34], 0
push 0xffffffffffffffff
push esi
lea ebx, [eax + 0x20]
call fcn.004072a8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0xc]
call fcn.0040778a
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
jmp 0x4091c8
xor eax, eax
leave
ret 8
Function at 0x409af5
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x4507c8
push dword [esp + 0xc]
push esi
push 0x4444f8
push dword [esp + 0x14]
push 0x4509d8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x409b1a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00442d30
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4507c8
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4444f8
push dword [ebp + 8]
push 0x4509d8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x409b89
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 0x409b8d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00442d30
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, 0x4507c8
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4444f8
push dword [ebp + 8]
mov esi, 0x4509d8
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x409bf4
cmp dword [ebp + 0x10], 0
jne 0x409bf4
xor eax, eax
jmp 0x409c02
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 0x409f55
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00406668
test eax, eax
pop ecx
je 0x409fdc
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x4507c8
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x4509d8
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x4454e0
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, 0x450a60
mov dword [0x450a5c], eax
call fcn.00409af5
push 0x3f
push str.TranslatorName
mov esi, 0x450ae0
call fcn.00409af5
push 0xff
push str.TranslatorURL
mov esi, 0x450b60
call fcn.00409af5
add esp, 0x18
pop edi
pop esi
ret

Function at 0x40b0bf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00442d30
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 0x40bdd6
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 0x40be9d
cmp dword [esi + 0x2b0], ebx
je 0x40be6d
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 0x40be8e
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
push 1
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 0x40bed4
push 1
push 1
push 0x19
push 0x20
push 0x20
call ebp
push 1
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.0040270e
pop ecx
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x40ca05
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
push 0x445978
lea edi, [ebp - 0x208]
call fcn.004065e6
mov eax, dword [esi + 0x694]
pop ecx
push 1
push 1
push 2
mov ecx, edi
push ecx
push esi
call fcn.0040c9d2
test eax, eax
pop edi
je 0x40ca7e
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ca59
lea eax, [ebp - 0x208]
push eax
call fcn.00406483
pop ecx
jmp 0x40ca5f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40ca71
push dword [esi + 0x208]
mov ecx, eax
call fcn.00406345
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
leave
ret

Function at 0x40de2b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x520]
push eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov edi, 0x400
push dword [eax]
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40df70
cmp dword [ebp - 4], 1
jbe 0x40df70
cmp byte [ebp - 0x520], 0x20
mov dword [ebp + 0xc], ebx
jae 0x40df70
push esi
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.004023fa
test eax, eax
je 0x40dee5
mov eax, dword [ebp - 4]
add eax, 0xfffffffe
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x51e]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.0040244c
test eax, eax
je 0x40dee5
cmp dword [ebp - 0xc], edi
jae 0x40dedc
push dword [ebp - 0xc]
lea eax, [ebp - 0x520]
push dword [ebp - 8]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp + 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
lea esi, [ebp - 0x18]
call fcn.004023e5
cmp dword [ebp + 0xc], ebx
je 0x40df6f
mov esi, 0xff
push esi
lea eax, [ebp - 0x11f]
push ebx
push eax
mov byte [ebp - 0x121], bl
mov byte [ebp - 0x120], bl
call sub.msvcrt.dll_memset
push esi
lea edi, [ebp - 0x120]
lea eax, [ebp - 0x520]
call fcn.0040134b
add esp, 0x10
push esi
mov esi, dword [ebp + 0x10]
lea eax, [esi + 0x200]
push eax
push 0xffffffffffffffff
mov eax, edi
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push esi
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], 0x1fe
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40df6f
mov word [esi + 0x1fc], bx
mov word [esi + 0x3fc], bx
xor ebx, ebx
inc ebx
pop esi
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x40df83
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
push ebx
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x524]
push eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
push str.Password.NET_Messenger_Service
push dword [eax]
mov edi, 0x400
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e0cd
inc eax
cmp dword [ebp - 8], eax
jbe 0x40e0cd
cmp byte [ebp - 0x524], 0x20
push esi
mov dword [ebp - 4], ebx
jae 0x40e045
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.004023fa
test eax, eax
je 0x40e03b
mov eax, dword [ebp - 8]
add eax, 0xfffffffe
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x522]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
lea eax, [ebp - 0x24]
push eax
mov eax, esi
call fcn.0040244c
test eax, eax
je 0x40e03b
cmp dword [ebp - 0x10], edi
jae 0x40e032
push dword [ebp - 0x10]
lea eax, [ebp - 0x524]
push dword [ebp - 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
lea esi, [ebp - 0x1c]
call fcn.004023e5
jmp 0x40e048
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
je 0x40e0cc
mov esi, 0xff
push esi
lea eax, [ebp - 0x123]
push ebx
push eax
mov byte [ebp - 0x125], bl
mov byte [ebp - 0x124], bl
call sub.msvcrt.dll_memset
push esi
lea edi, [ebp - 0x124]
lea eax, [ebp - 0x524]
call fcn.0040134b
add esp, 0x10
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x200]
push eax
push 0xffffffffffffffff
mov eax, edi
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push esi
push ebx
push ebx
push str.User.NET_Messenger_Service
push dword [eax]
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e0cc
mov word [esi + 0x1fc], bx
mov word [esi + 0x3fc], bx
xor ebx, ebx
inc ebx
pop esi
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x40e240
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x162c
call fcn.00442d30
push ebx
push esi
push edi
lea eax, [ebp + 0x14]
push eax
push 0x20019
xor esi, esi
push esi
push str.Creds
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e3c2
push 0x1fe
lea eax, [ebp - 0x226]
push esi
push eax
mov word [ebp - 0x228], si
call sub.msvcrt.dll_memset
add esp, 0xc
mov ebx, 0xff
push ebx
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 4], esi
push esi
jmp 0x40e3a8
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e39a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1628]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push str.ps:password
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e391
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1628]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
call fcn.004106f1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
add eax, 0xc
call fcn.0040244c
test eax, eax
je 0x40e391
lea esi, [ebp - 0x628]
call fcn.0040ddfc
lea eax, [ebp - 0x228]
push eax
mov eax, ebx
mov edi, esi
call fcn.00406567
cmp dword [ebp - 0xc], 0x1fe
pop ecx
jae 0x40e378
push dword [ebp - 0xc]
lea eax, [ebp - 0x428]
push dword [ebp - 8]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc]
shr eax, 1
add esp, 0xc
and word [ebp + eax*2 - 0x428], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x628]
push edx
call dword [eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor esi, esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 4]
push ebx
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40e2a4
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40e509
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.00442d30
push ebx
push esi
push edi
call fcn.004106f1
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftIdentityCRL
push 0x80000001
call esi
test eax, eax
jne 0x40e637
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push str.Dynamic_Salt
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40e62e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push str.Value
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e625
mov ebx, dword [ebp + 8]
add ebx, 0xc
mov esi, ebx
call fcn.004023fa
test eax, eax
je 0x40e625
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
push 0x40
pop esi
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov edi, 0x44f920
mov eax, ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
call fcn.0040244c
test eax, eax
je 0x40e625
cmp dword [ebp - 0x18], 0x400
jae 0x40e61c
push esi
lea eax, [ebp - 0x102c]
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp - 0x18]
lea eax, [ebp - 0xfec]
push dword [ebp - 0x14]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x18]
add esp, 0xc
push dword [ebp - 8]
add eax, esi
push eax
lea eax, [ebp - 0x102c]
push eax
push dword [ebp + 8]
call fcn.0040e240
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e9d6
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 0x40ea16
lea ebx, [ebp - 0x210]
call fcn.00405302
mov ebx, 0x104
jmp 0x40ea2e
push dword [ebp + 8]
mov ebx, 0x104
mov eax, ebx
lea edi, [ebp - 0x210]
call fcn.00406567
pop ecx
xor edi, edi
cmp word [ebp - 0x210], di
je 0x40eb53
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 0x444c80
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 0x40eaae
lea eax, [ebp - 0x210]
push 0x444c80
push eax
lea eax, [ebp - 0x420]
call fcn.0040679b
pop ecx
pop ecx
xor edi, edi
jmp 0x40eab7
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 0x40eaf9
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 0x40eaf9
call fcn.0040e991
push 8
push edi
lea eax, [ebp - 0x420]
push eax
call ebx
cmp eax, edi
mov dword [esi], eax
je 0x40eb53
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 0x40f13f
Capabilities:
Set current directory

Disassembly:
push esi
push edi
mov edi, eax
mov esi, edi
neg esi
lea eax, [edi + 0x30c]
sbb esi, esi
and esi, eax
call fcn.004425eb
mov eax, edi
neg eax
sbb eax, eax
lea ecx, [edi + 0x304]
and eax, ecx
mov dword [eax], 0x44d3cc
mov eax, edi
neg eax
sbb eax, eax
lea ecx, [edi + 0x2fc]
and eax, ecx
mov esi, edi
neg esi
mov dword [eax], 0x44d3cc
sbb esi, esi
lea eax, [edi + 0x2e4]
and esi, eax
add esi, 0xc
call fcn.004023e5
mov esi, edi
neg esi
sbb esi, esi
lea eax, [edi + 0xb0]
and esi, eax
add esi, 4
cmp dword [esi], 0
je 0x40f1b7
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
and dword [esi], 0
mov eax, edi
neg eax
sbb eax, eax
lea ecx, [edi + 0xac]
and eax, ecx
mov dword [eax], 0x4450d8
mov eax, edi
neg eax
lea ecx, [edi + 0x98]
sbb eax, eax
and eax, ecx
mov dword [eax], 0x446734
call fcn.00410b30
call fcn.004083e3
pop edi
pop esi
ret
Function at 0x410493
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x678
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
add ebx, 0x28
push edi
mov esi, ebx
call fcn.004077c7
xor edi, edi
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x3f4]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3f8]
push eax
push dword [ebp + 0x70]
mov dword [ebp - 0x3f8], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x410649
mov eax, dword [ebp - 0x3f0]
mov ecx, dword [ebp - 0x3e0]
push eax
push edi
push 0x410
mov word [ebp - 0x1c8], di
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
mov dword [ebp - 0x1cc], eax
mov dword [ebp + 0x44], ecx
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, edi
mov dword [ebp + 0x6c], esi
je 0x4105f9
push 0x208
lea eax, [ebp - 0x602]
push edi
push eax
mov word [ebp - 0x604], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x604]
push eax
mov eax, dword [ebp + 0x7c]
push esi
call fcn.00410673
cmp word [ebp - 0x1c8], di
jne 0x4105c2
cmp dword [0x4513b4], edi
mov dword [ebp + 0x68], 0x104
jne 0x4105aa
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, edi
je 0x4105aa
push str.QueryFullProcessImageNameW
push eax
mov dword [0x4513b4], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4513b8], eax
mov eax, dword [0x4513b8]
cmp eax, edi
je 0x4105c2
lea ecx, [ebp + 0x68]
push ecx
lea ecx, [ebp - 0x604]
push ecx
push edi
push esi
call eax
lea esi, [ebp - 0x604]
lea edi, [ebp - 0x1c8]
call fcn.004100f2
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x6c]
call fcn.0041043d
add esp, 0x14
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edi, edi
mov esi, dword [ebx + 0xc]
cmp esi, edi
jl 0x410649
cmp esi, 0xffffffff
mov eax, dword [ebx + 8]
jne 0x410611
push dword [ebx]
call sub.msvcrt.dll_free
jmp 0x410624
push eax
push 0x234
lea eax, [ebx + 4]
mov edx, esi
mov edi, ebx
call fcn.00406595
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0xc], eax
pop ecx
jge 0x410630
mov dword [ebx + 0xc], eax
mov edi, esi
imul edi, edi, 0x234
add edi, dword [ebx]
mov ecx, 0x8d
lea esi, [ebp - 0x1cc]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea eax, [ebp - 0x3f8]
push eax
push dword [ebp + 0x70]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4104ee
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x41069b
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x4106f0
push edi
push str.psapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetModuleBaseNameW
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExW
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xc], eax
pop edi
ret