joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f2f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x20
push 0xb
lea eax, [ebp - 0x10]
push eax
push 4
push 0x1e
lea edx, [ebp - 0x40]
lea edi, [ebp - 0x3c]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x3c], 0xe2
mov byte [ebp - 0x3b], 3
mov byte [ebp - 0x3a], 0x41
mov byte [ebp - 0x39], 0xc3
mov byte [ebp - 0x38], 0x40
mov byte [ebp - 0x37], 0x2d
mov byte [ebp - 0x36], 0xe
mov byte [ebp - 0x35], 0x79
mov byte [ebp - 0x34], 0x21
mov byte [ebp - 0x33], 0x53
mov byte [ebp - 0x32], 0xd6
mov byte [ebp - 0x31], 0xad
mov byte [ebp - 0x30], 0x2e
mov byte [ebp - 0x2f], 0xa9
mov byte [ebp - 0x2e], 0xb0
mov byte [ebp - 0x2d], 0xd5
mov byte [ebp - 0x2c], 0x9d
mov byte [ebp - 0x2b], 0x39
mov byte [ebp - 0x2a], 3
mov byte [ebp - 0x29], 0x5c
mov byte [ebp - 0x28], 0x52
mov byte [ebp - 0x27], 0x1c
mov byte [ebp - 0x26], 0xce
mov byte [ebp - 0x25], 0x48
mov byte [ebp - 0x24], 0xe8
mov byte [ebp - 0x23], 0xf1
mov byte [ebp - 0x22], 0xcf
mov byte [ebp - 0x21], 0xa5
mov byte [ebp - 0x20], 0x8a
mov byte [ebp - 0x1f], 0x38
mov byte [ebp - 0x40], 0xd3
mov byte [ebp - 0x3f], 0x1d
mov byte [ebp - 0x3e], 0x6d
mov byte [ebp - 0x3d], 0x6f
mov byte [ebp - 0x10], 0xf0
mov byte [ebp - 0xf], 0x2a
mov byte [ebp - 0xe], 0x62
mov byte [ebp - 0xd], 0xe4
mov byte [ebp - 0xc], 0x52
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0xea
mov byte [ebp - 9], 0x99
mov byte [ebp - 8], 0x3d
mov byte [ebp - 7], 0x77
mov byte [ebp - 6], 0x60
mov byte [ebp - 0x1c], 0xf0
mov byte [ebp - 0x1b], 0x2a
mov byte [ebp - 0x1a], 0x62
mov byte [ebp - 0x19], 0xe4
mov byte [ebp - 0x18], 0x52
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0xea
mov byte [ebp - 0x15], 0x99
mov byte [ebp - 0x14], 0x3d
mov byte [ebp - 0x13], 0x77
mov byte [ebp - 0x12], 0x60
call fcn.00405565
add esp, 0x14
test eax, eax
je 0x40a048
xor eax, eax
inc eax
jmp 0x40a05c
push 0xb
push 0x20
pop ecx
lea edi, [ebp - 0x1c]
call fcn.00406065
neg eax
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00474a8a
leave
ret
Function at 0x40a069
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x21
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0xc
push 0x14
lea edx, [ebp - 0x10]
lea edi, [ebp - 0x3c]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x3c], 0xe5
mov byte [ebp - 0x3b], 0xff
mov byte [ebp - 0x3a], 0xa
mov byte [ebp - 0x39], 0xc2
mov byte [ebp - 0x38], 0x8b
mov byte [ebp - 0x37], 0x84
mov byte [ebp - 0x36], 0x36
mov byte [ebp - 0x35], 0xa
mov byte [ebp - 0x34], 0xa0
mov byte [ebp - 0x33], 0x5b
mov byte [ebp - 0x32], 0x2f
mov byte [ebp - 0x31], 0xb3
mov byte [ebp - 0x30], 0xb3
mov byte [ebp - 0x2f], 0x6b
mov byte [ebp - 0x2e], 0x53
mov byte [ebp - 0x2d], 0x8a
mov byte [ebp - 0x2c], 0x3f
mov byte [ebp - 0x2b], 0x20
mov byte [ebp - 0x2a], 0xf5
mov byte [ebp - 0x29], 0xd2
mov byte [ebp - 0x10], 0xdb
mov byte [ebp - 0xf], 0x1e
mov byte [ebp - 0xe], 0x37
mov byte [ebp - 0xd], 0xe2
mov byte [ebp - 0xc], 0x95
mov byte [ebp - 0xb], 0xaf
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0xe5
mov byte [ebp - 8], 0x88
mov byte [ebp - 7], 0x77
mov byte [ebp - 6], 0x3e
mov byte [ebp - 5], 0x72
mov byte [ebp - 0x28], 0xff
mov byte [ebp - 0x27], 0x13
mov byte [ebp - 0x26], 0x37
mov byte [ebp - 0x25], 0xd6
mov byte [ebp - 0x24], 0x99
mov byte [ebp - 0x23], 0xaf
mov byte [ebp - 0x22], 0x50
mov byte [ebp - 0x21], 0xf3
mov byte [ebp - 0x20], 0xa9
mov byte [ebp - 0x1f], 0x86
mov byte [ebp - 0x1e], 0x31
mov byte [ebp - 0x1d], 0x72
mov byte [ebp - 0x1c], 0xff
mov byte [ebp - 0x1b], 0x13
mov byte [ebp - 0x1a], 0x37
mov byte [ebp - 0x19], 0xd6
mov byte [ebp - 0x18], 0x99
mov byte [ebp - 0x17], 0xaf
mov byte [ebp - 0x16], 0x50
mov byte [ebp - 0x15], 0xf3
mov byte [ebp - 0x14], 0xa9
mov byte [ebp - 0x13], 0x86
mov byte [ebp - 0x12], 0x31
mov byte [ebp - 0x11], 0x72
call fcn.00405565
add esp, 0x14
test eax, eax
je 0x40a182
xor eax, eax
inc eax
jmp 0x40a196
push 0xc
push 0x21
pop ecx
lea edi, [ebp - 0x1c]
call fcn.00406065
neg eax
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00474a8a
leave
ret
Function at 0x40a1a3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x4b1148
call fcn.00475a5f
xor edi, edi
mov esi, 0x4f8ce0
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
call fcn.004029af
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a1f0
push esi
mov ecx, ebx
call fcn.004029af
jmp 0x40a23f
push 0x104
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0x208
call fcn.00402819
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push edi
push str.path
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call fcn.0040b382
cmp dword [ebp - 0x1c], edi
jne 0x40a1e6
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00403cb4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
mov eax, ebx
call fcn.00475b37
ret

