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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.00442d30
cmp dword [ebp + 8], 0
je 0x410db4
test esi, esi
je 0x410da2
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x410da2
and word [ebp - 0x20000], 0
push esi
push 0x446738
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x410da6
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
leave
ret

Function at 0x410dcc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.00442d30
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x410e2b
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.00406ca3
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov esi, eax
jmp 0x410e6c
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x4444f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.00406d2c
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x410e72
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x410e90
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00410d02
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x410ebd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410ef6
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x410ef2
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret
Function at 0x411854
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
push edi
mov esi, eax
call fcn.004117a7
xor edi, edi
cmp dword [0x450df8], edi
je 0x411899
call fcn.00406766
cmp dword [eax + 0x10], 1
jne 0x41188a
cmp esi, 0x19
je 0x411899
cmp esi, 0x17
je 0x411899
cmp esi, 0x16
je 0x411899
push edi
push esi
push ebx
push edi
call dword [0x450df8]
jmp 0x411931
push 0x206
lea eax, [ebp - 0x24a]
push edi
push eax
mov word [ebp - 0x24c], di
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x19
je 0x4118c4
cmp esi, 0x17
je 0x4118c4
cmp esi, 0x16
jne 0x4118d4
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
jmp 0x4118e2
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.00410ea3
add esp, 0xc
cmp eax, edi
jne 0x41191a
lea ecx, [ebp - 0x44]
mov eax, esi
call fcn.004117d6
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x24c]
call fcn.00410ebd
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.msvcrt.dll_wcscpy
xor eax, eax
cmp word [ebx], di
pop ecx
pop ecx
setne al
pop edi
pop esi
leave
ret

Function at 0x413db4
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x413ddd
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x4474a0]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x413dbd
pop esi
ret

Function at 0x4143a0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
test eax, eax
push esi
push edi
je 0x4143e0
cdq
mov esi, eax
add eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, edx
adc ecx, dword [ebp + 0x10]
push edi
sub eax, 1
push esi
sbb ecx, 0
push ecx
push eax
call fcn.00442c80
push edi
push esi
push edx
push eax
call fcn.00442b60
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
push dword [ebp + 0x10]
mov edi, ebx
push dword [ebp + 0xc]
call fcn.00414241
test eax, eax
pop ecx
pop ecx
jne 0x414409
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x414410
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x10], eax
mov dword [ebp - 4], 0x60a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41443c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41446c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x41446c
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x41448c
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00442b60
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x414e68
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x450f3c]
sub esp, 0x310
test eax, eax
push ebx
push esi
je 0x414e96
push eax
push 0x44a61c
lea ecx, [ebp - 0x108]
mov edx, 0xe6
call fcn.00413386
pop ecx
pop ecx
jmp 0x414f04
call fcn.0041406c
test eax, eax
mov esi, 0xe6
je 0x414ecc
lea eax, [ebp - 0x310]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea eax, [ebp - 0x310]
push eax
call fcn.00414105
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x414ee8
push 7
pop eax
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.004141c6
jmp 0x414ebe
push ebx
push 0x44a61c
lea ecx, [ebp - 0x108]
mov edx, esi
call fcn.00413386
push ebx
call sub.msvcrt.dll_free
add esp, 0xc
mov ecx, str.etilqs_
call fcn.004135ec
lea ecx, [ebp - 0x108]
mov edx, eax
call fcn.004135ec
lea eax, [edx + eax + 0x11]
cmp eax, 0x105
jl 0x414f2b
xor eax, eax
inc eax
jmp 0x414ec8
lea ecx, [ebp - 0x108]
call fcn.004135ec
test eax, eax
jbe 0x414f44
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x414f44
dec eax
jne 0x414f3b
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
push eax
push str._setilqs_
mov ecx, edi
mov edx, 0xf4
call fcn.00413386
mov ecx, edi
call fcn.004135ec
mov esi, eax
lea eax, [esi + edi]
push 0xf
call fcn.0041352a
add esp, 0xc
push 0xf
pop ecx
movzx eax, byte [esi + edi]
xor edx, edx
push 0x3e
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi + edi], al
inc esi
dec ecx
jne 0x414f7d
mov byte [esi + edi], cl
xor eax, eax
jmp 0x414ec8

