joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bea0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bee3
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf77
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40bf3f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea esp, [esp]
lea ecx, [ebp - 0x20c]
push ecx
push str.explorer.exe
call fcn.0042f26e
add esp, 8
test eax, eax
je 0x40bf28
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x40bf00
jmp 0x40bf3e
mov eax, dword [ebp - 0x228]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042cf77
mov esp, ebp
pop ebp
ret

Function at 0x40c830
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
xor eax, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov byte [edi + 0x88], al
mov eax, 0x7a7a7a7a
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
push ebx
mov dword [edi + 0x74], eax
push esi
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
push 0x4d57b4
mov dword [edi + 0x80], eax
push ecx
mov dword [edi + 0x84], eax
call fcn.0042fafb
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40c8fa
push ebx
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.0042fefc
add esp, 0x10
test eax, eax
je 0x40c8ea
push eax
lea ecx, [ebp - 0x404]
push ecx
mov ecx, edi
call fcn.0040c640
push ebx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.0042fefc
add esp, 0x10
test eax, eax
jne 0x40c8c0
mov ecx, edi
call fcn.0040c6f0
push ebx
call fcn.0042f0f7
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
lea eax, [edi + 0x68]
pop ebx
call fcn.0042cf77
mov esp, ebp
pop ebp
ret
Function at 0x40c910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c9ac
push 0x103
push eax
lea ecx, [ebp - 0x107]
push ecx
mov byte [ebp - 0x108], al
call fcn.00436fe0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 0x10c]
push 4
lea eax, [ebp - 0x110]
push eax
push 4
push 0
lea ecx, [ebp - 0x108]
push ecx
push edx
mov dword [ebp - 0x110], 0x77
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf77
mov esp, ebp
pop ebp
ret
Function at 0x40cce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x4d5530
xor edi, edi
push SysReAllocString
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40cdfb
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cd10
sub eax, edx
sar eax, 1
jne 0x40cd3f
mov eax, 0x4d4de0
mov edx, esi
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40cd30
mov ecx, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push 0x104
push esi
push 1
push 0
push str.ChannelID
push ecx
call edi
mov edx, dword [ebp + 0xc]
push 0x104
push edx
push 1
push 0
mov ebx, eax
mov eax, dword [ebp - 4]
push str.SetupPath
push eax
call edi
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24d4], 2
jne 0x40cdda
mov eax, dword [0x4ff104]
test eax, eax
jne 0x40cdab
push 0x24d8
call fcn.0042d9bc
add esp, 4
test eax, eax
je 0x40cda4
mov esi, eax
call fcn.00411420
jmp 0x40cda6
xor eax, eax
mov dword [0x4ff104], eax
add eax, 0xa28
push str.silent
push eax
call fcn.0042f26e
add esp, 8
test eax, eax
je 0x40cdda
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
push 0x104
push edx
push 1
push 0
push str.bdvid
push eax
call edi
test ebx, ebx
pop ebx
mov esi, 1
je 0x40cde7
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ce10
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00436fe0
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0x30
push 0
push 0
mov ecx, 1
mov word [ebp - 0x2c], cx
mov ecx, dword [ebp + 8]
push 0
push ecx
push 0
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40ce70
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
push esi
push edi
call fcn.0040bea0
push 0x48
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00436fe0
mov edi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
mov dword [esp + 0x30], 0x48
mov dword [esp + 0x18], 0
call edi
mov edx, dword [esp + 8]
push edx
call fcn.0042c2d3
add esp, 4
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push esi
call edi
push 0
push 0
push 4
lea ecx, [esp + 0x18]
push ecx
push 0x20000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x40cef8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
xor eax, eax
xor edi, edi
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push edi
push edi
push 0x80000
push edi
push edi
push edi
push ecx
push edi
push edi
mov dword [esp + 0x90], esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40cf50
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
push esi
call fcn.0042d960
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40cf70
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa28
mov eax, dword [0x4fa2a0]
xor eax, esp
mov dword [esp + 0xa24], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.ole32.dll_CoInitialize]
test esi, esi
je 0x40cfef
lea eax, [esp + 0xc]
push eax
push 0x4c467c
push 1
push 0
push 0x4c468c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40cfef
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x4c46ac
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jns 0x40d007
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa24]
xor ecx, esp
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x40d058
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
push 0x800
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00436fe0
push 0x400
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.0042f9f3
add esp, 0x18
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
test ebx, ebx
je 0x40d077
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebx
push eax
call edx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x40d08e
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push 0
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov ecx, dword [esp + 0x14]
push esi
push ecx
push str._s_s
lea edx, [esp + 0x82c]
call fcn.0040be60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
add esp, 0xc
push ecx
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x824]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
lea eax, [esp + 0x824]
push eax
push 5
push 2
call edi
push 0
push 0
push 0
push 0x8000000
call edi
mov ecx, dword [esp + 0xa2c]
xor eax, eax
test esi, esi
pop edi
setns al
pop esi
xor ecx, esp
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d1b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1678
call fcn.00440b70
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x100a]
push edx
mov dword [ebp - 0x1670], ebx
mov dword [ebp - 0x1678], eax
mov word [ebp - 0x100c], cx
call fcn.00436fe0
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x80a]
push ecx
mov word [ebp - 0x80c], ax
call fcn.00436fe0
lea edx, [ebp - 0x100c]
add esp, 0xc
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d224
lea eax, [ebp - 0x100c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40d240
mov edx, dword [str..]
mov ecx, dword [0x4d59b0]
mov dword [eax], edx
mov dx, word [0x4d59b4]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [ebp - 0x125c]
push eax
lea ecx, [ebp - 0x100c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1674], eax
cmp eax, 0xffffffff
je 0x40d3d7
mov esi, dword [ebp + 0x10]
mov edi, edi
mov ecx, 0x4d59b8
lea eax, [ebp - 0x1230]
jmp 0x40d2a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d2c6
test dx, dx
je 0x40d2c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d2c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d2a0
xor eax, eax
jmp 0x40d2cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d3ae
mov ecx, 0x4d59bc
lea eax, [ebp - 0x1230]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d306
test dx, dx
je 0x40d302
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d306
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d2e0
xor eax, eax
jmp 0x40d30b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d3ae
lea edx, [ebp - 0x1230]
push edx
push edi
push str._s_s
lea edx, [ebp - 0x80c]
call fcn.0040be60
add esp, 0xc
test byte [ebp - 0x125c], 0x10
je 0x40d34f
mov eax, dword [ebp - 0x1678]
push esi
push eax
lea ecx, [ebp - 0x80c]
push ecx
mov ecx, ebx
call fcn.0040d1b0
jmp 0x40d3ae
xor eax, eax
jmp 0x40d360
movzx ecx, word [ebp + eax - 0x80c]
mov word [ebp + eax - 0x166c], cx
add eax, 2
test cx, cx
jne 0x40d360
cmp esi, 1
jne 0x40d385
add ebx, 0x2290
jmp 0x40d39d
cmp esi, 2
jne 0x40d392
add ebx, 0x22a0
jmp 0x40d39d
cmp esi, 3
jne 0x40d3ae
add ebx, 0x22b0
lea eax, [ebp - 0x166c]
call fcn.004120d0
mov ebx, dword [ebp - 0x1670]
mov eax, dword [ebp - 0x1674]
lea edx, [ebp - 0x125c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d290
mov ecx, dword [ebp - 0x1674]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d3f0
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d401
mov eax, 1
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40d41c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40d3fb
xor eax, eax
ret
Function at 0x40dc70
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00436fe0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0
push 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40dce1
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
jmp 0x40dcf0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dcf0
mov eax, dword [0x4d4c6c]
mov dword [edi], eax
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
pop edi
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40dd10
mov ecx, dword [str.NeoCell.lnk]
mov edx, dword [0x4d5470]
mov dword [eax], ecx
mov ecx, dword [0x4d5474]
mov dword [eax + 4], edx
mov edx, dword [0x4d5478]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d547c]
mov dword [eax + 0xc], edx
mov edx, dword [0x4d5480]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0042cf77
mov esp, ebp
pop ebp
ret

Function at 0x40dec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x20c], 0
call fcn.00436fe0
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.00436fe0
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0x18
push 0
push 0
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
mov eax, dword [0x4ff104]
test eax, eax
jne 0x40df57
push 0x24d8
call fcn.0042d9bc
add esp, 4
test eax, eax
je 0x40df50
mov esi, eax
call fcn.00411420
jmp 0x40df52
xor eax, eax
mov dword [0x4ff104], eax
push 0
push 0
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0xffffffffffffffff
add eax, 0x410
push eax
push 0
push 0
call edi
lea eax, [ebp - 0x108]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40df80
mov edx, dword [str._neocelllik.txt]
mov ecx, dword [0x4d5a18]
mov dword [eax], edx
mov edx, dword [0x4d5a1c]
mov dword [eax + 4], ecx
mov ecx, dword [0x4d5a20]
mov dword [eax + 8], edx
lea edx, [ebp - 0x108]
push 0x4d5a24
push edx
mov dword [eax + 0xc], ecx
call fcn.0042fafb
mov esi, eax
lea eax, [ebp - 0x20c]
add esp, 8
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dfd0
push esi
sub eax, edx
push 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00430070
push esi
call fcn.0042f0f7
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
xor ecx, ebp
pop esi
call fcn.0042cf77
mov esp, ebp
pop ebp
ret
Function at 0x40e980
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, 0x10
cmp dword [ebp + 0x1c], ebx
jae 0x40e9a1
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40eb06
push edi
xor edi, edi
push edi
push 0x4d4add
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
call fcn.00402b70
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], ebx
jae 0x40e9da
lea eax, [ebp + 8]
push 0x4d5ad0
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0042fb12
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp eax, edi
jne 0x40ea51
push edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
push 0x4d4add
mov ecx, esi
mov byte [esi], 0
call fcn.00402b70
cmp dword [ebp - 0xc], ebx
jb 0x40ea1e
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0042d960
add esp, 4
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
cmp dword [ebp + 0x1c], ebx
jb 0x40ea3d
mov edx, dword [ebp + 8]
push edx
call fcn.0042d960
add esp, 4
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 0x1c
push 2
push edi
push eax
call fcn.0043036d
mov eax, dword [ebp - 0x24]
push eax
call fcn.0043027e
mov ecx, dword [ebp - 0x24]
push edi
push edi
push ecx
mov ebx, eax
call fcn.0043036d
lea edx, [ebx + 1]
push edx
call fcn.0042c2d3
mov edi, eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
push 1
push edi
call fcn.0042fefc
mov byte [edi + ebx], 0
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0042f0f7
mov eax, edi
add esp, 0x34
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40eaa0
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00402b70
push edi
call fcn.0042d960
add esp, 4
lea edx, [ebp - 0x20]
mov ebx, 0xf
xor edi, edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
push edx
mov ecx, esi
mov byte [esi], 0
call fcn.00402640
cmp dword [ebp - 0xc], 0x10
jb 0x40eae9
mov eax, dword [ebp - 0x20]
push eax
call fcn.0042d960
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
jb 0x40ea3d
mov ecx, dword [ebp + 8]
push ecx
jmp 0x40ea35
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x4d4add
mov ecx, esi
mov byte [esi], 0
call fcn.00402b70
cmp dword [ebp + 0x1c], ebx
jb 0x40ea3e
mov edx, dword [ebp + 8]
push edx
call fcn.0042d960
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40ec20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x4d57b4
push eax
call fcn.0042fafb
push 2
mov esi, eax
push 0
push esi
call fcn.0043036d
push esi
call fcn.0043027e
push esi
mov ebx, eax
call fcn.0042f935
lea ecx, [ebx + 1]
push ecx
mov dword [ebp - 4], 0
call fcn.0042f8a1
mov edi, eax
add esp, 0x20
test edi, edi
je 0x40ecc9
push esi
push ebx
push 1
push edi
call fcn.0042fefc
push esi
call fcn.0042f0f7
lea edx, [ebp - 4]
push edx
push edi
mov ecx, ebx
call fcn.0041b400
push edi
mov esi, eax
call fcn.0042f827
add esp, 0x20
test esi, esi
je 0x40ecc9
mov eax, dword [ebp + 8]
push 0x4d5ae4
push eax
call fcn.0042fafb
mov edi, eax
add esp, 8
test edi, edi
je 0x40ecc9
mov ecx, dword [ebp - 4]
push edi
push 1
push ecx
push esi
call fcn.00430070
push edi
call fcn.0042e080
push edi
call fcn.0042f0f7
push esi
call fcn.0042f827
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fb40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x4fa2a0]
xor eax, esp
mov dword [esp + 0x804], eax
test esi, esi
je 0x40fbc4
test edi, edi
je 0x40fbc4
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.00436fe0
push 0x400
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.0042f9f3
add esp, 0x18
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebx + 0x2084], 0
mov eax, 1
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.0042cf77
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x804]
xor ecx, esp
xor eax, eax
call fcn.0042cf77
mov esp, ebp
pop ebp
ret
Function at 0x40fcb0
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4fb44c]
mov edx, dword [eax + 0xc]
push ebx
push edi
mov ecx, 0x4fb44c
call edx
lea ebx, [esi + 0x208]
add eax, 0x10
push ebx
push str._scommon.7z
lea edi, [ebp - 0x214]
mov dword [ebp - 0x214], eax
call fcn.00403dd0
add esp, 8
lea eax, [esi + 0x1860]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40fd45
push str.UnPackEx2
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fd31
mov edx, dword [ebp - 0x214]
lea ecx, [esi + 0x1658]
push ecx
push edx
lea ecx, [esi + 0x1c70]
push ecx
call eax
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00436fe0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push str._localappdata_GamePPSdkCommon
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [0x4fb44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fb44c
call eax
add eax, 0x10
push ebx
push str._scommonSdk.7z
lea edi, [ebp - 0x218]
mov dword [ebp - 0x218], eax
call fcn.00403dd0
add esp, 8
lea eax, [esi + 0x1860]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [ebp - 0x218]
mov edi, eax
test edi, edi
je 0x40fdfe
push str.UnPackEx2
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fdf0
lea ecx, [esi + 0x1658]
push ecx
push ebx
lea edx, [ebp - 0x210]
push edx
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call fcn.00411e10
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042cf77
mov esp, ebp
pop ebp
ret