joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445d40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a1f53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00495276
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x609768
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x604010
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4a4054]
push eax
mov ecx, edi
call fcn.0049a912
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049be2e
test eax, eax
je 0x445e5c
mov ecx, dword [esp + 0x3c]
call fcn.0049a93f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4a4664]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x445e20
push edi
mov ecx, esi
call fcn.00497fa1
mov ecx, esi
call fcn.00445fc0
cmp dword [esp + 0x38], 1
jne 0x445e55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004980dc
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x448890
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4488c3
push esi
call fcn.0044b9a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4488bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x448949
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x448932
mov eax, dword [esi + 8]
test eax, eax
je 0x4488e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44892e
cmp eax, 2
je 0x448932
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4488da
cmp eax, 3
je 0x44890d
cmp eax, 1
jne 0x4488da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4488da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4488da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00448970
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x448958
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00448970
add esp, 4
pop esi
ret
Function at 0x45d2c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a2640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045ce70
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045cef0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045cef0
lea ecx, [esi + 0xc]
call fcn.00493c50
lea ecx, [esi + 0x10]
call fcn.00493c50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045e480
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045e480
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045e480
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00493cc5
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00493cc5
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404280
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476698
push eax
mov eax, 0x1024
mov dword fs:[0], esp
call fcn.0044e830
push ebx
xorps xmm0, xmm0
push esi
mov eax, 0x14
movq qword [ebp - 0x20], xmm0
push 0x800
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x830]
movq qword [ebp - 0x30], xmm0
push 0
push eax
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 3
call fcn.0044ecf0
push 0x800
lea eax, [ebp - 0x1030]
push 0
push eax
call fcn.0044ecf0
add esp, 0x18
lea eax, [ebp - 0x830]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x830]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40434d
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor ebx, ebx
test esi, esi
sete bl
lea eax, [ebp - 0x830]
mov dword [ebp - 4], 0
push ebx
push eax
lea eax, [ebp - 0x10]
push str.deletedir:_success:_d
push eax
call fcn.00405230
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4043a5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4045d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.004016a0
push dword [ebp - 0x10]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x40465e
push 0x47d94c
push 0x47d954
lea ecx, [ebp - 0x10]
call fcn.00408880
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40465e
push 0x47d95c
push 0x47d94c
lea ecx, [ebp - 0x10]
call fcn.00408880
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40465e
push 0x47d964
push 0x47d95c
lea ecx, [ebp - 0x10]
call fcn.00408880
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x40466f
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, 1
jmp 0x404671
xor esi, esi
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404695
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405020
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476698
push eax
mov eax, 0x1214
mov dword fs:[0], esp
call fcn.0044e830
lea eax, [ebp - 0x18]
push eax
push 0x1000
lea eax, [ebp - 0x1220]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x405069
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push ebx
push esi
shr eax, 2
push edi
xor edi, edi
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405145
nop
mov ebx, dword [ebp + edi*4 - 0x1220]
call fcn.00429930
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x405198
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push ebx
push 0
push 0x410
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40511e
push 0x208
lea eax, [ebp - 0x220]
push eax
push 0
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x405117
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4050e4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x10]
call fcn.00408f60
push dword [0x4a4750]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405158
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
mov dword [ebp - 4], ecx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40513b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x405080
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405180
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + edi*4 - 0x1220]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402670
int3
Function at 0x407110
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa00
lea eax, [ebp - 0x600]
push esi
push edi
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x600]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
lea eax, [ebp - 0x600]
push eax
lea eax, [ebp - 0xa00]
push eax
call esi
lea eax, [ebp - 0x600]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.TencentQQ2012BinQQ.exe
lea eax, [ebp - 0x800]
push eax
call edi
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
lea eax, [ebp - 0x200]
push eax
call fcn.004045d0
add esp, 4
test eax, eax
jne 0x40723d
push str.TencentQQBinQQ.exe
lea eax, [ebp - 0xa00]
push eax
call edi
lea eax, [ebp - 0xa00]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
lea eax, [ebp - 0x200]
push eax
call fcn.004045d0
add esp, 4
test eax, eax
jne 0x4071fd
push str.TencentQQ2011BinQQ.exe
lea eax, [ebp - 0x400]
push eax
call edi
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
lea eax, [ebp - 0x200]
push eax
call fcn.004045d0
add esp, 4
lea eax, [ebp - 0x200]
push eax
call fcn.004045d0
add esp, 4
test eax, eax
jne 0x40723d
push str.TencentQQ2013BinQQ.exe
lea eax, [ebp - 0x400]
push eax
call edi
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
lea eax, [ebp - 0x200]
push eax
call fcn.004045d0
add esp, 4
lea eax, [ebp - 0x200]
push eax
call fcn.004045d0
add esp, 4
test eax, eax
je 0x407267
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 8]
call esi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408160
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, dword [ebp + 8]
test esi, esi
jle 0x408189
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4081af
push 0xa
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.0044d6b3
add esp, 0xc
lea eax, [ebp - 0x40]
push 0
push 0
push eax
push str.ntsd__cq__p
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408590
Capabilities:
Check if file exists
Delete file

