joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40329e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb50
push ebx
push edi
mov edi, dword [ebp + 8]
add edi, 0xd2a
xor ebx, ebx
cmp byte [edi], bl
je 0x403391
push esi
lea esi, [ebp - 0x7ac]
call fcn.004021d8
push ebx
push edi
mov eax, esi
call fcn.0040314d
test eax, eax
je 0x4032df
push dword [ebp + 8]
mov eax, esi
call fcn.00402407
push 0x400
lea eax, [ebp - 0x407]
push ebx
push eax
mov byte [ebp - 0x408], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push 0x3fe
lea eax, [ebp - 0x408]
push eax
push str.Personalities
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jbe 0x403390
mov byte [ebp - 8], bl
mov byte [ebp - 9], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 0xb], bl
xor edi, edi
lea eax, [ebp - 0x408]
jmp 0x403382
lea esi, [ebp - 0xb50]
call fcn.004021d8
lea eax, [ebp + edi - 0x408]
push 0x3d
push eax
call sub.msvcrt.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x40336c
inc eax
push eax
mov eax, dword [ebp + 8]
add eax, 0xd2a
push eax
mov eax, esi
call fcn.0040314d
test eax, eax
je 0x40336c
push dword [ebp + 8]
mov eax, esi
call fcn.00402407
mov eax, dword [ebp - 4]
lea edi, [edi + eax + 1]
cmp edi, 0x3ff
jge 0x403390
lea eax, [ebp + edi - 0x408]
push eax
call sub.msvcrt.dll_strlen
cmp eax, ebx
mov dword [ebp - 4], eax
pop ecx
jg 0x40332c
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x403a8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6004
call fcn.004118a0
push ebx
push esi
xor ebx, ebx
push 0x3ffe
lea eax, [ebp - 0x6002]
push ebx
push eax
mov word [ebp - 0x6004], bx
call sub.msvcrt.dll_memset
mov esi, 0x1fff
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0x18
push esi
lea eax, [ebp - 0x6004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x6004]
push eax
push ebx
push 0xfde9
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 0x404172
Capabilities:
Set current directory

Disassembly:
push esi
lea esi, [edi + 0x468]
call fcn.0040462e
cmp dword [edi + 0x30], 0
je 0x404192
lea eax, [edi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
and dword [edi + 0x30], 0
mov esi, edi
neg esi
sbb esi, esi
lea eax, [edi + 0x18]
and esi, eax
add esi, 4
call fcn.00406b5b
lea esi, [edi + 4]
call fcn.00406b5b
pop esi
ret
Function at 0x404647
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, eax
call fcn.004046c2
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi], eax
je 0x4046bd
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CredReadA
push eax
call edi
push str.CredFree
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CredDeleteA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CredEnumerateA
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CredEnumerateW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x18], eax
pop edi
je 0x4046b8
cmp dword [esi + 0xc], 0
je 0x4046b8
mov dword [esi + 4], 1
jmp 0x4046bd
call fcn.004046c2
mov eax, dword [esi + 4]
pop esi
ret

Function at 0x404ebd
Capabilities:
Encrypt data using des

Disassembly:
mov ecx, dword [eax]
mov edx, dword [0x416b90]
mov eax, dword [edx]
push ebx
push ebp
xor eax, ecx
mov ebx, eax
push edi
mov ebp, eax
shr ebx, 0x18
push 0x3f
pop edi
and ebx, edi
mov ebx, dword [ebx*4 + 0x4161e0]
shr ebp, 0x10
and ebp, edi
xor ebx, dword [ebp*4 + 0x4163e0]
mov ebp, eax
and eax, edi
shr ebp, 8
and ebp, edi
xor ebx, dword [ebp*4 + 0x4165e0]
add edx, 4
xor ebx, dword [eax*4 + 0x4167e0]
xor dword [esi], ebx
ror ecx, 4
xor ecx, dword [edx]
add edx, 4
mov dword [0x416b90], edx
mov eax, ecx
shr eax, 0x18
and eax, edi
mov eax, dword [eax*4 + 0x4160e0]
mov edx, ecx
shr edx, 0x10
and edx, edi
xor eax, dword [edx*4 + 0x4162e0]
mov edx, ecx
shr edx, 8
and edx, edi
xor eax, dword [edx*4 + 0x4164e0]
and ecx, edi
xor eax, dword [ecx*4 + 0x4166e0]
pop edi
xor dword [esi], eax
pop ebp
pop ebx
ret

Function at 0x405fc6
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.00405ecb
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x406055
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40603e
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 0x40603e
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x406047
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 0x40605e
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 0x406069
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 0x4060c5
push ebx
push edi
push ebp
call sub.msvcrt.dll_strlen
pop ecx
lea ebx, [eax + 1]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4060c3
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 1
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 0x40614b
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x406325
Capabilities:
Get common file path

Disassembly:
cmp byte [0x417550], 0
push esi
mov esi, 0x417550
jne 0x406345
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [0x417658], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x417658]
pop ecx
pop ecx
pop esi
ret

