joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401758
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 8]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x14]
add eax, dword [ebx + 0x18]
add eax, dword [ebx + 0x1c]
push eax
call fcn.0040fb11
mov dword [ebp - 0xc], eax
pop ecx
test eax, eax
jne 0x40178c
push 0xc
pop eax
jmp 0x4018ff
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x1c]
push esi
mov esi, dword [ebx + 0x18]
push edi
xor edi, edi
mov dword [ebp - 0x18], edx
lea eax, [ecx + esi]
add eax, edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
je 0x4017f8
mov ecx, 0x7fffffff
push dword [ebp - 0x14]
cmp eax, ecx
mov esi, eax
cmova esi, ecx
push esi
push 1
push edx
call fcn.0040fcf5
mov ecx, eax
add esp, 0x10
cmp ecx, esi
jne 0x4017f1
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
sub eax, ecx
add edx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ecx, 0x7fffffff
test eax, eax
jne 0x4017b1
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
jmp 0x4017fb
push 6
jmp 0x4018f1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
add ecx, edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], ecx
lea ebx, [esi + ecx]
add eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
lea esi, [edx + 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push dword [esi - 4]
mov dword [ebp - 0x24], esi
call dword [sym.imp.WSOCK32.dll_ntohl]
push dword [esi]
mov dword [esi - 4], eax
call dword [sym.imp.WSOCK32.dll_ntohl]
push dword [esi + 4]
mov dword [esi], eax
call dword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [esi - 4]
mov dword [esi + 4], eax
lea eax, [ecx + ebx]
cmp eax, dword [ebp - 0x10]
ja 0x4018ef
mov edx, dword [ebp - 4]
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x18]
ja 0x4018ef
mov dword [ebp - 0x1c], edi
test ecx, ecx
je 0x401881
mov edi, ebx
mov ebx, dword [ebp - 0x1c]
sub edi, edx
mov al, byte [edi + edx]
add byte [edx], al
inc ebx
mov ecx, dword [esi - 4]
inc edx
cmp ebx, ecx
jb 0x40186b
mov ebx, dword [ebp + 8]
xor edi, edi
mov edx, dword [ebp - 4]
push dword [ebp + 0xc]
mov eax, dword [esi - 4]
push ecx
push 1
push edx
mov dword [ebp + 8], eax
call fcn.0040f94b
mov ecx, dword [ebp + 8]
add esp, 0x10
cmp eax, ecx
jne 0x4018eb
add dword [ebp - 4], ecx
add ebx, ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
add eax, ecx
cmp eax, dword [ebp - 0x20]
ja 0x4018ef
push dword [ebp + 0xc]
mov eax, dword [esi]
push eax
push 1
push ecx
mov dword [ebp + 8], eax
call fcn.0040f94b
mov ecx, dword [ebp + 8]
add esp, 0x10
cmp eax, ecx
jne 0x4018eb
add ebx, dword [esi + 4]
add dword [ebp - 8], ecx
mov dword [ebp + 8], ebx
cmp ebx, dword [ebp - 0x10]
ja 0x4018ef
mov eax, dword [ebp - 0x24]
add esi, 0xc
add eax, 8
cmp eax, dword [ebp - 0x28]
jb 0x40181a
jmp 0x4018f2
push 0x40
jmp 0x4018f1
push 0x29
pop edi
push dword [ebp - 0xc]
call fcn.0040faba
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4021e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
push ecx
push esi
push 0x402217
push ecx
push ecx
mov dword [esi + 8], ecx
call fcn.00411247
xor ecx, ecx
mov dword [esi], eax
add esp, 0x18
test eax, eax
setne cl
pop esi
lea eax, [ecx - 1]
pop ebp
ret 8

