joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cc10
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 0x40cc23
sub eax, edx
sar eax, 1
jne 0x40cc4f
mov eax, 0x4d3b50
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 0x40cc40
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 0x40cc90
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 0x40ccb0
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.00438230
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 0x40cd10
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push edi
call fcn.0040bde0
push 0x48
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00438230
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.0042d5cf
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 0x40cd8d
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 0x40cdd9
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.0042ec40
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ce00
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa28
mov eax, dword [0x4f92a0]
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 0x40ce7f
lea eax, [esp + 0xc]
push eax
push 0x4c365c
push 1
push 0
push 0x4c366c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40ce7f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x4c368c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jns 0x40ce97
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.0042e257
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x40cee8
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.00438230
push 0x400
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.00430cd3
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 0x40cf07
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 0x40cf1e
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.0040bda0
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.0042e257
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1678
call fcn.00441e30
mov eax, dword [0x4f92a0]
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.00438230
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x80a]
push ecx
mov word [ebp - 0x80c], ax
call fcn.00438230
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 0x40d0b4
lea eax, [ebp - 0x100c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40d0d0
mov edx, dword [str..]
mov ecx, dword [0x4d4754]
mov dword [eax], edx
mov dx, word [0x4d4758]
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 0x40d267
mov esi, dword [ebp + 0x10]
mov edi, edi
mov ecx, 0x4d475c
lea eax, [ebp - 0x1230]
jmp 0x40d130
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d156
test dx, dx
je 0x40d152
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d156
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d130
xor eax, eax
jmp 0x40d15b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d23e
mov ecx, 0x4d4760
lea eax, [ebp - 0x1230]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d196
test dx, dx
je 0x40d192
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d196
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d170
xor eax, eax
jmp 0x40d19b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d23e
lea edx, [ebp - 0x1230]
push edx
push edi
push str._s_s
lea edx, [ebp - 0x80c]
call fcn.0040bda0
add esp, 0xc
test byte [ebp - 0x125c], 0x10
je 0x40d1df
mov eax, dword [ebp - 0x1678]
push esi
push eax
lea ecx, [ebp - 0x80c]
push ecx
mov ecx, ebx
call fcn.0040d040
jmp 0x40d23e
xor eax, eax
jmp 0x40d1f0
movzx ecx, word [ebp + eax - 0x80c]
mov word [ebp + eax - 0x166c], cx
add eax, 2
test cx, cx
jne 0x40d1f0
cmp esi, 1
jne 0x40d215
add ebx, 0x2290
jmp 0x40d22d
cmp esi, 2
jne 0x40d222
add ebx, 0x22a0
jmp 0x40d22d
cmp esi, 3
jne 0x40d23e
add ebx, 0x22b0
lea eax, [ebp - 0x166c]
call fcn.00411ec0
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 0x40d120
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.0042e257
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d280
Capabilities:
Check if file exists
Delete file
Set file attributes

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f92a0]
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.00438230
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 0x40db71
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 0x40db80
mov eax, dword [0x4d39dc]
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 0x40dba0
mov ecx, 6
mov esi, 0x4d412c
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.0042e257
mov esp, ebp
pop ebp
ret

