joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44963f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.004536d0
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x1000
xor edi, edi
push ebx
mov esi, ecx
mov dword [ebp - 0x4008], 0x410
mov dword [ebp - 0x400c], edi
call dword [sym.imp.MSVCR100.dll_malloc]
pop ecx
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x449689
or eax, 0xffffffff
jmp 0x449820
push ebx
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push edi
push edi
mov ecx, esi
call fcn.004495c4
mov dword [esi + 0x34], eax
cmp eax, edi
je 0x449681
lea eax, [ebp - 0x400c]
push eax
push 0x20019
push edi
push str.SoftwareX_AVCSDWorkstation
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
mov word [ebp - 0x4004], ax
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x4014]
push eax
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x4018]
push eax
push edi
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4004]
push eax
push edi
push dword [ebp - 0x400c]
mov dword [ebp - 0x4010], ebx
mov dword [ebp - 0x4014], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x4008]
push eax
push dword [esi + 0x34]
mov ebx, 0x80000002
push str.MasterKey
push str.SoftwareX_AVCSDWorkstationAntiVir_Workstation
push ebx
call fcn.0044ead9
add esp, 0x14
test eax, eax
jne 0x449681
push edi
push edi
push edi
mov ecx, esi
call fcn.004495c4
mov dword [esi + 8], eax
cmp eax, edi
je 0x449681
lea ecx, [ebp - 0x4008]
push ecx
push eax
push str.Path
push dword [esi + 0x34]
push ebx
call fcn.0044ead9
add esp, 0x14
test eax, eax
jne 0x449681
push dword [esi + 8]
call fcn.0044cda5
pop ecx
push edi
push edi
push edi
mov ecx, esi
call fcn.004495c4
mov dword [esi + 4], eax
cmp eax, edi
je 0x449681
push dword [esi + 8]
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy]
push str.rctext.dll
push dword [esi + 4]
call dword [sym.imp.MSVCR100.dll_wcscat]
add esp, 0x10
cmp dword [esi + 0x844], edi
jne 0x4497d9
push edi
lea eax, [esi + 0x96c]
push eax
push edi
push dword [esi + 8]
push dword [esi + 4]
call fcn.004216b0
add esp, 0x14
mov dword [esi + 0x844], eax
cmp eax, edi
je 0x449681
lea eax, [esi + 0x848]
push eax
mov dword [esi + 0x964], 1
mov dword [eax], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [esi + 0x858], 2
sete al
mov dword [esi + 0x95c], eax
cmp eax, edi
je 0x44981e
xor eax, eax
cmp dword [esi + 0x84c], 4
sete al
mov dword [esi + 0x960], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
leave
ret
Function at 0x449dae
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edi
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [edx]
pop edi
test ax, ax
je 0x449e0c
cmp word [edx + 2], 0x3a
jne 0x449e0c
push 2
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
xor eax, eax
mov word [ebp - 0x20], ax
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x449e17
xor eax, eax
inc eax
jmp 0x449e19
cmp eax, 0x5c
jne 0x449e17
cmp word [edx + 2], ax
jmp 0x449e05
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
leave
ret

Function at 0x449e25
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call fcn.0044d468
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR100.dll_wcslen]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
mov ecx, dword [ebp - 4]
add esp, 0x14
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.004534b8
leave
ret

Function at 0x449f7a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x449f87
xor eax, eax
pop ebp
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll__waccess]
pop ecx
pop ecx
test eax, eax
jne 0x449f83
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret

Function at 0x449fed
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x44a001
xor eax, eax
jmp 0x44a07a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
test eax, eax
jne 0x44a076
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x44a02d
push 0
push ebx
call dword [sym.imp.MSVCR100.dll__waccess]
pop ecx
pop ecx
test eax, eax
je 0x44a02d
xor eax, eax
jmp 0x44a079
push edi
push ebx
call fcn.0044d0cc
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
push 0x64
call edi
push ebx
call esi
test eax, eax
jne 0x44a075
push 0x1e
pop ebx
test eax, eax
jne 0x44a075
push 0xa
call edi
push dword [ebp + 8]
call esi
dec ebx
test ebx, ebx
jg 0x44a049
test eax, eax
jne 0x44a075
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x44a06e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov dword [ebp - 4], 0x84d3
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x44a07d
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
xor eax, eax
push eax
mov ebx, 0x80
push ebx
push 3
push eax
push 1
mov edi, 0xc0000000
push edi
push dword [ebp + 8]
mov dword [ebp - 8], eax
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x44a0e1
push dword [ebp + 8]
call fcn.0044d0cc
pop ecx
push 0
push ebx
push 3
push 0
push 1
push edi
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x44a0e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
or dword [ebp - 8], 0xffffffff
mov dword [ecx], eax
jmp 0x44a13a
xor ebx, ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x44a103
or dword [ebp - 8], 0xffffffff
jmp 0x44a135
push edi
push ebx
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44a12d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push esi
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
cmp dword [ebp - 4], ebx
je 0x44a143
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44a14b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll__wrename]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop ecx
pop ecx
test eax, eax
je 0x44a192
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [ebx], eax
call fcn.0044d0cc
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
add esp, 0xc
test eax, eax
je 0x44a192
call edi
mov dword [ebx], eax
or eax, 0xffffffff
jmp 0x44a194
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x44aae2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x434], eax
xor eax, eax
mov esi, 0x1fe
push esi
mov word [ebp - 0x224], ax
xor edi, edi
lea eax, [ebp - 0x222]
push edi
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push edi
push eax
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x42c], edi
call sub.MSVCR100.dll_memset
add esp, 0x18
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test ebx, ebx
jne 0x44ab72
xor eax, eax
jmp 0x44ac3f
push ebx
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
test eax, eax
je 0x44ab6b
push 6
lea eax, [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVCR100.dll__wcsupr]
add esp, 0x10
cmp word [ebp - 0x24], 0x41
ja 0x44aba6
cmp word [ebp - 0x24], 0x5a
jae 0x44ab6b
cmp word [ebp - 0x22], 0x3a
jne 0x44abb4
cmp word [ebp - 0x20], 0x5c
je 0x44abc8
push 0x3a
pop eax
mov word [ebp - 0x22], ax
push 0x5c
pop eax
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x1e], ax
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
mov edi, eax
mov eax, pe_nt_image_headers32
push eax
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x438]
push ecx
lea ecx, [ebp - 0x430]
push ecx
lea ecx, [ebp - 0x42c]
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push edi
mov ebx, eax
call esi
test ebx, ebx
je 0x44ac2f
cmp dword [ebp - 0x428], 0
je 0x44ac2f
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.MSVCR100.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x434]
mov dword [ecx], eax
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
leave
ret
Function at 0x44b4ef
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push str.UseOnlyLocalConfig
push 0x45cd48
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x10278], eax
mov edi, 0x10000
cmp dword [esi + 0x10210], ebx
jne 0x44b53e
cmp dword [ebp + 8], ebx
je 0x44b53e
push edi
call sub.mfc100u.dll_new__
pop ecx
mov dword [esi + 0x10210], eax
cmp eax, ebx
jne 0x44b53e
or eax, 0xffffffff
jmp 0x44b630
mov eax, dword [esi + 0x10210]
cmp eax, ebx
je 0x44b553
push edi
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
mov ebx, dword [sym.imp.MSVCR100.dll_wcsncpy]
je 0x44b571
push 0x7fff
push dword [ebp + 8]
push dword [esi + 0x10210]
call ebx
add esp, 0xc
xor eax, eax
cmp dword [esi + 0x10278], eax
jne 0x44b5c8
cmp dword [esi + 0x1020c], eax
jne 0x44b599
cmp dword [ebp + 0xc], eax
je 0x44b599
push edi
call sub.mfc100u.dll_new__
pop ecx
mov dword [esi + 0x1020c], eax
test eax, eax
je 0x44b536
mov eax, dword [esi + 0x1020c]
test eax, eax
je 0x44b5af
push edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x44b5c8
push 0x7fff
push dword [ebp + 0xc]
push dword [esi + 0x1020c]
call ebx
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44b62e
cmp dword [esi + 0x1020c], 0
je 0x44b62e
push eax
lea edi, [esi + 0x10004]
push edi
mov dword [esi + 0x10218], eax
call dword [sym.imp.MSVCR100.dll_wcscpy]
push edi
call fcn.0044cda5
push 0x45cd30
push edi
call dword [sym.imp.MSVCR100.dll_wcscat]
push 0x54
lea ebx, [esi + 0x10220]
push 0
push ebx
call sub.MSVCR100.dll_memset
push 1
push dword [esi + 0x1020c]
push edi
push ebx
call fcn.0044b1db
add esp, 0x30
test eax, eax
jne 0x44b62e
mov dword [esi + 0x10274], 1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x44b637
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x10274], 0
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x214], ecx
je 0x44b6ce
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR100.dll_memset
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push ebx
push 0x45cd78
push eax
mov dword [ebp - 0x210], 0x8000
call dword [sym.imp.MSVCR100.dll__swprintf]
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [esi + 4]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
add esi, 0x10220
push esi
call fcn.0044b3fb
add esp, 0x34
jmp 0x44b6f3
add esi, 4
test eax, eax
je 0x44b6e7
push eax
push 0x8000
push esi
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x44b6f1
push edi
push esi
call dword [sym.imp.MSVCR100.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
leave
ret 0x10
Function at 0x44b704
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.MSVCR100.dll_wcscpy]
mov esi, ecx
cmp dword [ebp + 0x18], ebx
je 0x44b72c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044b637
jmp 0x44b756
lea eax, [esi + 4]
cmp dword [ebp + 0x14], ebx
je 0x44b74e
push dword [ebp + 0x14]
push 0x8000
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x44b756
push dword [ebp + 0x10]
push eax
call edi
pop ecx
pop ecx
add esi, 4
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
test eax, eax
je 0x44b77d
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x44b77f
push esi
push ebx
call edi
pop ecx
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x44b891
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x48], eax
push 0xa
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x10]
mov esi, ecx
call dword [sym.imp.MSVCR100.dll__itow]
add esp, 0xc
push dword [esi + 0x10210]
lea edi, [esi + 4]
push 0x8000
push edi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
call dword [sym.imp.MSVCR100.dll__wtol]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
leave
ret 0xc