Function at 0x40a252
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x4b1148
call fcn.00475a5f
xor edi, edi
mov esi, 0x4f8ce0
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
call fcn.004029af
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a29f
push esi
mov ecx, ebx
call fcn.004029af
jmp 0x40a2ea
push 0x104
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0x208
call fcn.00402819
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push edi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call fcn.0040b382
cmp dword [ebp - 0x1c], edi
jne 0x40a295
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00403cb4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
mov eax, ebx
call fcn.00475b37
ret
Function at 0x40a2fd
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push edi
lea ebx, [ebp - 0x80]
call fcn.0040a1a3
mov edi, dword [ebp - 0x80]
xor ebx, ebx
cmp dword [edi - 0xc], ebx
je 0x40a3a7
lea eax, [ebp - 0x74]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], 0x206
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a3a7
cmp dword [ebp - 0x74], ebx
je 0x40a3a7
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40a39a
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
lea ecx, [edi - 0x10]
call fcn.004029d4
mov eax, esi
pop esi
jmp 0x40a3b1
lea ecx, [edi - 0x10]
call fcn.004029d4
xor eax, eax
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop ebx
call fcn.00474a8a
add ebp, 0x19c
leave
ret
Function at 0x40a544
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf0]
sub esp, 0x170
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0xec], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push edi
lea eax, [ebp - 0x80]
xor ebx, ebx
xor edi, edi
test eax, eax
je 0x40a59c
push str.GetNativeSystemInfo
push 0x4d3438
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40a596
lea ecx, [ebp - 0x80]
push ecx
call eax
jmp 0x40a59c
lea eax, [ebp - 0x80]
push eax
call esi
and dword [ebp - 0x38], ebx
lea eax, [ebp - 0x38]
push eax
push 0x64
push 0
mov dword [ebp - 0x34], ebx
call sub.NETAPI32.dll_NetWkstaGetInfo
test eax, eax
jne 0x40a5c5
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
push eax
mov dword [ebp - 0x34], ecx
call sub.NETAPI32.dll_NetApiBufferFree
lea eax, [ebp - 0x5c]
push eax
call esi
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, dword [ebp - 0x34]
cmp esi, 5
jne 0x40a62f
cmp ebx, 1
jne 0x40a5ee
xor edi, edi
inc edi
jmp 0x40a62f
cmp ebx, 2
jne 0x40a62f
cmp byte [ebp + 0xea], 1
jne 0x40a60a
cmp word [ebp - 0x5c], 9
jne 0x40a60a
push 0x41
jmp 0x40a6f1
test dword [ebp + 0xe8], 0x8000
je 0x40a61b
push 0x71
pop edi
jmp 0x40a62f
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x10
add edi, 0x51
cmp byte [ebp + 0xea], 1
jne 0x40a6c0
cmp word [ebp - 0x5c], 9
jne 0x40a686
cmp esi, 6
jne 0x40a67d
test ebx, ebx
jne 0x40a653
push 0x42
jmp 0x40a6f1
cmp ebx, 1
jne 0x40a65f
push 0x43
jmp 0x40a6f1
cmp ebx, 2
jne 0x40a66b
push 0x44
jmp 0x40a6f1
cmp ebx, 3
jne 0x40a674
push 0x45
jmp 0x40a6f1
cmp ebx, 4
jne 0x40a6f2
push 0x46
jmp 0x40a6f1
cmp esi, 0xa
jne 0x40a6f2
test ebx, ebx
jmp 0x40a677
cmp esi, 6
jne 0x40a6b7
test ebx, ebx
jne 0x40a693
push 2
jmp 0x40a6f1
cmp ebx, 1
jne 0x40a69c
push 3
jmp 0x40a6f1
cmp ebx, 2
jne 0x40a6a5
push 4
jmp 0x40a6f1
cmp ebx, 3
jne 0x40a6ae
push 5
jmp 0x40a6f1
cmp ebx, 4
jne 0x40a6f2
push 6
jmp 0x40a6f1
cmp esi, 0xa
jne 0x40a6f2
test ebx, ebx
jmp 0x40a6b1
cmp word [ebp - 0x5c], 9
jne 0x40a6dd
cmp esi, 6
jne 0x40a6f2
test ebx, ebx
jne 0x40a6d4
push 0x47
jmp 0x40a6f1
cmp ebx, 1
jne 0x40a6f2
push 0x48
jmp 0x40a6f1
cmp esi, 6
jne 0x40a6f2
test ebx, ebx
jne 0x40a6ea
push 7
jmp 0x40a6f1
cmp ebx, 1
jne 0x40a6f2
push 8
pop edi
mov ecx, dword [ebp + 0xec]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474a8a
add ebp, 0xf0
leave
ret
Function at 0x40bad4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [esp + 0x18], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x10]
push eax
push 0x18
lea eax, [esp + 0x28]
mov edi, ecx
push eax
push edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ebx
call esi
test eax, eax
je 0x40bc0f
cmp dword [esp + 0xc], 0x18
jne 0x40bc0f
cmp dword [esp + 0x1c], 3
jne 0x40bc0f
mov eax, dword [esp + 0x20]
cmp eax, 0x23c
jb 0x40bc0f
xor edx, edx
mov ecx, 0x23c
div ecx
test edx, edx
jne 0x40bc0f
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xa00000
jg 0x40bc0f
cmp dword [esp + 0x10], ebx
jne 0x40bc0f
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 0x18]
cmp eax, edx
jne 0x40bc0f
push ecx
call fcn.0047438e
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40bc0f
push ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
push edi
push dword [esp + 0x24]
call esi
test eax, eax
je 0x40bc03
mov eax, dword [esp + 0x20]
cmp dword [esp + 0xc], eax
jne 0x40bc03
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call fcn.0040d2d1
add esp, 0xc
push 0x10
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004777e4
add esp, 0xc
test eax, eax
jne 0x40bc03
mov ebx, dword [esp + 0x18]
lea esi, [ebx + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x20]
xor edx, edx
mov ecx, 0x23c
div ecx
push eax
push edi
push ebx
call fcn.0040bc25
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.00472151
xor eax, eax
pop ecx
inc eax
jmp 0x40bc11
xor eax, eax
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00474a8a
mov esp, ebp
pop ebp
ret 4
Function at 0x40beeb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b35b1
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x4f2be0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
jne 0x40bf31
xor eax, eax
jmp 0x40c0ae
cmp dword [ebx + 0x40], edi
je 0x40c0ab
mov dword [esp + 0x10], edi
push edi
push edi
push 0x80
push 2
push 7
push 0x40000000
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], edi
call fcn.0040b871
test eax, eax
je 0x40bf72
cmp dword [esp + 0x10], edi
je 0x40bf2a
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bf2a
lea esi, [ebx + 0x24]
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
imul eax, eax, 0x23c
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], eax
cmp eax, edi
jne 0x40bfb6
push esi
mov dword [ebx + 0x40], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x10], edi
je 0x40c0ab
push dword [esp + 0x10]
jmp 0x40c0a5
push eax
call fcn.0047438e
pop ecx
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x40bfce
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40bf60
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 4]
lea edi, [esp + 0x28]
lea esi, [esp + 0x20]
mov dword [esp + 0x28], eax
call fcn.0040cd80
test al, al
jne 0x40c027
mov edi, 0x23c
push edi
call fcn.0040ccfc
add eax, 4
push eax
push dword [esp + 0x1c]
call fcn.00479020
add dword [esp + 0x20], edi
add esp, 0xc
call fcn.0040cd27
jmp 0x40bfe2
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x38]
push dword [esp + 0x20]
call fcn.0040d2d1
add esp, 0xc
push dword [esp + 0x1c]
xor edi, edi
mov dword [ebx + 0x40], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x10]
push esi
call fcn.0040b9ef
pop ecx
test eax, eax
je 0x40c096
push edi
lea eax, [esp + 0x20]
push eax
push 0x18
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c077
call fcn.0040cf4a
push dword [esp + 0x34]
lea eax, [esp + 0x14]
push dword [esp + 0x1c]
push eax
call fcn.0040b8a7
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push dword [esp + 0x18]
call fcn.00472151
pop ecx
cmp esi, edi
je 0x40c0ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00474a8a
mov esp, ebp
pop ebp
ret 4
Function at 0x40cfaf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004760e0
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
test edi, edi
je 0x40d05b
mov word [edi], ax
test ebx, ebx
je 0x40d05b
push esi
mov esi, 0x4d4068
push ebx
push dword [esi]
call fcn.00474cc6
pop ecx
pop ecx
test eax, eax
je 0x40cffc
add esi, 8
cmp esi, str.TargetDir
jl 0x40cfe1
jmp 0x40d042
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40d042
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00474a10
add esp, 0xc
push 1
push esi
lea eax, [ebp - 0x2004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40d042
lea eax, [ebp - 0x2004]
push eax
call fcn.004754ae
cmp eax, dword [ebp + 8]
pop ecx
jl 0x40d046
xor eax, eax
jmp 0x40d05a
push eax
lea eax, [ebp - 0x2004]
push eax
push edi
call fcn.004749c2
xor eax, eax
add esp, 0xc
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a8a
leave
ret

Function at 0x40d0b6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004760e0
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.00474a10
and dword [ebp - 0x400c], 0
add esp, 0xc
test esi, esi
je 0x40d197
test edi, edi
je 0x40d197
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40d197
cmp eax, 0x3fff
ja 0x40d197
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d197
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x4d2be0
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d197
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.00474a10
mov eax, dword [ebp - 0x4008]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
dec esi
push esi
push edi
call fcn.00477131
xor eax, eax
add esp, 0x28
inc eax
jmp 0x40d199
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00474a8a
leave
ret
Function at 0x40d1a7
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1fa4]
mov eax, 0x2024
call fcn.004760e0
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x1fa0], eax
push esi
mov esi, dword [ebp + 0x1fac]
test esi, esi
jne 0x40d1d5
xor eax, eax
jmp 0x40d22c
push 0x1e
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00474a10
push 0x2000
lea eax, [ebp - 0x60]
push 0
push eax
mov dword [ebp - 0x7c], 3
call fcn.00474a10
push 0xfff
push esi
lea eax, [ebp - 0x60]
push 0x1000
push eax
call fcn.00475cd6
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, 0x614
mov word [ebp - 0x70], ax
add esp, 0x28
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1fa0]
xor ecx, ebp
pop esi
call fcn.00474a8a
add ebp, 0x1fa4
leave
ret

