joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404900
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x410], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0042fb00
add esp, 0xc
lea edi, [esp + 4]
mov ecx, esi
call fcn.00401130
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.My_Documents
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x404976
xor al, al
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0042d791
add esp, 0x414
ret
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x212]
push eax
mov word [esp + 0x214], dx
call fcn.0042fb00
add esp, 0xc
push 0
push 5
lea ecx, [esp + 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x208]
push edx
lea eax, [esp + 4]
push eax
call fcn.0040bdc0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x20c]
push ecx
lea edx, [esp + 8]
push edx
push str.MSG:_Copy_succeed___s____s__code_d
call fcn.0040c990
mov ecx, dword [esp + 0x420]
add esp, 0x10
xor ecx, esp
mov al, 1
call fcn.0042d791
add esp, 0x414
ret

Function at 0x404a00
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x410], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0042fb00
add esp, 0xc
lea edi, [esp + 4]
mov ecx, esi
call fcn.00401130
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.Application_Data
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x404a76
xor al, al
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0042d791
add esp, 0x414
ret
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x212]
push eax
mov word [esp + 0x214], dx
call fcn.0042fb00
add esp, 0xc
push 0
push 0x1a
lea ecx, [esp + 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x208]
push edx
lea eax, [esp + 4]
push eax
call fcn.0040bdc0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x20c]
push ecx
lea edx, [esp + 8]
push edx
push str.MSG:_Copy_succeed___s____s__code_d
call fcn.0040c990
mov ecx, dword [esp + 0x420]
add esp, 0x10
xor ecx, esp
mov al, 1
call fcn.0042d791
add esp, 0x414
ret
Function at 0x404b00
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x410], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0042fb00
add esp, 0xc
lea edi, [esp + 4]
mov ecx, esi
call fcn.00401130
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.Local_Application_Data
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x404b76
xor al, al
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0042d791
add esp, 0x414
ret
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x212]
push eax
mov word [esp + 0x214], dx
call fcn.0042fb00
add esp, 0xc
push 0
push 0x1c
lea ecx, [esp + 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x208]
push edx
lea eax, [esp + 4]
push eax
call fcn.0040bdc0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x20c]
push ecx
lea edx, [esp + 8]
push edx
push str.MSG:_Copy_succeed___s____s__code_d
call fcn.0040c990
mov ecx, dword [esp + 0x420]
add esp, 0x10
xor ecx, esp
mov al, 1
call fcn.0042d791
add esp, 0x414
ret
Function at 0x404c90
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0xa30
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0xa2c], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x222]
push ecx
mov word [esp + 0x224], ax
call fcn.0042fb00
add esp, 0xc
lea ebx, [esp + 0x218]
call fcn.004011d0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, ebx
push edx
call edi
test eax, eax
jne 0x404cfe
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xa2c]
xor ecx, esp
call fcn.0042d791
add esp, 0xa30
ret
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x42a]
push ecx
mov word [esp + 0x42c], ax
call fcn.0042fb00
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea edx, [esp + 0x218]
push edx
push 0x104
lea eax, [esp + 0x428]
push eax
push 0x44aec4
push str.assocToGid
push str.game_base
call ebx
lea eax, [esp + 0x420]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d54
sub eax, edx
sar eax, 1
je 0x404ce4
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1a]
push edx
mov word [esp + 0x1c], cx
call fcn.0042fb00
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x424]
push ecx
call fcn.00403220
lea edx, [esp + 0x10]
push edx
call edi
test eax, eax
je 0x404e77
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x83a]
push ecx
mov word [esp + 0x83c], ax
call fcn.0042fb00
lea edi, [esi + 4]
push edi
lea edx, [esp + 0x840]
push 0x104
push edx
call fcn.0042d97f
lea eax, [esp + 0x28]
push eax
push 0x104
push edi
call fcn.0042d97f
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x656]
push edx
mov word [esp + 0x658], cx
call fcn.0042fb00
add esp, 0x30
lea eax, [esp + 0x218]
push eax
push 0x104
lea ecx, [esp + 0x630]
push ecx
push 0x44aec4
push str.delFileOrDirs
push str.action_first
call ebx
lea edx, [esp + 0x628]
push edx
mov ecx, esi
call fcn.00404050
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x834]
push ecx
call fcn.0040bdc0
add esp, 8
mov byte [esi + 0x20c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
add edx, 4
push edx
lea eax, [esp + 0x18]
push eax
push str.MSG:_assis_to_gid_succeed__dir_s__exe_s__code_d
call fcn.0040c990
add esp, 0x10
mov ecx, dword [esp + 0xa38]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042d791
add esp, 0xa30
ret
Function at 0x404ea0
Capabilities:
Create process on windows
Read .ini file

Disassembly:
sub esp, 0x418
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x21e]
push ecx
mov word [esp + 0x220], ax
call fcn.0042fb00
add esp, 0xc
lea ebx, [esp + 0x214]
call fcn.004011d0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x16]
push eax
mov word [esp + 0x18], dx
call fcn.0042fb00
add esp, 0xc
mov ecx, ebx
push ecx
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x44aec4
push str.runFirstUrl
push str.action_first
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xc]
pop esi
lea edx, [eax + 2]
pop ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404f30
sub eax, edx
sar eax, 1
jne 0x404f58
xor al, al
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0042d791
add esp, 0x418
ret
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0x449f2c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 8]
push ecx
push str.MSG:_runurl_s__code_d
call fcn.0040c990
mov ecx, dword [esp + 0x420]
add esp, 0xc
xor ecx, esp
mov al, 1
call fcn.0042d791
add esp, 0x418
ret

