joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0xc36ea4
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c36ea4
ret
Function at 0x6f201607
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x234
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0x18
mov eax, dword [ebp - 0x34]
mov eax, dword fs:[eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x14
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x236]
mov ecx, 0x1fe
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
jmp 0x6f201711
sub dword [ebp - 0xc], 8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 0x2c
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.6f2014b0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0
jmp 0x6f2016dc
mov eax, dword [ebp - 0x10]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x2c]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
mov dword [esp], eax
call fcn.6f2015eb
movsx dx, al
mov eax, dword [ebp - 0x10]
mov word [ebp + eax*2 - 0x236], dx
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x30]
jle 0x6f2016b0
lea eax, [ebp - 0x236]
mov dword [esp], eax
call fcn.6f20151c
cmp dword [ebp + 8], eax
jne 0x6f201705
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x6f201720
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x20]
jne 0x6f201683
mov eax, dword [ebp - 0x14]
add esp, 0x234
pop ebx
pop edi
pop ebp
ret
Function at 0x6f20172a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x6f2017d9
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [esp], eax
call fcn.6f2014db
cmp dword [ebp + 0xc], eax
jne 0x6f2017d5
mov eax, dword [ebp - 8]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x20]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x6f2017e4
add dword [ebp - 8], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 8], eax
jb 0x6f20178e
cmp dword [ebp - 4], 0
je 0x6f2017f4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, edx
jmp 0x6f2017f9
mov eax, 0
leave
ret

Function at 0x6f45c640
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6f45d190
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6f45d190
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x6f45c6a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6f559070]
test esi, esi
jle 0x6f45c7c0
mov eax, dword [0x6f559074]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6f45c6d4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6f45c757
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6f45c6c0
mov dword [esp], ebx
call fcn.6f45ce90
mov edi, eax
test eax, eax
je 0x6f45c7e7
mov eax, dword [0x6f559074]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6f45cfd0
mov edx, dword [0x6f559074]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6f45c7c7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6f45c750
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6f45c760
add dword [0x6f559070], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6f559074]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6f45c750
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6f45c640
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6f45c6de
mov eax, dword [0x6f559074]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6f45c640
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6f45c640
lea esi, [esi]
nop

