joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41045c
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0x80
mov eax, 0x43cc06
call fcn.00422277
mov esi, 0x208
push esi
xor ebx, ebx
lea eax, [ebp]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x18], 1
call fcn.00420210
add esp, 0xc
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp + 0x208]
push ebx
push eax
call fcn.00420210
push ebx
call fcn.0042028a
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x20], edx
call fcn.00423a65
add esp, 0x14
cmp eax, ebx
je 0x4104f4
push eax
push str._Y__m__d
lea eax, [ebp + 0x208]
push 0x104
push eax
call fcn.00424652
add esp, 0x10
push esi
lea eax, [ebp + 0x410]
push ebx
push eax
call fcn.00420210
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
lea eax, [ebp]
push eax
lea eax, [ebp + 0x410]
push eax
call esi
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp + 0x410]
push eax
call esi
lea eax, [ebp + 0x410]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405a89
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], ebx
call fcn.0041943b
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00402a0d
push dword [0x452390]
lea ecx, [ebp - 0x10]
call fcn.00405a89
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.00418e8b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.00402a0d
lea esi, [edi + 0xd4]
push esi
lea ecx, [ebp - 0x44]
call fcn.0040d723
push dword [eax]
call fcn.00422918
mov edi, eax
pop ecx
cmp edi, 3
jbe 0x4105a7
mov dword [ebp - 0x18], ebx
push 0x4549e4
lea ecx, [ebp - 0x14]
call fcn.00402e40
inc edi
push edi
lea eax, [ebp - 0x14]
push 0x4453d4
push eax
mov byte [ebp - 4], 6
call fcn.00407fd1
add esp, 0xc
push esi
lea ecx, [ebp - 0x44]
call fcn.0040d723
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0040558e
lea ecx, [ebp - 0x8c]
call fcn.00410416
push dword [0x452390]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00405a89
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 8
call fcn.0040ff6d
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.0040d118
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.00402a0d
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0041947c
lea ecx, [ebp - 0x6c]
call fcn.00418c82
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
call fcn.004103e9
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402a0d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040d0f0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0041042f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.004201f5
add ebp, 0x61c
leave
ret 4
Function at 0x410e60
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x114
push esi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x410f20
push 0x3f
push eax
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x43]
push eax
call fcn.00420210
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x15c]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [ebp - 0x15c], 1
mov dword [ebp - 0x160], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x410eff
movsx eax, byte [ebp - 0x44]
sub eax, 0x30
mov dword [esi + 4], eax
lea eax, [ebp - 0x42]
push eax
mov dword [esi + 0x10], 2
call fcn.00424685
pop ecx
mov dword [esi + 8], eax
jmp 0x410f20
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov dword [esi + 8], eax
xor eax, eax
cmp ecx, 4
seta al
mov dword [esi + 4], ecx
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x410f30
jne 0x410f85
cmp dword [esi + 8], 2
jb 0x410f85
push 0x110
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.00420210
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [ebp - 0x158], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410f85
lea ecx, [ebp - 0x158]
push ecx
call eax
test eax, eax
jne 0x410f85
push edi
lea eax, [ebp - 0x158]
push eax
push esi
call fcn.0041fe90
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.004201f5
leave
ret
Function at 0x4124af
Capabilities:
Create process on windows