Function at 0x4151ef
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebx
push ebp
push edi
push dword [esp + 0x14]
xor ebp, ebp
xor ebx, ebx
call fcn.00414e31
mov edi, eax
test edi, edi
pop ecx
jne 0x41520e
push 7
pop eax
jmp 0x415297
push esi
call fcn.0041406c
test eax, eax
je 0x41524a
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41523a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x41527c
inc ebp
cmp ebp, 5
jge 0x41527c
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x415218
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41526c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x41527c
inc ebp
cmp ebp, 5
jge 0x41527c
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x41524a
push edi
call sub.msvcrt.dll_free
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x415292
cmp ebx, 2
jne 0x415292
xor eax, eax
jmp 0x415297
mov eax, 0xa0a
pop edi
pop ebp
pop ebx
ret
Function at 0x415429
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
lea eax, [ebp - 0x110]
push eax
push 0x104
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x200
push dword [ebp + 8]
call fcn.00415351
add esp, 0x10
test eax, eax
jne 0x4154e5
lea eax, [ebp - 0x110]
push eax
call fcn.00414e31
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
je 0x4154de
call fcn.0041406c
test eax, eax
mov eax, esi
je 0x4154ab
cmp word [esi], bx
je 0x415495
cmp word [eax], 0x5c
je 0x415492
inc eax
inc eax
cmp word [eax], bx
jne 0x415483
jmp 0x415495
mov word [eax], bx
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceW]
jmp 0x4154d1
cmp byte [esi], bl
je 0x4154bd
cmp byte [eax], 0x5c
je 0x4154bb
inc eax
cmp byte [eax], bl
jne 0x4154af
jmp 0x4154bd
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
push esi
mov edi, eax
call sub.msvcrt.dll_free
cmp edi, ebx
pop ecx
jne 0x4154e5
mov dword [ebp - 8], 0x200
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415652
Capabilities:
Get system information on windows

