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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.00440560
cmp dword [ebp + 8], 0
je 0x40f5b5
test esi, esi
je 0x40f5a3
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x40f5a3
and word [ebp - 0x20000], 0
push esi
push 0x447120
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 0x40f5a7
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 0x40f5cd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.00440560
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 0x40f62c
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.0040685b
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 0x40f66d
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x4414ec
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.004068e4
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40f673
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40f691
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040f503
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 0x40f6be
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 0x40f6f7
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x40f6f3
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret
Function at 0x40fdaf
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
push edi
mov esi, eax
call fcn.0040fd02
xor edi, edi
cmp dword [0x44e4f4], edi
je 0x40fdf4
call fcn.004062d8
cmp dword [eax + 0x10], 1
jne 0x40fde5
cmp esi, 0x19
je 0x40fdf4
cmp esi, 0x17
je 0x40fdf4
cmp esi, 0x16
je 0x40fdf4
push edi
push esi
push ebx
push edi
call dword [0x44e4f4]
jmp 0x40fe8c
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 0x40fe1f
cmp esi, 0x17
je 0x40fe1f
cmp esi, 0x16
jne 0x40fe2f
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
jmp 0x40fe3d
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.0040f6a4
add esp, 0xc
cmp eax, edi
jne 0x40fe75
lea ecx, [ebp - 0x44]
mov eax, esi
call fcn.0040fd31
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x24c]
call fcn.0040f6be
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 0x41244d
Capabilities:
Encode data using xor

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

Function at 0x412a39
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 0x412a79
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.004404b0
push edi
push esi
push edx
push eax
call fcn.00440390
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
push dword [ebp + 0x10]
mov edi, ebx
push dword [ebp + 0xc]
call fcn.004128da
test eax, eax
pop ecx
pop ecx
jne 0x412aa2
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x412aa9
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 0x412ad5
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 0x412b05
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x412b05
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x412b25
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00440390
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 0x413501
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x44e638]
sub esp, 0x310
test eax, eax
push ebx
push esi
je 0x41352f
push eax
push 0x447ed0
lea ecx, [ebp - 0x108]
mov edx, 0xe6
call fcn.00411a1f
pop ecx
pop ecx
jmp 0x41359d
call fcn.00412705
test eax, eax
mov esi, 0xe6
je 0x413565
lea eax, [ebp - 0x310]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x310]
push eax
call fcn.0041279e
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x413581
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.0041285f
jmp 0x413557
push ebx
push 0x447ed0
lea ecx, [ebp - 0x108]
mov edx, esi
call fcn.00411a1f
push ebx
call sub.msvcrt.dll_free
add esp, 0xc
mov ecx, str.etilqs_
call fcn.00411c85
lea ecx, [ebp - 0x108]
mov edx, eax
call fcn.00411c85
lea eax, [edx + eax + 0x11]
cmp eax, 0x105
jl 0x4135c4
xor eax, eax
inc eax
jmp 0x413561
lea ecx, [ebp - 0x108]
call fcn.00411c85
test eax, eax
jbe 0x4135dd
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x4135dd
dec eax
jne 0x4135d4
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
push eax
push str._setilqs_
mov ecx, edi
mov edx, 0xf4
call fcn.00411a1f
mov ecx, edi
call fcn.00411c85
mov esi, eax
lea eax, [esi + edi]
push 0xf
call fcn.00411bc3
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 0x413616
mov byte [esi + edi], cl
xor eax, eax
jmp 0x413561

Function at 0x413888
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.004134ca
mov edi, eax
test edi, edi
pop ecx
jne 0x4138a7
push 7
pop eax
jmp 0x413930
push esi
call fcn.00412705
test eax, eax
je 0x4138e3
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 0x4138d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x413915
inc ebp
cmp ebp, 5
jge 0x413915
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4138b1
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 0x413905
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x413915
inc ebp
cmp ebp, 5
jge 0x413915
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4138e3
push edi
call sub.msvcrt.dll_free
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x41392b
cmp ebx, 2
jne 0x41392b
xor eax, eax
jmp 0x413930
mov eax, 0xa0a
pop edi
pop ebp
pop ebx
ret
Function at 0x413ac2
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.004139ea
add esp, 0x10
test eax, eax
jne 0x413b7e
lea eax, [ebp - 0x110]
push eax
call fcn.004134ca
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
je 0x413b77
call fcn.00412705
test eax, eax
mov eax, esi
je 0x413b44
cmp word [esi], bx
je 0x413b2e
cmp word [eax], 0x5c
je 0x413b2b
inc eax
inc eax
cmp word [eax], bx
jne 0x413b1c
jmp 0x413b2e
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 0x413b6a
cmp byte [esi], bl
je 0x413b56
cmp byte [eax], 0x5c
je 0x413b54
inc eax
cmp byte [eax], bl
jne 0x413b48
jmp 0x413b56
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 0x413b7e
mov dword [ebp - 8], 0x200
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413ceb
Capabilities:
Get system information on windows