Function at 0x40dd20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f92a0]
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.00438230
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.00438230
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 [0x4fd894]
test eax, eax
jne 0x40ddb7
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40ddb0
mov esi, eax
call fcn.00411220
jmp 0x40ddb2
xor eax, eax
mov dword [0x4fd894], 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 0x40dde0
mov edx, dword [str.gamebufflik.txt]
mov ecx, dword [0x4d47c0]
mov dword [eax], edx
mov edx, dword [0x4d47c4]
mov dword [eax + 4], ecx
mov ecx, dword [0x4d47c8]
mov dword [eax + 8], edx
mov dl, byte [0x4d47cc]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], dl
lea eax, [ebp - 0x108]
push 0x4d47d0
push eax
call fcn.00430ddb
mov esi, eax
lea eax, [ebp - 0x20c]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40de33
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00431350
push esi
call fcn.004303d7
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
xor ecx, ebp
pop esi
call fcn.0042e257
mov esp, ebp
pop ebp
ret
Function at 0x40e770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f92a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push 0x4d384d
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
call fcn.00402b40
mov eax, dword [ebp + 8]
mov ebx, 0x10
cmp dword [ebp + 0x1c], ebx
jae 0x40e7b3
lea eax, [ebp + 8]
push 0x4d4868
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00430df2
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp eax, edi
jne 0x40e823
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edi
mov byte [esi], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e7e0
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00402b40
cmp dword [ebp - 0xc], ebx
jb 0x40e803
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0042ec40
add esp, 4
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
cmp dword [ebp + 0x1c], ebx
jb 0x40e8d6
mov edx, dword [ebp + 8]
push edx
jmp 0x40e8ce
push 2
push edi
push eax
call fcn.0043164d
mov eax, dword [ebp - 0x24]
push eax
call fcn.0043155e
mov ecx, dword [ebp - 0x24]
push edi
push edi
push ecx
mov ebx, eax
call fcn.0043164d
lea edx, [ebx + 1]
push edx
call fcn.0042d5cf
mov edi, eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
push 1
push edi
call fcn.004311dc
mov byte [edi + ebx], 0
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004303d7
mov eax, edi
add esp, 0x34
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e870
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00402b40
push edi
call fcn.0042ec40
xor ebx, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
add esp, 4
lea edi, [ebp - 0x20]
mov byte [esi], bl
call fcn.00402630
mov edi, 0x10
cmp dword [ebp - 0xc], edi
jb 0x40e8b8
mov edx, dword [ebp - 0x20]
push edx
call fcn.0042ec40
add esp, 4
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
cmp dword [ebp + 0x1c], edi
jb 0x40e8d6
mov eax, dword [ebp + 8]
push eax
call fcn.0042ec40
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e257
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40e9c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x4d4574
push eax
call fcn.00430ddb
push 2
mov esi, eax
push 0
push esi
call fcn.0043164d
push esi
call fcn.0043155e
push esi
mov ebx, eax
call fcn.00430c15
lea ecx, [ebx + 1]
push ecx
mov dword [ebp - 4], 0
call fcn.00430b81
mov edi, eax
add esp, 0x20
test edi, edi
je 0x40ea69
push esi
push ebx
push 1
push edi
call fcn.004311dc
push esi
call fcn.004303d7
lea edx, [ebp - 4]
push edx
push edi
mov ecx, ebx
call fcn.0041c690
push edi
mov esi, eax
call fcn.00430b07
add esp, 0x20
test esi, esi
je 0x40ea69
mov eax, dword [ebp + 8]
push 0x4d487c
push eax
call fcn.00430ddb
mov edi, eax
add esp, 8
test edi, edi
je 0x40ea69
mov ecx, dword [ebp - 4]
push edi
push 1
push ecx
push esi
call fcn.00431350
push edi
call fcn.0042f360
push edi
call fcn.004303d7
push esi
call fcn.00430b07
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f9a0
Capabilities:
Move file

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4f92a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
push ebx
push edi
mov ecx, 0x4fa44c
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.00403d60
add esp, 8
lea eax, [esi + 0x1860]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40fba5
push str.UnPackEx2
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fb91
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.00438230
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 [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
add eax, 0x10
push ebx
push str._scommonSdk.7z
lea edi, [ebp - 0x218]
mov dword [ebp - 0x218], eax
call fcn.00403d60
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 0x40fc5e
push str.UnPackEx2
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fc50
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.00411c00
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc80
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 0x40fca2
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.0042e257
mov esp, ebp
pop ebp
ret
Function at 0x40fde0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4f92a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fa44c
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.00438230
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push str.SoftwareGameBuff
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40feb7
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 0x40fe97
push ebx
sub eax, edx
lea edx, [ebp - 0x20c]
sar eax, 1
push edx
push esi
mov ebx, eax
call fcn.004034c0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0042e257
mov esp, ebp
pop ebp
ret

Function at 0x40fed0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x4fd894]
push ebx
push esi
test eax, eax
jne 0x40fefc
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40fef5
mov esi, eax
call fcn.00411220
jmp 0x40fef7
xor eax, eax
mov dword [0x4fd894], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
cmp byte [edi + 0x2084], 0
je 0x40ff1c
lea eax, [edi + 0x208]
push eax
mov ecx, edi
call fcn.00411070
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40ff46
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40ff3f
mov esi, eax
call fcn.00411220
jmp 0x40ff41
xor eax, eax
mov dword [0x4fd894], eax
add eax, 0x1658
push eax
call ebx
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40ff86
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40ff7f
mov esi, eax
call fcn.00411220
mov dword [0x4fd894], eax
add eax, 0x1860
push eax
call ebx
pop esi
pop ebx
ret
xor eax, eax
mov dword [0x4fd894], eax
add eax, 0x1860
push eax
call ebx
pop esi
pop ebx
ret
Function at 0x40ffa0
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 0x4d4380
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 0x4100d0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f92a0]
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.00438230
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 0x410110
lea edi, [ebx + 0x208]
mov edx, edi
mov eax, esi
sub edx, esi
jmp 0x410130
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x410130
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
jmp 0x410150
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x410150
mov ecx, dword [str.program.7z]
mov edx, dword [0x4d4980]
mov dword [eax], ecx
mov ecx, dword [0x4d4984]
mov dword [eax + 4], edx
mov edx, dword [0x4d4988]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d498c]
mov dword [eax + 0xc], edx
mov edx, dword [0x4d4990]
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.0040ffa0
lea ecx, [ebx + 0x1860]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4101f3
push str.UnPackEx2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4101df
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.0042e257
mov esp, ebp
pop ebp
ret 4