Function at 0x6f45cb00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6f559080
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6f559078]
sub esp, 4
test ebx, ebx
je 0x6f45cb55
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6f45cb4e
test esi, esi
je 0x6f45cb4e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6f45cb30
mov dword [esp], 0x6f559080
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6f45ce90
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6f200000], 0x5a4d
jne 0x6f45ceb5
mov ecx, dword [0x6f20003c]
cmp dword [ecx + 0x6f200000], 0x4550
lea edx, [ecx + 0x6f200000]
je 0x6f45cec0
ret
cmp word [ecx + 0x6f200018], 0x10b
jne 0x6f45ceb5
push esi
movzx eax, word [ecx + 0x6f200014]
push ebx
movzx esi, word [ecx + 0x6f200006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6f200000
test si, si
je 0x6f45cf08
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6f45cefe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6f45cf0a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6f45cef0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401509
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
lea eax, [esp + 4]
push ebx
push esi
push edi
push 0x30
xor esi, esi
push esi
push eax
call fcn.00414050
pop ecx
pop ecx
lea ecx, [esp + 0x14]
call fcn.00408c26
test eax, eax
je 0x40153b
push 0x27
pop eax
jmp 0x4015f3
mov ebx, dword [ebp + 8]
mov edi, esi
jmp 0x4015da
cmp edi, eax
jge 0x401584
cmp dword [esp + 0x14], esi
jne 0x401584
push dword [0x42f420]
mov ecx, dword [0x43053c]
mov edx, ebx
push dword [0x430520]
push edi
call fcn.00408b8f
add esp, 0xc
test eax, eax
jle 0x4015fc
mov ecx, dword [0x430520]
add edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [0x430524]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [0x42f424]
mov dword [esp + 0x24], eax
call fcn.00409737
mov dword [esp + 0xc], eax
test eax, eax
je 0x4015ac
cmp eax, 4
jne 0x401603
mov ecx, dword [0x42f424]
sub ecx, dword [esp + 0x24]
je 0x4015d5
push dword [ebp + 0xc]
push 1
push ecx
push dword [0x430524]
call fcn.0040c7c6
add esp, 0x10
cmp eax, 1
jne 0x401607
mov eax, dword [esp + 0xc]
cmp eax, 4
je 0x4015e8
mov eax, dword [ebx + 8]
test eax, eax
jne 0x401545
push 0x28
pop esi
lea ecx, [esp + 0x10]
call fcn.00409886
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 6
jmp 0x401535
push 0x27
jmp 0x4015e7
push 0x46
jmp 0x4015e7

Function at 0x40160b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x42e440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
push ebx
push 0x20
push 1
push edi
call fcn.0040cede
add esp, 0x10
cmp eax, 0x20
je 0x401639
push 6
jmp 0x4016b3
push dword [edi + 8]
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
call esi
push dword [edi + 0xc]
mov dword [edi + 8], eax
call esi
push dword [edi + 0x10]
mov dword [edi + 0xc], eax
call esi
push dword [edi + 0x14]
mov dword [edi + 0x10], eax
call esi
push dword [edi + 0x18]
mov dword [edi + 0x14], eax
call esi
push dword [edi + 0x1c]
mov dword [edi + 0x18], eax
call esi
push ebx
mov dword [edi + 0x1c], eax
call fcn.00412b13
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.0040c9a3
add esp, 0xc
test eax, eax
jne 0x401635
cmp dword [edi], 0x4944424d
jne 0x4016b1
cmp dword [edi + 4], 0x30314646
jne 0x4016b1
mov ecx, dword [edi + 0x14]
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
add eax, 0x20
add eax, ecx
sub eax, dword [ebp - 0x24]
neg eax
sbb eax, eax
and eax, 0x29
jmp 0x4016b4
push 0x29
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bd82
mov esp, ebp
pop ebp
ret
Function at 0x4016c5
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [esp + 0x10], edx
push edi
mov edi, dword [ebx + 0x14]
add edi, dword [ebx + 0x18]
mov ecx, dword [ebx + 8]
add ecx, dword [esp + 0x24]
add edi, dword [ebx + 0x1c]
push edi
mov dword [esp + 0x10], ecx
call fcn.0040be77
mov dword [esp + 0x14], eax
pop ecx
test eax, eax
jne 0x4016fb
push 0xc
pop eax
jmp 0x401839
push ebp
push esi
xor esi, esi
mov ecx, eax
mov dword [esp + 0x10], ecx
test edi, edi
je 0x401742
mov ebp, 0x7fffffff
cmp edi, 0x7fffffff
ja 0x401718
mov ebp, edi
push dword [esp + 0x1c]
push ebp
push 1
push ecx
call fcn.0040cede
add esp, 0x10
cmp eax, ebp
jne 0x401820
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x10], ecx
sub edi, eax
jne 0x401709
mov eax, dword [esp + 0x18]
mov ebp, dword [ebx + 0x14]
mov edi, eax
mov ecx, dword [ebx + 0x1c]
add ebp, eax
mov eax, dword [ebx + 0x18]
mov ebx, dword [esp + 0x2c]
add eax, ebp
add ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
push dword [edi]
call dword [sym.imp.WSOCK32.dll_ntohl]
push dword [edi + 4]
mov dword [edi], eax
call dword [sym.imp.WSOCK32.dll_ntohl]
push dword [edi + 8]
mov dword [edi + 4], eax
call dword [sym.imp.WSOCK32.dll_ntohl]
mov ecx, dword [edi]
mov dword [edi + 8], eax
lea eax, [ecx + ebx]
cmp eax, dword [esp + 0x14]
ja 0x401828
lea eax, [ecx + ebp]
cmp eax, dword [esp + 0x1c]
ja 0x401828
mov edx, esi
test ecx, ecx
je 0x4017ba
mov ecx, ebp
sub ebx, ebp
mov al, byte [ebx + ecx]
add byte [ecx], al
inc edx
inc ecx
cmp edx, dword [edi]
jb 0x4017af
push dword [esp + 0x30]
mov ebx, dword [edi]
push ebx
push 1
push ebp
call fcn.0040c7c6
add esp, 0x10
cmp eax, ebx
jne 0x401824
mov eax, dword [edi + 4]
add ebp, ebx
mov ecx, dword [esp + 0x10]
add eax, ecx
add dword [esp + 0x2c], ebx
cmp eax, dword [esp + 0x20]
ja 0x401828
push dword [esp + 0x30]
mov ebx, dword [edi + 4]
push ebx
push 1
push ecx
call fcn.0040c7c6
add esp, 0x10
cmp eax, ebx
jne 0x401824
add dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x2c]
add ebx, dword [edi + 8]
mov dword [esp + 0x2c], ebx
cmp ebx, dword [esp + 0x14]
ja 0x401828
add edi, 0xc
cmp edi, dword [esp + 0x24]
jb 0x401767
jmp 0x40182b
push 6
jmp 0x40182a
push 0x40
jmp 0x40182a
push 0x29
pop esi
push dword [esp + 0x18]
call fcn.0040be3f
pop ecx
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x18
ret
Function at 0x402038
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 0x40206f
push ecx
push ecx
mov dword [esi + 8], ecx
call fcn.0040dfe9
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 0x402610
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x2f
pop eax
mov edi, ecx
xor ebp, ebp
push eax
push edi
mov esi, ebp
call fcn.0040d1de
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x402680
xor eax, eax
mov ecx, edi
mov word [ebx], ax
call fcn.00402610
mov esi, eax
test esi, esi
jne 0x40267a
cmp word [edi], bp
je 0x40267a
push edi
call fcn.0040d762
pop ecx
test eax, eax
jns 0x402678
call fcn.0040dd78
cmp dword [eax], 0x11
je 0x402678
call fcn.0040dd78
push dword [eax]
push edi
push str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 7
pop esi
jmp 0x40267a
mov esi, ebp
push 0x2f
pop eax
mov word [ebx], ax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x402687
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x42e440]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov esi, edx
mov edi, ecx
mov ecx, esi
call fcn.00402610
test eax, eax
jne 0x402798
lea eax, [ebp - 0x3c]
push eax
push edi
call fcn.0040d8ca
pop ecx
pop ecx
test eax, eax
je 0x4026df
call fcn.0040dd78
push dword [eax]
push edi
push str.rename_file:_failed_to_read_file_status_info:__S__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 6
pop eax
jmp 0x402798
mov eax, dword [ebp - 0x36]
mov ecx, 0x8000
and eax, 0xf000
cmp ax, cx
je 0x402732
cmp byte [ebp + 8], 0
je 0x402720
mov ecx, 0x4000
cmp ax, cx
je 0x402720
call fcn.0040dd78
push dword [eax]
push edi
push str.rename_file:_path_present__but_not_a_file:__S__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 0x30
jmp 0x4026d9
push str.rename_file:_proceeding_to_rename_the_directory
call fcn.0040200f
push eax
call fcn.00408506
pop ecx
pop ecx
push 0
push esi
call fcn.0040d284
pop ecx
pop ecx
test eax, eax
jne 0x402766
mov ecx, esi
call fcn.00402368
test eax, eax
je 0x402766
push esi
push str.rename_file:_destination_file_exists_and_could_not_be_removed:__S
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
push 0x3e
jmp 0x4026d9
push esi
push edi
call fcn.0040e8cc
pop ecx
pop ecx
test eax, eax
je 0x402796
call fcn.0040dd78
push dword [eax]
push esi
push edi
push str.rename_file:_failed_to_rename_file___src:__S__dst:_S__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x14
push 7
jmp 0x4026d9
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0040bd82
mov esp, ebp
pop ebp
ret
Function at 0x4027a8
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x244
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov esi, ecx
push eax
push esi
mov ebp, edx
call fcn.0040d8ca
pop ecx
pop ecx
test eax, eax
jne 0x402978
mov eax, dword [esp + 0x16]
mov ecx, 0x4000
and eax, 0xf000
cmp ax, cx
je 0x402864
lea eax, [esp + 0x40]
push eax
push 0
push 0x42955c
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x40]
push eax
call fcn.0040ddcc
pop ecx
push 0
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.00402687
mov edi, eax
mov eax, esi
pop ecx
test edi, edi
jne 0x402824
lea eax, [esp + 0x40]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x402843
test edi, edi
jne 0x40283b
lea esi, [esp + 0x40]
push esi
push str.remove_recursive_on_reboot:_file_will_be_removed_on_OS_reboot:__S
jmp 0x402851
test edi, edi
jne 0x40284b
lea esi, [esp + 0x40]
push esi
push str.remove_recursive_on_reboot:_failed_to_schedule_OS_reboot_removal_of_file:__S
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
jmp 0x402976
mov ecx, esi
call fcn.0040665e
mov edi, eax
test edi, edi
jne 0x402928
call fcn.0040dd78
push dword [eax]
push edi
push esi
push str.remove_recursive_on_reboot:_unable_to_open_directory:__S__rv:__d__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x14
xor eax, eax
jmp 0x402978
mov edx, 0x429350
mov eax, ecx
mov bx, word [eax]
cmp bx, word [edx]
jne 0x4028c5
test bx, bx
je 0x4028c1
mov bx, word [eax + 2]
cmp bx, word [edx + 2]
jne 0x4028c5
add eax, 4
add edx, 4
test bx, bx
jne 0x40289f
xor eax, eax
jmp 0x4028ca
sbb eax, eax
or eax, 1
test eax, eax
je 0x402928
mov edx, 0x429290
mov eax, ecx
mov bx, word [eax]
cmp bx, word [edx]
jne 0x4028fb
test bx, bx
je 0x4028f7
mov bx, word [eax + 2]
cmp bx, word [edx + 2]
jne 0x4028fb
add eax, 4
add edx, 4
test bx, bx
jne 0x4028d5
xor eax, eax
jmp 0x402900
sbb eax, eax
or eax, 1
test eax, eax
je 0x402928
push ecx
push esi
push 0x429354
lea eax, [esp + 0x4c]
push 0x104
push eax
call fcn.00401fe5
add esp, 0x14
lea ecx, [esp + 0x40]
mov edx, ebp
call fcn.004027a8
mov ecx, edi
call fcn.0040669d
mov ecx, eax
test ecx, ecx
jne 0x402898
mov ecx, edi
call fcn.0040667e
push 0x180
push esi
call fcn.0040d567
push esi
call fcn.0040d793
mov edi, eax
add esp, 0xc
test edi, edi
je 0x402976
call fcn.0040dd78
push dword [eax]
push edi
push esi
push str.remove_recursive_on_reboot:_unable_to_remove_directory:__S__rv:__d__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x14
mov eax, edi
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd82
add esp, 0x244
ret
Function at 0x402a5e
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42e440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
push str._s.moz_backup
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00401fe5
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040d284
add esp, 0x18
test eax, eax
jne 0x402b6e
lea ecx, [ebp - 0x20c]
call fcn.00402368
test eax, eax
je 0x402b6e
cmp byte [0x430531], 0
jne 0x402b6e
cmp byte [0x430530], 0
jne 0x402b6e
lea eax, [ebp - 0x20c]
push eax
push str.backup_discard:_unable_to_remove:__S
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push esi
push 0x429710
push str.tobedeleted
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x20c]
call fcn.00402687
test eax, eax
lea eax, [ebp - 0x414]
pop ecx
je 0x402b3f
push eax
lea eax, [ebp - 0x20c]
push eax
push str.backup_discard:_failed_to_rename_file:_S__dst:_S
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 0x45
pop eax
jmp 0x402b70
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea eax, [ebp - 0x414]
push eax
je 0x402b5b
push str.backup_discard:_file_renamed_and_will_be_removed_on_OS_reboot:__S
jmp 0x402b60
push str.backup_discard:_failed_to_schedule_OS_reboot_removal_of_file:__S
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bd82
mov esp, ebp
pop ebp
ret