Disassembly:
push 0x54
mov eax, 0x43ce32
call fcn.00422277
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 0x20], esi
je 0x412558
call fcn.00410fe7
test eax, eax
je 0x412558
push 0x38
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00420210
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x58]
inc edi
push eax
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x1040
mov dword [ebp - 0x4c], str.runas
mov dword [ebp - 0x3c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x412617
push dword [ebp + 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x412548
push eax
push dword [ebp - 0x20]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, edi
jmp 0x412617
push 0x4549e4
lea ecx, [ebp + 0x20]
call fcn.00402e40
mov dword [ebp - 4], esi
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x10], esi
je 0x412586
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.__s___s
push eax
call fcn.00407fd1
add esp, 0x10
jmp 0x412597
push dword [ebp + 0xc]
push str.__s_
push eax
call fcn.00407fd1
add esp, 0xc
push 0x40
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00420210
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x1c], esi
push 5
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov edi, dword [ebp + 0x20]
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x60], 0x44
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp ebx, esi
je 0x41260f
push dword [ebp + 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x4125ff
push eax
push dword [ebp - 0x1c]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [edi - 0x10]
call fcn.00402a0d
mov eax, ebx
call fcn.0042234f
ret
Function at 0x412ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
mov esi, dword [ebp + 0x1a0]
push edi
mov ecx, esi
call fcn.00402f2d
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [ebp - 0x78], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412b7e
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push edi
push eax
call fcn.00420210
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push str.Path
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x208
mov dword [ebp - 0x80], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.004055ff
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
xor ecx, ecx
cmp dword [eax - 0xc], edi
setne cl
mov eax, ecx
jmp 0x412b80
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.004201f5
add ebp, 0x198
leave
ret

Function at 0x412b97
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x43cfae
call fcn.00422277
and dword [ebp - 0x10], 0
push 0x4549e4
lea ecx, [ebp - 0x14]
call fcn.00402e40
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.00412ad0
pop ecx
test eax, eax
je 0x412c1d
push str._safemon360tray.exe
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004054c6
add esp, 0xc
push dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
call esi
test eax, eax
je 0x412c1d
push str.hipsver.dll
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004054c6
add esp, 0xc
push dword [eax]
mov dword [ebp - 0x10], 3
call esi
test eax, eax
je 0x412c1d
xor esi, esi
inc esi
jmp 0x412c1f
xor esi, esi
test byte [ebp - 0x10], 2
je 0x412c34
mov ecx, dword [ebp - 0x18]
and dword [ebp - 0x10], 0xfffffffd
add ecx, 0xfffffff0
call fcn.00402a0d
test byte [ebp - 0x10], 1
je 0x412c45
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402a0d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402a0d
mov eax, esi
call fcn.0042234f
ret
Function at 0x4134be
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x43d0d4
call fcn.00422277
mov ecx, dword [ebp + 0x214]
xor edi, edi
mov esi, 0x4549e4
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], edi
call fcn.00402e40
push 0x208
xor ebx, ebx
lea eax, [ebp]
push edi
inc ebx
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], ebx
call fcn.00420210
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str._setting.ini
lea ecx, [ebp - 0x28]
call fcn.00405a89
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.0040552a
add esp, 0xc
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00402a0d
push dword [ebp - 0x10]
mov eax, 0x443998
push 0x443994
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x41358d
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.0040558e
jmp 0x413669
xor eax, eax
mov edi, 0x454110
cmp ax, word [0x454110]
jne 0x413660
push ebx
push 0x23
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4135bc
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
lea ecx, [ebp - 0x18]
call fcn.00402e40
push str.360sd.exe
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00405a89
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 5
call fcn.0040552a
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [eax]
call esi
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.00402a0d
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00402a0d
lea ecx, [ebp - 0x18]
test ebx, ebx
je 0x41361f
push str.360sd_
jmp 0x413624
push 0x446118
call fcn.004055ff
mov ebx, dword [ebp - 0x18]
push dword [ebx - 0xc]
push ebx
push edi
call fcn.00422c36
add esp, 0xc
push edi
call esi
test eax, eax
jne 0x413648
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.setting.ini
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebx - 0x10]
mov byte [ebp - 4], 3
call fcn.00402a0d
mov ecx, dword [ebp - 0x14]
push edi
call fcn.004055ff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402a0d
mov eax, dword [ebp - 0x14]
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.004201f5
add ebp, 0x20c
leave
ret
Function at 0x413f5d
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x444164
push dword [esp + 0x10]
mov esi, ecx
call fcn.0042330d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x413ff6
push 0
push dword [esi + 0x2c0]
push edi
call fcn.00424b13
mov eax, dword [esi + 0x2d4]
add esp, 0xc
test eax, eax
je 0x413fa0
push eax
call fcn.0041fe79
and dword [esi + 0x2d4], 0
pop ecx
mov eax, dword [esi + 0x2bc]
test eax, eax
ja 0x413fb2
push edi
call fcn.00422f10
jmp 0x413ff5
push eax
call fcn.00421de0
push edi
push 1
push dword [esi + 0x2bc]
mov dword [esi + 0x2d4], eax
push eax
call fcn.0042322c
push edi
call fcn.00422f10
mov eax, dword [esi + 0x2d4]
add esp, 0x18
cmp dword [eax], 0x2014b50
jne 0x413fe8
xor eax, eax
jmp 0x413ff9
push eax
call fcn.0041fe79
and dword [esi + 0x2d4], 0
pop ecx
or eax, 0xffffffff
pop edi
pop esi
ret 4
Function at 0x414453
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push 0x4461d8
push dword [esp + 0x10]
mov esi, ecx
call fcn.0042330d
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x414475
or eax, 0xffffffff
jmp 0x4144fc
push edi
push 0x16
lea edi, [esi + 0x2b0]
push 0
push edi
call fcn.00420210
push ebx
push 1
push 0x16
push edi
mov dword [edi], 0x6054b50
call fcn.00423bee
push ebx
call fcn.00422f10
mov ebx, dword [esp + 0x34]
add esp, 0x20
test ebx, ebx
jne 0x4144ac
xor eax, eax
jmp 0x4144fb
push dword [esp + 0x10]
mov edi, 0x4461d4
lea eax, [esi + 0xc]
push edi
push eax
call fcn.00422dfe
push 0x444164
push ebx
call fcn.0042330d
add esp, 0x14
test eax, eax
jne 0x4144d6
or eax, 0xffffffff
jmp 0x4144fb
push ebx
lea eax, [esi + 0x138]
push edi
push eax
call fcn.00422dfe
add esp, 0xc
push 0
push ebx
mov ecx, esi
call fcn.0041401a
xor ecx, ecx
test al, al
setne cl
dec ecx
mov eax, ecx
pop edi
pop esi
pop ebx
ret 8

