joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cc40
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 0x4d6468
xor edi, edi
push SysReAllocString
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40cd5b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cc70
sub eax, edx
sar eax, 1
jne 0x40cc9f
mov eax, 0x4d5dd0
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 0x40cc90
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 + 0x24d0], 2
jne 0x40cd3a
mov eax, dword [0x50012c]
test eax, eax
jne 0x40cd0b
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x40cd04
mov esi, eax
call fcn.004112e0
jmp 0x40cd06
xor eax, eax
mov dword [0x50012c], eax
add eax, 0xa28
push str.silent
push eax
call fcn.0043050e
add esp, 8
test eax, eax
je 0x40cd3a
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 0x40cd47
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 0x40cd70
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.00438200
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 0x40cdd0
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push edi
call fcn.0040be00
push 0x48
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00438200
mov edi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push 0
push 1
push 0
mov dword [ebp - 0x64], 0x48
mov dword [ebp - 8], 0
call edi
mov edx, dword [ebp - 8]
push edx
call fcn.0042d594
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0
push 1
push esi
call edi
push 0
push 0
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0x20000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x40ce4d
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
xor eax, eax
xor edi, edi
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x64]
push eax
push edi
push edi
push 0x80000
push edi
push edi
push edi
push ecx
push edi
push edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40ce99
mov edx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 0x18]
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.0042ec00
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40cec0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa28
mov eax, dword [0x4fb2a0]
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 0x40cf3f
lea eax, [esp + 0xc]
push eax
push 0x4c566c
push 1
push 0
push 0x4c567c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40cf3f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x4c569c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jns 0x40cf57
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.0042e217
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x40cfa8
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.00438200
push 0x400
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.00430c93
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 0x40cfc7
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 0x40cfde
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.0040bdc0
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.0042e217
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d100
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1678
call fcn.00441e20
mov eax, dword [0x4fb2a0]
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.00438200
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x80a]
push ecx
mov word [ebp - 0x80c], ax
call fcn.00438200
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 0x40d174
lea eax, [ebp - 0x100c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40d190
mov edx, dword [str..]
mov ecx, dword [0x4d69e0]
mov dword [eax], edx
mov dx, word [0x4d69e4]
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 0x40d327
mov esi, dword [ebp + 0x10]
mov edi, edi
mov ecx, 0x4d69e8
lea eax, [ebp - 0x1230]
jmp 0x40d1f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d216
test dx, dx
je 0x40d212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d216
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d1f0
xor eax, eax
jmp 0x40d21b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d2fe
mov ecx, 0x4d69ec
lea eax, [ebp - 0x1230]
mov edi, edi
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 0x40d2fe
lea edx, [ebp - 0x1230]
push edx
push edi
push str._s_s
lea edx, [ebp - 0x80c]
call fcn.0040bdc0
add esp, 0xc
test byte [ebp - 0x125c], 0x10
je 0x40d29f
mov eax, dword [ebp - 0x1678]
push esi
push eax
lea ecx, [ebp - 0x80c]
push ecx
mov ecx, ebx
call fcn.0040d100
jmp 0x40d2fe
xor eax, eax
jmp 0x40d2b0
movzx ecx, word [ebp + eax - 0x80c]
mov word [ebp + eax - 0x166c], cx
add eax, 2
test cx, cx
jne 0x40d2b0
cmp esi, 1
jne 0x40d2d5
add ebx, 0x2290
jmp 0x40d2ed
cmp esi, 2
jne 0x40d2e2
add ebx, 0x22a0
jmp 0x40d2ed
cmp esi, 3
jne 0x40d2fe
add ebx, 0x22b0
lea eax, [ebp - 0x166c]
call fcn.00411f80
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 0x40d1e0
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.0042e217
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d340
Capabilities:
Check if file exists
Delete file
Set file attributes

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4fb2a0]
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.00438200
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 0x40dc31
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 esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dc40
mov eax, dword [0x4d5c5c]
mov dword [edi], eax
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dc60
mov ecx, 6
mov esi, 0x4d63ac
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x20c]
push ecx
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
neg eax
pop esi
call fcn.0042e217
mov esp, ebp
pop ebp
ret

