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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532ab6
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x589bb4]
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 eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x824]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x818], eax
call fcn.004269e0
push esi
push edi
push ebx
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], 0
call fcn.00426db0
test eax, eax
jne 0x4608db
xor esi, esi
jmp 0x4609ab
call fcn.0040cb40
mov ecx, eax
test ecx, ecx
je 0x4609d6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push 1
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x824]
call fcn.00426fb0
test eax, eax
je 0x460987
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004d5e40
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x5459d8
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.00494590
add esp, 4
test eax, eax
je 0x460987
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x810]
push eax
push 0x400
push dword [ebp - 0x818]
call fcn.0050117c
add esp, 0xc
mov esi, 1
jmp 0x460989
xor esi, esi
mov edi, dword [ebp - 0x814]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4609ab
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x824]
call fcn.00426a00
mov eax, esi
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.0049a7f8
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.0040ab80
int3
Function at 0x460ec0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532ba0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x589bb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x460efb
mov eax, dword [ecx]
push ecx
call dword [eax]
mov dword [ebx + 0xc], 0
cmp dword [ebp + 0xc], 1
jne 0x460f9d
mov ecx, dword [ebx + 0xe8]
test ecx, ecx
je 0x460f9d
call fcn.0046d550
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0040c3d0
lea edi, [eax + 0x10]
mov dword [ebp + 0xc], edi
mov eax, dword [ebx + 8]
sub eax, 0x10
mov dword [ebp - 4], 0
push eax
call fcn.0040c3d0
add eax, 0x10
add esp, 8
mov dword [ebp + 8], eax
push str.FileList.xml
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004476d0
mov esi, dword [ebp + 8]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460f81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x460f9d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0xe8]
test eax, eax
jne 0x460fb8
mov eax, dword [eax]
push 0
call dword [eax + 0x4c]
mov dword [ebx + 0xe8], 0
push dword [ebx + 0x21c]
lea ecx, [ebx + 0xa8]
call fcn.00465960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x460fe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532bd6
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x589bb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp eax, 2
je 0x461060
cmp eax, 3
je 0x461060
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x238]
jne 0x46103f
push dword [ecx + 0x7c]
push str.bizhi_download__d
call fcn.00463ad0
add esp, 8
jmp 0x46121a
cmp eax, dword [esi + 0x248]
jne 0x46121a
push dword [ecx + 0x7c]
push str.gm_download__d
call fcn.00463ad0
add esp, 8
jmp 0x46121a
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esi + 0x238]
jne 0x461141
cmp eax, 2
jne 0x461132
lea ecx, [ebp - 0x42c]
call fcn.004269e0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004d5e40
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
mov eax, dword [0x58f330]
push 0x58f330
call dword [eax + 0x4c]
push str.Utils
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x240]
lea ecx, [ebp - 0x42c]
call fcn.00426b60
test eax, eax
je 0x46110d
lea eax, [esi + 0x220]
push eax
push 0
lea eax, [esi - 4]
push eax
push 0x461cd0
push 0
push 0
call fcn.00504777
add esp, 0x18
mov dword [esi + 0x224], eax
jmp 0x461127
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x240]
push str.unpack_bizhi_fail__src__s___output__s_
call fcn.00463ad0
add esp, 0xc
lea ecx, [ebp - 0x42c]
call fcn.00426a00
mov dword [esi + 0x244], 1
jmp 0x46121a
cmp ecx, dword [esi + 0x248]
jne 0x46121a
cmp eax, 2
jne 0x461210
lea ecx, [ebp - 0x438]
call fcn.004269e0
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004d5e40
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
mov eax, dword [0x58f330]
push 0x58f330
call dword [eax + 0x4c]
push str.Utils
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
push dword [esi + 0x250]
lea ecx, [ebp - 0x438]
call fcn.00426b60
test eax, eax
je 0x4611eb
lea eax, [esi + 0x22c]
push eax
push 0
lea eax, [esi - 4]
push eax
push 0x461cf0
push 0
push 0
call fcn.00504777
add esp, 0x18
mov dword [esi + 0x230], eax
jmp 0x461205
lea eax, [ebp - 0x420]
push eax
push dword [esi + 0x250]
push str.unpack_gm_fail__src__s___output__s_
call fcn.00463ad0
add esp, 0xc
lea ecx, [ebp - 0x438]
call fcn.00426a00
mov dword [esi + 0x254], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a7f8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x461260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532c21
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x589bb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
call fcn.0040cb40
mov ecx, eax
test ecx, ecx
je 0x4613dd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4613a9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
push 0
push dword [ebp + 0x14]
movlpd qword [ebp - 0x1c], xmm0
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x461398
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4613a6
add eax, 0x10
push 0x58fc8c
push eax
mov dword [ebp + 0xc], eax
call fcn.0049b29d
mov esi, eax
add esp, 8
test esi, esi
je 0x4613a6
push dword [ebp + 0xc]
push 0
push esi
call fcn.004d5e40
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push esi
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x46135b
push esi
call fcn.0049b298
add esp, 4
jmp 0x4613a6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x461360
sub ecx, edx
sar ecx, 1
je 0x46138f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x461376
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.0040d780
push esi
call fcn.0049b298
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4613a6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4613c8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040ab80
int3
Function at 0x4613f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x461400
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, ecx
push dword [ebp + 8]
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x461466
lea eax, [esi*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 4]
inc ebx
test eax, eax
je 0x461466
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x461481
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x461490
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532c50
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x589bb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x46156a
push esi
lea ecx, [ebp + 0xc]
call fcn.0040df50
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or edi, 0xffffffff
test eax, eax
je 0x461529
mov eax, dword [ebp + 8]
add eax, 8
push 0x543d54
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040bb20
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041c1d0
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x461520
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea ecx, [ebp + 0xc]
call fcn.004476d0
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46154b
push 0xffffffffffffffff
push 0
push 0
push 1
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004258e0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46156a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x461580
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532c80
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x589bb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x461671
push esi
lea ecx, [ebp + 0x10]
call fcn.0040df50
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or edi, 0xffffffff
test eax, eax
je 0x461619
mov eax, dword [ebp + 8]
add eax, 8
push 0x543d54
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040bb20
add esp, 0xc
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0041c1d0
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x461610
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea ecx, [ebp + 0x10]
call fcn.004476d0
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x461652
push 0
push 0
push 1
push dword [ebp + 0x1c]
push 1
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00435b40
push eax
push dword [ebp + 0x10]
push str.run_exe__s__ret_:__d
call fcn.00463ad0
add esp, 0x30
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x461671
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x461690
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x4616f6
push esi
mov esi, dword [edx + 4]
test esi, esi
je 0x4616f5
mov eax, esi
push ebx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4616b0
sub eax, ebx
sar eax, 1
je 0x4616f4
mov ebx, dword [edx + 0xc]
mov ecx, ebx
lea eax, [ecx + 2]
mov dword [ebp + 0xc], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4616d0
sub ecx, dword [ebp + 0xc]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push dword [edx + 0x10]
push dword [edx + 8]
push esi
push dword [edx]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop ebx
pop esi
pop ebp
ret 8
Function at 0x463690
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
lea esi, [ecx + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi]
push edi
lea edx, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp edx, edi
je 0x4636f4
cmp dword [edi + 0xc], 0
push ebx
lea ebx, [edi + 0xc]
jl 0x4636e6
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4636e6
push edx
call fcn.0040c3d0
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4636df
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
jmp 0x4636f3
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.0040d780
mov eax, dword [esi]
pop ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46375a
mov eax, dword [esi]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [eax - 0xc], 0
je 0x46375a
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x463741
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jl 0x46375a
jg 0x463752
cmp dword [ebp - 8], 0x40000000
jbe 0x46375a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x463dc0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5330a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x589bb4]
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 edi, ecx
push 0x552cc8
mov dword [edi], vtable.CFileManager.0
mov dword [edi + 4], vtable.CFileManager.1.0
call fcn.00463ad0
mov eax, dword [edi + 0x50]
add esp, 4
mov dword [edi + 0x68], 1
test eax, eax
je 0x463e2e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x50], 0
push dword [edi + 0x40]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x463f60
push dword [edi + 0x40]
call fcn.0040f570
mov edx, dword [edi + 0x40]
add esp, 4
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x463e70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004371b0
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
call fcn.0040c3d0
mov ecx, 1
add esp, 4
sub ecx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [esi - 8]
sub eax, 0x104
mov dword [ebp - 0x2c], esi
or ecx, eax
jge 0x463ec2
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.0040afd0
mov esi, dword [ebp - 0x2c]
cmp dword [esi - 8], 0x104
jl 0x463fc7
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.005019a0
add esp, 8
test eax, eax
js 0x463fc7
cmp eax, dword [esi - 8]
jg 0x463fc7
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x463f2a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x463f60
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x463f56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463fd1
push edx
push ecx
call fcn.0049a80e
add esp, 8
lea ecx, [edi + 0x44]
call fcn.00431a60
mov edx, dword [edi + 0x40]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x463f82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x28]
mov dword [edi + 0x24], vtable._BaseModule::CCriticalSection.0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, dword [edi + 0x20]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x463fab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0049a7f8
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040ab80
call fcn.004f2bd6
int3
Function at 0x464790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.0049ac50
mov eax, dword [0x589bb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [eax]
mov dword [ebp - 0x1318], ecx
cmp dword [edi - 0xc], 0x104
jg 0x464958
push 0x800
lea eax, [ebp - 0x1304]
push 0
push eax
call fcn.004d5e40
push 0x800
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.004d5e40
push edi
lea eax, [ebp - 0x1304]
push 0x400
push eax
call fcn.0050117c
add esp, 0x24
test esi, esi
je 0x46481b
cmp word [esi], 0
je 0x46481b
push esi
lea eax, [ebp - 0x1304]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xfe
lea eax, [ebp - 0x102]
push 0
push eax
call fcn.004d5e40
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
nop
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x1314]
push eax
movups xmmword [ebp - 0x1314], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.004d5e40
movzx eax, byte [ebp - 0x1305]
push eax
movzx eax, byte [ebp - 0x1306]
push eax
movzx eax, byte [ebp - 0x1307]
push eax
movzx eax, byte [ebp - 0x1308]
push eax
movzx eax, byte [ebp - 0x1309]
push eax
movzx eax, byte [ebp - 0x130a]
push eax
movzx eax, byte [ebp - 0x130b]
push eax
movzx eax, byte [ebp - 0x130c]
push eax
movzx eax, word [ebp - 0x130e]
push eax
movzx eax, word [ebp - 0x1310]
push eax
push dword [ebp - 0x1314]
lea eax, [ebp - 0x304]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.0040f050
lea eax, [ebp - 0x304]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4648e6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.005012ad
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1304]
push eax
lea eax, [ebp - 0xb04]
push eax
call edi
push str..tmp
lea eax, [ebp - 0xb04]
push 0x400
push eax
call fcn.005010a7
add esp, 0xc
lea eax, [ebp - 0xb04]
push eax
call ebx
test eax, eax
je 0x46496b
inc esi
cmp esi, 0xa
jl 0x464840
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a7f8
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xb04]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x464974
mov ecx, dword [ebp - 0x1318]
lea eax, [ebp - 0xb04]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0040d780
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a7f8
mov esp, ebp
pop ebp
ret
Function at 0x466770
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2804
call fcn.0049ac50
mov eax, dword [0x589bb4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
mov edi, ecx
push 0
push eax
call fcn.004d5e40
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
push 0x547798
push eax
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x804]
push eax
call ebx
test eax, eax
jne 0x4667ff
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x804]
push eax
push str.Create_directory_:__s
call fcn.00463ad0
add esp, 8
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004d5e40
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x5532e4
push eax
lea eax, [ebp - 0x1004]
push eax
call esi
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004d5e40
add esp, 0xc
lea eax, [ebp - 0x2004]
push 0x54697c
push dword [edi + 4]
push eax
call esi
lea eax, [ebp - 0x1004]
push eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x466881
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x1004]
push eax
push str.Delete__s
call fcn.00463ad0
add esp, 8
push 0
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push 0
lea eax, [ebp - 0x2004]
push eax
push 0x547798
call fcn.00467690
push 0x800
lea eax, [ebp - 0x2804]
push 0
push eax
call fcn.004d5e40
add esp, 0xc
lea eax, [ebp - 0x2804]
push str.uninst.exe
push dword [edi + 4]
push eax
call esi
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004d5e40
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x553424
push eax
lea eax, [ebp - 0x1804]
push eax
call esi
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x466926
lea eax, [ebp - 0x1804]
push eax
call ebx
lea eax, [ebp - 0x1804]
push eax
push str.Delete__s
call fcn.00463ad0
add esp, 8
push 0
lea eax, [ebp - 0x2804]
mov ecx, edi
push eax
lea eax, [ebp - 0x1804]
push eax
push 0
lea eax, [ebp - 0x2804]
push eax
push 0x553438
call fcn.00467690
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a7f8
mov esp, ebp
pop ebp
ret