Function at 0x414566
Capabilities:
Check os version

Disassembly:
cmp dword [0x454324], 0
jne 0x414584
push 0x454320
mov dword [0x454320], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x454330], 2
jne 0x41459a
cmp dword [0x454324], 6
jb 0x41459a
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x41483d
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0x450
lea ebp, [esp - 4]
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x450], eax
push 0xc
mov eax, 0x43d25b
call fcn.00422277
mov ebx, dword [ebp + 0x45c]
xor eax, eax
mov edi, 0x208
push edi
mov dword [ebp - 0x14], eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp + 0x3a]
xor ecx, ecx
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp + 0x38], cx
call fcn.00420210
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
push edi
push eax
mov word [ebp + 0x244], ax
lea eax, [ebp + 0x246]
push eax
call fcn.00420210
push 0xffffffffffffffff
push str.dbghelp.dll
lea eax, [ebp + 0x38]
push eax
push str._s_s
lea eax, [ebp + 0x244]
push esi
push eax
call fcn.0041459d
add esp, 0x24
lea eax, [ebp + 0x244]
push eax
mov ecx, ebx
call fcn.0040c4ab
xor ebx, ebx
inc ebx
push 0
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x34], 7
call fcn.0040ab51
lea eax, [ebp + 0x244]
push eax
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0040c4ab
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 2
call fcn.00417fa4
pop ecx
pop ecx
push 0
push ebx
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.0040b003
call fcn.00414566
test eax, eax
jne 0x4149aa
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x414942
lea eax, [ebp + 0x20]
push str.6.11.0.0
push eax
call fcn.00417b24
pop ecx
pop ecx
test eax, eax
jg 0x4149aa
mov edi, dword [ebp - 0x18]
lea esi, [edi + 0x1c]
push esi
lea ecx, [ebp]
call fcn.0040bab2
cmp dword [esi + 0x18], 8
mov byte [ebp - 4], 3
jb 0x414971
mov eax, dword [esi + 4]
jmp 0x414974
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414999
mov ecx, edi
call fcn.004145bc
test al, al
je 0x414999
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push 0
push esi
call fcn.0040b857
jmp 0x41499f
mov byte [edi + 0x8c], bl
push 0
push ebx
lea ecx, [ebp]
call fcn.0040b003
push 0
push ebx
lea ecx, [ebp + 0x1c]
call fcn.0040b003
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x450]
xor ecx, ebp
call fcn.004201f5
add ebp, 0x454
leave
ret 4
Function at 0x417929
Capabilities:
Create directory

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x41794e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41794e
xor eax, eax
inc eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x417d9a
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
mov ecx, dword [ebp + 0xa4]
push ebx
push esi
push edi
push 0x446474
push eax
lea eax, [ebp - 0x78]
xor ebx, ebx
push eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], ebx
call fcn.0042519a
add esp, 0xc
cmp dword [ebp - 0x78], ebx
je 0x417ec6
push 2
push ebx
push dword [ebp - 0x78]
call fcn.00424b13
push dword [ebp - 0x78]
call fcn.00424a1b
push ebx
push ebx
push dword [ebp - 0x78]
mov edi, eax
call fcn.00424b13
add esp, 0x1c
cmp edi, ebx
je 0x417ebd
lea esi, [edi + 1]
push esi
call fcn.0041f58f
pop ecx
mov dword [ebp - 0x7c], eax
cmp eax, ebx
je 0x417ebd
push esi
push ebx
push eax
call fcn.00420210
push dword [ebp - 0x78]
push 1
push edi
push dword [ebp - 0x7c]
call fcn.0042322c
add esp, 0x1c
test eax, eax
je 0x417eb4
mov esi, 0x104
push esi
lea eax, [ebp - 0x73]
push ebx
push eax
mov byte [ebp - 0x74], bl
call fcn.00420210
push esi
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x7c]
call fcn.00417cae
add esp, 0x1c
test eax, eax
je 0x417eb4
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x417e84
xor eax, eax
jmp 0x417e9b
lea eax, [esi + esi]
call fcn.00425890
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.004178f1
push eax
mov eax, dword [ebp + 0xa8]
push 0x44646c
dec eax
push eax
push dword [ebp - 0x80]
call fcn.00417c56
add esp, 0x10
push dword [ebp - 0x7c]
call fcn.00422381
pop ecx
push dword [ebp - 0x78]
call fcn.00422f10
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004201f5
add ebp, 0x98
leave
ret

