joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062f1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4062fc
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x4063b4
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4461a0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4461a0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4461a0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4461a0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4461a0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4461a0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4461a0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4461a0]
dec edi
jne 0x406317
pop edi
test esi, esi
je 0x4063cd
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4461a0]
inc edx
dec esi
jne 0x4063b8
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x406a8a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x406ac4
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406abf
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x406aeb
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x406ad4
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.004228f0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4075e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x40764c
cmp dword [esi + 4], 0xffffffff
jne 0x40764c
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bx
jne 0x40760d
mov eax, dword [0x448d58]
mov edx, dword [ebp + 0xc]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.004069a7
pop ecx
pop ecx
pop edi
test eax, eax
jne 0x40763c
mov eax, dword [ebp - 4]
jmp 0x407651
mov ecx, eax
call fcn.00406d18
mov dword [esi], eax
mov eax, dword [0x45e810]
jmp 0x407651
mov eax, 0x1000000
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4081cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408228
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408219
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x408215
cmp esi, ecx
jae 0x408219
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x408205
cmp esi, ecx
jb 0x40821d
xor eax, eax
jmp 0x408227
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408887
Capabilities:
Check if file exists
Delete directory
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4516e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
cmp word [edi], cx
jne 0x4088ac
xor eax, eax
jmp 0x408a39
mov esi, 0x452600
test esi, esi
je 0x408a1d
xor eax, eax
push 0x206
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push ecx
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x418]
push esi
push edi
push 0x448dec
push 0x103
push eax
call fcn.00402374
add esp, 0x14
lea eax, [ebp - 0x418]
push str..chrome
push eax
call fcn.0041ffa7
pop ecx
pop ecx
test eax, eax
jne 0x408a1b
cmp dword [esi + 0x208], eax
je 0x408a10
mov ecx, esi
mov eax, 0x449914
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408948
test dx, dx
je 0x408942
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408948
add eax, 4
add ecx, 4
test dx, dx
jne 0x408920
xor ecx, ecx
mov eax, ecx
jmp 0x40894f
sbb eax, eax
or eax, 1
xor ecx, ecx
test eax, eax
je 0x408a1d
push 0x80
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408a1b
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x210]
push esi
push edi
push str._s_s.bak
push 0x103
push eax
call fcn.00402374
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4089e5
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x408a1b
push 4
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x408a1b
lea ecx, [ebp - 0x418]
call fcn.0041ac60
xor ecx, ecx
add esi, 0x20c
cmp esi, 0x45a6f4
jl 0x4088b1
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e635
mov esp, ebp
pop ebp
ret
Function at 0x408a49
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b60f
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x4516e0]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x4516e0]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
test esi, esi
je 0x408bf7
xor edi, edi
cmp word [esi], di
je 0x408bf7
push esi
lea ecx, [esp + 0x14]
call fcn.00407cf7
mov dword [esp + 0x480], edi
mov edi, 0x448e0c
mov ecx, edi
call fcn.004080cc
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00407faf
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408bdf
push 0x2e
pop edx
mov ax, word [esp + 0x40]
cmp ax, dx
jne 0x408b02
cmp word [esp + 0x42], dx
jne 0x408b02
cmp word [esp + 0x44], 0
je 0x408bc1
test byte [esp + 0x14], 0x10
je 0x408bc1
lea ecx, [esp + 0x40]
test ax, ax
je 0x408b39
movzx eax, ax
cmp ax, 0x30
jb 0x408b25
cmp ax, 0x39
jbe 0x408b2e
cmp ax, dx
jne 0x408bc1
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x408b19
xor eax, eax
push 0x206
push eax
mov word [esp + 0x26c], ax
lea eax, [esp + 0x26e]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push esi
push 0x448dec
lea eax, [esp + 0x270]
push 0x103
push eax
call fcn.00402374
add esp, 0x14
lea eax, [esp + 0x264]
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408ba8
test dx, dx
je 0x408ba4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408ba8
add eax, 4
add ecx, 4
test dx, dx
jne 0x408b82
xor eax, eax
jmp 0x408bad
sbb eax, eax
or eax, 1
test eax, eax
je 0x408bc1
push ecx
push ecx
lea ecx, [esp + 0x26c]
call fcn.00408887
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
pop edx
test eax, eax
jne 0x408ae5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040233b
xor eax, eax
inc eax
jmp 0x408bf9
xor eax, eax
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.0041e635
mov esp, ebp
pop ebp
ret
Function at 0x409b21
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4516e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx + 0x18]
lea ecx, [ebp - 0x210]
push ebx
push esi
push edi
call fcn.00409da3
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [ebp - 0x210]
push 0x104
push eax
push 0x448eac
push str.UpdateCircle
push 0x448e9c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0042075f
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.004207c7
pop ecx
xor edx, edx
mov ecx, 0x3e8
mov eax, esi
div ecx
mov ecx, dword [ebp - 0x218]
sub ecx, eax
sub ecx, edi
cmp ecx, 0x3c
jg 0x409bcf
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x15180
jle 0x409bd2
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x210]
add ecx, 0xfffffff0
call fcn.0040233b
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e635
mov esp, ebp
pop ebp
ret

