joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445467
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 8
mov esi, ecx
lea edi, [ebp - 0x24]
xor ebx, ebx
xor eax, eax
pop ecx
mov dword [ebp - 0x28], ebx
rep stosd dword es:[edi], eax
push 8
pop edi
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0x14], edi
jb 0x44549d
mov eax, dword [esi]
jmp 0x44549f
mov eax, esi
lea ecx, [ebp - 0x28]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x445509
cmp dword [0x768ca0], 1
jg 0x4454f2
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x3e
push str.e:360chrome37_srcchromeinstallerutildelete_after_reboot_helper.cc
lea ecx, [ebp - 0xe8]
call fcn.0045d620
cmp dword [esi + 0x14], edi
jb 0x4454dc
mov esi, dword [esi]
lea ecx, [eax + 0x10]
mov edx, esi
call fcn.0045d6f0
mov edx, 0x54e98c
mov ecx, eax
call fcn.00405723
test bl, 1
je 0x445502
lea ecx, [ebp - 0xe8]
call fcn.0045d680
xor al, al
jmp 0x4455e2
mov ecx, esi
call fcn.00457b60
push 4
pop ecx
push 5
test al, al
pop edx
cmove ecx, edx
cmp dword [esi + 0x14], edi
jb 0x445524
mov eax, dword [esi]
jmp 0x445526
mov eax, esi
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x44558a
cmp dword [0x768ca0], 2
jg 0x445582
push 2
pop ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x49
push str.e:360chrome37_srcchromeinstallerutildelete_after_reboot_helper.cc
lea ecx, [ebp - 0xe8]
call fcn.0045d620
mov edx, str.Could_not_schedule
lea ecx, [eax + 0x10]
call fcn.00405723
cmp dword [esi + 0x14], edi
jb 0x44556d
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.0045d6f0
mov edx, str._for_deletion.
mov ecx, eax
call fcn.00405723
test bl, 2
jmp 0x4454f5
push 0x47
pop edx
mov ecx, str.e:360chrome37_srcchromeinstallerutildelete_after_reboot_helper.cc
call fcn.0045ce40
cmp eax, 1
jl 0x4455d0
push 4
pop ebx
push 0xffffffffffffffff
push 0x5d
push str.e:360chrome37_srcchromeinstallerutildelete_after_reboot_helper.cc
lea ecx, [ebp - 0xe0]
call fcn.0045ce90
mov edx, str.Scheduled_for_deletion:
lea ecx, [eax + 8]
call fcn.00405723
cmp dword [esi + 0x14], edi
jb 0x4455c7
mov esi, dword [esi]
mov edx, esi
mov ecx, eax
call fcn.0045d6f0
test bl, 4
je 0x4455e0
lea ecx, [ebp - 0xe0]
call fcn.0045cee0
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x4540d5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor edx, edx
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
dec esi
jne 0x4540dd
mov dword [edx*4 + 0x76a920], ecx
inc edx
cmp edx, 0x100
jb 0x4540d8
mov esi, 0x800
jmp 0x454124
mov ecx, dword [edx*4 + 0x76a520]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x76a920]
mov dword [edx*4 + 0x76a920], ecx
inc edx
cmp edx, esi
jb 0x454108
mov dword [0x766d38], 0x454aa8
call fcn.00454c15
mov ecx, dword [0x766d38]
test eax, eax
mov edx, 0x454b45
cmove ecx, edx
mov dword [0x766d38], ecx
pop esi
ret

Function at 0x455039
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x45505c
xor eax, eax
jmp 0x455189
push ebx
lea ecx, [edx - 4]
or ebx, 0xffffffff
add ecx, eax
mov dword [ebp - 8], ecx
lea edx, [edi + eax]
cmp edx, ecx
jae 0x45507f
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x45507c
inc edx
cmp edx, ecx
jb 0x45506f
mov eax, dword [ebp - 4]
mov edi, edx
sub edi, eax
cmp edx, ecx
jae 0x45516d
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x455103
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x14], ebx
test al, al
je 0x4550aa
cmp al, 0xff
jne 0x455130
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
sub ebx, edi
sub ebx, 5
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x455144
movzx eax, byte [esi + 0x55006c]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x4550f2
cmp al, 0xff
jne 0x455144
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp - 0x10]
jmp 0x4550c8
dec ecx
shl esi, cl
and esi, 7
je 0x455096
movzx eax, byte [esi + 0x55006c]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x550064], 0
mov al, byte [ecx + 4]
je 0x45512e
test al, al
je 0x45512e
cmp al, 0xff
jne 0x455096
mov ebx, edi
and esi, 3
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
jmp 0x455068
mov eax, ebx
mov byte [edx + 1], bl
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x14]
shr eax, 8
add edi, 5
mov byte [edx + 2], al
jmp 0x455139
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4575a0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov bl, dl
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x4575d5
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4575eb
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x45764a
lea ecx, [ebp - 0x260]
call fcn.00471db0
mov edx, ecx
mov ecx, esi
call fcn.00458370
test al, al
je 0x457633
cmp byte [ebp - 0x258], bl
je 0x457633
cmp dword [esi + 0x14], 8
jb 0x457617
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x45763d
mov eax, dword [esi]
jmp 0x45763f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4575d9
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.005091d0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x457670
mov esi, dword [esi]
lea ecx, [ebp - 0x218]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x457676
mov word [ebp - 0x21c], ax
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0
lea eax, [ebp - 0x218]
movq qword [ebp - 0x224], xmm0
movdqu xmmword [ebp - 0x234], xmm0
mov dword [ebp - 0x230], eax
mov eax, 0x414
mov dword [ebp - 0x234], 3
mov word [ebp - 0x228], ax
test bl, bl
jne 0x4576dd
mov eax, 0x1494
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x226], 0
jne 0x4575c3
test eax, eax
je 0x45771e
cmp eax, 2
je 0x45771e
cmp eax, 0x402
je 0x45771e
cmp eax, 0x7c
je 0x45771e
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret

Function at 0x457740
Capabilities:
Move file

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x457750
mov eax, dword [esi]
jmp 0x457752
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x45775a
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x45776b
mov al, 1
pop edi
pop esi
ret
cmp dword [edi + 0x14], 8
jb 0x457773
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x45777b
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
pop edi
setne al
pop esi
ret
Function at 0x457b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x457b48
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x457b68
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x457b7b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x457b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x457c9f
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x457bd0
xor ecx, ecx
jmp 0x457bef
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457be0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x248]
call fcn.00458fb0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x457c0c
mov ecx, dword [eax]
jmp 0x457c0e
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x230]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00458fb0
lea ecx, [ebp - 0x230]
call fcn.0045a0e0
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x457c42
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004059ba
cmp dword [ebp - 0x21c], 8
jb 0x457c59
push dword [ebp - 0x230]
call fcn.0050269b
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x457c8d
push dword [ebp - 0x248]
call fcn.0050269b
add esp, 4
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x457cc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x457d6b
cmp word [ebp - 0x210], 0
je 0x457d6b
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x457d2f
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00458fb0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
jmp 0x457d40
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457d40
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00458fb0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x214], 7
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.00457b80
mov ecx, esi
test al, al
je 0x457dbd
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.004059ba
jmp 0x457dd4
sub esp, 8
mov eax, esp
mov dword [eax], 0x550090
mov dword [eax + 4], 3
call fcn.00458fb0
cmp dword [ebp - 0x214], 8
jb 0x457deb
push dword [ebp - 0x228]
call fcn.0050269b
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x457e80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push esi
push edi
mov esi, edx
mov dword [ebp - 0x45c], 0
jb 0x457ea9
mov ecx, dword [ecx]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x53fc30
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x457ed4
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x104
ja 0x457f97
test eax, eax
je 0x457f97
xor ecx, ecx
mov dword [ebp - 0x42c], 7
push eax
lea eax, [ebp - 0x428]
mov word [ebp - 0x440], cx
push eax
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
call fcn.00405941
sub esp, 8
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x440]
mov dword [ecx], eax
mov eax, dword [ebp - 0x430]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x458]
call fcn.00458fb0
cmp esi, eax
je 0x457f6f
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004059ba
cmp dword [ebp - 0x444], 8
jb 0x457f86
push dword [ebp - 0x458]
call fcn.0050269b
add esp, 4
cmp dword [ebp - 0x42c], 8
jb 0x458004
push dword [ebp - 0x440]
jmp 0x457ffc
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x457fb2
xor ecx, ecx
jmp 0x457fcf
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
jmp 0x457fc0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457fc0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x458]
call fcn.00458fb0
cmp esi, eax
je 0x457fed
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004059ba
cmp dword [ebp - 0x444], 8
jb 0x458004
push dword [ebp - 0x458]
call fcn.0050269b
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x458020
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov dword [ebp - 0x54], eax
xor eax, eax
push edi
mov dword [ebp - 0x58], edx
xor edi, edi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
jmp 0x458060
xor eax, eax
mov dword [ebp - 0xc], 7
push 0xffffffffffffffff
push eax
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
call fcn.004059ba
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.004662e0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.00415344
cmp dword [ebp - 0x3c], 8
jb 0x4580b1
push dword [ebp - 0x50]
call fcn.0050269b
add esp, 4
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
cmovae ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x20]
test eax, eax
je 0x4580d1
sub eax, ecx
sar eax, 1
push 0x5f
push 1
push eax
lea ecx, [ebp - 0x20]
call fcn.0043bfed
mov edi, edi
lea ecx, [ebp - 0x64]
call fcn.00478d00
cmp dword [ebp - 0x60], 0xffffffff
ja 0x4580e0
mov edx, dword [ebp - 0x64]
jb 0x4580fb
cmp edx, 0xffff7fff
ja 0x4580e0
and edx, 0x7fff
lea ecx, [ebp - 0x50]
call fcn.004662e0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.00415344
cmp dword [ebp - 0x3c], 8
jb 0x45812a
push dword [ebp - 0x50]
call fcn.0050269b
add esp, 4
sub esp, 8
lea eax, [ebp - 0x20]
cmp dword [ebp - 0xc], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x5c]
push eax
call fcn.00459bb0
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x45815f
push 0xffffffffffffffff
push 0
push eax
call fcn.004059ba
cmp dword [ebp - 0x3c], 8
jb 0x458170
push dword [ebp - 0x50]
call fcn.0050269b
add esp, 4
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call ebx
test eax, eax
jne 0x4581a6
cmp dword [ebp - 0xc], 8
jb 0x458195
push dword [ebp - 0x20]
call fcn.0050269b
add esp, 4
mov edx, dword [ebp - 0x58]
inc edi
cmp edi, 0x32
jl 0x458060
xor bl, bl
jmp 0x4581cf
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x4581bc
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004059ba
cmp dword [ebp - 0xc], 8
jb 0x4581cd
push dword [ebp - 0x20]
call fcn.0050269b
add esp, 4
mov bl, 1
cmp dword [ebp - 0x24], 8
jb 0x4581e0
push dword [ebp - 0x38]
call fcn.0050269b
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x458200
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], 0
push esi
push edi
mov esi, edx
cmp dword [ebx + 0x14], 8
jb 0x45822b
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
jmp 0x458230
mov eax, ebx
mov dword [ebp - 0x20], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x458270
test al, 0x10
je 0x458253
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x45825d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00459820
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x458288
mov ecx, dword [ebx]
jmp 0x45828a
mov ecx, ebx
cmp dword [ebp - 0xc], eax
lea edx, [ebp - 0x1c]
mov edi, eax
cmovb edi, dword [ebp - 0xc]
cmp dword [ebp - 8], 8
cmovae edx, dword [ebp - 0x1c]
test edi, edi
jne 0x4582d0
xor eax, eax
test eax, eax
jne 0x4582ef
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, ecx
jb 0x4582ef
cmp edx, ecx
setne al
test eax, eax
jne 0x4582ef
test esi, esi
je 0x458338
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x45833e
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x4582e1
add edx, 2
add ecx, 2
dec edi
jmp 0x4582a0
movzx eax, word [edx]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x4582a4
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.00458200
test al, al
jne 0x458301
xor bl, bl
jmp 0x45833e
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45833c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x45832b
mov ecx, ebx
call fcn.00457b60
test al, al
jne 0x45833c
test esi, esi
je 0x458338
mov ecx, edi
call fcn.00471770
mov dword [esi], eax
xor bl, bl
jmp 0x45833e
mov bl, 1
cmp dword [ebp - 8], 8
jb 0x45834f
push dword [ebp - 0x1c]
call fcn.0050269b
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x458740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x458895
cmp eax, 0x104
ja 0x458895
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp word [ebp - 0x210], ax
je 0x4587c2
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4587b3
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00405941
lea eax, [ebp - 0x240]
push eax
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.00458fb0
mov ecx, eax
call fcn.00459f10
cmp esi, eax
je 0x458822
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004059ba
cmp dword [ebp - 0x22c], 8
jb 0x458839
push dword [ebp - 0x240]
call fcn.0050269b
add esp, 4
xor eax, eax
mov dword [ebp - 0x22c], 7
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
jb 0x45886d
push dword [ebp - 0x258]
call fcn.0050269b
add esp, 4
cmp dword [ebp - 0x214], 8
jb 0x458884
push dword [ebp - 0x228]
call fcn.0050269b
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret

Function at 0x4588b0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00459f50
test al, al
jne 0x45891c
mov ecx, esi
call fcn.00459f50
test al, al
jne 0x45891c
cmp dword [edi + 0x10], 0x104
jae 0x45891c
cmp dword [esi + 0x10], 0x104
jae 0x45891c
cmp dword [esi + 0x14], 8
jb 0x4588e5
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4588ed
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x45891c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45891c
test al, 1
je 0x458916
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x458930
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x4589e7
cmp dword [edi + 0x10], 0x104
jae 0x4589e7
cmp dword [edi + 0x14], 8
jb 0x45895f
mov eax, dword [edi]
jmp 0x458961
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x458969
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x458980
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x458995
mov eax, dword [esi]
jmp 0x458997
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4589d5
shr eax, 4
and al, 1
je 0x4589d5
push ecx
mov edx, edi
mov ecx, esi
call fcn.004577a0
add esp, 4
test al, al
je 0x4589d3
mov dl, 1
mov ecx, esi
call fcn.004575a0
test al, al
je 0x4589d3
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45b8c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov ebx, ecx
mov dword [ebp - 8], 0
push eax
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45b987
push eax
push eax
push eax
push eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x45b936
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp + 8], 0
jne 0x45b982
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
push str.RegDeleteKeyExW
push str.advapi32.dll
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45b971
push 0
push dword [ebp - 8]
push esi
push edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x91
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4