Function at 0x417f58
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x417f6b
mov eax, dword [esi]
jmp 0x417f6d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417fa1
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 8
jb 0x417f87
mov eax, dword [eax + 4]
jmp 0x417f8a
add eax, 4
cmp dword [edi + 0x18], 8
jb 0x417f92
mov esi, dword [esi]
push eax
push esi
call fcn.00417ae3
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
pop edi
pop esi
ret
Function at 0x417fa4
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x419c]
mov eax, 0x421c
call fcn.00422b90
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x4198], eax
mov eax, dword [ebp + 0x41a8]
push esi
mov esi, dword [ebp + 0x41a4]
push edi
mov dword [ebp - 0x74], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
call fcn.00420210
add esp, 0xc
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x417ff9
mov eax, dword [edi]
jmp 0x417ffb
mov eax, edi
lea ecx, [ebp - 0x7c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4180aa
cmp eax, 0x3fff
ja 0x4180aa
cmp dword [esi + 0x18], 8
jb 0x418020
mov edi, dword [edi]
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4180aa
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x444e98
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4180aa
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x3f90], ax
lea eax, [ebp + 0x3f92]
push eax
call fcn.00420210
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
lea eax, [ebp + 0x3f90]
push 0x103
push eax
call fcn.004258bc
mov ecx, dword [ebp - 0x74]
add esp, 0x28
lea eax, [ebp + 0x3f90]
push eax
call fcn.0040bad8
xor eax, eax
inc eax
jmp 0x4180ac
xor eax, eax
mov ecx, dword [ebp + 0x4198]
pop edi
xor ecx, ebp
pop esi
call fcn.004201f5
add ebp, 0x419c
leave
ret
Function at 0x4180c3
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x40
mov eax, 0x43d4dc
call fcn.00422277
mov eax, dword [ebp + 0x420]
mov esi, dword [ebp + 0x41c]
mov edi, 0x208
xor ebx, ebx
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp]
push ebx
push eax
mov byte [ebp - 0xd], bl
call fcn.00420210
push edi
lea eax, [ebp + 0x208]
push ebx
push eax
call fcn.00420210
add esp, 0x18
push dword [esi]
lea eax, [ebp]
push 0x104
push eax
call fcn.0040799f
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp + 0x208]
push eax
push ebx
push str.dbghelp
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4181ba
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040c4ab
push dword [esi]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.0040c4ab
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00417f58
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.0040b003
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040b003
cmp edi, ebx
je 0x4181ba
mov eax, dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4181ba
mov byte [ebp - 0xd], 1
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
lea eax, [ebp + 0x208]
push eax
call esi
movzx eax, byte [ebp - 0xd]
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.004201f5
add ebp, 0x414
leave
ret