Function at 0x40d357
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
push 0x10
xor esi, esi
push esi
push dword [esp + 0x18]
call fcn.00474a10
add esp, 0xc
cmp dword [esp + 0xc], esi
je 0x40d401
push ebx
push esi
push 1
push 3
push esi
push 1
push 1
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, esi
je 0x40d400
cmp ebx, 0xffffffff
je 0x40d3f9
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 8], eax
cmp eax, esi
je 0x40d3f9
push ebp
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, esi
je 0x40d3ee
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push esi
push esi
push ebx
call edi
push esi
push esi
push esi
push ebx
mov dword [esp + 0x28], eax
call edi
push dword [esp + 0x1c]
inc esi
push dword [esp + 0x1c]
push ebp
call fcn.0040d2d1
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop esi
pop ecx
ret
Function at 0x40d457
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.004760e0
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00474a10
and dword [ebp - 0x7c], 0
add esp, 0xc
test edi, edi
je 0x40d510
test ebx, ebx
je 0x40d510
lea eax, [ebp - 0x7c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40d510
cmp eax, 0x3fff
ja 0x40d510
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d510
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4d2be0
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d510
push 0x28
push 0
push ebx
call fcn.00474a10
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0x13
push ebx
call fcn.00477131
xor eax, eax
add esp, 0x28
inc eax
jmp 0x40d512
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.00474a8a
add ebp, 0x3f90
leave
ret
Function at 0x40ee55
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4a77
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4f2be0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push str.Setup_Application
lea ecx, [esp + 0x10]
call fcn.00402a0f
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x38], ebx
call fcn.00411d27
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x40eeba
call fcn.00402aa8
cmp dword [esp + 0x1c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x40eeda
cmp dword [esp + 0x18], ebx
sete al
cmp al, bl
sete al
cmp al, bl
jne 0x40eefe
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402b60
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.MainApp
lea ecx, [esp + 0x14]
call fcn.00402a0f
push ebx
lea ecx, [esi + 0x134]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 3
call fcn.00411357
mov byte [esp + 0x30], 2
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40ef35
call fcn.00402aa8
push str.VersionBaseFile
lea ecx, [esp + 0x14]
call fcn.00402a0f
push ebx
add esi, 0x138
push esi
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 4
call fcn.00411357
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40ef6b
call fcn.00402aa8
mov dword [esp + 0x10], ebx
xor ebx, ebx
inc ebx
jmp 0x40eeda