Disassembly:
mov ecx, 0x4a4370
call fcn.0040d900
mov ecx, 0x4a4418
call fcn.0040d900
mov ecx, 0x4a44c0
call fcn.0040d900
mov ecx, 0x4a4568
call fcn.0040d900
mov ecx, 0x4a4610
call fcn.0040d900
push dword [0x4a4780]
mov dword [0x4a3ea8], 0
call fcn.00467a90
add esp, 4
test eax, eax
jne 0x4085fe
push dword [0x4a4780]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [0x4a4780]
push dword [0x4a4788]
call fcn.0044d287
add esp, 8
push esi
push dword [0x4a4710]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x408627
push 0
push dword [0x4a4770]
push dword [0x4a4710]
call fcn.00468140
add esp, 0xc
push dword [0x4a470c]
call esi
test eax, eax
je 0x408649
push 0
push dword [0x4a476c]
push dword [0x4a470c]
call fcn.00468140
add esp, 0xc
push dword [0x4a4704]
call esi
test eax, eax
je 0x40866b
push 0
push dword [0x4a4778]
push dword [0x4a4704]
call fcn.00468140
add esp, 0xc
push dword [0x4a4708]
call esi
test eax, eax
je 0x40868d
push 0
push dword [0x4a477c]
push dword [0x4a4708]
call fcn.00468140
add esp, 0xc
push dword [0x4a4714]
call esi
test eax, eax
je 0x4086af
push 0
push dword [0x4a4774]
push dword [0x4a4714]
call fcn.00468140
add esp, 0xc
push dword [0x4a4718]
call esi
test eax, eax
je 0x4086d1
push 0
push dword [0x4a4764]
push dword [0x4a4718]
call fcn.00468140
add esp, 0xc
push dword [0x4a46f4]
call esi
pop esi
test eax, eax
je 0x4086f4
push 0
push dword [0x4a46fc]
push dword [0x4a46f4]
call fcn.00468140
add esp, 0xc
ret
Function at 0x409010
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [0x4a493c]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, dword [0x4a3eb8]
jl 0x409030
push dword [0x4a4710]
call esi
test eax, eax
jne 0x409046
push 0
push dword [0x4a4710]
push dword [0x4a4770]
call fcn.00468140
add esp, 0xc
mov eax, dword [0x4a493c]
cmp eax, dword [0x4a3eb8]
jl 0x40905f
push dword [0x4a4704]
call esi
test eax, eax
jne 0x409075
push 0
push dword [0x4a4704]
push dword [0x4a4778]
call fcn.00468140
add esp, 0xc
mov eax, dword [0x4a493c]
cmp eax, dword [0x4a3eb8]
jl 0x40908e
push dword [0x4a4708]
call esi
test eax, eax
jne 0x4090a4
push 0
push dword [0x4a4708]
push dword [0x4a477c]
call fcn.00468140
add esp, 0xc
mov eax, dword [0x4a493c]
cmp eax, dword [0x4a3eb8]
jl 0x4090bd
push dword [0x4a470c]
call esi
test eax, eax
jne 0x4090d3
push 0
push dword [0x4a470c]
push dword [0x4a476c]
call fcn.00468140
add esp, 0xc
mov eax, dword [0x4a493c]
cmp eax, dword [0x4a3eb8]
jl 0x4090ec
push dword [0x4a4714]
call esi
test eax, eax
jne 0x409102
push 0
push dword [0x4a4714]
push dword [0x4a4774]
call fcn.00468140
add esp, 0xc
mov eax, dword [0x4a493c]
cmp eax, dword [0x4a3eb8]
jl 0x40911b
push dword [0x4a4718]
call esi
test eax, eax
jne 0x409131
push 0
push dword [0x4a4718]
push dword [0x4a4764]
call fcn.00468140
add esp, 0xc
mov eax, dword [0x4a493c]
cmp eax, dword [0x4a3eb8]
jl 0x40914a
push dword [0x4a46f4]
call esi
test eax, eax
jne 0x409160
push 0
push dword [0x4a46f4]
push dword [0x4a46fc]
call fcn.00468140
add esp, 0xc
pop esi
ret