Disassembly:
push esi
push 0x24
push 0
mov esi, 0x44eca0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.0043e651
test eax, eax
jne 0x413d40
push 2
call fcn.0041076a
mov esi, eax
push esi
call fcn.0041077c
mov edx, 0x44c198
call fcn.0041062f
mov eax, dword [0x44e4fc]
push esi
mov dword [0x44c1a4], eax
mov dword [0x44e4fc], edx
call fcn.0041078a
add esp, 0xc
xor eax, eax
pop esi
ret
Function at 0x4168c3
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 0x4168fc
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 0x4169ca
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x416936
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.00440390
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 0x416936
xor edi, edi
cmp esi, edi
je 0x4169ca
mov edi, dword [esi + 0xc]
cmp edi, dword [ebx + 0x18]
ja 0x4169bd
test byte [esi + 0x14], 0x20
jne 0x4169bd
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.00440390
cmp edi, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jne 0x416970
call fcn.004160f7
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.00410530
add esp, 0x10
cmp edi, 1
mov dword [ebp - 4], eax
jne 0x4169aa
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 0x4169b2
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.0041d871
pop ecx
cmp dword [ebp - 4], 0
mov esi, dword [esi + 8]
je 0x416934
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x42714a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x42715c
xor eax, eax
jmp 0x427247
push esi
mov esi, dword [ebp + 8]
push 0x50
call fcn.00410e4b
mov esi, eax
test esi, esi
pop ecx
je 0x427246
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.00426ed3
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.00426f96
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.00426cbb
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.00426ed3
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.00426cbb
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.00426ed3
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.0042714a
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.00426cbb
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.00426cbb
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 0x43f4b3
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 0x43f655
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 0x43f4fe
push dword [ebp + 8]
lea eax, [ebp - 0x234]
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
jmp 0x43f509
lea ebx, [ebp - 0x234]
call fcn.004050f7
xor ebx, ebx
cmp word [ebp - 0x234], bx
je 0x43f5b4
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.004061ac
add esp, 0x14
test eax, eax
jne 0x43f58e
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 dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
mov dword [esi + 0x24], eax
jne 0x43f5d2
push 8
push ebx
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x43f5cf
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.sqlite3.dll
call ebx
test eax, eax
mov dword [esi + 0x24], eax
jne 0x43f5d2
push 0x446dcc
call ebx
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x43f65e
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 0x43f658
Function at 0x43f70b
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 0x43f89d
push ebx
mov eax, edi
call fcn.004080ad
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 0x4461d8
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43f78e
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 0x43f7dd
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 0x4414ec
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.0043f67c
test eax, eax
jne 0x43f7ed
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push 0x44a69c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.0043f67c
push 0x44a6b4
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.0043f67c
push 0x44a6d4
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.0043f67c
push 0x44a6ec
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.0043f67c
push 0x44a70c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.0043f67c
push 0x44a724
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.0043f67c
push 0x44a740
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.0043f67c
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.0043f67c
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 0x43fcdc
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
push dword [esp + 0x14]
call fcn.00405da8
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x43fd46
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xf1b30
jae 0x43fd3f
lea eax, [esi + 0xa]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
lea eax, [esi + 5]
push eax
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push edi
push ebx
call fcn.004067f7
add esp, 0xc
test eax, eax
je 0x43fd38
push esi
push edi
push dword [esp + 0x18]
call fcn.0043fac5
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret 8

Function at 0x43fdb8
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
jne 0x43fe2c
push ebx
push edi
push str.vaultcli.dll
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
Function at 0x44011a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x441480
call fcn.00440328
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x440155
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x440155
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44016d
cmp eax, 0x20b
je 0x44015a
mov dword [ebp - 0x1c], edi
jmp 0x440181
cmp dword [ecx + 0x84], 0xe
jbe 0x440155
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x44017b
cmp dword [ecx + 0x74], 0xe
jbe 0x440155
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x44ec94], 0xffffffff
or dword [0x44ec98], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x44d46c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x44d468]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x44ec90], eax
call fcn.004252d8
cmp dword [section..data], edi
jne 0x4401de
push fcn.004252d8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00440316
push 0x441450
push 0x44144c
call sub.msvcrt.dll__initterm
mov eax, dword [0x44d464]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x44d460]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x441448
push 0x441430
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x440244
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4402fe
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x440292
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x440260
cmp ax, 0x22
jne 0x44024d
cmp word [esi], 0x22
jne 0x44026b
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x440279
cmp ax, 0x20
jbe 0x440266
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x44029f
movzx eax, word [ebp - 0x48]
jmp 0x4402a2
cmp word [esi], 0x20
jbe 0x44026b
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x440292
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x4402c3
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x4402f8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00440361
ret