Function at 0x406590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4065a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4065e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4065e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4065e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4065d0
cmp esi, eax
jb 0x4065ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406d80
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4431ad
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x288], eax
push esi
push edi
mov eax, dword [0x457600]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041300c
push 0
call fcn.004140e0
add esp, 4
push 0
lea eax, [esi + 0xb0]
push eax
lea ecx, [esi + 0xc0]
push ecx
call sub.gdiplus.dll_GdiplusStartup
mov edx, dword [esi + 0x48]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406de7
sub eax, edi
sar eax, 1
je 0x406e06
mov edi, dword [esi + 0xa4]
push edx
call fcn.00401250
jmp 0x406e4c
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.0042fb00
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [esi + 0xa4]
lea edx, [esp + 0x10]
call fcn.004017e0
mov eax, dword [esi + 0xa4]
call fcn.00404c00
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x4070d0
push 0
push 0
mov dword [esi + 0xac], eax
call fcn.0042e74d
add esp, 0x18
mov edi, esi
mov dword [esi + 0xa8], eax
call fcn.00407010
sub eax, 1
je 0x406eef
sub eax, 1
jne 0x406f09
lea eax, [esp + 0x10]
push eax
call fcn.00407660
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a0], 0
mov dword [esi + 0x20], ecx
call fcn.00414d34
cmp eax, 2
je 0x406ed8
mov edx, dword [esi + 0xa8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esi + 0xa4]
call fcn.00401910
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x2a4], 0xffffffff
call fcn.00406f40
jmp 0x406f09
mov ecx, dword [esi + 0xa8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esi + 0xa4]
call fcn.00401910
xor eax, eax
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.0042d791
add esp, 0x298
ret