Function at 0x406523
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x412466
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x406c2f
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, eax
call fcn.00405ecb
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x406c80
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
call fcn.00406b5b
mov edx, edi
mov eax, esi
call fcn.00406b25
push edi
push dword [esi]
push ebx
call fcn.004066f6
mov eax, dword [esi]
add esp, 0xc
mov byte [edi + eax], 0
push ebx
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
jmp 0x406c82
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406ec3
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x406eef
lea eax, [esi + 0x148]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x406f0a
lea ecx, [esi + 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov dword [esp + 4], eax
jne 0x406f11
call fcn.00406f5b
cmp dword [esp + 4], 0
je 0x406f54
push ebx
push ebp
push edi
lea edi, [esi + 0x288]
lea ebx, [esi + 0x174]
add esi, 0x3cc
push esi
call sub.msvcrt.dll_strlen
push ebx
mov ebp, eax
call sub.msvcrt.dll_strlen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x406f4e
push ebx
push esi
mov eax, edi
call fcn.004062ad
pop ecx
pop ecx
jmp 0x406f51
mov byte [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x40724c
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push ebx
push esi
push edi
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0x11f]
push ebx
push eax
mov byte [ebp - 0x10], 0xa3
mov byte [ebp - 0xf], 0x1e
mov byte [ebp - 0xe], 0xf3
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 7
mov byte [ebp - 0xb], 0x62
mov byte [ebp - 0xa], 0xd9
mov byte [ebp - 9], 0x1f
mov byte [ebp - 8], 0x1e
mov byte [ebp - 7], 0xe9
mov byte [ebp - 6], 0x35
mov byte [ebp - 5], 0x7d
mov byte [ebp - 4], 0x4f
mov byte [ebp - 3], 0xd2
mov byte [ebp - 2], 0x7d
mov byte [ebp - 1], 0x48
mov byte [ebp - 0x120], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x21f]
push ebx
push eax
mov byte [ebp - 0x220], bl
call sub.msvcrt.dll_memset
mov edi, 0x1fe
push edi
lea eax, [ebp - 0x61e]
push ebx
push eax
mov word [ebp - 0x620], bx
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x41e]
push ebx
push eax
mov word [ebp - 0x420], bx
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x20], eax
add esp, 0x30
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
lea eax, [ebp - 0x620]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
call edi
push esi
lea eax, [ebp - 0x420]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
call edi
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x220]
push eax
call sub.msvcrt.dll_strlen
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0x14
cmp dword [ebp - 0x18], ebx
mov eax, 0xba0da71d
jle 0x4073cb
lea edi, [ebp - 0x420]
mov edx, dword [ebp + 8]
and edx, 0x80000003
jns 0x4073ad
dec edx
or edx, 0xfffffffc
inc edx
movzx ecx, word [edi]
imul ecx, eax
imul eax, eax, 0xbc8f
lea edx, [esi + edx*4]
xor dword [edx], ecx
inc dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
inc edi
inc edi
cmp dword [ebp + 8], ecx
jl 0x40739d
cmp dword [ebp - 0x1c], ebx
jle 0x4073ff
mov edx, dword [ebp + 8]
and edx, 0x80000003
jns 0x4073e0
dec edx
or edx, 0xfffffffc
inc edx
movzx ecx, word [ebp + ebx*2 - 0x620]
imul ecx, eax
imul eax, eax, 0xbc8f
lea edx, [esi + edx*4]
xor dword [edx], ecx
inc dword [ebp + 8]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jl 0x4073d0
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x407dc1
Capabilities:
Read .ini file

Disassembly:
push 0x4171b8
push dword [esp + 0xc]
mov byte [esi], 0
push esi
push 0x412466
push dword [esp + 0x14]
push 0x4172c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, esi
ret
Function at 0x407de5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004118a0
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4171b8
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x412466
push dword [ebp + 8]
push 0x4172c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
pop esi
je 0x407e51
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_strcpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x407e55
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004118a0
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x4171b8
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x412466
push dword [ebp + 8]
mov esi, 0x4172c0
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
jne 0x407ebd
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x407ebf
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4081b5
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.0040614b
test eax, eax
pop ecx
je 0x40823c
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x4171b8
push edi
call sub.msvcrt.dll_strcpy
push str.general
mov esi, 0x4172c0
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
push edi
push 0
push 0x413188
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x417308
mov dword [0x417304], eax
call fcn.00407dc1
push 0x3f
push str.TranslatorName
mov esi, 0x417348
call fcn.00407dc1
push 0xff
push str.TranslatorURL
mov esi, 0x417388
call fcn.00407dc1
add esp, 0x18
pop edi
pop esi
ret

Function at 0x40ac8a
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x208]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40acbc
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push eax
push 0
push 0x41341c
lea eax, [ebp - 0x208]
push eax
mov byte [ebp - 0x104], 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 1
push 2
lea eax, [ebp - 0x104]
push eax
call fcn.0040ac47
test eax, eax
je 0x40ad34
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ad11
lea eax, [ebp - 0x104]
push eax
call fcn.00405fc6
pop ecx
jmp 0x40ad17
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ad27
push dword [esi + 0x108]
call fcn.00405f41
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
leave
ret
Function at 0x40ae70
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi + 0x370]
lea eax, [ebp - 4]
push eax
call fcn.00408cb9
test eax, eax
pop edi
je 0x40aea8
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40aea8
mov eax, dword [ebp - 4]
add eax, 0x294
push eax
call fcn.00406069
pop ecx
leave
ret

