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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004a15c0
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40fdc0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.004b1030
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004b7e14
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004a1588
mov esp, ebp
pop ebp
ret
Function at 0x410300
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4defd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x9c]
sub eax, 0x10
push eax
call fcn.00404230
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [edi + 4]
sub eax, 0x10
mov dword [ebp - 4], 0
push eax
call fcn.00404230
add esp, 8
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x4104e5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp + 0xc]
push edi
push esi
push str._s_s._s
push eax
call fcn.00407c50
mov esi, dword [ebp + 0xc]
add esp, 0x14
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x4103da
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
je 0x4103da
mov eax, dword [ebp + 0x14]
push 0
mov esi, dword [eax]
call fcn.004b8119
push esi
mov esi, dword [ebp - 0x10]
push eax
push edi
push esi
lea eax, [ebp + 0xc]
push str._s_s__d._s
push eax
call fcn.00407c50
add esp, 0x1c
jmp 0x4103dd
mov esi, dword [ebp - 0x10]
push dword [ebp + 0x20]
lea eax, [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0040fe90
add esp, 0x18
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp dword [eax - 0xc], 0
jne 0x410446
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x4104ef
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
push 0x4e8ad8
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004040f0
test al, al
jne 0x41045a
push 0
push 0x4e8ad8
mov ecx, ebx
call fcn.00404e90
jmp 0x41045a
add eax, 0xfffffff0
push eax
call fcn.00404230
mov ecx, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41047b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410499
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4104b4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4104d0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
push 0x80004005
call fcn.00403f90
int3
Function at 0x411140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df191
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x524a60]
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, dword [ebp + 8]
mov dword [ebp - 0x220], edi
mov ecx, dword [0x52a958]
call fcn.00418d40
mov eax, dword [eax + 0x34]
sub eax, 0x10
push eax
call fcn.00404230
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
cmp dword [esi - 0xc], 0
mov dword [ebp - 4], 0
jne 0x41120a
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x4112e5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x4e8ad8
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004040f0
test al, al
jne 0x4111e2
push 0
push 0x4e8ad8
mov ecx, edi
call fcn.00404e90
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4112c7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4112c7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x4112ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push esi
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x21c]
push str._s_s.lnk
push eax
call fcn.00407c50
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x220], eax
call fcn.00404230
mov edx, dword [ebp - 0x220]
add eax, 0x10
or ebx, 0xffffffff
mov dword [edi], eax
add esp, 0x14
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4112ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4112c7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.004a1588
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
push 0x80004005
call fcn.00403f90
int3
Function at 0x411300
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df191
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x524a60]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x220], ebx
mov ecx, dword [0x52a958]
call fcn.00418d40
mov eax, dword [eax + 0x28]
sub eax, 0x10
push eax
call fcn.00404230
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x224], edi
cmp dword [edi - 0xc], 0
mov dword [ebp - 4], 0
jne 0x4113ca
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x4114cf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x4e8ad8
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.004040f0
test al, al
jne 0x4113a2
push 0
push 0x4e8ad8
mov ecx, ebx
call fcn.00404e90
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4114b1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4114b1
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x4114d9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push edi
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x21c]
push str._s_s
push eax
call fcn.00407c50
mov esi, dword [ebp - 0x21c]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41145d
cmp dword [ebp + 0xc], eax
je 0x41145d
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
push str._GetStartMenuDir__Create_directory_:__s
call fcn.00433e30
add esp, 8
lea eax, [esi - 0x10]
push eax
mov dword [ebp - 0x220], eax
call fcn.00404230
mov edx, dword [ebp - 0x220]
add eax, 0x10
or esi, 0xffffffff
mov dword [ebx], eax
add esp, 4
mov byte [ebp - 4], 0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411495
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 0x4114b1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.004a1588
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
push 0x80004005
call fcn.00403f90
int3
Function at 0x411b50
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df296
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.004a15c0
mov eax, dword [0x524a60]
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 ecx, dword [0x52a958]
call fcn.00418d40
mov eax, dword [eax + 0x74]
sub eax, 0x10
push eax
call fcn.00404230
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x201c], esi
mov edi, dword [esi - 0xc]
mov dword [ebp - 4], 0
test edi, edi
js 0x411d88
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x411bda
push edi
lea ecx, [ebp - 0x201c]
call fcn.00404d20
mov esi, dword [ebp - 0x201c]
lea eax, [edi + 1]
push eax
push esi
call fcn.004b804a
add esp, 8
cmp edi, dword [esi - 8]
jg 0x411d88
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov ebx, dword [esi - 0xc]
mov dword [ebp - 0x2020], ebx
cmp ebx, 4
jl 0x411d49
cmp ebx, 0x104
jg 0x411d49
call fcn.0042eff0
push 0x2000
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2018], 0
push 0
push eax
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x2018]
push eax
push 0x800
lea eax, [ebp - 0x2010]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x411d49
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, edi
mov ecx, eax
mov dword [ebp - 0x2024], ecx
cmp dword [ebp - 0x2018], edi
jbe 0x411d42
nop dword [eax + eax]
mov eax, dword [ebp + edi*4 - 0x2010]
cmp ecx, eax
je 0x411d35
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.0042f930
add esp, 8
mov eax, dword [ebp - 0x2014]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x411d0d
lea ecx, [ebp - 0x2014]
call fcn.0040de80
push ebx
push dword [ebp - 0x2014]
push esi
call fcn.004b7dda
add esp, 0xc
test eax, eax
jne 0x411d0d
push dword [ebp + edi*4 - 0x2010]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x411d07
push dword [ebp - 0x2014]
push str._KillRelatedProcess__kill__s
call fcn.00433e30
add esp, 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x2020]
mov edx, dword [ebp - 0x2014]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411d2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2024]
inc edi
cmp edi, dword [ebp - 0x2018]
jb 0x411c80
mov edi, 1
jmp 0x411d4b
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411d6a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004a1588
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403f90
int3
Function at 0x412440
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddb68
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x52a958]
call fcn.00418d40
mov eax, dword [eax + 0x24]
cmp dword [eax - 0xc], 0
je 0x4125f2
push str._OpenUninstallPage
call fcn.00433e30
add esp, 4
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x412608
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [0x52a958]
mov dword [ebp - 4], 0
call fcn.00418d40
mov ecx, str.random
mov eax, dword [eax + 0x24]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4124e6
test dx, dx
je 0x4124e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4124e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4124c0
xor eax, eax
jmp 0x4124eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41254b
push 3
push eax
call fcn.0042fef0
mov edi, eax
push edi
push str._OpenUninstallPage__randomNum___d
call fcn.00433e30
add esp, 0x10
test edi, edi
jns 0x41250f
xor edi, edi
jmp 0x412519
mov eax, 2
cmp edi, eax
cmovg edi, eax
mov ecx, dword [0x52a958]
call fcn.00418d40
mov ecx, dword [0x52a958]
mov esi, dword [eax + 0x70]
call fcn.00418d40
push esi
push dword [eax + 0x6c]
lea eax, [ebp - 0x10]
push dword [edi*4 + 0x524180]
push eax
call fcn.00407c50
add esp, 0x10
jmp 0x4125bc
mov ecx, dword [0x52a958]
call fcn.00418d40
add eax, 0x24
lea ecx, [ebp - 0x10]
push eax
call fcn.00403aa0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jl 0x41258e
push 0x4eb3a0
push esi
call fcn.004b125d
add esp, 8
test eax, eax
je 0x41258e
sub eax, esi
sar eax, 1
test eax, eax
jle 0x41258e
push 1
push 0x4eb3a4
jmp 0x412595
push 1
push 0x4eb3a0
lea ecx, [ebp - 0x10]
call fcn.0040c0e0
mov ecx, dword [0x52a958]
call fcn.00418d40
push dword [eax + 0x70]
lea eax, [ebp - 0x10]
push 0x4eb3a8
push eax
call fcn.0040c1a0
add esp, 0xc
mov esi, dword [ebp - 0x10]
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4125f2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
int3
Function at 0x412d60
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412da8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412da8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x412d98
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412da8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x413120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df4a0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push str.FILERES
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00430200
add esp, 0x10
test eax, eax
jne 0x41319d
push dword [esi]
push str._TrayUnzipFile__s_failed__read_resource_failed.
call fcn.00433e50
add esp, 8
xor esi, esi
jmp 0x413226
mov edx, dword [esi]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4131c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004061e0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00430e90
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.004039d0
test edi, edi
jg 0x413211
neg edi
push edi
push dword [esi]
push str._TrayUnzipFile__save_to__s_failed__error_d
call fcn.00433e50
add esp, 0xc
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413221
xor esi, esi
jmp 0x413226
mov esi, 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x413256
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41324c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413273
push edx
push ecx
call fcn.004a12e0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
call fcn.004b3f79
int3
Function at 0x4147b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df770
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x14], esp
mov dword [eax + 0x24], 0
mov ecx, dword [0x52a958]
mov dword [ebp - 4], 0
call fcn.00418d40
push 1
push 0
push str.inst_open
push dword [eax + 0x90]
call fcn.0040dbe0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00441c00
mov ecx, dword [0x52a958]
call fcn.00418d40
add eax, 0x98
lea ecx, [ebp - 0x14]
push eax
call fcn.00403620
mov dword [ebp - 4], 1
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x41490e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x4e8ad8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004040f0
test al, al
jne 0x414876
push 0x4e8ad8
lea ecx, [ebp - 0x10]
call fcn.0040bd50
mov ecx, dword [0x52a958]
mov byte [ebp - 4], 3
call fcn.00418d40
mov ecx, eax
call fcn.0040a8d0
mov esi, dword [ebp - 0x14]
push eax
push esi
call fcn.0042fcd0
mov edi, dword [ebp - 0x10]
add esp, 8
test eax, eax
jne 0x4148b0
push esi
push str.CInstallWindow::_RunPlayGame___s_not_valid
call fcn.00433e50
add esp, 8
jmp 0x4148c3
push 5
push 0
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4148e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4148fd
mov ecx, dword [esi]
push esi
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
push 0x80004005
call fcn.00403f90
int3
Function at 0x4166d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df8c6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x41677c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41677c
call fcn.00415910
mov esi, eax
jmp 0x41686c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41679f
call fcn.00415910
jmp 0x41685f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4167bd
call fcn.00415910
jmp 0x41685f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4167de
mov esi, 0x8007000e
jmp 0x416861
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004157e0
jmp 0x416808
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41681f
mov esi, 0x8007000e
jmp 0x416861
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41683f
call fcn.00415910
jmp 0x41685f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00416530
mov esi, eax
test edi, edi
je 0x41686c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x416890
lea ecx, [ebp - 0x418]
call fcn.00415c50
nop word [eax + eax]
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 - 0x14]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret 0x10
Function at 0x419690
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de730
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x80]
sub eax, 0x10
push eax
call fcn.00404230
add eax, 0x10
add esp, 4
mov dword [ebp + 8], eax
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
mov dword [ebp - 4], 0
call ebx
or edi, 0xffffffff
test eax, eax
jne 0x4196ff
push dword [ebp + 8]
push str.CMainControl::_LoadInstalledGameConfig__not_found__s
call fcn.00433e50
add esp, 8
xor esi, esi
jmp 0x419798
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0040a720
test eax, eax
jne 0x419722
push dword [ebp + 8]
push str.CMainControl::_LoadInstalledGameConfig__invalid_config__s
call fcn.00433e50
add esp, 8
xor esi, esi
jmp 0x419798
push 0x4eacd4
lea eax, [esi + 0x74]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040bda0
add esp, 0xc
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call ebx
test eax, eax
jne 0x419758
push dword [ebp - 0x10]
push str.CMainControl::_LoadInstalledGameConfig__NetBridge_not_found__s
call fcn.00433e50
add esp, 8
xor esi, esi
jmp 0x41977a
push dword [esi + 0x78]
call ebx
test eax, eax
jne 0x419775
push dword [esi + 0x78]
push str.CMainControl::_LoadInstalledGameConfig__skin_not_found__s
call fcn.00433e50
add esp, 8
xor esi, esi
jmp 0x41977a
mov esi, 1
mov edx, dword [ebp - 0x10]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419798
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4197b7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4