Function at 0x407010
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
mov ebp, 1
mov word [esp + 0x18], ax
call fcn.0042fb00
mov esi, dword [edi + 0xa4]
add esp, 0xc
lea ebx, [esp + 0xc]
call fcn.004011d0
mov edx, ebx
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4070a8
mov eax, dword [edi + 0xa4]
cmp byte [eax + 0x20c], 0
je 0x4070a8
mov ecx, ebx
push ecx
push 0
push str.btnCount
push str.dlg_config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor edx, edx
test eax, eax
setg dl
pop esi
pop ebp
pop ebx
inc edx
mov eax, edx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042d791
add esp, 0x20c
ret
mov ecx, dword [esp + 0x214]
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0042d791
add esp, 0x20c
ret
Function at 0x407360
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebp
push edi
push 0
push 0
push 3
push 0
push 1
mov dword [esi + 0x208], 0
mov dword [esi + 0x20c], 0
mov eax, dword [eax]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4073fb
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea ecx, [ebp + 1]
push ecx
call fcn.00411127
add esp, 4
push 0
lea edx, [esp + 0xc]
push edx
push ebp
push eax
push edi
mov dword [esi + 0x20c], eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x20c]
push edi
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x20c]
push ebp
push ecx
call fcn.00410ee0
add esp, 8
mov dword [esi + 0x208], eax
test eax, eax
je 0x4073fb
mov al, 1
pop edi
pop ebp
pop ecx
ret
pop edi
xor al, al
pop ebp
pop ecx
ret
Function at 0x409f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00414f6c

Function at 0x40a2a0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x34
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
push 0x104
push eax
mov dword [esp + 0x20], ecx
add ecx, 0x18
push 0x104
push ecx
call fcn.0042e923
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a305
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MSG:_Install_the_runtime_fails__the_configuration_file_does_not_exist__code_d
call fcn.0040c990
add esp, 8
xor al, al
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0042d791
add esp, 0x34
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov word [esp + 0x28], ax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
push 0xa
push 0xa
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.0042eaec
add esp, 0x10
push edi
push 0
push str.checkType
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebp, eax
cmp ebp, 2
je 0x40a36d
cmp ebp, 3
je 0x40a36d
cmp ebp, 1
jne 0x40a491
push 0xa30
call fcn.004110f8
mov esi, eax
add esp, 4
test esi, esi
je 0x40a392
push 0xa30
push 0
push esi
call fcn.0042fb00
add esp, 0xc
jmp 0x40a394
xor esi, esi
push edi
push 0xa28
lea ecx, [esi + 0x620]
push ecx
push 0x44aec4
push str.checkPath
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x34], esi
mov dword [esi], ebp
call ebx
push edi
push 0x104
lea eax, [esi + 0x828]
push eax
push 0x44aec4
push str.checkVerion
lea ecx, [esp + 0x3c]
push ecx
call ebx
push edi
push 0x104
lea edx, [esi + 8]
push edx
push 0x44aec4
push str.instName
lea eax, [esp + 0x3c]
push eax
call ebx
push edi
push 0x104
lea ecx, [esi + 0x210]
push ecx
push 0x44aec4
push str.instFile
lea edx, [esp + 0x3c]
push edx
call ebx
push edi
push 0x104
lea eax, [esi + 0x418]
push eax
push 0x44aec4
push str.instParam
lea ecx, [esp + 0x3c]
push ecx
call ebx
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40a43c
xor ecx, ecx
jmp 0x40a444
mov ecx, dword [ebp + 0x14]
sub ecx, eax
sar ecx, 2
mov edx, dword [ebp + 0x10]
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x40a45d
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
add eax, 4
mov dword [ebp + 0x10], eax
jmp 0x40a47f
mov esi, dword [ebp + 0x10]
cmp eax, esi
jbe 0x40a469
call fcn.0042e41f
mov eax, dword [ebp]
push esi
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, ebp
call fcn.0040ace0
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x1e
mov dword [esp + 0x10], eax
jl 0x40a32f
mov ecx, dword [esp + 0x3c]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042d791
add esp, 0x34
ret 4
Function at 0x40bd10
Capabilities:
Check if file exists
Get file version info