Function at 0x40bc49
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40d4a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x628]
push eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push esi
push str.Password.NET_Messenger_Service
push dword [eax]
mov edi, 0x400
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d5c7
inc eax
cmp dword [ebp - 8], eax
jbe 0x40d5c7
cmp byte [ebp - 0x628], 0x20
mov dword [ebp - 4], esi
jae 0x40d56d
lea esi, [ebp - 0x228]
call fcn.004046d7
call fcn.004047a0
test eax, eax
je 0x40d55e
mov eax, dword [ebp - 8]
add eax, 0xfffffffe
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x626]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.00404811
test eax, eax
je 0x40d55e
cmp dword [ebp - 0x14], edi
jae 0x40d555
push dword [ebp - 0x14]
lea eax, [ebp - 0x628]
push dword [ebp - 0x10]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x228]
call fcn.004047f1
xor esi, esi
jmp 0x40d570
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
je 0x40d5c7
mov esi, 0xff
push esi
lea edi, [ebx + 0x100]
lea eax, [ebp - 0x628]
mov byte [ebp - 0x229], 0
call fcn.00401380
pop ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0
push str.User.NET_Messenger_Service
push dword [eax]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d5c7
mov byte [ebx + 0xfe], al
mov byte [ebx + 0x1fe], al
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 4
Function at 0x40d6fb
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x132c
call fcn.004118a0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 0x14]
push eax
push 0x20019
xor edi, edi
push edi
push str.Creds
push dword [ebp + 0x14]
call esi
test eax, eax
jne 0x40d85e
mov ebx, 0xff
push ebx
mov byte [ebp - 0x128], al
lea eax, [ebp - 0x127]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 4], edi
push edi
jmp 0x40d844
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0x14]
call esi
test eax, eax
jne 0x40d836
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1328]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push str.ps:password
push dword [ebp - 0xc]
mov dword [ebp - 8], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d82d
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1328]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
add eax, 0xc
call fcn.00404811
test eax, eax
je 0x40d82d
lea eax, [ebp - 0x128]
push eax
lea edi, [ebp - 0x328]
mov byte [ebp - 0x328], 0
mov byte [ebp - 0x228], 0
call fcn.004060d0
pop ecx
xor eax, eax
push eax
push eax
push ebx
lea ecx, [ebp - 0x228]
push ecx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, edi
push edx
call dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 4]
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40d75c
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40d9f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x102c
call fcn.004118a0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [esp + 0x10]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftIdentityCRL
push 0x80000001
call esi
test eax, eax
jne 0x40db30
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push str.Dynamic_Salt
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x40db26
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
push str.Value
push dword [esp + 0x28]
mov dword [esp + 0x30], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40db1c
mov ebx, dword [ebp + 8]
add ebx, 0xc
mov esi, ebx
call fcn.004047a0
test eax, eax
je 0x40db1c
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
push 0x40
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], eax
pop esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
mov edi, str._GKP__LL___OTR__GV6_lxzd
mov eax, ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
call fcn.00404811
test eax, eax
je 0x40db1c
cmp dword [esp + 0x1c], 0x400
jae 0x40db12
push esi
lea eax, [esp + 0x3c]
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [esp + 0x1c]
lea eax, [esp + 0x7c]
push dword [esp + 0x24]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x28]
add esp, 0xc
push dword [esp + 0x10]
add eax, esi
push eax
lea eax, [esp + 0x40]
push eax
push dword [ebp + 8]
call fcn.0040d6fb
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40deee
Capabilities:
Get common file path
Link many functions at runtime
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40df2c
push dword [ebp + 8]
lea edi, [ebp - 0x108]
call fcn.004060d0
pop ecx
cmp byte [ebp - 0x108], 0
je 0x40e049
lea eax, [esi + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
lea eax, [ebp - 0x20f]
push 0
push eax
mov byte [ebp - 0x210], 0
call sub.msvcrt.dll_memset
push str.nss3.dll
call sub.msvcrt.dll_strlen
mov edi, eax
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
add esp, 0x14
cmp eax, ebx
jae 0x40dfa5
lea eax, [ebp - 0x108]
push str.nss3.dll
push eax
lea eax, [ebp - 0x210]
call fcn.004062ad
pop ecx
pop ecx
jmp 0x40dfac
mov byte [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [esi], eax
jne 0x40dfef
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 8
push eax
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
mov dword [esi], eax
jne 0x40dfef
call fcn.0040dea9
push 8
push 0
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
mov dword [esi], eax
je 0x40e049
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NSS_Init
push dword [esi]
call edi
push str.NSS_Shutdown
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.PK11_GetInternalKeySlot
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.PK11_FreeSlot
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.PK11_CheckUserPassword
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.PK11_Authenticate
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.PK11SDR_Decrypt
push dword [esi]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
cmp dword [esi], eax
pop edi
setne al
pop ebx
leave
ret 4