Disassembly:
push esi
push 0x24
push 0
mov esi, 0x4517e0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
call fcn.0043ffb8
test eax, eax
jne 0x4156a7
push 2
call fcn.004120d1
mov esi, eax
push esi
call fcn.004120e3
mov edx, 0x44f198
call fcn.00411f96
mov eax, dword [0x450e50]
push esi
mov dword [0x44f1a4], eax
mov dword [0x450e50], edx
call fcn.004120f1
add esp, 0xc
xor eax, eax
pop esi
ret
Function at 0x41822a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebx + 0x3c]
push esi
push edi
xor edi, edi
cmp dword [edx], edi
mov esi, eax
mov dword [ebp - 4], edi
jne 0x418263
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx]
or eax, 0x1e
push edi
and eax, 0x87f3f
push eax
push edx
push edi
push ecx
call dword [ecx + 0x18]
add esp, 0x14
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x418331
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x41829d
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.00442b60
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
jmp 0x41829d
xor edi, edi
cmp esi, edi
je 0x418331
mov edi, dword [esi + 0xc]
cmp edi, dword [ebx + 0x18]
ja 0x418324
test byte [esi + 0x14], 0x20
jne 0x418324
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.00442b60
cmp edi, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jne 0x4182d7
call fcn.00417a5e
push dword [ebp - 0xc]
mov eax, dword [esi]
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
push dword [ebx + 0x80]
push eax
mov eax, dword [ebx + 0x3c]
call fcn.00411e97
add esp, 0x10
cmp edi, 1
mov dword [ebp - 4], eax
jne 0x418311
mov eax, dword [ebp - 8]
add eax, 0x18
push 0x10
push eax
lea eax, [ebx + 0x64]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp edi, dword [ebx + 0x20]
jbe 0x418319
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.0041f1d8
pop ecx
cmp dword [ebp - 4], 0
mov esi, dword [esi + 8]
je 0x41829b
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x428aae
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x428ac0
xor eax, eax
jmp 0x428bab
push esi
mov esi, dword [ebp + 8]
push 0x50
call fcn.004127b2
mov esi, eax
test esi, esi
pop ecx
je 0x428baa
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.00428837
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.004288fa
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.0042861f
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.00428837
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.0042861f
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.00428837
add esp, 0x44
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.00428aae
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.0042861f
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.0042861f
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
and ax, 0xfff7
add esp, 0x2c
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x440e1a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
xor ebx, ebx
cmp dword [esi + 0x24], ebx
push edi
jne 0x441004
mov edi, 0x22e
push edi
lea eax, [ebp - 0x232]
push ebx
push eax
mov word [ebp - 0x234], bx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x440e65
push dword [ebp + 8]
lea eax, [ebp - 0x234]
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
jmp 0x440e70
lea ebx, [ebp - 0x234]
call fcn.00405302
xor ebx, ebx
cmp word [ebp - 0x234], bx
je 0x440f53
push edi
lea eax, [ebp - 0x462]
push ebx
push eax
mov word [ebp - 0x464], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x464]
push eax
call sub.msvcrt.dll_wcscpy
lea eax, [ebp - 0x234]
push str._sqlite3.dll
push eax
call sub.msvcrt.dll_wcscat
lea eax, [ebp - 0x234]
push eax
call fcn.00406668
add esp, 0x14
test eax, eax
jne 0x440ef5
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x234]
push eax
call sub.msvcrt.dll_wcscpy
lea eax, [ebp - 0x234]
push str.mozsqlite3.dll
push eax
call sub.msvcrt.dll_wcscat
add esp, 0x10
lea eax, [ebp - 0x234]
push eax
call fcn.00406668
test eax, eax
pop ecx
jne 0x440f2d
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x234]
push eax
call sub.msvcrt.dll_wcscpy
lea eax, [ebp - 0x234]
push str._nss3.dll
push eax
call sub.msvcrt.dll_wcscat
add esp, 0x10
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebx
mov dword [esi + 0x24], eax
jne 0x440f81
push 8
push ebx
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
jmp 0x440f7e
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.sqlite3.dll
call ebx
test eax, eax
mov dword [esi + 0x24], eax
jne 0x440f71
push 0x44603c
call ebx
mov dword [esi + 0x24], eax
cmp dword [esi + 0x24], 0
jne 0x440f81
push 0x444c80
call ebx
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x44100d
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.sqlite3_open
push eax
call edi
push str.sqlite3_prepare
push dword [esi + 0x24]
mov dword [esi], eax
call edi
push str.sqlite3_step
push dword [esi + 0x24]
mov dword [esi + 4], eax
call edi
push str.sqlite3_column_text
push dword [esi + 0x24]
mov dword [esi + 8], eax
call edi
push str.sqlite3_column_int
push dword [esi + 0x24]
mov dword [esi + 0xc], eax
call edi
push str.sqlite3_column_int64
push dword [esi + 0x24]
mov dword [esi + 0x10], eax
call edi
push str.sqlite3_finalize
push dword [esi + 0x24]
mov dword [esi + 0x14], eax
call edi
push str.sqlite3_close
push dword [esi + 0x24]
mov dword [esi + 0x18], eax
call edi
push str.sqlite3_exec
push dword [esi + 0x24]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 4
xor eax, eax
jmp 0x441007
Function at 0x4419c8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 4], eax
jbe 0x441b5a
push ebx
mov eax, edi
call fcn.004094f2
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x445000
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x441a4b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov ecx, dword [eax + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [edi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [edi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x441a9a
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._4.4X_4.4X
lea eax, [ebp - 0x38]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
push 0x4444f8
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.00441939
test eax, eax
jne 0x441aaa
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push 0x44ce44
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.00441939
push 0x44ce5c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.00441939
push 0x44ce7c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.00441939
push 0x44ce94
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.00441939
push 0x44ceb4
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.00441939
push 0x44cecc
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.00441939
push 0x44cee8
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.00441939
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.00441939
xor esi, esi
push ebx
inc esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov eax, esi
pop esi
leave
ret 4
Function at 0x44225b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call fcn.004062cc
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x4422d3
push ebx
push esi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 2
jbe 0x4422c8
lea eax, [esi + 2]
push edi
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push ebx
push ebx
push 2
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [esi - 2]
push eax
push edi
push dword [ebp + 0xc]
call fcn.00406c0e
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax - 2], bl
mov byte [eax - 1], bl
mov byte [eax], bl
mov ebx, dword [ebp + 8]
push edi
call fcn.00442141
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4423d3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push esi
push edi
call fcn.004106f1
and word [ebp - 0x20c], 0
mov esi, 0x208
push esi
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [eax + 4], 1
push 0x1c
pop eax
lea ebx, [ebp - 0x20c]
call fcn.00411854
push str.MicrosoftWindows_Mail
mov edi, ebx
call fcn.00406c73
mov edi, dword [ebp + 8]
add esp, 0x10
mov eax, ebx
push eax
mov ecx, edi
call fcn.004422d7
push 0x1c
pop eax
mov dword [edi + 4], 2
call fcn.00411854
push str.MicrosoftWindows_Live_Mail
mov edi, ebx
call fcn.00406c73
pop ecx
mov ecx, dword [ebp + 8]
mov eax, ebx
push eax
call fcn.004422d7
xor edi, edi
push esi
lea eax, [ebp - 0x622]
push edi
push eax
mov word [ebp - 0x624], di
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x416]
push edi
push eax
mov word [ebp - 0x418], di
call sub.msvcrt.dll_memset
push str.Store_Root
push str.SoftwareMicrosoftWindows_Live_Mail
push 0x80000001
lea esi, [ebp - 0x624]
call fcn.00410f16
add esp, 0x24
push 0x104
lea eax, [ebp - 0x418]
push eax
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x418]
push eax
call sub.msvcrt.dll_wcslen
test eax, eax
pop ecx
pop edi
pop esi
pop ebx
jle 0x4424de
lea eax, [ebp + eax*2 - 0x41a]
cmp word [eax], 0x5c
jne 0x4424de
and word [eax], 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
je 0x442506
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
call fcn.004422d7
leave
ret 4
Function at 0x442576
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
jne 0x4425ea
push ebx
push edi
push 0x44d34c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.VaultOpenVault
push eax
mov dword [esi + 4], eax
call edi
push str.VaultCloseVault
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
push str.VaultEnumerateItems
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push str.VaultFree
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.VaultGetInformation
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
mov ebx, str.VaultGetItem
push ebx
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
pop edi
mov dword [esi + 0x20], eax
pop ebx
ret