Disassembly:
sub esp, 0xc
test edi, edi
je 0x40bdb6
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bdb6
push esi
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esp + 4], eax
test eax, eax
jbe 0x40bdaf
push eax
call fcn.00411127
mov esi, eax
add esp, 4
test esi, esi
je 0x40bdaf
mov ecx, dword [esp + 4]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40bda6
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0x449f28
push esi
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bda6
mov eax, dword [esp + 8]
test eax, eax
je 0x40bda6
mov ecx, dword [eax + 8]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 0xc]
push esi
mov dword [ebx], edx
call fcn.00411132
add esp, 4
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.00411132
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x40c120
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x40c166
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042d791
add esp, 0x20c
ret
mov eax, esi
lea edx, [eax + 2]
jmp 0x40c170
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c170
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x40c19f
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042d791
add esp, 0x20c
ret
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0042d97f
add esp, 0xc
lea edx, [esp + 8]
call fcn.0040ccd0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40c186
lea edx, [esp + 8]
push edx
call edi
test eax, eax
jne 0x40c1e2
lea eax, [esp + 8]
push eax
call fcn.0040c120
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.0042d791
add esp, 0x20c
ret
Function at 0x40c510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.0042fb00
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [esp + 0xc]
inc esi
lea edx, [eax + 2]
jmp 0x40c580
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c580
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
call fcn.00406a40
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0042d791
add esp, 0x214
ret

Function at 0x40c5f0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp + 4]
push esi
xor esi, esi
xor eax, eax
test ecx, ecx
jle 0x40c61c
test eax, eax
jl 0x40c652
cmp eax, ecx
jge 0x40c652
mov edx, dword [ebp]
mov edx, dword [edx + eax*4]
mov edx, dword [edx - 0xc]
inc eax
cmp eax, ecx
lea esi, [esi + edx + 1]
jl 0x40c602
mov eax, esi
neg eax
sbb eax, eax
add eax, 2
add esi, eax
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.00411127
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
test edi, edi
jne 0x40c663
pop edi
pop esi
pop ebp
pop ecx
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
push ebx
lea ebx, [esi + esi]
push ebx
push 0
push edi
mov dword [esp + 0x24], ebx
call fcn.0042fb00
mov eax, dword [ebp + 4]
add esp, 0xc
xor esi, esi
test eax, eax
jle 0x40c6b9
test esi, esi
jl 0x40c6ea
cmp esi, eax
jge 0x40c6ea
mov eax, dword [ebp]
mov ecx, dword [eax + esi*4]
lea ebx, [eax + esi*4]
push ecx
push 0x104
push edi
call fcn.0042d97f
mov edx, dword [ebx]
mov eax, dword [edx - 0xc]
lea edi, [edi + eax*2 + 2]
mov eax, dword [ebp + 4]
inc esi
add esp, 0xc
cmp esi, eax
jl 0x40c680
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push ebx
push edi
push 7
push str.LastMounts
push str.SoftwareTowodo_SoftwareVirtual_Drive_ManagerSettings
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call fcn.00411132
add esp, 4
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]

Function at 0x40c990
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x804
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x800], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0042fb00
mov eax, dword [esp + 0x814]
lea edx, [esp + 0x818]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x400
push ecx
call fcn.0042db71
add esp, 0x1c
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0042d791
add esp, 0x804
ret
Function at 0x40ca00
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x442abb
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x230], eax
push ebp
push esi
push edi
mov eax, dword [0x457600]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
push 0
push 2
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push ebp
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40cb21
call fcn.0041160a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ca7a
push 0x80004005
call fcn.004069f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x14]
push ecx
push ebp
mov dword [esp + 0x254], 0
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40cafa
xor edx, edx
test ebx, ebx
setne dl
mov edi, edx
lea ecx, [ecx]
lea eax, [esp + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cab7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
call fcn.00406a40
test edi, edi
je 0x40ca70
mov esi, dword [esp + 0x10]
push ebx
push esi
call fcn.0042dea5
add esp, 8
test eax, eax
je 0x40cb4a
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40cab0
lea eax, [esi - 0x10]
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0042d791
add esp, 0x240
ret
mov edx, dword [esp + 0x1c]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.MSG:_kill_succeed__name_s__code_d
call fcn.0040c990
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cba7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40cb23