joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cd00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
mov dword [ebp - 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cd13
sub eax, edx
sar eax, 1
jne 0x40cd3f
mov eax, 0x4d4de0
mov edx, esi
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40cd30
mov eax, dword [ebx]
push edi
push 0x104
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push str.ChannelID
push eax
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebx]
push 0x104
push ecx
push 1
push 0
push str.SetupPath
push edx
mov edi, eax
call esi
test edi, edi
pop edi
mov esi, 1
je 0x40cd80
mov esi, dword [ebp - 4]
mov eax, dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40cda0
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.00436f70
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 0x40ce00
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.0040bec0
push 0x48
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00436f70
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.0042c2e4
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 0x40ce88
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 0x40cee0
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.0042d950
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40cf00
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 0x40cf7f
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 0x40cf7f
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 0x40cf97
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.0042cf67
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x40cfe8
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.00436f70
push 0x400
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.0042f9e6
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 0x40d007
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 0x40d01e
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.0040be80
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.0042cf67
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d140
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1678
call fcn.00440b60
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.00436f70
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x80a]
push ecx
mov word [ebp - 0x80c], ax
call fcn.00436f70
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 0x40d1b4
lea eax, [ebp - 0x100c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40d1d0
mov edx, dword [str..]
mov ecx, dword [0x4d59a4]
mov dword [eax], edx
mov dx, word [0x4d59a8]
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 0x40d367
mov esi, dword [ebp + 0x10]
mov edi, edi
mov ecx, 0x4d59ac
lea eax, [ebp - 0x1230]
jmp 0x40d230
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d256
test dx, dx
je 0x40d252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d256
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d230
xor eax, eax
jmp 0x40d25b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d33e
mov ecx, 0x4d59b0
lea eax, [ebp - 0x1230]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d296
test dx, dx
je 0x40d292
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d296
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d270
xor eax, eax
jmp 0x40d29b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d33e
lea edx, [ebp - 0x1230]
push edx
push edi
push str._s_s
lea edx, [ebp - 0x80c]
call fcn.0040be80
add esp, 0xc
test byte [ebp - 0x125c], 0x10
je 0x40d2df
mov eax, dword [ebp - 0x1678]
push esi
push eax
lea ecx, [ebp - 0x80c]
push ecx
mov ecx, ebx
call fcn.0040d140
jmp 0x40d33e
xor eax, eax
jmp 0x40d2f0
movzx ecx, word [ebp + eax - 0x80c]
mov word [ebp + eax - 0x166c], cx
add eax, 2
test cx, cx
jne 0x40d2f0
cmp esi, 1
jne 0x40d315
add ebx, 0x2290
jmp 0x40d32d
cmp esi, 2
jne 0x40d322
add ebx, 0x22a0
jmp 0x40d32d
cmp esi, 3
jne 0x40d33e
add ebx, 0x22b0
lea eax, [ebp - 0x166c]
call fcn.00412030
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 0x40d220
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.0042cf67
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d380
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d391
mov eax, 1
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40d3ac
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40d38b
xor eax, eax
ret
Function at 0x40dc00
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.00436f70
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 0x40dc71
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 0x40dc80
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dc80
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 0x40dca0
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.0042cf67
mov esp, ebp
pop ebp
ret

Function at 0x40de50
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.00436f70
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.00436f70
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 0x40dee7
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x40dee0
mov esi, eax
call fcn.00411390
jmp 0x40dee2
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 0x40df10
mov edx, dword [str._neocelllik.txt]
mov ecx, dword [0x4d5a0c]
mov dword [eax], edx
mov edx, dword [0x4d5a10]
mov dword [eax + 4], ecx
mov ecx, dword [0x4d5a14]
mov dword [eax + 8], edx
lea edx, [ebp - 0x108]
push 0x4d5a18
push edx
mov dword [eax + 0xc], ecx
call fcn.0042faee
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 0x40df60
push esi
sub eax, edx
push 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00430063
push esi
call fcn.0042f0ea
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
xor ecx, ebp
pop esi
call fcn.0042cf67
mov esp, ebp
pop ebp
ret
Function at 0x40e910
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 0x40e931
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ea96
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 0x40e96a
lea eax, [ebp + 8]
push 0x4d5ac4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0042fb05
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp eax, edi
jne 0x40e9e1
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 0x40e9ae
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0042d950
add esp, 4
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
cmp dword [ebp + 0x1c], ebx
jb 0x40e9cd
mov edx, dword [ebp + 8]
push edx
call fcn.0042d950
add esp, 4
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf67
mov esp, ebp
pop ebp
ret 0x1c
push 2
push edi
push eax
call fcn.00430360
mov eax, dword [ebp - 0x24]
push eax
call fcn.00430271
mov ecx, dword [ebp - 0x24]
push edi
push edi
push ecx
mov ebx, eax
call fcn.00430360
lea edx, [ebx + 1]
push edx
call fcn.0042c2e4
mov edi, eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
push 1
push edi
call fcn.0042feef
mov byte [edi + ebx], 0
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0042f0ea
mov eax, edi
add esp, 0x34
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ea30
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00402b70
push edi
call fcn.0042d950
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 0x40ea79
mov eax, dword [ebp - 0x20]
push eax
call fcn.0042d950
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
jb 0x40e9cd
mov ecx, dword [ebp + 8]
push ecx
jmp 0x40e9c5
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 0x40e9ce
mov edx, dword [ebp + 8]
push edx
call fcn.0042d950
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0042cf67
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40ebb0
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.0042faee
push 2
mov esi, eax
push 0
push esi
call fcn.00430360
push esi
call fcn.00430271
push esi
mov ebx, eax
call fcn.0042f928
lea ecx, [ebx + 1]
push ecx
mov dword [ebp - 4], 0
call fcn.0042f894
mov edi, eax
add esp, 0x20
test edi, edi
je 0x40ec59
push esi
push ebx
push 1
push edi
call fcn.0042feef
push esi
call fcn.0042f0ea
lea edx, [ebp - 4]
push edx
push edi
mov ecx, ebx
call fcn.0041b400
push edi
mov esi, eax
call fcn.0042f81a
add esp, 0x20
test esi, esi
je 0x40ec59
mov eax, dword [ebp + 8]
push 0x4d5ad8
push eax
call fcn.0042faee
mov edi, eax
add esp, 8
test edi, edi
je 0x40ec59
mov ecx, dword [ebp - 4]
push edi
push 1
push ecx
push esi
call fcn.00430063
push edi
call fcn.0042e070
push edi
call fcn.0042f0ea
push esi
call fcn.0042f81a
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fad0
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 0x40fb54
test edi, edi
je 0x40fb54
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.00436f70
push 0x400
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.0042f9e6
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.0042cf67
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x804]
xor ecx, esp
xor eax, eax
call fcn.0042cf67
mov esp, ebp
pop ebp
ret
Function at 0x40fc40
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.00403de0
add esp, 8
lea eax, [esi + 0x1860]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40fcd5
push str.UnPackEx2
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fcc1
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.00436f70
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.00403de0
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 0x40fd8e
push str.UnPackEx2
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fd80
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.00411d70
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fdb0
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 0x40fdd2
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.0042cf67
mov esp, ebp
pop ebp
ret
Function at 0x40ff10
Capabilities:
Query or enumerate registry value

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]
mov ecx, 0x4fb44c
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00436f70
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push str.SoftwareNeoCell
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ffe7
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push str.ChannelID
push eax
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ffc7
push ebx
sub eax, edx
lea edx, [ebp - 0x20c]
sar eax, 1
push edx
push esi
mov ebx, eax
call fcn.00403540
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0042cf67
mov esp, ebp
pop ebp
ret

Function at 0x410000
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x4ff104]
push ebx
push esi
test eax, eax
jne 0x41002c
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x410025
mov esi, eax
call fcn.00411390
jmp 0x410027
xor eax, eax
mov dword [0x4ff104], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
cmp byte [edi + 0x2084], 0
je 0x41004c
lea eax, [edi + 0x208]
push eax
mov ecx, edi
call fcn.004111e0
mov eax, dword [0x4ff104]
test eax, eax
jne 0x410076
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x41006f
mov esi, eax
call fcn.00411390
jmp 0x410071
xor eax, eax
mov dword [0x4ff104], eax
add eax, 0x1658
push eax
call ebx
mov eax, dword [0x4ff104]
test eax, eax
jne 0x4100b6
push 0x24d4
call fcn.0042d9ac
add esp, 4
test eax, eax
je 0x4100af
mov esi, eax
call fcn.00411390
mov dword [0x4ff104], eax
add eax, 0x1860
push eax
call ebx
pop esi
pop ebx
ret
xor eax, eax
mov dword [0x4ff104], eax
add eax, 0x1860
push eax
call ebx
pop esi
pop ebx
ret
Function at 0x4100d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x4d55b4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov edi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x410200
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov esi, ecx
mov ebx, edx
call fcn.00436f70
lea edx, [ebp - 0x20c]
add esp, 0xc
mov eax, esi
sub edx, esi
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x410240
lea edi, [ebx + 0x208]
mov edx, edi
mov eax, esi
sub edx, esi
jmp 0x410260
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x410260
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
jmp 0x410280
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x410280
mov ecx, dword [str.program.7z]
mov edx, dword [0x4d5be0]
mov dword [eax], ecx
mov ecx, dword [0x4d5be4]
mov dword [eax + 4], edx
mov edx, dword [0x4d5be8]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d5bec]
mov dword [eax + 0xc], edx
mov edx, dword [0x4d5bf0]
push 0
mov dword [eax + 0x10], ecx
push edi
mov dword [eax + 0x14], edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
push 0x8d
call fcn.004100d0
lea ecx, [ebx + 0x1860]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x410323
push str.UnPackEx2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41030f
add ebx, 0x1658
push ebx
lea edx, [ebp - 0x20c]
push edx
push edi
call eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cf67
mov esp, ebp
pop ebp
ret 4