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

Disassembly:
push 0xffffffffffffffff
push 0x441196
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0xa50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4513e0]
xor eax, esp
push eax
lea eax, [esp + 0xa68]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa78]
mov ebp, dword [esp + 0xa7c]
mov dword [esp + 0x20], ecx
xor ecx, ecx
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ecx
mov word [esp + 0x44], cx
mov dword [esp + 0xa70], ecx
cmp byte [eax + 0x3e], cl
je 0x412055
add eax, 0x18
push eax
mov ebx, str.Uninstall
lea esi, [esp + 0x28]
call fcn.0041a1c0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0xa78], 1
call fcn.00403500
mov esi, 8
mov byte [esp + 0xa70], 0
cmp dword [esp + 0x3c], esi
jb 0x411f75
mov edx, dword [esp + 0x28]
push edx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x58], esi
mov eax, dword [esp + 0x44]
jae 0x411f83
lea eax, [esp + 0x44]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
add edi, 1
push edi
push ebp
lea edx, [esp + 0x64]
push str._s_d
push edx
call esi
mov ecx, dword [esp + 0x28]
add esp, 0x10
push 0
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
push ecx
call ebx
cmp eax, 2
jne 0x411fb0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x268]
push eax
mov eax, dword [esp + 0x28]
call fcn.00427390
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [ecx + ecx]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x268]
push eax
push 7
push 0
lea ecx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x412036
push eax
push str.Error_creating_uninstall_key_0x_X
push 0x4524d8
mov eax, 2
call fcn.0041eee0
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x58], 8
jb 0x412055
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00429d64
add esp, 4
mov ecx, dword [esp + 0xa68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa50]
xor ecx, esp
call fcn.004289ca
add esp, 0xa60
ret 8
Function at 0x41a1c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x441008
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4513e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00403500
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41a214
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00403430
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00403500
cmp dword [esp + 0x24], 8
jb 0x41a25a
mov eax, dword [esp + 0x10]
push eax
call fcn.00429d64
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x41bb30
Capabilities:
Check if file exists
Create directory
Create shortcut via ishelllink
Get file attributes

Disassembly:
sub esp, 0x220
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x228]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
mov ebx, edx
lea edx, [esp + 0x20]
push 0x104
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
call fcn.00429cf8
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41bce3
test al, 0x10
jne 0x41bce3
push edi
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x41bbe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41bbe7
test edi, edi
jle 0x41bbcd
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004289ca
add esp, 0x220
ret
lea edx, [esp + 0xc]
push edx
push 0x44449c
push 1
push 0
push 0x4444ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jl 0x41bbcd
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
test eax, eax
jl 0x41bbcf
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41bc20
sub eax, edx
sar eax, 1
jne 0x41bc53
push esi
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.00429cf8
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ebx, [esp + 0x20]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push ebx
push eax
mov eax, dword [edx + 0x24]
call eax
test eax, eax
jl 0x41bbcf
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x41bbcf
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
test eax, eax
jl 0x41bbcf
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x4444bc
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
test edi, edi
jl 0x41bcd2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push ebp
push eax
call edx
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x41bbcd
mov ecx, dword [esp + 0x224]
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x80070057
call fcn.004289ca
add esp, 0x220
ret
Function at 0x41bd00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebp
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41bd8c
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x41bd84
push ebx
lea ebx, [edi + 2]
push ebx
call fcn.004287d1
push ebx
mov esi, eax
push 0
push esi
call fcn.00433cc0
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41bd60
mov ecx, dword [esp + 0x14]
sub eax, edx
push eax
push esi
call fcn.004049e0
push esi
call fcn.0042a4d6
add esp, 4
mov esi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x41bda0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0xc], ebp
je 0x41bf27
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x41bf14
push ebx
lea esi, [edi + 2]
push esi
call fcn.004287d1
push esi
mov ebx, eax
push 0
push ebx
call fcn.00433cc0
add esp, 0x10
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, 0xfe
jbe 0x41be17
mov edi, 0xfe
jmp 0x41be1a
and edi, 0xfffffffe
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x41be6f
cmp byte [ebx], 0xff
jne 0x41be45
cmp byte [ebx + 1], 0xfe
jne 0x41be45
mov eax, dword [esp + 0x20]
lea edx, [ebx + 2]
push eax
call fcn.00402860
jmp 0x41bf0a
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41be50
mov esi, dword [esp + 0x20]
sub eax, edx
sar eax, 1
push eax
push ebx
call fcn.004035b0
jmp 0x41bf0a
cmp byte [ebx], 0xef
mov dword [esp + 0x10], ebx
jne 0x41be8b
cmp byte [ebx + 1], 0xbb
jne 0x41be8b
cmp byte [ebx + 2], 0xbf
jne 0x41be8b
lea ecx, [ebx + 3]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebp, eax
xor ecx, ecx
lea esi, [ebp + 2]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004287d1
push esi
mov edi, eax
push 0
push edi
call fcn.00433cc0
mov eax, dword [esp + 0x20]
add esp, 0x10
push ebp
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41bee3
mov esi, dword [esp + 0x20]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004035b0
push edi
call fcn.0042a4d6
mov ebp, dword [esp + 0x18]
add esp, 4
push ebx
call fcn.0042a4d6
add esp, 4
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x41c300
Capabilities:
Get file version info