Function at 0x44b8f7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x10274], 0
je 0x44b97a
push ebx
push edi
lea eax, [ebp - 0x20c]
push 0x45cd78
push eax
call dword [sym.imp.MSVCR100.dll__swprintf]
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
add esi, 0x10220
push esi
call fcn.0044b436
mov eax, dword [ebp - 0x210]
add esp, 0x24
jmp 0x44b995
mov esi, dword [esi + 0x1020c]
test esi, esi
je 0x44b992
push esi
push dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x44b995
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
leave
ret 0xc
Function at 0x44d0cc
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x44d0e7
dec eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebp
ret

Function at 0x44d296
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x44d2f3
cmp dword [ebp + 0xc], edi
je 0x44d2f3
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44d2cc
push 0xfffffffffffffffe
pop eax
jmp 0x44d2f6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x459ec8
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll__swprintf]
add esp, 0xc
xor eax, eax
jmp 0x44d2f6
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
Function at 0x44d4de
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
cmp dword [ebp + 8], edi
jne 0x44d4f9
xor eax, eax
jmp 0x44d6a5
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_malloc]
push esi
mov esi, 0x104
cmp dword [ebp + 0xc], edi
jne 0x44d525
push esi
call ebx
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x44d6b7
push esi
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x44d54d
push esi
call ebx
mov edi, eax
pop ecx
test edi, edi
je 0x44d6b7
push esi
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov word [ecx], ax
mov word [edi], ax
mov eax, dword [ebp + 8]
mov ebx, str.__
mov esi, eax
push ebx
push esi
mov dword [ebp - 4], eax
call fcn.0044d169
pop ecx
pop ecx
test eax, eax
je 0x44d589
push ebx
call dword [sym.imp.MSVCR100.dll_wcslen]
lea eax, [esi + eax*2]
push ebx
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCR100.dll_wcscpy]
jmp 0x44d5de
push 0x459efc
push esi
call fcn.0044d169
pop ecx
pop ecx
test eax, eax
je 0x44d5e1
push 0x459efc
call dword [sym.imp.MSVCR100.dll_wcslen]
lea eax, [esi + eax*2 + 2]
mov esi, dword [sym.imp.MSVCR100.dll_wcschr]
push 0x5c
push eax
call esi
add esp, 0xc
test eax, eax
je 0x44d6b7
add eax, 2
push 0x5c
push eax
call esi
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x44d6b7
push eax
push dword [ebp + 8]
push edi
call fcn.0044cfde
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x44d68a
mov esi, dword [sym.imp.MSVCR100.dll_wcscat]
push 0x46153c
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0044ce51
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push edi
call esi
push ebx
push edi
call fcn.0044d169
add esp, 0x1c
test eax, eax
je 0x44d624
push edi
call dword [sym.imp.MSVCR100.dll_wcslen]
cmp eax, 6
jmp 0x44d64a
push 0x459efc
push edi
call fcn.0044d169
pop ecx
pop ecx
push edi
test eax, eax
je 0x44d641
call dword [sym.imp.MSVCR100.dll_wcslen]
cmp eax, 4
jmp 0x44d64a
call dword [sym.imp.MSVCR100.dll_wcslen]
cmp eax, 2
pop ecx
jbe 0x44d654
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x44d676
push 0
push edi
call dword [sym.imp.MSVCR100.dll__waccess]
pop ecx
pop ecx
test eax, eax
je 0x44d676
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x44d6a8
push 0x46153c
push edi
call esi
cmp dword [ebp - 4], 0
pop ecx
pop ecx
jne 0x44d5f1
cmp dword [ebp - 0xc], 0
je 0x44d6a0
push dword [ebp + 0xc]
mov esi, dword [sym.imp.MSVCR100.dll_free]
call esi
push edi
call esi
pop ecx
pop ecx
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x44d6b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
jmp 0x44d6a3
Function at 0x44e220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x30]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.SystemCurrentControlSetControlProductOptions
mov edi, 0x80000002
push edi
call esi
test eax, eax
jne 0x44e2ab
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push str.ProductType
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0x14
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x38], 0
jne 0x44e2ab
push 5
lea eax, [ebp - 0x2c]
push str.WinNT
push eax
call dword [sym.imp.MSVCR100.dll_wcsncmp]
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
lea eax, [ecx + 1]
jmp 0x44e2fe
lea eax, [ebp - 0x30]
push eax
push ebx
push 0
push str.SystemSetup
push edi
call esi
test eax, eax
jne 0x44e2fb
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push str.SystemPrefix
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0x14
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x44e2fb
test byte [ebp - 0x1e], 4
je 0x44e2fb
push 2
pop eax
jmp 0x44e2fe
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
leave
ret

Function at 0x44e3c2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44e411
cmp dword [ebp - 0x11c], 6
jne 0x44e411
cmp dword [ebp - 0x118], 0
jne 0x44e411
xor eax, eax
inc eax
cmp byte [ebp - 6], al
jne 0x44e411
cmp word [ebp - 0xc], 2
je 0x44e413
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
leave
ret
Function at 0x44e4e3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x44e584
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x44e539
push esi
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44e539
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x46153c
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x44e553
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
cmp esi, ebx
je 0x44e582
jmp 0x44e57a
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
movzx ecx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
movzx ecx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
movzx eax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push esi
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44e639
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0044cda5
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0044cd4b
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004534b8
leave
ret