Function at 0x402850
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x2f
mov esi, eax
pop eax
push eax
push edi
call fcn.0040c7fb
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4028c1
xor eax, eax
mov ecx, edi
mov word [ebx], ax
call fcn.00402850
mov esi, eax
test esi, esi
jne 0x4028bb
cmp word [edi], ax
je 0x4028bb
push edi
call fcn.0041085a
pop ecx
test eax, eax
jns 0x4028b7
call fcn.00414c68
cmp dword [eax], 0x11
je 0x4028b7
call fcn.00414c68
push dword [eax]
push edi
push str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0x10
push 7
pop esi
jmp 0x4028bb
xor eax, eax
mov esi, eax
push 0x2f
pop eax
mov word [ebx], ax
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4028c7
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov esi, edx
mov edi, ecx
mov ecx, esi
call fcn.00402850
test eax, eax
jne 0x4029d8
lea eax, [ebp - 0x3c]
push eax
push edi
call fcn.00410734
pop ecx
pop ecx
test eax, eax
je 0x40291f
call fcn.00414c68
push dword [eax]
push edi
push str.rename_file:_failed_to_read_file_status_info:__S__err:__d
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0x10
push 6
pop eax
jmp 0x4029d8
mov eax, dword [ebp - 0x36]
mov ecx, 0x8000
and eax, 0xf000
cmp ax, cx
je 0x402972
cmp byte [ebp + 8], 0
je 0x402960
mov ecx, 0x4000
cmp ax, cx
je 0x402960
call fcn.00414c68
push dword [eax]
push edi
push str.rename_file:_path_present__but_not_a_file:__S__err:__d
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0x10
push 0x30
jmp 0x402919
push str.rename_file:_proceeding_to_rename_the_directory
call fcn.00402191
push eax
call fcn.00408cbb
pop ecx
pop ecx
push 0
push esi
call fcn.00410782
pop ecx
pop ecx
test eax, eax
jne 0x4029a6
mov ecx, esi
call fcn.0040255d
test eax, eax
je 0x4029a6
push esi
push str.rename_file:_destination_file_exists_and_could_not_be_removed:__S
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0xc
push 0x3e
jmp 0x402919
push esi
push edi
call fcn.00414c7b
pop ecx
pop ecx
test eax, eax
je 0x4029d6
call fcn.00414c68
push dword [eax]
push esi
push edi
push str.rename_file:_failed_to_rename_file___src:__S__dst:_S__err:__d
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0x14
push 7
jmp 0x402919
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b844
mov esp, ebp
pop ebp
ret
Function at 0x4029e8
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x240]
mov esi, ecx
push eax
mov ebx, edx
push esi
mov dword [ebp - 0x244], ebx
call fcn.00410734
pop ecx
pop ecx
test eax, eax
jne 0x402bcb
mov eax, dword [ebp - 0x23a]
mov ecx, 0x4000
and eax, 0xf000
cmp ax, cx
je 0x402aa5
lea eax, [ebp - 0x210]
push eax
push 0
push 0x42cf0c
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x210]
push eax
call fcn.00410df1
pop ecx
push 0
lea edx, [ebp - 0x210]
mov ecx, esi
call fcn.004028c7
pop ecx
mov ebx, eax
lea edi, [ebp - 0x210]
push 4
test ebx, ebx
push 0
cmovne edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
call fcn.00402191
mov ecx, str.remove_recursive_on_reboot:_file_will_be_removed_on_OS_reboot:__S
test esi, esi
jne 0x402a93
mov ecx, str.remove_recursive_on_reboot:_failed_to_schedule_OS_reboot_removal_of_file:__S
push edi
push ecx
push eax
call fcn.00408cbb
add esp, 0xc
mov eax, ebx
jmp 0x402bcb
push 0x20c
call fcn.0040bcb6
pop ecx
push esi
mov ecx, eax
call fcn.00406e47
mov edi, eax
test edi, edi
jne 0x402b7d
call fcn.00414c68
push dword [eax]
push edi
push esi
push str.remove_recursive_on_reboot:_unable_to_open_directory:__S__rv:__d__err:__d
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0x14
xor eax, eax
jmp 0x402bcb
mov edx, 0x42cd00
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x402b12
test bx, bx
je 0x402b0e
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x402b12
add ecx, 4
add edx, 4
test bx, bx
jne 0x402aec
xor ecx, ecx
jmp 0x402b17
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x402b7d
mov edx, 0x42cc40
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x402b48
test bx, bx
je 0x402b44
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x402b48
add ecx, 4
add edx, 4
test bx, bx
jne 0x402b22
xor ecx, ecx
jmp 0x402b4d
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x402b7d
push eax
push esi
push 0x42cd04
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040214f
mov edx, dword [ebp - 0x244]
lea ecx, [ebp - 0x210]
add esp, 0x14
call fcn.004029e8
mov ecx, edi
call fcn.00406ec6
test eax, eax
jne 0x402ae5
mov ecx, edi
call fcn.00406ea7
push 0x180
push esi
call fcn.00414b68
push esi
call fcn.00410e19
mov edi, eax
add esp, 0xc
test edi, edi
je 0x402bc9
call fcn.00414c68
push dword [eax]
push edi
push esi
push str.remove_recursive_on_reboot:_unable_to_remove_directory:__S__rv:__d__err:__d
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0x14
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret
Function at 0x402cc3
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
mov ebx, str._s.moz_backup
lea eax, [ebp - 0x20c]
push ebx
mov esi, 0x104
mov edi, edx
push esi
push eax
call fcn.0040214f
push edi
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0040214f
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00410782
add esp, 0x28
test eax, eax
jne 0x402de4
lea ecx, [ebp - 0x20c]
call fcn.0040255d
test eax, eax
je 0x402de4
cmp byte [0x433b14], 0
jne 0x402de4
cmp byte [0x433b15], 0
jne 0x402de4
lea eax, [ebp - 0x414]
push eax
push str.backup_discard:_unable_to_remove:__S
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
push esi
push 0x42d0c0
push 0x434608
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
lea edx, [ebp - 0x61c]
lea ecx, [ebp - 0x20c]
call fcn.004028c7
pop ecx
test eax, eax
je 0x402db3
push edi
lea eax, [ebp - 0x414]
push eax
push str.backup_discard:_failed_to_rename_file:_S__dst:_S
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0x10
push 0x45
pop eax
jmp 0x402de6
push 4
push esi
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
call fcn.00402191
push edi
test esi, esi
je 0x402dd6
push str.backup_discard:_file_renamed_and_will_be_removed_on_OS_reboot:__S
jmp 0x402ddb
push str.backup_discard:_failed_to_schedule_OS_reboot_removal_of_file:__S
push eax
call fcn.00408cbb
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret
Function at 0x40352c
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x44], eax
push eax
mov dword [ebp - 0x40], esi
call fcn.00417f6f
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.00410729
add esp, 0xc
test eax, eax
je 0x403587
mov esi, dword [esi + 0x14]
call fcn.00414c68
push dword [eax]
push esi
push str.LoadSourceFile:_unable_to_stat_destination_file:__S__err:__d
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0x10
push 6
pop eax
jmp 0x403665
mov eax, dword [esi + 0x24]
push eax
cmp dword [ebp - 0x28], eax
je 0x4035aa
push dword [ebp - 0x28]
push str.LoadSourceFile:_destination_file_size__d_does_not_match_expected_size__d
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0x10
push 2
jmp 0x403581
call fcn.0040fb11
mov edi, eax
mov dword [esi + 0x3c], edi
pop ecx
test edi, edi
jne 0x4035bd
push 0xd
jmp 0x403581
mov ebx, dword [esi + 0x24]
test ebx, ebx
je 0x4035f0
push dword [ebp - 0x44]
mov esi, 0x7fffffff
cmp ebx, esi
cmovb esi, ebx
push esi
push 1
push edi
call fcn.0040fcf5
add esp, 0x10
cmp eax, esi
jne 0x403645
add edi, eax
sub ebx, eax
jne 0x4035c4
mov esi, dword [ebp - 0x40]
mov edi, dword [esi + 0x3c]
mov ebx, dword [esi + 0x24]
lea eax, [ebx + edi]
xor ecx, ecx
or edx, 0xffffffff
cmp edi, eax
cmova ebx, ecx
test ebx, ebx
je 0x403620
xor esi, esi
movzx eax, byte [edi]
mov ecx, edx
shr ecx, 0x18
xor ecx, eax
shl edx, 8
xor edx, dword [ecx*4 + 0x42fab0]
inc edi
inc esi
cmp esi, ebx
jne 0x403603
mov esi, dword [ebp - 0x40]
not edx
cmp edx, dword [esi + 0x28]
je 0x403663
push dword [esi + 0x28]
push edx
push str.LoadSourceFile:_destination_file_crc__d_does_not_match_expected_crc__d
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0x10
push 4
jmp 0x403581
mov eax, dword [ebp - 0x40]
push dword [eax + 0x14]
push str.LoadSourceFile:_error_reading_destination_file:__S
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0xc
jmp 0x40357f
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret 4
Function at 0x403edf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, edx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, eax
push edi
call fcn.00403e62
mov ebx, eax
test ebx, ebx
je 0x403fa8
push 0x44
pop edi
push edi
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.0040d680
mov dword [ebp - 0x64], edi
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x5c], str.winsta0Default
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x403f55
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
jmp 0x403f9f
xor esi, esi
lea eax, [ebp - 8]
push esi
push esi
push eax
push 0x400
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [ebp - 8], esi
mov eax, str._null_
cmovne eax, dword [ebp - 8]
push eax
push str.Error_restarting:__s_n
call fcn.004020ce
pop ecx
pop ecx
cmp dword [ebp - 8], esi
je 0x403f9f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call fcn.0040faba
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404436
Capabilities:
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.0040d680
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x42d7a8
push 0x434810
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x404486
xor al, al
jmp 0x404527
lea ecx, [ebp - 0x20c]
call fcn.00402850
test eax, eax
jne 0x40447f
push esi
lea eax, [ebp - 0x20c]
push 0x42bfa0
push eax
call fcn.0040fa5c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x404524
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4044b4
push esi
sub ecx, edx
push 1
push ecx
push edi
call fcn.0040f94b
push esi
mov edi, eax
call fcn.0040f557
add esp, 0x14
cmp edi, 1
jne 0x404524
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0040d680
push 0x434810
push str._supdate.status
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040214f
add esp, 0x1c
lea eax, [ebp - 0x414]
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x404526
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040b844
mov esp, ebp
pop ebp
ret