Function at 0x40dde0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4fb2a0]
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.00438200
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.00438200
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 [0x50012c]
test eax, eax
jne 0x40de77
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x40de70
mov esi, eax
call fcn.004112e0
jmp 0x40de72
xor eax, eax
mov dword [0x50012c], 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 0x40dea0
mov edx, dword [str.gamebufflik.txt]
mov ecx, dword [0x4d6a4c]
mov dword [eax], edx
mov edx, dword [0x4d6a50]
mov dword [eax + 4], ecx
mov ecx, dword [0x4d6a54]
mov dword [eax + 8], edx
mov dl, byte [0x4d6a58]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], dl
lea eax, [ebp - 0x108]
push 0x4d6a5c
push eax
call fcn.00430d9b
mov esi, eax
lea eax, [ebp - 0x20c]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40def3
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00431310
push esi
call fcn.00430397
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
xor ecx, ebp
pop esi
call fcn.0042e217
mov esp, ebp
pop ebp
ret
Function at 0x40e830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
push edi
push 0x4d5acd
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]
mov ebx, 0x10
cmp dword [ebp + 0x1c], ebx
jae 0x40e870
lea eax, [ebp + 8]
push 0x4d6af4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00430db2
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp eax, edi
jne 0x40e8e3
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
mov byte [esi], 0
lea edx, [eax + 1]
jmp 0x40e8a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e8a0
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00402b70
cmp dword [ebp - 0xc], ebx
jb 0x40e8c3
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0042ec00
add esp, 4
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
cmp dword [ebp + 0x1c], ebx
jb 0x40e999
mov edx, dword [ebp + 8]
push edx
jmp 0x40e991
push 2
push edi
push eax
call fcn.0043160d
mov eax, dword [ebp - 0x24]
push eax
call fcn.0043151e
mov ecx, dword [ebp - 0x24]
push edi
push edi
push ecx
mov ebx, eax
call fcn.0043160d
lea edx, [ebx + 1]
push edx
call fcn.0042d594
mov edi, eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
push 1
push edi
call fcn.0043119c
mov byte [edi + ebx], 0
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00430397
mov eax, edi
add esp, 0x34
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e930
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00402b70
push edi
call fcn.0042ec00
add esp, 4
xor ebx, ebx
lea edx, [ebp - 0x20]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push edx
mov ecx, esi
mov byte [esi], bl
call fcn.00402640
mov edi, 0x10
cmp dword [ebp - 0xc], edi
jb 0x40e97b
mov eax, dword [ebp - 0x20]
push eax
call fcn.0042ec00
add esp, 4
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
cmp dword [ebp + 0x1c], edi
jb 0x40e999
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042ec00
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40ea80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x4d67f4
push eax
call fcn.00430d9b
push 2
mov esi, eax
push 0
push esi
call fcn.0043160d
push esi
call fcn.0043151e
push esi
mov ebx, eax
call fcn.00430bd5
lea ecx, [ebx + 1]
push ecx
mov dword [ebp - 4], 0
call fcn.00430b41
mov edi, eax
add esp, 0x20
test edi, edi
je 0x40eb29
push esi
push ebx
push 1
push edi
call fcn.0043119c
push esi
call fcn.00430397
lea edx, [ebp - 4]
push edx
push edi
mov ecx, ebx
call fcn.0041c6a0
push edi
mov esi, eax
call fcn.00430ac7
add esp, 0x20
test esi, esi
je 0x40eb29
mov eax, dword [ebp + 8]
push 0x4d6b08
push eax
call fcn.00430d9b
mov edi, eax
add esp, 8
test edi, edi
je 0x40eb29
mov ecx, dword [ebp - 4]
push edi
push 1
push ecx
push esi
call fcn.00431310
push edi
call fcn.0042f320
push edi
call fcn.00430397
push esi
call fcn.00430ac7
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40fa60
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x4fb2a0]
xor eax, esp
mov dword [esp + 0x804], eax
test esi, esi
je 0x40fae4
test edi, edi
je 0x40fae4
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.00438200
push 0x400
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.00430c93
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.0042e217
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x804]
xor ecx, esp
xor eax, eax
call fcn.0042e217
mov esp, ebp
pop ebp
ret
Function at 0x40fbd0
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4fc44c]
mov edx, dword [eax + 0xc]
push ebx
push edi
mov ecx, 0x4fc44c
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.00403db0
add esp, 8
lea eax, [esi + 0x1860]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40fc65
push str.UnPackEx2
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fc51
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.00438200
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 [0x4fc44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
add eax, 0x10
push ebx
push str._scommonSdk.7z
lea edi, [ebp - 0x218]
mov dword [ebp - 0x218], eax
call fcn.00403db0
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 0x40fd1e
push str.UnPackEx2
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fd10
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.00411cc0
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd40
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 0x40fd62
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.0042e217
mov esp, ebp
pop ebp
ret
Function at 0x40fea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4fc44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc44c
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.00438200
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push 0x4d6468
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ff77
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 0x40ff57
push ebx
sub eax, edx
lea edx, [ebp - 0x20c]
sar eax, 1
push edx
push esi
mov ebx, eax
call fcn.004034f0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0042e217
mov esp, ebp
pop ebp
ret

Function at 0x40ff90
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x50012c]
push ebx
push esi
test eax, eax
jne 0x40ffbc
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x40ffb5
mov esi, eax
call fcn.004112e0
jmp 0x40ffb7
xor eax, eax
mov dword [0x50012c], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
cmp byte [edi + 0x2084], 0
je 0x40ffdc
lea eax, [edi + 0x208]
push eax
mov ecx, edi
call fcn.00411130
mov eax, dword [0x50012c]
test eax, eax
jne 0x410006
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x40ffff
mov esi, eax
call fcn.004112e0
jmp 0x410001
xor eax, eax
mov dword [0x50012c], eax
add eax, 0x1658
push eax
call ebx
mov eax, dword [0x50012c]
test eax, eax
jne 0x410046
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x41003f
mov esi, eax
call fcn.004112e0
mov dword [0x50012c], eax
add eax, 0x1860
push eax
call ebx
pop esi
pop ebx
ret
xor eax, eax
mov dword [0x50012c], eax
add eax, 0x1860
push eax
call ebx
pop esi
pop ebx
ret
Function at 0x410060
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 0x4d6600
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 0x410190
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4fb2a0]
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.00438200
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 0x4101d0
lea edi, [ebx + 0x208]
mov edx, edi
mov eax, esi
sub edx, esi
jmp 0x4101f0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4101f0
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
jmp 0x410210
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x410210
mov ecx, dword [str.program.7z]
mov edx, dword [0x4d6c10]
mov dword [eax], ecx
mov ecx, dword [0x4d6c14]
mov dword [eax + 4], edx
mov edx, dword [0x4d6c18]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d6c1c]
mov dword [eax + 0xc], edx
mov edx, dword [0x4d6c20]
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.00410060
lea ecx, [ebx + 0x1860]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4102b3
push str.UnPackEx2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41029f
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.0042e217
mov esp, ebp
pop ebp
ret 4