Function at 0x40a540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a555
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a594
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40a590
lea ebx, [ebx]
cmp esi, edx
jae 0x40a594
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40a580
cmp esi, edx
jb 0x40a599
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40f6f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474c80
push eax
mov dword fs:[0], esp
sub esp, 0x208
lea eax, [ebp - 0x214]
push esi
push edi
push 0x479cd0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
lea eax, [ebp - 0x214]
push eax
push str.360zip_shellopencommand
push SysReAllocString
call fcn.004679a0
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp + 8]
test eax, eax
je 0x40f836
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f771
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f7a1
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x479d58
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x214]
push eax
mov byte [ebp - 4], 1
call fcn.00465ad0
add esp, 0x10
lea ecx, [ebp - 0x10]
push 0x47ece4
push 0x47ece4
call fcn.0040fcc0
mov ecx, eax
call fcn.0040fc00
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00401e70
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40f815
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40f836
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
jne 0x40f890
push 0x26
push str.C:Program_Files360360zip360zip.exe
mov ecx, esi
call fcn.00408f60
push dword [esi]
call edi
test eax, eax
jne 0x40f890
push 0x2c
push str.C:Program_Files__x86_360360zip360zip.exe
mov ecx, esi
call fcn.00408f60
push dword [esi]
call edi
test eax, eax
jne 0x40f890
push str.d:Program_Files360360zip360zip.exe
mov ecx, esi
call fcn.00401f00
push dword [esi]
call edi
test eax, eax
jne 0x40f890
push str.d:Program_Files__x86_360360zip360zip.exe
mov ecx, esi
call fcn.00401f00
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40f8a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474c80
push eax
mov dword fs:[0], esp
sub esp, 0x208
lea eax, [ebp - 0x214]
push esi
push edi
push 0x479cd0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
lea eax, [ebp - 0x214]
push eax
push str.HaoZip.rar_shellopencommand
push SysReAllocString
call fcn.004679a0
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp + 8]
test eax, eax
je 0x40f9e6
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f921
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f951
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x479d58
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x214]
push eax
mov byte [ebp - 4], 1
call fcn.00465ad0
add esp, 0x10
lea ecx, [ebp - 0x10]
push 0x47ece4
push 0x47ece4
call fcn.0040fcc0
mov ecx, eax
call fcn.0040fc00
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00401e70
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40f9c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40f9e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
jne 0x40fa40
push 0x22
push str.C:Program_FilesHaoZipHaoZip.exe
mov ecx, esi
call fcn.00408f60
push dword [esi]
call edi
test eax, eax
jne 0x40fa40
push 0x28
push str.C:Program_Files__x86_HaoZipHaoZip.exe
mov ecx, esi
call fcn.00408f60
push dword [esi]
call edi
test eax, eax
jne 0x40fa40
push str.d:Program_FilesHaoZipHaoZip.exe
mov ecx, esi
call fcn.00401f00
push dword [esi]
call edi
test eax, eax
jne 0x40fa40
push str.d:Program_Files__x86_HaoZipHaoZip.exe
mov ecx, esi
call fcn.00401f00
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40fa50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474c80
push eax
mov dword fs:[0], esp
sub esp, 0x208
lea eax, [ebp - 0x214]
push esi
push edi
push 0x479cd0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
lea eax, [ebp - 0x214]
push eax
push str.WinRaR_shellopencommand
push SysReAllocString
call fcn.004679a0
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp + 8]
test eax, eax
je 0x40fb96
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40fad1
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40fb01
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x479d58
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x214]
push eax
mov byte [ebp - 4], 1
call fcn.00465ad0
add esp, 0x10
lea ecx, [ebp - 0x10]
push 0x47ece4
push 0x47ece4
call fcn.0040fcc0
mov ecx, eax
call fcn.0040fc00
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00401e70
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40fb75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40fb96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
jne 0x40fbf0
push 0x22
push 0x47ece8
mov ecx, esi
call fcn.00408f60
push dword [esi]
call edi
test eax, eax
jne 0x40fbf0
push 0x28
push str.C:Program_Files__x86_WinRARWinRAR.exe
mov ecx, esi
call fcn.00408f60
push dword [esi]
call edi
test eax, eax
jne 0x40fbf0
push str.d:Program_FilesWinRARWinRAR.exe
mov ecx, esi
call fcn.00401f00
push dword [esi]
call edi
test eax, eax
jne 0x40fbf0
push str.d:Program_Files__x86_WinRARWinRAR.exe
mov ecx, esi
call fcn.00401f00
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret