joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4111b2
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x40]
push edi
mov edi, 0xffff
xor al, al
mov bl, 1
cmp ecx, edi
je 0x41133d
push ebp
mov ebp, 0x10000000
cmp ecx, 0x7c
je 0x41133c
cmp ecx, 0x29
jne 0x4111fb
cmp dword [esi + 0x10], 0
jne 0x41133c
test dword [esi + 0x44], ebp
jne 0x4111fb
push 5
call fcn.005b6677
pop ecx
jmp 0x411326
cmp ecx, 0x2e
jne 0x411216
push 5
lea ecx, [esi + 0x18]
call fcn.0040bfa9
mov ecx, esi
call fcn.0040d489
jmp 0x411326
cmp ecx, 0x5c
jne 0x411275
mov ecx, esi
call fcn.0040d489
mov eax, dword [esi + 0x44]
and eax, 0x80
je 0x411249
cmp word [esi + 0x3e], 0x62
jne 0x411249
push 4
lea ecx, [esi + 0x18]
call fcn.0040bfa9
mov ecx, esi
call fcn.0040d489
jmp 0x41132d
test eax, eax
je 0x411269
cmp word [esi + 0x3e], 0x42
jne 0x411269
push 4
lea ecx, [esi + 0x18]
call fcn.0040bfa9
mov eax, dword [esi + 0x1c]
add eax, 8
or dword [eax], 1
jmp 0x41123d
mov ecx, esi
call fcn.0040fbf3
jmp 0x411326
cmp ecx, 0x5b
jne 0x411298
mov ecx, esi
call fcn.0040d489
mov ecx, esi
call fcn.00411166
push 4
push 0x5d
mov ecx, esi
call fcn.0040d4dc
jmp 0x411326
cmp ecx, 0x28
jne 0x4112ba
mov ecx, esi
call fcn.0040d489
mov ecx, esi
call fcn.0040d4fd
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.0040d4dc
jmp 0x411322
cmp ecx, 0x5e
jne 0x4112c6
push 2
jmp 0x411235
cmp ecx, 0x24
jne 0x4112d2
push 3
jmp 0x411235
cmp ecx, 0x2a
je 0x41131a
cmp ecx, 0x2b
je 0x41131a
cmp ecx, 0x3f
je 0x41131a
cmp ecx, 0x7b
je 0x41131a
cmp ecx, 0x7d
jne 0x4112f7
test dword [esi + 0x44], ebp
jne 0x4112f7
push 6
jmp 0x4111f0
cmp ecx, 0x5d
jne 0x411308
test dword [esi + 0x44], ebp
jne 0x411308
push 4
jmp 0x4111f0
movzx eax, word [esi + 0x3e]
push eax
lea ecx, [esi + 0x18]
call fcn.0040f377
jmp 0x41120a
push 0xa
call fcn.005b6677
pop ecx
test bl, bl
je 0x41132d
mov ecx, esi
call fcn.0040f821
mov ecx, dword [esi + 0x40]
mov al, 1
mov bl, al
cmp ecx, edi
jne 0x4111d1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4127ba
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x30
mov eax, 0x5b8fed
call fcn.0058f985
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
mov dword [ebp - 0x1c], ebx
call edi
cmp eax, ebx
jne 0x412931
mov dword [ebp - 0x18], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x104
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x41291c
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040141e
lea eax, [ebp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea eax, [ebp - 0x14]
push str._s_s
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
call fcn.00401518
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp - 0x14]
push esi
call edi
cmp eax, ebx
jne 0x4128c3
push ebx
push ebx
push ebx
push ebx
push str.RefCount
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4128c3
push ebx
push ebx
push ebx
push ebx
push str.UsedBy
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4128c3
push ebx
push ebx
push ebx
push ebx
push str.UninstallString
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4128c3
mov dword [ebp - 0x20], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x20], ebx
je 0x41290d
lea ecx, [ebp - 0x3c]
call fcn.00442bd7
push ebx
push 0xf003f
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push esi
mov byte [ebp - 4], 1
call fcn.00442f22
lea ecx, [ebp - 0x3c]
call fcn.00442a64
lea ecx, [ebp - 0x3c]
call fcn.004429ce
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00442c12
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401019
inc dword [ebp - 0x18]
cmp dword [ebp - 0x28], ebx
je 0x41280b
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0058f976
add ebp, 0x20c
leave
ret
Function at 0x415aaf
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x7f4]
sub esp, 0x874
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x7f0], eax
mov eax, dword [ebp + 0x804]
push ebx
mov ebx, dword [ebp + 0x7fc]
push esi
push edi
mov edi, dword [ebp + 0x800]
mov dword [ebp - 0x80], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x3e0], ax
lea eax, [ebp + 0x3e2]
push eax
call fcn.0058fa90
xor eax, eax
push esi
push eax
mov word [ebp + 0x1d8], ax
lea eax, [ebp + 0x1da]
push eax
call fcn.0058fa90
xor eax, eax
push esi
push eax
mov word [ebp + 0x5e8], ax
lea eax, [ebp + 0x5ea]
push eax
call fcn.0058fa90
add esp, 0x24
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x415be4
push dword [ebp - 0x80]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
lea eax, [ebp + 0x3e0]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x415bdb
test byte [ebp - 0x78], 0x10
je 0x415b9a
cmp word [ebp - 0x4c], 0x2e
je 0x415bca
lea eax, [ebp - 0x4c]
push eax
push edi
lea eax, [ebp + 0x1d8]
push eax
call esi
push dword [ebp - 0x80]
lea eax, [ebp + 0x1d8]
push eax
push ebx
call fcn.00415aaf
add esp, 0xc
jmp 0x415bca
lea eax, [ebp - 0x4c]
push eax
push edi
lea eax, [ebp + 0x5e8]
push eax
call esi
push 0
lea eax, [ebp + 0x5e8]
push eax
mov ecx, ebx
call fcn.00496fa7
test eax, eax
jne 0x415bca
lea eax, [ebp + 0x5e8]
push eax
mov ecx, ebx
call fcn.0049728d
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415b6a
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x7f0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f976
add ebp, 0x7f4
leave
ret
Function at 0x416257
Capabilities:
Delete directory

Disassembly:
push 4
mov eax, 0x5cf14a
call fcn.0058f985
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x10]
call fcn.0040141e
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x416297
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401019
xor al, al
call fcn.0058fa5d
ret
cmp byte [ebp + 0xc], bl
jne 0x4162a7
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x416284
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4162e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x10]
push str.___Failed_to_remove_directory:__s__Error_code___d
push eax
call fcn.00401518
push dword [ebp - 0x10]
call fcn.004437b6
push esi
call fcn.00415f6f
add esp, 0x18
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401019
mov al, bl
jmp 0x416291
mov bl, 1
jmp 0x4162d9
Function at 0x4162ec
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x5e8]
sub esp, 0x668
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x5e4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x5f0]
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x1d4], ax
lea eax, [ebp + 0x1d6]
push eax
call fcn.0058fa90
xor eax, eax
push esi
push eax
mov word [ebp + 0x3dc], ax
lea eax, [ebp + 0x3de]
push eax
call fcn.0058fa90
push edi
call fcn.0058f15d
push eax
push edi
mov esi, 0x104
lea eax, [ebp + 0x1d4]
push esi
push eax
call fcn.005921ff
push 0x5daec4
lea eax, [ebp + 0x1d4]
push esi
push eax
call fcn.00592182
push edi
call fcn.0058f15d
push eax
push edi
lea eax, [ebp + 0x3dc]
push esi
push eax
call fcn.005921ff
add esp, 0x4c
push 0x5d4dc0
lea eax, [ebp + 0x3dc]
push esi
push eax
call fcn.00592182
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4163bb
xor al, al
jmp 0x4164a3
lea eax, [ebp + 0x3dc]
push eax
call fcn.0058f15d
push eax
lea eax, [ebp + 0x3dc]
push eax
lea eax, [ebp + 0x1d4]
push esi
push eax
call fcn.005921ff
add esp, 0x14
mov byte [ebp - 0x7d], 1
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x416479
lea eax, [ebp - 0x50]
push eax
call fcn.0041595d
pop ecx
test al, al
jne 0x416488
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x3dc]
push esi
push eax
call fcn.00592182
add esp, 0xc
test byte [ebp - 0x7c], 0x10
je 0x416467
lea eax, [ebp + 0x3dc]
push eax
call fcn.004162ec
pop ecx
test al, al
je 0x41646d
lea eax, [ebp + 0x3dc]
push 1
push eax
call fcn.00416257
lea eax, [ebp + 0x1d4]
push eax
call fcn.0058f15d
push eax
lea eax, [ebp + 0x1d4]
push eax
lea eax, [ebp + 0x3dc]
push esi
push eax
call fcn.005921ff
add esp, 0x1c
jmp 0x416488
cmp dword [ebp - 0x7c], 0
je 0x416488
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4163b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x41646d
mov byte [ebp - 0x7d], 0
cmp byte [ebp - 0x7d], 0
jne 0x4163e3
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
push edi
call fcn.00416257
pop ecx
pop ecx
mov ecx, dword [ebp + 0x5e4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f976
add ebp, 0x5e8
leave
ret
Function at 0x4164bb
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 4
mov eax, 0x5cf14a
call fcn.0058f985
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416544
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4164f0
test al, 1
je 0x4164f0
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x416544
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x10]
call fcn.0040141e
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x10]
push str.___Failed_to_delete_file:___s___Error_code:__d
push eax
call fcn.00401518
mov edi, dword [ebp - 0x10]
push edi
call fcn.004437b6
add esp, 0x14
cmp byte [ebp + 0xc], 0
je 0x41653c
push esi
call fcn.00415f6f
pop ecx
lea ecx, [edi - 0x10]
call fcn.00401019
call fcn.0058fa5d
ret
Function at 0x41654a
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
sub esp, 0x868
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x868], eax
push 8
mov eax, 0x5b967d
call fcn.0058f985
mov ebx, dword [ebp + 0x874]
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x250], ax
xor edi, edi
lea eax, [ebp + 0x252]
push edi
push eax
call fcn.0058fa90
xor eax, eax
push esi
mov word [ebp + 0x660], ax
lea eax, [ebp + 0x662]
push edi
push eax
call fcn.0058fa90
xor eax, eax
push esi
mov word [ebp + 0x458], ax
lea eax, [ebp + 0x45a]
push edi
push eax
call fcn.0058fa90
add esp, 0x24
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x10]
call fcn.0040141e
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4166ed
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x5d4e94
push ebx
lea eax, [ebp + 0x250]
push eax
call edi
lea eax, [ebp]
push eax
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x4166ed
lea eax, [ebp + 0x2c]
push eax
push ebx
lea eax, [ebp + 0x660]
push eax
call edi
mov eax, dword [ebp]
test al, 0x10
je 0x416662
cmp word [ebp + 0x2c], 0x2e
je 0x4166cf
lea eax, [ebp + 0x2c]
push eax
push ebx
lea eax, [ebp + 0x458]
push eax
call edi
lea eax, [ebp + 0x458]
push eax
call fcn.0041654a
lea eax, [ebp + 0x458]
push 1
push eax
call fcn.00416257
add esp, 0xc
jmp 0x4166cf
test al, 7
je 0x4166bf
mov esi, eax
and esi, 0xfffffff8
push esi
push eax
lea eax, [ebp + 0x660]
push eax
lea eax, [ebp - 0x10]
push str.Resetting_file_attributes_for___s__from_0x_08X_to_0x_08X
push eax
call fcn.00401518
push dword [ebp - 0x10]
call fcn.004437b6
add esp, 0x18
push esi
lea eax, [ebp + 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4166bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Failed_to_set_file_attributes._Error_code__0x_08X
push eax
call fcn.00401518
push dword [ebp - 0x10]
call fcn.004437b6
add esp, 0x10
lea eax, [ebp + 0x660]
push 1
push eax
call fcn.004164bb
pop ecx
pop ecx
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416615
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x868]
xor ecx, ebp
call fcn.0058f976
add ebp, 0x86c
leave
ret
Function at 0x416b1a
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x5b9740
call fcn.0058f9b8
mov edx, dword [ebp + 0x220]
mov ecx, dword [ebp + 0x218]
mov eax, dword [ebp + 0x214]
mov esi, dword [ebp + 0x21c]
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x18]
push edx
push 0x20019
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x416b7b
xor al, al
jmp 0x416c52
mov eax, dword [esi]
mov edi, 0x104
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
jne 0x416b99
push 0x5db024
mov ecx, esi
call fcn.00401287
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416be1
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp]
push eax
call fcn.00401287
mov ecx, dword [ebp - 0x1c]
call fcn.00402137
mov ecx, dword [ebp - 0x1c]
call fcn.004020ee
mov byte [ebp - 0x13], 1
push 0x63947c
lea eax, [ebp - 0x13]
push eax
call fcn.005902bc
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x416c2d
push dword [ebp - 0x1c]
lea eax, [ebp]
push esi
push eax
push dword [ebp - 0x18]
call fcn.00416b1a
add esp, 0x10
cmp al, bl
je 0x416c28
mov byte [ebp - 0x11], 1
push 0x63947c
lea eax, [ebp - 0x11]
jmp 0x416bdb
inc dword [ebp - 0x24]
jmp 0x416be7
mov byte [ebp - 0x12], bl
push 0x63947c
lea eax, [ebp - 0x12]
jmp 0x416bdb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0058f976
add ebp, 0x20c
leave
ret
Function at 0x416fbc
Capabilities:
Check mutex on windows

Disassembly:
push ebp
sub esp, 0x114
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x114], eax
push 8
mov eax, 0x5b980e
call fcn.0058f985
mov ebx, dword [ebp + 0x120]
test ebx, ebx
jne 0x416ff1
xor eax, eax
jmp 0x417094
mov esi, 0x114
push esi
lea eax, [ebp]
push 0
push eax
call fcn.0058fa90
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x416fea
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040141e
and dword [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x10]
call fcn.004039d7
push 0x5f
push 0x5c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004074ec
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str.GlobalSETUP__s
push eax
call fcn.00401518
mov ebx, dword [ebp - 0x14]
add esp, 0xc
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x41707f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41707f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401019
lea ecx, [ebx - 0x10]
call fcn.00401019
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x114]
xor ecx, ebp
call fcn.0058f976
add ebp, 0x118
leave
ret

Function at 0x4170b7
Capabilities:
Create directory

Disassembly:
push 0xc
mov eax, 0x5b984e
call fcn.0058f985
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004039d7
and dword [ebp - 4], 0
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040141e
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 1
jne 0x417113
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401019
xor eax, eax
call fcn.0058fa5d
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x417125
push 0xb7
jmp 0x4170ef
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00415dfa
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x4171d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4171cd
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00403913
test eax, eax
jge 0x417162
push 0xf
jmp 0x4170ef
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f0b
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040227d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401019
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.004170b7
pop ecx
pop ecx
test eax, eax
jne 0x4171bb
xor esi, esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401019
mov eax, esi
jmp 0x41710d
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call esi
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x41719e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41719c
xor esi, esi
inc esi
jmp 0x41719e
Function at 0x417284
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x7f0]
sub esp, 0x870
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x7ec], eax
push ebx
mov ebx, dword [ebp + 0x7fc]
push esi
push edi
mov edi, dword [ebp + 0x7f8]
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x1d4], ax
lea eax, [ebp + 0x1d6]
push eax
call fcn.0058fa90
xor eax, eax
push esi
push eax
mov word [ebp + 0x3dc], ax
lea eax, [ebp + 0x3de]
push eax
call fcn.0058fa90
xor eax, eax
push esi
push eax
mov word [ebp + 0x5e4], ax
lea eax, [ebp + 0x5e6]
push eax
call fcn.0058fa90
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0x24
push 0x5d4e94
push edi
lea eax, [ebp + 0x1d4]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x4173d7
lea eax, [ebp - 0x50]
push eax
push edi
lea eax, [ebp + 0x3dc]
push eax
call esi
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp + 0x5e4]
push eax
call esi
test byte [ebp - 0x7c], 0x10
je 0x41739a
cmp word [ebp - 0x50], 0x2e
je 0x4173b9
lea eax, [ebp + 0x5e4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41737a
push eax
lea eax, [ebp + 0x5e4]
push eax
call fcn.004170b7
pop ecx
pop ecx
test eax, eax
je 0x4173f1
push dword [ebp + 0x800]
lea eax, [ebp + 0x5e4]
push eax
lea eax, [ebp + 0x3dc]
push eax
call fcn.00417284
add esp, 0xc
test al, al
jmp 0x4173b7
movzx eax, byte [ebp + 0x800]
push eax
lea eax, [ebp + 0x5e4]
push eax
lea eax, [ebp + 0x3dc]
push eax
call fcn.0043c6ff
test eax, eax
je 0x4173f1
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41732d
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp + 0x7ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f976
add ebp, 0x7f0
leave
ret
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x4173d9
Function at 0x4173fe
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x394], eax
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x18c], ax
xor edi, edi
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.0058fa90
xor eax, eax
push esi
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push edi
push eax
call fcn.0058fa90
add esp, 0x18
lea eax, [ebp + 0x18c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x417471
xor al, al
jmp 0x41753a
lea eax, [ebp + 0x18c]
push edi
push eax
call fcn.004170b7
pop ecx
pop ecx
test eax, eax
jne 0x417491
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41746a
lea eax, [ebp + 0x18c]
push eax
call fcn.0058f15d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
pop ecx
mov edi, 0x5d4dc0
test eax, eax
jbe 0x4174cf
lea eax, [ebp + 0x18c]
push eax
call fcn.0058f15d
cmp word [ebp + eax*2 + 0x18a], 0x5c
pop ecx
je 0x4174cf
push edi
lea eax, [ebp + 0x18c]
push eax
call esi
push 0
call fcn.0059057d
push eax
call fcn.00591976
pop ecx
pop ecx
mov dword [ebp - 0x80], 0x64
call fcn.00591988
cdq
mov ecx, 0xffff
idiv ecx
movzx eax, dx
push eax
lea eax, [ebp + 0x18c]
push eax
lea eax, [ebp - 0x7c]
push str._sVIES_04X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
dec dword [ebp - 0x80]
je 0x41746a
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004170b7
pop ecx
pop ecx
test eax, eax
je 0x4174e5
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push ebx
call esi
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f976
add ebp, 0x398
leave
ret
Function at 0x417552
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x2c
mov eax, 0x5b9871
call fcn.0058f985
or dword [ebp - 0x10], 0xffffffff
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], ax
mov word [ebp - 0x16], ax
mov word [ebp - 0x18], ax
mov word [ebp + 0x208], ax
xor edi, edi
lea eax, [ebp + 0x20a]
push edi
push eax
mov dword [ebp - 0x1c], vtable.CVersionInfo.0
call fcn.0058fa90
xor eax, eax
push esi
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.0058fa90
add esp, 0x18
push 0xa
lea ecx, [ebp - 0x38]
call fcn.00496ef8
lea eax, [ebp]
push eax
push edi
push edi
push 0x25
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x5db15c
lea eax, [ebp]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044555c
push str.___MSI_was_found_on_this_system:
call fcn.004437b6
movzx eax, word [ebp - 0x12]
pop ecx
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push str._______s_file_version:__hu._hu._hu._hu
call fcn.004437b6
or dword [ebp - 4], 0xffffffff
add esp, 0x18
lea ecx, [ebp - 0x38]
call fcn.00497022
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0058f976
add ebp, 0x414
leave
ret