joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414a70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x4624c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x11c
lea eax, [ebp - 0x128]
mov byte [ebp - 0x129], 0
push 0
push eax
mov ebx, ecx
call fcn.00435780
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x278]
push 0x11c
push 0
push eax
call fcn.00435780
add esp, 0xc
mov dword [ebp - 0x278], 0x11c
lea ecx, [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x154]
cmp cx, 9
jne 0x414b04
test ebx, ebx
js 0x414b11
mov al, byte [ebp - 0x129]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
test cx, cx
jne 0x414aed
test ebx, 0x40000000
je 0x414aed
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov eax, ebx
push 3
push 2
shr eax, 8
push 0
and eax, 0xff
push 0
mov dword [ebp - 0x124], eax
call esi
push 3
push 1
push edx
movzx ecx, bl
push eax
mov dword [ebp - 0x120], ecx
call esi
mov edi, eax
mov esi, 3
test ebx, 0x10000000
je 0x414b57
mov byte [ebp - 0xe], 1
jmp 0x414b6b
test ebx, 0x20000000
je 0x414b65
mov byte [ebp - 0xe], 3
jmp 0x414b6b
cmp byte [ebp - 0xe], 0
jbe 0x414b81
push 1
push 0x80
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edi, eax
mov esi, 0x83
lea ecx, [ebp - 0x278]
mov ebx, edx
call fcn.004146d0
test esi, esi
je 0x414ba7
push ebx
push edi
push esi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, 1
je 0x414be6
push ebx
push edi
sub esp, 0x11c
lea esi, [ebp - 0x278]
mov edi, esp
mov ecx, 0x47
rep movsd dword es:[edi], dword [esi]
sub esp, 0x11c
lea esi, [ebp - 0x128]
mov ecx, 0x47
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004149f0
add esp, 0x240
cmp al, 1
jne 0x414aed
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
Function at 0x415560
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
mov eax, dword [0x4624c8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x6c0], ebx
lea eax, [edi + 8]
xor esi, esi
cmp dword [eax + 0x14], 8
jb 0x41558e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.004319e1
add esp, 0xc
lea eax, [ebp - 0x214]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call ebx
push 0x45771c
lea eax, [ebp - 0x214]
push eax
call ebx
lea eax, [ebp - 0x6bc]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4156eb
push dword [ebp - 0x6c0]
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.004319e1
add esp, 0xc
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x6bc], 0x10
lea eax, [ebp - 0x690]
je 0x41569f
mov ecx, 0x457470
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41564c
test dx, dx
je 0x415648
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41564c
add eax, 4
add ecx, 4
test dx, dx
jne 0x415626
xor eax, eax
jmp 0x415651
sbb eax, eax
or eax, 1
test eax, eax
je 0x4156bd
mov eax, 0x457720
lea ecx, [ebp - 0x690]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x415686
test dx, dx
je 0x415682
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x415686
add ecx, 4
add eax, 4
test dx, dx
jne 0x415660
xor eax, eax
jmp 0x41568b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4156bd
lea eax, [ebp - 0x41c]
mov ecx, edi
push eax
call fcn.00415560
jmp 0x4156bd
push str..inf
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4156bd
lea eax, [ebp - 0x41c]
mov ecx, edi
push eax
call fcn.00415730
lea eax, [ebp - 0x6bc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4156db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4156fe
cmp esi, 0x12
jne 0x4155e0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430d5f
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x12
je 0x4156e4
push 0x25c
push str.Hardware.cpp
push 0x453a78
push esi
lea ecx, [ebp - 0x46c]
call fcn.00402ee0
push 0x45f830
lea eax, [ebp - 0x46c]
push eax
call fcn.004337ab
int3
Function at 0x416f90
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x690
mov eax, dword [0x4624c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x66c], edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push edi
mov dword [ebp - 0x670], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004319e1
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
add esp, 0xc
push str..inf
push eax
call edi
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416ff4
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x41702a
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x4171ac
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
push ebx
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.004319e1
add esp, 0xc
lea eax, [ebp - 0x61c]
push esi
push eax
call edi
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417052
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x417088
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x4171ac
xor eax, eax
mov word [ebp + ecx - 0x61c], ax
push dword [ebp - 0x66c]
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004319e1
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp - 0x670]
push eax
call edi
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4170c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x4170f6
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x4171ac
xor eax, eax
mov word [ebp + ecx - 0x414], ax
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x688], eax
mov eax, 0x614
mov word [ebp - 0x680], ax
lea eax, [ebp - 0x690]
push eax
mov dword [ebp - 0x690], 0
mov dword [ebp - 0x68c], 3
call esi
test eax, eax
je 0x417137
jmp 0x417180
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x68c], 2
mov dword [ebp - 0x688], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x684], eax
lea eax, [ebp - 0x690]
push eax
call esi
pop edi
pop esi
pop ebx
test eax, eax
je 0x417170
push 0x40a
jmp 0x417185
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push str.Hardware.cpp
push str.SHFileOperation_returned_an_error__Code_is_not_always_a_Win32_code_.
push eax
lea ecx, [ebp - 0x668]
call fcn.00402ee0
push 0x45f830
lea eax, [ebp - 0x668]
push eax
call fcn.004337ab
call fcn.004328dd
int3
Function at 0x418e30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4624c8]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push esi
cmp word [edx], 0
jne 0x418e51
xor eax, eax
jmp 0x418e65
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418e56
sub eax, esi
sar eax, 1
push eax
mov esi, 0x463614
push edx
mov ecx, esi
call fcn.00406140
cmp dword [0x463628], 8
lea eax, [ebp - 0x214]
cmovae esi, dword [0x463614]
push esi
push 0x104
push eax
call fcn.004319e1
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x453a78
push 0x453cac
push 0x463614
call fcn.00419150
add esp, 0xc
call fcn.00418ef0
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.00430d5f
mov esp, ebp
pop ebp
ret 4

Function at 0x418ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x457ca0
push 0x453cac
push 0x463614
call fcn.00419150
add esp, 0xc
mov eax, 0x463614
cmp dword [0x463628], 8
cmovae eax, dword [0x463614]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [0x46362c]
cmp esi, dword [0x463630]
je 0x418f9a
mov edi, dword [esi]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418f60
sub eax, edx
lea ecx, [ebp - 4]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00430edc
add esi, 4
add esp, 4
cmp esi, dword [0x463630]
jne 0x418f57
mov esi, dword [0x46362c]
push ebx
mov dword [0x463630], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418fc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4624c8]
xor eax, ebp
mov dword [ebp - 4], eax
push str.2.5.55
push str.Core_version:__s
push 0x453cac
push 0x463614
call fcn.00419150
mov ecx, dword [0x465c80]
add esp, 0x10
push str.IIF_SETUPVERSION
lea ecx, [ecx + 4]
call fcn.00419790
push eax
push str.Setup_version:__s
push 0x453cac
push 0x463614
call fcn.00419150
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Command_line:__s
push 0x453cac
push 0x463614
call fcn.00419150
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00435780
add esp, 0x1c
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x12c], 1
mov ecx, str.32_bit
mov eax, str.64_bit
cmovne eax, ecx
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0xe]
push eax
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push str.OS_data:__d__d__d__d__s
push 0x453cac
push 0x463614
call fcn.00419150
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str.System_up_time:__d_sec
push 0x453cac
push 0x463614
call fcn.00419150
mov eax, dword [0x465c80]
add esp, 0x10
add eax, 0x234
cmp dword [eax + 0x14], 8
jb 0x4190fe
mov eax, dword [eax]
test eax, eax
jne 0x419106
xor cl, cl
jmp 0x419113
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
test ax, ax
setne cl
test cl, cl
mov edx, 0x454484
mov eax, 0x45447c
cmove eax, edx
push eax
push str.Reboot_pending:__s
push 0x453cac
push 0x463614
call fcn.00419150
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
Function at 0x419150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4624c8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push edi
mov edi, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x4e]
push esi
push eax
movzx eax, word [ebp - 0x50]
push eax
movzx eax, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
push eax
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x5a]
push eax
movzx eax, word [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push str._d:_02d:_02d__02d:_02d:_02d:_03d:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
call fcn.004318af
xor ecx, ecx
mov edx, 2
lea esi, [eax + 3]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430224
mov ebx, eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x60], ebx
push esi
push ebx
call fcn.00432da2
add esp, 0x44
push 0x457e44
push esi
push ebx
call fcn.00431c47
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4191fc
mov eax, dword [edi]
jmp 0x4191fe
mov eax, edi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41929e
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419235
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x68]
sub ecx, edx
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
call edi
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419260
sub ecx, edx
lea eax, [ebp - 0x68]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push ebx
push esi
call edi
push ebx
call fcn.00430edc
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
push 0x40
call fcn.00430224
movdqu xmm0, xmmword [ebp - 0x4c]
add esp, 4
mov dword [ebp - 0x64], eax
lea ecx, [edi + 0x18]
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [ebp - 0x3c]
movdqu xmmword [eax + 0x10], xmm0
movdqu xmm0, xmmword [ebp - 0x2c]
movdqu xmmword [eax + 0x20], xmm0
movdqu xmm0, xmmword [ebp - 0x1c]
movdqu xmmword [eax + 0x30], xmm0
lea eax, [ebp - 0x64]
push eax
call fcn.00419300
lea eax, [ebp - 0x60]
push eax
lea ecx, [edi + 0x18]
call fcn.00419300
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
Function at 0x41b420
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4624c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], 0
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x457fb4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
je 0x41b4bf
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b4b0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00406140
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
Function at 0x41b4e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4624c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x4c], eax
mov ebx, ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x50], edx
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x41b621
push edi
push esi
call fcn.00430224
mov edi, eax
add esp, 4
test edi, edi
je 0x41b60b
push edi
push esi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x454174
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x48]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x44]
push 0x457fbc
push eax
call esi
add esp, 0x18
cmp word [ebp - 0x44], 0
jne 0x41b57b
xor ecx, ecx
jmp 0x41b590
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b581
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x44]
push eax
call fcn.00406140
mov ecx, dword [ebp - 0x48]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ebp - 0x44]
push 0x457fbc
push eax
call esi
add esp, 0x18
cmp word [ebp - 0x44], 0
jne 0x41b5cd
xor ecx, ecx
jmp 0x41b5e2
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b5d3
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00406140
push edi
call fcn.00430edc
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
Function at 0x41b640
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4624c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x48], edx
mov ebx, ecx
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x41b71e
push esi
push edi
call fcn.00430224
mov esi, eax
add esp, 4
test esi, esi
je 0x41b708
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x454174
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x4c]
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ebp - 0x44]
push str._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp word [ebp - 0x44], 0
jne 0x41b6c9
xor ecx, ecx
jmp 0x41b6df
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b6d0
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.00406140
push esi
call fcn.00430edc
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00430d5f
mov esp, ebp
pop ebp
ret

Function at 0x41b740
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4624c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x457fb4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop esi
test eax, eax
je 0x41b7c8
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41b7c8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430d5f
mov esp, ebp
pop ebp
ret
Function at 0x41b7e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 4], 1
jne 0x41b830
push 0xe
push 0
push str._ProgramFiles_
mov ecx, esi
call fcn.0040f4f0
cmp eax, 0xffffffff
je 0x41b858
push 0xe
push str._ProgramW6432_
push 0xe
push eax
mov ecx, esi
call fcn.0040f330
jmp 0x41b806
push 0x13
push 0
push str._ProgramFiles_x86__
mov ecx, esi
call fcn.0040f4f0
cmp eax, 0xffffffff
je 0x41b858
push 0xe
push str._ProgramFiles_
push 0x13
push eax
mov ecx, esi
call fcn.0040f330
jmp 0x41b830
cmp dword [esi + 0x14], 8
jb 0x41b862
mov eax, dword [esi]
jmp 0x41b864
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
mov dword [ebp - 4], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430224
mov edi, eax
add esp, 4
test edi, edi
je 0x41b8d8
cmp dword [esi + 0x14], 8
jb 0x41b89b
mov eax, dword [esi]
jmp 0x41b89d
mov eax, esi
push dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [edi], 0
jne 0x41b8b2
xor ecx, ecx
jmp 0x41b8c6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b8b7
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00406140
push edi
call fcn.00430edc
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41b8e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], edx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b9be
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0xc], ecx
lea eax, [ecx - 1]
cmp eax, 0xffffe
ja 0x41b9ab
lea eax, [ecx + 2]
push eax
mov dword [ebp - 8], eax
call fcn.00430224
mov esi, eax
add esp, 4
test esi, esi
je 0x41b9ab
push dword [ebp - 8]
push ebx
push esi
call fcn.00435780
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b993
cmp byte [esi], 0xff
jne 0x41b971
cmp byte [esi + 1], 0xfe
jne 0x41b971
lea eax, [esi + 2]
push eax
jmp 0x41b972
push esi
mov ecx, dword [ebp - 4]
call fcn.00404490
push esi
call fcn.00430edc
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0xe
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ebx, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret