joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44468f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
push eax
mov edi, 0xf003f
xor esi, esi
push edi
push esi
push str.Software
push 0x80000002
call ebx
test eax, eax
jne 0x4447a6
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push str.McAfee
push dword [ebp - 0x18]
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4447a1
lea eax, [ebp - 8]
push eax
push 0xf003f
push esi
push str.SharedPackages
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x44479c
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call ebx
xor ebx, ebx
inc ebx
test eax, eax
jne 0x444756
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push esi
push esi
push dword [ebp - 0x10]
mov ebx, esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x44473b
cmp dword [ebp - 4], ebx
push 1
pop eax
cmove ebx, eax
push dword [ebp - 0x10]
call edi
xor eax, eax
inc eax
cmp ebx, eax
jne 0x444753
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ebx, ebx
inc ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push esi
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x444785
cmp dword [ebp - 4], esi
jne 0x444785
cmp dword [ebp - 0x14], esi
cmove esi, ebx
push dword [ebp - 8]
call edi
cmp esi, ebx
jne 0x44479c
push str.SharedPackages
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x18]
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4447fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4c143c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x44481f
xor eax, eax
inc eax
jmp 0x4448d6
push esi
call fcn.00444edf
pop ecx
test eax, eax
je 0x444831
xor eax, eax
jmp 0x4448d6
push edi
lea eax, [ebp - 0x20c]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0045b1d0
push 0x5c
push esi
call fcn.0046ff25
add esp, 0x14
test eax, eax
je 0x4448a8
cmp eax, esi
jne 0x444892
mov al, byte [ebp - 0x20c]
mov byte [ebp - 0x108], al
mov al, byte [ebp - 0x20b]
push esi
mov byte [ebp - 0x107], al
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00465e4f
add esp, 0xc
jmp 0x4448c5
cmp byte [esi + 1], 0x3a
jne 0x4448a8
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00465df5
jmp 0x44488d
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x494bc0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00444989
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00458eeb
leave
ret

Function at 0x4448e3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4c143c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00444edf
pop ecx
test eax, eax
je 0x44490a
xor eax, eax
inc eax
jmp 0x44496b
push ebx
push edi
push 0x5c
push esi
call fcn.0046ff25
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x444967
push 0x5c
push esi
call fcn.004662f3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x444967
cmp ebx, edi
je 0x444978
sub edi, esi
lea eax, [ebp - 0x108]
push edi
push esi
mov ebx, 0x104
push ebx
push eax
call fcn.00467c26
add esp, 0x10
cmp edi, ebx
jae 0x444983
lea eax, [ebp - 0x108]
mov byte [ebp + edi - 0x108], 0
push eax
call fcn.004448e3
pop ecx
cmp eax, 1
je 0x444978
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00458eeb
leave
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x444969
call fcn.004595ad
int3
Function at 0x444989
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4c143c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00444edf
pop ecx
test eax, eax
je 0x4449b3
xor eax, eax
jmp 0x444a5d
push ebx
push 0x5c
push esi
call fcn.0046ff25
mov dword [ebp - 0x10c], eax
pop ecx
pop ecx
test eax, eax
je 0x444a59
push 0x5c
push esi
call fcn.004662f3
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x444a59
xor edi, edi
inc edi
cmp dword [ebp - 0x10c], ebx
je 0x444a22
sub ebx, esi
lea eax, [ebp - 0x108]
push ebx
push esi
push 0x104
push eax
call fcn.00467c26
add esp, 0x10
cmp ebx, 0x104
jae 0x444a6b
lea eax, [ebp - 0x108]
mov byte [ebp + ebx - 0x108], 0
push edi
push eax
call fcn.00444989
pop ecx
pop ecx
test eax, eax
jne 0x444a5c
test esi, esi
je 0x444a55
push esi
call fcn.00461890
pop ecx
cmp eax, 3
jbe 0x444a55
push esi
call fcn.00442fb0
pop ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x444a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x444a55
xor edi, edi
mov eax, edi
jmp 0x444a5c
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00458eeb
leave
ret
call fcn.004595ad
int3
Function at 0x444a71
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0x20
mov eax, 0x4910aa
call fcn.00458f33
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x444bd0
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x444bd0
cmp byte [edi], 0
je 0x444bd0
lea eax, [ebp - 0x10]
xor ecx, ecx
push eax
push 0xf003f
push ecx
push edi
push ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x444bd0
xor ecx, ecx
lea eax, [ebp - 0x14]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x444bbf
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.0045f1f4
mov dword [ebp - 0x1c], eax
pop ecx
test eax, eax
je 0x444bbf
lea ecx, [ebp - 0x2c]
call fcn.00413692
xor ecx, ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x2c]
call fcn.0044515c
xor ecx, ecx
mov esi, ecx
cmp dword [ebp - 0x18], ecx
jbe 0x444b61
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
push ecx
push ecx
push ecx
inc eax
mov byte [ebx], cl
push ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x444b55
push ebx
call fcn.00465f76
pop ecx
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call fcn.00412dc8
inc esi
push 0
pop ecx
cmp esi, dword [ebp - 0x18]
jb 0x444b1c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
cmp esi, eax
je 0x444b96
push dword [esi + 8]
push dword [ebp - 0x10]
call fcn.00444a71
mov esi, dword [esi]
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
cmp esi, eax
jne 0x444b6a
mov esi, dword [eax]
cmp esi, eax
je 0x444b96
push dword [esi + 8]
call fcn.0045f1d9
mov esi, dword [esi]
pop ecx
cmp esi, dword [ebp - 0x2c]
jne 0x444b86
lea ecx, [ebp - 0x2c]
call fcn.0044515c
push dword [ebp - 0x1c]
call fcn.0045f1d9
push dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
push eax
call fcn.00413132
push 0xc
push dword [ebp - 0x2c]
call fcn.00458ecf
add esp, 0x14
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
call fcn.00458efc
ret
Function at 0x444cdb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x444d87
cmp byte [esi], 0
je 0x444d87
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x444d87
lea eax, [ebp - 4]
mov byte [edi], 0
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp + 8], eax
test eax, eax
je 0x444d87
push eax
call fcn.0045f1f4
mov ebx, eax
pop ecx
test ebx, ebx
je 0x444d87
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x444d77
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0x494bbc
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x444d77
cmp dword [ebp + 8], 0
je 0x444d77
mov ecx, dword [ebp - 8]
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
push 0x4953a4
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push ebx
call fcn.0045f1d9
xor eax, eax
cmp byte [edi], al
pop ecx
setne al
jmp 0x444d89
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x444edf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x444eff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x444eff
test al, 0x10
je 0x444eff
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x444f53
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c143c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x10]
mov word [ebp - 8], 0x500
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x445059
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov esi, ebx
mov dword [ebp - 0x18], ebx
call edi
test eax, eax
jne 0x444fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44502c
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x44502c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x44502c
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x44502c
mov edi, ebx
cmp dword [esi], ebx
jbe 0x44502c
lea eax, [esi + 4]
mov dword [ebp - 0x1c], eax
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x445029
mov eax, dword [ebp - 0x1c]
inc edi
add eax, 8
mov dword [ebp - 0x1c], eax
cmp edi, dword [esi]
jb 0x44500a
jmp 0x44502c
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x18], 0
je 0x44503b
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x445046
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x10], 0
pop edi
pop esi
je 0x445057
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00458eeb
leave
ret
Function at 0x445178
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test dword [edi], 0x400
je 0x44525c
cmp dword [edi + 0x24], 0xa0000003
je 0x4451a1
cmp dword [edi + 0x24], 0xa000000c
jne 0x44525c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x4451b0
mov eax, dword [esi]
push eax
push str.Reparse_point_detected_for__s__try_to_remove_it
call fcn.00402250
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
pop ecx
test al, 1
je 0x4451fd
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x4451d6
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4451fd
call ebx
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x4451ee
mov ecx, dword [esi]
push eax
push ecx
push str.Failed_to_remove_readonly_attribute_for__s__Error_d
call fcn.00402250
add esp, 0xc
test byte [edi], 0x10
mov eax, esi
je 0x44522a
cmp dword [esi + 0x14], 0x10
jb 0x44520c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x445256
call ebx
cmp dword [esi + 0x14], 0x10
jb 0x445221
mov esi, dword [esi]
push eax
push esi
push str.Failed_to_remove_symlink_directory__s__Error_d
jmp 0x44524e
cmp dword [esi + 0x14], 0x10
jb 0x445232
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x445256
call ebx
cmp dword [esi + 0x14], 0x10
jb 0x445247
mov esi, dword [esi]
push eax
push esi
push str.Failed_to_remove_symlink_file__s__Error_d
call fcn.00402250
add esp, 0xc
pop esi
mov al, 1
pop ebx
jmp 0x44525e
xor al, al
pop edi
pop ebp
ret
Function at 0x446dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49136d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c143c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, ecx
mov ebx, dword [ebp + 8]
mov edi, ecx
xor edi, 8
and al, 8
cmove edi, ecx
test ebx, ebx
jne 0x446e18
xor eax, eax
jmp 0x446eac
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 0x4a62cc
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test eax, eax
jns 0x446e46
xor edi, edi
jmp 0x446e9f
push ebx
push esi
lea eax, [ebp - 0x28]
push 0x494b38
push eax
call fcn.00446c90
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp ecx, 8
jb 0x446e8b
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x28]
call fcn.00404196
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x446eaa
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458eeb
mov esp, ebp
pop ebp
ret

Function at 0x447540
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 8], ebx
cmp byte [ebx + 0x10], 0
jne 0x4475ed
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x44756c
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4475ed
mov ecx, dword [ebx + 8]
add ebx, 4
mov edx, dword [ebx]
sub ecx, edx
cmp edi, ecx
jae 0x44758f
lea eax, [edx + edi]
jmp 0x4475b9
jbe 0x4475bc
mov eax, dword [ebx + 8]
sub eax, edx
cmp edi, eax
jbe 0x4475a8
lea eax, [ebp + 0xb]
mov ecx, ebx
push eax
push edi
call fcn.0040581c
jmp 0x4475bc
mov eax, edi
push ebx
sub eax, ecx
push eax
push dword [ebx + 4]
call fcn.004059d8
add esp, 0xc
mov dword [ebx + 4], eax
push dword [ebx]
call fcn.004056ac
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x4475ce
mov esi, dword [esi]
push eax
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
mov ecx, dword [ebp - 8]
cmp eax, 1
pop edi
sete al
pop esi
mov byte [ecx + 0x10], al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4488e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49165d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c143c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0x8000
push 0x4a62bc
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x44893d
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x448952
xor ecx, ecx
jmp 0x448966
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x448957
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.00448750
test esi, esi
je 0x44897b
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x44b470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x44b4aa
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push 0x8000
push 0x4a62bc
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp + 8]
test eax, eax
jns 0x44b4b5
test esi, esi
je 0x44b4aa
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, 0x57
pop esi
pop ebp
ret 8
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.004712d2
add esp, 0x10
mov edi, eax
test esi, esi
je 0x44b4d1
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x44c150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x44c213
xor ecx, ecx
cmp cx, word [eax]
je 0x44c213
cmp dword [esi + 0x28], ecx
je 0x44c17b
mov eax, 0xb7
pop esi
pop ebp
ret 8
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0xa0
push edi
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], eax
test ecx, ecx
je 0x44c1b1
cmp ecx, 0xffffffff
je 0x44c1b1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jne 0x44c1cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ebx, eax
mov dword [esi + 0x28], 0
pop ebx
pop esi
pop ebp
ret 8
cmp edi, 3
jne 0x44c1e7
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8
cmp edi, 2
je 0x44c1f1
cmp edi, 1
jne 0x44c20a
push 0
lea ecx, [ebp + 0xc]
mov word [ebp + 8], 0xfeff
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8
mov eax, 0x57
pop esi
pop ebp
ret 8
Function at 0x44d640
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 0x34]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
test eax, eax
je 0x44d669
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0x54]
mov ecx, ebx
mov edi, 0x57
call eax
test al, al
je 0x44d72a
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x44d72a
xor ecx, ecx
cmp cx, word [eax]
je 0x44d72a
mov ecx, ebx
call fcn.0044c220
mov edi, eax
test edi, edi
je 0x44d6ac
cmp edi, 0xb7
jne 0x44d72a
lea eax, [ebp - 4]
mov ecx, ebx
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044ab00
mov esi, dword [ebp - 4]
mov edi, eax
test edi, edi
jne 0x44d72a
test esi, esi
jne 0x44d6dc
lea edi, [eax + 0xe]
jmp 0x44d72a
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44d6e1
sub ecx, edx
lea eax, [ebp - 0xc]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push esi
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebx + 0x44], 1
mov dword [ebp + 0x18], eax
je 0x44d71e
xor ecx, ecx
cmp cx, word [esi]
je 0x44d71e
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x44d72a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x28], 0
test eax, eax
je 0x44d744
cmp eax, 0xffffffff
je 0x44d744
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x44d751
push esi
call fcn.0045f1d9
add esp, 4
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x44d75f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x45059d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x450602
xor eax, eax
cmp ax, word [esi]
je 0x450602
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4505be
push 2
jmp 0x450604
push 0
call fcn.004504c6
pop ecx
push esi
mov ecx, eax
call fcn.00452cdb
test eax, eax
je 0x4505fe
push 0x4c389c
push dword [0x4a6b48]
push 0x4c13b4
push 0x4c13d4
push dword [0x4a6b4c]
push esi
call fcn.00451d1d
add esp, 0x18
test eax, eax
jne 0x4505fe
push 5
jmp 0x450604
xor eax, eax
jmp 0x450605
push 0x57
pop eax
pop esi
pop ebp
ret

Function at 0x452286
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push 0x45245f
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x4522c8
push esi
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
jne 0x4522c8
xor eax, eax
inc eax
jmp 0x4522ca
xor eax, eax
pop edi
leave
ret