Function at 0x409bf3
Capabilities:
Delete file
Move file

Disassembly:
push 0x418
mov eax, 0x43b83c
call fcn.00423093
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x409cd5
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov dword [esi + 0x20], ebx
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x424]
push eax
call fcn.00409cdb
push 1
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
push dword [ebp - 0x424]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call edi
test eax, eax
jne 0x409c71
push 4
push ebx
lea eax, [ebp - 0x218]
push eax
call edi
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x448eb0
push dword [esi + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409cb8
push 4
push ebx
lea eax, [ebp - 0x420]
push eax
call edi
push ecx
mov ecx, esi
call fcn.00409a87
mov ecx, esi
call fcn.00409d60
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.0040233b
call fcn.00423042
ret
Function at 0x40a9a7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4516e0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
call fcn.00401a63
call fcn.0040e04a
mov ecx, eax
call fcn.004129f9
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [esp + 0x1c], ax
xor ebx, ebx
lea eax, [esp + 0x1e]
mov dword [0x45f49c], esi
push ebx
push eax
call fcn.00422860
add esp, 0xc
lea eax, [esp + 0x18]
push ebx
push 0x17
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, edi
mov ecx, esi
call fcn.0040aeb7
test eax, eax
je 0x40aa63
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 8
push eax
mov dword [esp + 0x18], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
sub esp, 0xc
call fcn.0040ba87
mov ecx, edi
call fcn.0040a85a
mov esi, eax
call fcn.0040b9f5
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041e635
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40aeb7
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x43ba59
call fcn.00423093
mov esi, edx
mov dword [0x45f49c], ecx
call fcn.0040a7d7
mov ecx, eax
call fcn.00413817
lea eax, [ebp - 0x60]
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.004139bf
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [eax]
push 0x4491e8
push 0x4612a4
call fcn.0040a280
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov eax, dword [0x4613c0]
xor edi, edi
inc edi
test al, 1
jne 0x40af61
push dword [0x4612a4]
or eax, edi
mov byte [0x4613c4], bl
push edi
push ebx
mov dword [0x4613c0], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4613c8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [0x4613c4]
cmp eax, 0xb7
push 0x43d427
cmove ecx, edi
mov byte [0x4613c4], cl
call fcn.0041ec4c
pop ecx
cmp byte [0x4613c4], bl
je 0x40af70
xor eax, eax
jmp 0x40b04f
lea eax, [ebp - 0x60]
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.004139bf
mov dword [ebp - 4], edi
push dword [eax]
push 0x449208
push 0x4612a8
call fcn.0040a280
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ecx, esi
call fcn.0040b055
cmp word [0x45ee78], 0
je 0x40b04d
push 0x45ee78
call fcn.00408c1d
mov ecx, eax
call fcn.00408c85
push str.from
lea ecx, [ebp - 0x2c]
call fcn.00404345
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 2
push eax
call fcn.00408c1d
mov ecx, eax
call fcn.00408cdb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
xor esi, esi
mov bl, al
push esi
push edi
call fcn.0040439c
test bl, bl
je 0x40b04d
push str.from
lea ecx, [ebp - 0x44]
call fcn.00404345
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00408c1d
mov ecx, eax
call fcn.00408cfc
push eax
mov ecx, 0x45c610
call fcn.0040b885
push esi
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040439c
push esi
push edi
lea ecx, [ebp - 0x44]
call fcn.0040439c
mov eax, edi
call fcn.00423042
ret

Function at 0x40c949
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x40c95c
push 0xd
pop eax
jmp 0x40c9a0
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x40c96f
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40c967
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40d9c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x43bcbb
call fcn.004230ff
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40da45
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40da45
call fcn.0040c3b1
mov esi, eax
jmp 0x40db50
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40da68
call fcn.0040c3b1
jmp 0x40db43
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x40da5e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x40da9b
mov esi, 0x8007000e
jmp 0x40db45
xor eax, eax
mov byte [ebp - 4], 2
shld eax, ecx, 1
add ecx, ecx
cmp eax, esi
ja 0x40dad4
cmp ecx, 0xffffffff
ja 0x40dad4
cmp ecx, 0x400
jbe 0x40dac6
push ecx
lea ecx, [ebp - 0x418]
call fcn.0040c38c
jmp 0x40daf2
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40daf2
push 0x80070216
call fcn.004085b7
mov eax, 0x40dae4
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x40da91
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40da5e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040d871
mov esi, eax
test edi, edi
je 0x40db50
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40db69
lea ecx, [ebp - 0x418]
call fcn.0040c370
mov eax, esi
call fcn.00423051
ret 0x10

Function at 0x40dfd1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x58]
mov dword [ebp - 0x5c], 0x44
push 0
push eax
mov si, dx
mov ebx, ecx
call fcn.00422860
xor eax, eax
mov dword [ebp - 0x30], 0x81
lea edi, [ebp - 0x14]
mov word [ebp - 0x2c], si
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40e043
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e61d
Capabilities:
Persist via app paths registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0x220
mov eax, 0x43bebb
call fcn.00423093
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x220], 1
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x224], 0x104
call fcn.00422860
add esp, 0xc
mov ecx, esi
call fcn.0040e70f
lea eax, [ebp - 0x224]
mov ebx, str.InstallTime
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360Game5.exe
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40e69f
cmp ax, word [ebp - 0x218]
jne 0x40e709
lea eax, [ebp - 0x22c]
push eax
call fcn.004207c7
pop ecx
call fcn.004083ea
push eax
lea ecx, [ebp - 0x21c]
call fcn.00407e3b
and dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push dword [ebp - 0x228]
push dword [ebp - 0x22c]
push 0x448b28
push eax
call fcn.0040a280
mov esi, dword [ebp - 0x21c]
add esp, 0x10
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360Game5.exe
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea ecx, [esi - 0x10]
call fcn.0040233b
call fcn.00423042
ret

Function at 0x40e70f
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push 0x420
mov eax, 0x43bef9
call fcn.00423093
mov edi, ecx
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00422860
xor eax, eax
push esi
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00422860
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
add esp, 0x18
mov ebx, 0x104
push ebx
push eax
push dword [edi + 0x40]
call esi
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x3c]
call esi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x424]
call fcn.00407cf7
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.00407cf7
mov byte [ebp - 4], 1
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360Game5.exe
mov eax, dword [ebp - 0x428]
mov esi, SysReAllocString
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0x448db8
push ebx
push esi
call edi
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.Path
push ebx
push esi
call edi
push 0x5c
push dword [ebp - 0x424]
call fcn.0041e87b
pop ecx
pop ecx
test eax, eax
je 0x40e840
sub eax, dword [ebp - 0x424]
sar eax, 1
cmp eax, 0xffffffff
je 0x40e840
push eax
push 0
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x424]
call fcn.00408669
mov esi, dword [ebp - 0x42c]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push str.PathSub
push ebx
push SysReAllocString
call edi
lea ecx, [esi - 0x10]
call fcn.0040233b
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.0040233b
call fcn.00423042
ret
Function at 0x40ec99
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4516e0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ed39
push 0x4498d0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ed39
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ed39
test al, 0x10
jne 0x40ed39
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e635
mov esp, ebp
pop ebp
ret

Function at 0x40ed47
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4516e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4613d4]
push esi
mov esi, 0x4613d8
test al, 1
jne 0x40ed89
or eax, 1
mov dword [0x4613d4], eax
call fcn.004083ea
push eax
mov ecx, esi
call fcn.00407e3b
push 0x43d4da
call fcn.0041ec4c
pop ecx
mov eax, dword [0x4613d8]
cmp dword [eax - 0xc], 0
jne 0x40ee30
xor eax, eax
mov dword [ebp - 0x210], 1
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00422860
add esp, 0xc
mov dword [ebp - 0x214], 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x448db8
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360Game5.exe
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40ee30
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ee30
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20c]
call fcn.004080cc
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00408040
mov ecx, dword [ebp - 4]
mov eax, dword [0x4613d8]
xor ecx, ebp
pop esi
call fcn.0041e635
mov esp, ebp
pop ebp
ret