Disassembly:
sub esp, 0x220
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, ecx
test ebx, ebx
push esi
push edi
jne 0x41c332
push 0x208
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebx, [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x41c35d
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004289ca
add esp, 0x220
ret
push edi
call fcn.004287d1
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x44781c
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
xor edx, edx
xor edi, edi
push esi
or edi, ecx
or ebx, edx
call fcn.0042a4d6
mov ecx, dword [esp + 0x228]
add esp, 4
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.004289ca
add esp, 0x220
ret
Function at 0x41c3c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x668
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x664], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x67c]
push edi
lea eax, [esp + 0x46c]
push 0x104
push eax
xor esi, esi
call fcn.00429cf8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push 0x448ab0
lea ecx, [esp + 0x46c]
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41c430
xor eax, eax
jmp 0x41c530
mov ecx, 0x448b08
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c466
test dx, dx
je 0x41c462
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c466
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c440
xor eax, eax
jmp 0x41c46b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c4fb
mov ecx, 0x448b0c
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c4a6
test dx, dx
je 0x41c4a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c4a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c480
xor eax, eax
jmp 0x41c4ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c4fb
push edi
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.00429cf8
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x264]
push eax
call ebx
test byte [esp + 0x10], 0x10
je 0x41c4ed
lea ecx, [esp + 0x260]
push ecx
call fcn.0041c3c0
add esp, 4
jmp 0x41c4fb
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41c517
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x41c520
cmp esi, 0x12
jne 0x41c430
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, esi
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004289ca
add esp, 0x668
ret

Function at 0x41c550
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.temp
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
push 0
push 0x448b14
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004289ca
add esp, 0x20c
ret
Function at 0x41c5c0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x670
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x66c], eax
mov eax, dword [esp + 0x674]
push ebx
mov ebx, dword [esp + 0x67c]
push ebp
push esi
push edi
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x474]
push 0x104
push eax
mov esi, ecx
xor edi, edi
call fcn.00429cf8
add esp, 0xc
lea ecx, [esp + 0x470]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ebx
lea edx, [esp + 0x474]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x41c648
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41c77f
mov ebp, dword [esp + 0x68c]
nop
mov ecx, 0x448b08
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c686
test dx, dx
je 0x41c682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c686
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c660
xor eax, eax
jmp 0x41c68b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c73e
mov ecx, 0x448b0c
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c6c6
test dx, dx
je 0x41c6c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c6c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c6a0
xor eax, eax
jmp 0x41c6cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c73e
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x26c]
push 0x104
push eax
call fcn.00429cf8
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [esp + 0x18], 0x10
push ebp
je 0x41c726
push ebx
lea eax, [esp + 0x270]
push eax
mov ecx, esi
call fcn.0041c5c0
mov edx, dword [esi]
mov edx, dword [edx + 4]
mov edi, eax
push ebp
lea eax, [esp + 0x26c]
push eax
jmp 0x41c732
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x26c]
push ecx
mov ecx, esi
call edx
test al, al
jne 0x41c79a
test edi, edi
jne 0x41c766
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41c650
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x41c650
cmp edi, 0x12
je 0x41c770
cmp edi, 3
jne 0x41c772
xor edi, edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004289ca
add esp, 0x670
ret 0xc
mov edi, 0x4c7
jmp 0x41c772
Function at 0x41c8e0
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x878
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x874], eax
mov eax, dword [esp + 0x880]
push ebx
push ebp
mov ebp, dword [esp + 0x884]
push esi
push edi
push ebp
lea ecx, [esp + 0x67c]
push 0x104
push ecx
mov dword [esp + 0x20], eax
call fcn.00429cf8
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push 0x4475fc
lea edx, [esp + 0x67c]
push edx
call edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x67c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x41c95e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41cad5
mov ebx, dword [esp + 0x894]
jmp 0x41c970
mov ecx, 0x448b08
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c9a6
test dx, dx
je 0x41c9a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c9a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c980
xor eax, eax
jmp 0x41c9ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41caa5
mov ecx, 0x448b0c
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c9e6
test dx, dx
je 0x41c9e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c9e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c9c0
xor eax, eax
jmp 0x41c9eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41caa5
push ebp
lea edx, [esp + 0x474]
push 0x104
push edx
call fcn.00429cf8
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x474]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x26c]
push 0x104
push eax
call fcn.00429cf8
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x26c]
push edx
call edi
test byte [esp + 0x18], 0x10
je 0x41ca79
test bl, bl
je 0x41caa5
push 0
lea eax, [esp + 0x26c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x478]
push edx
call fcn.0041c8e0
add esp, 0xc
jmp 0x41ca9b
push 0
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41caa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x41cac8
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41c970
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x41cac8
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [esp + 0x884]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004289ca
add esp, 0x878
ret
Function at 0x41caf0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41cb2a
mov al, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004289ca
add esp, 0x218
ret
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x41cb84
lea eax, [esp + 8]
push eax
push 0
push 0x448b14
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x41cb7b
push 0
push 0x4000000
push 2
push 0
push 5
push 0xc0000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x41cb7b
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041c3c0
add esp, 4
mov ecx, dword [esp + 0x214]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004289ca
add esp, 0x218
ret