Function at 0x40458a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x434810
push str._s_update.status
lea eax, [ebp - 0x24c]
push 0x104
push eax
call fcn.0040214f
lea eax, [ebp - 0x24c]
push 0x42d584
push eax
call fcn.0040fa5c
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x250], edx
test edx, edx
jne 0x4045dd
xor bl, bl
jmp 0x40464d
push esi
push edi
push 8
pop ecx
push edx
xor ebx, ebx
lea edi, [ebp - 0x44]
xor eax, eax
inc ebx
push ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0040fcf5
mov esi, str.pending_service
lea edi, [ebp - 0x14]
push 0xf
lea eax, [ebp - 0x14]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str.applied_service
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00414af0
add esp, 0x1c
pop edi
pop esi
test eax, eax
je 0x404641
push 0xf
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00414af0
add esp, 0xc
test eax, eax
je 0x404641
xor bl, bl
push dword [ebp - 0x250]
call fcn.0040f557
pop ecx
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret
Function at 0x40465e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
xor ebx, ebx
push 0x434810
push str._s_update.status
mov dword [ebp - 0x23c], eax
mov byte [eax], bl
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.0040214f
lea eax, [ebp - 0x238]
push 0x42d584
push eax
call fcn.0040fa5c
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x240], edx
test edx, edx
je 0x40470e
push esi
push edi
push 8
pop ecx
push edx
xor eax, eax
lea edi, [ebp - 0x30]
push 1
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push 0x20
push eax
call fcn.0040fcf5
mov esi, str.succeeded
lea edi, [ebp - 0x10]
push 9
lea eax, [ebp - 0x10]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00414af0
mov ecx, dword [ebp - 0x23c]
neg eax
push dword [ebp - 0x240]
sbb al, al
mov bl, 1
inc al
mov byte [ecx], al
call fcn.0040f557
add esp, 0x20
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret
Function at 0x4047ae
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x104
lea eax, [ebp - 0x210]
push ebx
push eax
mov esi, 0x434c30
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x4047e9
push 0x22
pop eax
jmp 0x4049fb
lea eax, [ebp - 0x210]
push eax
push str._s.bak
lea eax, [ebp - 0x418]
push ebx
push eax
call fcn.0040214f
push esi
push str._s.bak_updated
lea eax, [ebp - 0x828]
push ebx
push eax
call fcn.0040214f
add esp, 0x20
lea ecx, [ebp - 0x418]
xor dl, dl
call fcn.0040259c
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
push str.Begin_moving_destDir___S__to_tmpDir___S_
call fcn.00402191
push eax
call fcn.00408cbb
xor ebx, ebx
lea edx, [ebp - 0x418]
inc ebx
lea ecx, [ebp - 0x210]
push ebx
call fcn.004028c7
add esp, 0x14
xor edi, edi
jmp 0x4048a5
mov eax, edi
inc edi
cmp eax, 0xa
jge 0x4048ac
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push str.PerformReplaceRequest:_destDir_rename_attempt__d_failed._File:__S._Last_error:__d__err:__d
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0x18
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x210]
call fcn.004028c7
pop ecx
mov esi, eax
cmp esi, 7
je 0x40485f
call fcn.00402191
test esi, esi
je 0x4048cb
push esi
push str.Moving_destDir_to_tmpDir_failed__err:__d
push eax
call fcn.00408cbb
add esp, 0xc
mov eax, esi
jmp 0x4049fb
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x828]
push ecx
push str.Begin_moving_newDir___S__to_destDir___S_
push eax
call fcn.00408cbb
push ebx
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x828]
call fcn.004028c7
add esp, 0x14
mov esi, eax
call fcn.00402191
test esi, esi
je 0x40495d
push esi
push str.Moving_newDir_to_destDir_failed__err:__d
push eax
call fcn.00408cbb
add esp, 0xc
push str.Now__try_to_move_tmpDir_back_to_destDir
call fcn.00402191
push eax
call fcn.00408cbb
xor dl, dl
lea ecx, [ebp - 0x210]
call fcn.0040259c
push ebx
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x418]
call fcn.004028c7
add esp, 0xc
test eax, eax
je 0x4048c4
push eax
push str.Moving_tmpDir_back_to_destDir_failed__err:__d
call fcn.00402191
jmp 0x4048bb
push str.Now__remove_the_tmpDir
push eax
call fcn.00408cbb
pop ecx
pop ecx
mov dl, bl
lea ecx, [ebp - 0x418]
call fcn.0040259c
test eax, eax
je 0x4049f3
push eax
push str.Removing_tmpDir_failed__err:__d
call fcn.00402191
push eax
call fcn.00408cbb
add esp, 0xc
lea eax, [ebp - 0x210]
push str.tobedeleted
push eax
push 0x42da98
lea eax, [ebp - 0x620]
push 0x104
push eax
call fcn.0040214f
add esp, 0x14
lea eax, [ebp - 0x620]
push eax
call fcn.00410e19
pop ecx
lea eax, [ebp - 0x620]
push 0
push eax
call fcn.00410782
pop ecx
pop ecx
test eax, eax
je 0x4049e2
lea eax, [ebp - 0x620]
push eax
call fcn.0041085a
pop ecx
lea edx, [ebp - 0x620]
lea ecx, [ebp - 0x418]
call fcn.004029e8
mov byte [0x433b28], bl
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret
Function at 0x40625f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x42d584
push ebx
mov dword [ebp - 0x44], ebx
call fcn.0040fa5c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x406291
mov edi, str.GetManifestContents:_error_opening_manifest_file:__S
jmp 0x4062ad
push esi
call fcn.00417f6f
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.00410729
add esp, 0xc
test eax, eax
je 0x4062dd
mov edi, str.GetManifestContents:_error_stating_manifest_file:__S
call fcn.00402191
push ebx
push edi
push eax
call fcn.00408cbb
add esp, 0xc
xor edi, edi
test esi, esi
je 0x4062ca
push esi
call fcn.0040f557
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
inc eax
push eax
call fcn.0040fb11
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4062bd
mov eax, dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ebx
test eax, eax
je 0x406331
mov edi, 0x7fffffff
cmp eax, edi
push esi
cmovb edi, eax
push edi
push 1
push ecx
call fcn.0040fcf5
mov edx, eax
add esp, 0x10
cmp edx, edi
jne 0x406358
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
sub eax, edx
add ecx, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
test eax, eax
jne 0x4062fd
mov eax, dword [ebp - 0x24]
mov byte [eax + ebx], 0
mov eax, dword [ebp - 0x24]
lea eax, [eax*2 + 2]
push eax
call fcn.0040fb11
mov edi, eax
pop ecx
test edi, edi
jne 0x406379
push ebx
call fcn.0040faba
pop ecx
jmp 0x4062bd
push dword [ebp - 0x44]
push str.GetManifestContents:_error_reading_manifest_file:__S
call fcn.00402191
push eax
call fcn.00408cbb
push ebx
call fcn.0040faba
add esp, 0x10
jmp 0x4062bd
mov eax, dword [ebp - 0x24]
inc eax
push eax
push edi
push 0xffffffffffffffff
push ebx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4063be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetManifestContents:_error_converting_utf8_to_utf16le:__d
call fcn.00402191
push eax
call fcn.00408cbb
push ebx
call fcn.0040faba
push edi
call fcn.0040faba
add esp, 0x14
jmp 0x4062bd
push ebx
call fcn.0040faba
pop ecx
jmp 0x4062bf