Function at 0x41d290
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
push edi
push edi
push esi
push 0x41d2c0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
jne 0x41d2b0
pop edi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
ret
Function at 0x41e2b0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x426930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x453c70]
push 0
push 0x426870
push 0
push 0x9b
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
jmp eax

Function at 0x41e8a0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
push str.Cleanup
push str.__s_
push 0x4524d8
xor eax, eax
mov esi, ecx
call fcn.0041eee0
mov ebx, 1
add dword [0x4524f8], ebx
add esp, 0xc
cmp dword [esi + 0xa34], 8
jb 0x41e8ee
mov esi, dword [esi + 0xa20]
jmp 0x41e8f4
add esi, 0xa20
push esi
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00429cf8
add esp, 0xc
push str.UninstallSetup.exe
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0xc]
push eax
push str.Marking___s__for_deletion_on_reboot
push 0x4524d8
xor eax, eax
call fcn.0041eee0
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call edi
test eax, eax
je 0x41e9d0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathIsSystemFolderW]
nop
push 0
lea edx, [esp + 0x14]
push edx
call ebp
test eax, eax
jne 0x41e9b0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x41e9b0
lea ecx, [esp + 0x10]
push ecx
push str.Marking___s__for_deletion_on_reboot
push 0x4524d8
call fcn.0041eee0
add esp, 0xc
push 4
push 0
lea edx, [esp + 0x18]
push edx
call esi
lea eax, [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
call edi
test eax, eax
jne 0x41e960
sub dword [0x4524f8], 1
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004289ca
add esp, 0x20c
ret
sub dword [0x4524f8], ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004289ca
add esp, 0x20c
ret
Function at 0x41eee0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x1c], 8
mov esi, eax
jb 0x41eef5
mov eax, dword [edi + 8]
jmp 0x41eef8
lea eax, [edi + 8]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41f05e
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 1
jne 0x41ef35
mov esi, 0x44a1a4
jmp 0x41ef44
cmp esi, 2
mov esi, str._
je 0x41ef44
mov esi, 0x44698c
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ef50
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
push edx
push esi
push ebp
call ebx
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ef80
sub eax, edx
mov edx, dword [edi + 0x20]
sar eax, 1
add edx, edx
test edx, edx
mov esi, eax
mov eax, 0x454338
jle 0x41efbf
mov ecx, edx
shr ecx, 1
mov eax, 0x200020
mov edi, 0x454338
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x18]
lea eax, [edx*2 + 0x454338]
mov word [eax], 0
mov ecx, dword [edi + 0x20]
push 0
add ecx, ecx
lea eax, [esp + 0x14]
push eax
sub ecx, esi
add ecx, ecx
push ecx
push 0x454338
push ebp
call ebx
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0042bec5
mov esi, eax
add esi, 3
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004287d1
mov ecx, dword [esp + 0x28]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
push ecx
push esi
push edi
call fcn.0042c05a
push 0x44a1b8
push esi
push edi
call fcn.0042bdf6
mov eax, edi
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f030
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0x14]
push edx
add eax, eax
push eax
push edi
push ebp
call ebx
push edi
call fcn.0042a4d6
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret