joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a942
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, eax
xor edi, edi
lea eax, [ebp + 8]
mov dword [ebp - 8], edi
call fcn.00401989
mov esi, dword [ebp + 8]
push esi
push ebx
call fcn.0047aabe
test eax, eax
jne 0x47aaa2
push edi
push esi
call fcn.0048a568
test eax, eax
pop ecx
pop ecx
jne 0x47aaa9
mov eax, dword [0x4db494]
mov ecx, 0x4db494
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push esi
lea eax, [ebp - 4]
push str._s_d__x
push eax
call fcn.0041dcb8
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp - 4]
push esi
call fcn.0048d83a
test eax, eax
pop ecx
pop ecx
je 0x47aa30
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
mov esi, 0x4dc90c
call fcn.0044866c
mov esi, 0x4bb3d8
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041dccb
add esp, 0xc
push dword [eax]
push ebx
call fcn.0047aabe
mov edi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
test edi, edi
je 0x47aa23
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041dccb
pop ecx
push 5
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
jmp 0x47aa8c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
jmp 0x47aaa9
push 4
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.DLL_MoveFileExW]
call edi
push dword [ebp + 8]
push ebx
call fcn.0047aabe
test eax, eax
jne 0x47aa97
mov esi, 0x4bb3d8
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041dccb
pop ecx
push dword [eax]
push ebx
call fcn.0047aabe
mov ebx, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
test ebx, ebx
je 0x47aa23
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041dccb
pop ecx
push 5
push dword [ebp + 8]
push dword [eax]
call edi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x47ab17
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x14]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x47abfb
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
lea ecx, [ebp - 4]
call fcn.0041dbf6
pop ecx
lea eax, [ebp - 4]
call fcn.0047b537
test eax, eax
je 0x47abf0
mov eax, dword [0x4db494]
push esi
mov esi, 0x4db494
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x4db494]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
lea edi, [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.0047b5be
lea edi, [ebp - 8]
call fcn.0040206d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
push dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.0047b652
pop ecx
lea edi, [ebp - 0xc]
call fcn.0040206d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, edi
push eax
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.0041dbf6
pop ecx
push 0
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
pop edi
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
or dword [ebx + 0x14], 0xffffffff
leave
ret
Function at 0x47b066
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10], esi
jne 0x47b0c5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str.CreateFile:_d
call fcn.004245c2
push dword [ebp + 0xc]
push esi
push str.CreateFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x4dc90c
call fcn.0044866c
add esp, 0x14
jmp 0x47b229
mov edi, dword [ebp + 8]
push ebx
push dword [edi + 4]
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp esi, ebx
mov dword [ebp - 8], eax
jne 0x47b100
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.CreateFileMapping:_d
call fcn.004245c2
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x47b135
push dword [edi + 4]
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x47b147
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.MapViewOfFile:_d
call fcn.004245c2
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x4dc90c
call fcn.0044866c
add esp, 0xc
jmp 0x47b1d3
lea ebx, [edi + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 0
mov esi, dword [ebx + 4]
je 0x47b166
cmp dword [ebp - 0x18], ebx
je 0x47b16b
call fcn.0048a6a6
cmp dword [ebp - 0x14], esi
je 0x47b1c1
lea esi, [ebp - 0x18]
call fcn.00447443
mov esi, dword [eax]
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x47b185
xor eax, eax
jmp 0x47b18a
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push 0
call fcn.0047b8cd
push eax
push dword [ebp - 4]
call fcn.00489cd0
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
jne 0x47b1a9
xor esi, esi
jmp 0x47b1ae
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 4], esi
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x18]
call fcn.00447463
mov edi, dword [ebp + 8]
jmp 0x47b158
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov dword [ebp - 4], 1
xor ebx, ebx
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x47b1e3
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 4], ebx
je 0x47b229
push dword [ebp + 0xc]
mov eax, edi
call fcn.0047b233
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x47b229
mov eax, 0xe0000025
call fcn.004245b3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp + 0xc]
mov esi, 0x4dc90c
push dword [ebp - 4]
push str.ChecksumFileByMem_return_d__path:_ws
call fcn.0044866c
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x47b233
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ebx
mov esi, eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x47b291
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str.CreateFile:_d
call fcn.004245c2
push ebx
push esi
push str.ChecksumFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x4dc90c
call fcn.0044866c
add esp, 0x14
jmp 0x47b3d8
push edi
push dword [esi + 4]
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
jne 0x47b2d8
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.CreateFileMapping:_d
call fcn.004245c2
pop ecx
pop ecx
push ebx
call esi
push eax
push str.ChecksumFileByMem_CreateFileMapping_error:_d__path:_ws
mov esi, 0x4dc90c
call fcn.0044866c
add esp, 0xc
jmp 0x47b3c3
push dword [esi + 4]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x47b31d
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.MapViewOfFile:_d
call fcn.004245c2
pop ecx
pop ecx
push ebx
call esi
push eax
push str.ChecksumFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x4dc90c
call fcn.0044866c
add esp, 0xc
jmp 0x47b3b5
lea ebx, [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
mov esi, dword [ebx + 4]
je 0x47b33b
cmp dword [ebp - 0x20], ebx
je 0x47b340
call fcn.0048a6a6
cmp dword [ebp - 0x1c], esi
je 0x47b3ae
lea esi, [ebp - 0x20]
call fcn.00447443
mov esi, dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x47b35a
xor eax, eax
jmp 0x47b35f
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edi
call fcn.0047b8cd
push eax
push dword [ebp - 8]
call fcn.0048b79e
add esp, 0xc
test eax, eax
jne 0x47b398
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x47b381
xor esi, esi
jmp 0x47b386
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 8], esi
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x20]
call fcn.00447463
xor edi, edi
jmp 0x47b32e
push dword [ebp + 8]
mov esi, 0x4dc90c
push str.ChecksumFileByMem_memcmp_return_not_same__path:_ws
call fcn.0044866c
pop ecx
pop ecx
jmp 0x47b3b5
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], edi
je 0x47b3c3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
cmp dword [ebp - 0x10], edi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x47b3d3
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x47b45c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, ecx
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 8], eax
push eax
jmp 0x47b493
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x47b49f
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47b480
jmp 0x47b4a6
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x47b4ad
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00401989
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47b4e2
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47b4cd
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x47b4cd
lea eax, [ebp - 4]
call fcn.0047b3e2
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x47b519
xor esi, esi
jmp 0x47b4d0
push eax
call fcn.0047b4ad
test eax, eax
pop ecx
je 0x47b515
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47b4cd
call edi
cmp eax, ebx
jne 0x47b515
jmp 0x47b4cd

Function at 0x47b5be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [0x4dcea4], 1
jne 0x47b5f7
mov eax, dword [0x4db494]
or dword [0x4dcea4], 1
mov ecx, 0x4db494
call dword [eax + 0xc]
add eax, 0x10
push 0x4b1e00
mov dword [0x4dcea0], eax
call fcn.0048a159
pop ecx
mov eax, dword [0x4dcea0]
cmp dword [eax - 0xc], 0
jne 0x47b641
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x47b63c
push esi
lea eax, [ebp - 0x208]
push eax
mov esi, 0x4dcea0
push esi
call fcn.00401aed
call fcn.0047b41f
push str.drivers_
push esi
call fcn.00405235
pop esi
mov eax, dword [0x4dcea0]
add eax, 0xfffffff0
call fcn.00401648
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x47c539
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne 0x47c54c
xor al, al
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
setne al
ret
Function at 0x47c88e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [0x4db494]
push edi
mov ecx, 0x4db494
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
call fcn.0047cef0
test eax, eax
je 0x47c8bf
lea eax, [ebp - 4]
push eax
call fcn.0047cdb2
jmp 0x47c8e4
push str.idex
lea eax, [ebp - 8]
call fcn.00401989
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0047c954
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
cmp dword [esi + 0x18], 8
jb 0x47c8ef
mov eax, dword [esi + 4]
jmp 0x47c8f2
lea eax, [esi + 4]
push eax
lea eax, [ebp - 8]
call fcn.00401989
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
mov esi, dword [ebp - 8]
jg 0x47c90c
xor ebx, ebx
inc ebx
jmp 0x47c923
push esi
push 0xffffffffffffffff
push edi
push str.ulst
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
lea eax, [esi - 0x10]
call fcn.0040151c
test ebx, ebx
je 0x47c93b
lea eax, [ebp - 4]
push eax
call fcn.0047cdb2
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, edi
call fcn.004010df
lea eax, [edi - 0x10]
call fcn.0040151c
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47c954
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 0xc], esi
mov word [ebp - 0x218], si
call fcn.004883c0
add esp, 0xc
xor edi, edi
inc edi
push edi
push str.CLSID9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0Implemented_CategoriesA5F7140E_4311_4ef9_AABC_F55941B5EBE5
mov dword [ebp - 4], esi
push SysReAllocString
lea esi, [ebp - 4]
call fcn.00402204
test eax, eax
je 0x47c9a6
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
jmp 0x47c9c2
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [edi]
push eax
lea ebx, [ebp - 4]
call fcn.00402252
test eax, eax
je 0x47c9c2
mov dword [ebp - 0xc], 1
mov eax, dword [0x4db494]
mov ecx, 0x4db494
xor ebx, ebx
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.0047cde5
test eax, eax
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
je 0x47ca07
mov eax, dword [edi]
push esi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
push eax
push 0x4c3cf0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov ebx, eax
cmp dword [ebp - 0xc], 0
je 0x47ca38
test ebx, ebx
ja 0x47ca1f
push dword [ebp + 0xc]
push edi
call fcn.0047ca68
mov dword [ebp - 8], eax
jmp 0x47ca47
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.00401aed
mov dword [ebp - 8], 1
jmp 0x47ca3f
test ebx, ebx
ja 0x47ca47
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.0047cf8a
lea eax, [esi - 0x10]
call fcn.0040151c
cmp dword [ebp - 4], 0
je 0x47ca5e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x47ce49
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x206]
push esi
push eax
mov word [ebp - 0x208], si
call fcn.004883c0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x47ceeb
push 1
push 0x23
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov esi, 0x104
jne 0x47ceb6
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x47ceeb
lea eax, [ebp - 0x208]
push str.All_UsersApplication_Data
push eax
call fcn.0042afa1
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push str.KingsoftKIS_
push eax
call fcn.0042afa1
lea eax, [ebp - 0x208]
push eax
call fcn.004886c1
add esp, 0xc
cmp eax, esi
jae 0x47ceeb
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.0048f36d
pop ecx
pop ecx
pop esi
leave
ret 4

Function at 0x47d049
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x206]
push esi
push eax
mov word [ebp - 0x208], si
call fcn.004883c0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x47d0f0
push 1
push 0x23
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov esi, 0x104
jne 0x47d0b8
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x47d0f0
push str.All_UsersApplication_Data
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0048b4ed
add esp, 0xc
push str.KingsoftKISkich
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0048b4ed
lea eax, [ebp - 0x208]
push eax
call fcn.004886c1
add esp, 0x10
cmp eax, esi
jae 0x47d0f0
lea eax, [ebp - 0x208]
push eax
push esi
push dword [ebp + 8]
call fcn.0048b4ed
add esp, 0xc
pop esi
leave
ret

Function at 0x47d296
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4db494]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, 0x4db494
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call dword [section..data]
cmp dword [ebp + 0xc], 0
je 0x47d2d2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x47d2d6
xor eax, eax
jmp 0x47d2f0
lea edi, [eax + eax]
mov eax, edi
call fcn.00499db0
mov esi, esp
push 0xfde9
push edi
push dword [ebp + 0xc]
call fcn.0043809f
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041cbd0
mov edi, dword [ebp - 8]
movzx eax, word [edi - 0xc]
mov dword [ebp - 4], eax
movzx eax, ax
xor ecx, ecx
test eax, eax
jle 0x47d316
xor byte [ecx + edi], 0x88
inc ecx
cmp ecx, eax
jl 0x47d30d
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 2
add esi, 4
pop ebx
call fcn.0047d10b
movzx ebx, word [ebp - 4]
push edi
call fcn.0047d10b
lea eax, [edi - 0x10]
call fcn.0040151c
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x47d44e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
mov esi, eax
mov eax, dword [0x4db494]
push edi
mov ecx, 0x4db494
call dword [eax + 0xc]
mov ecx, dword [esi + 0x10]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
push eax
push ecx
xor edi, edi
push edi
call fcn.0044355e
push edi
mov ebx, eax
call fcn.0048b64c
add esp, 0x10
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
movzx eax, word [esi + 0x2c]
push edx
push dword [ebp - 8]
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str._s_d__x__x__x.ich
push eax
call fcn.0041dcb8
mov ebx, dword [esi + 0x18]
mov esi, dword [esi + 0x10]
add esp, 0x1c
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 4]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x47d513
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push esi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x47d502
cmp dword [ebp + 8], ebx
jne 0x47d502
mov dword [ebp - 8], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 8], edi
je 0x47d513
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47eb3c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and word [ebp - 0x214], 0
push esi
push edi
push 0x206
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.004883c0
mov esi, dword [ebp + 8]
mov edi, 0x4db494
add esp, 0xc
mov ecx, edi
call fcn.004016a0
mov eax, dword [0x4db494]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x4dc6ec]
add eax, 0xfffffff0
call fcn.00401648
lea esi, [eax + 0x10]
push str.ressrcchsuplive.svr
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], esi
call fcn.0041dccb
pop ecx
lea edi, [ebp - 4]
call fcn.0040206d
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [esi - 0x10]
call fcn.0040151c
mov esi, dword [ebp - 4]
push esi
push 0x208
lea eax, [ebp - 0x214]
push eax
push 0x4bb3d8
push str.TryNo
push str.common
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x47ebfb
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call fcn.00401aed
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x47ef00
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
xor ecx, ecx
push ecx
push eax
push dword [edi + 4]
lea esi, [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
call fcn.00402204
test eax, eax
mov ebx, 0x4dc90c
je 0x47efc9
mov eax, dword [edi + 0xc]
xor esi, esi
cmp dword [edi + 0x1c], esi
je 0x47ef99
cmp dword [eax - 0xc], esi
jne 0x47ef84
cmp dword [ebp - 4], esi
je 0x47ef4d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi + 8]
mov dword [ebp - 4], esi
push dword [edi + 4]
mov esi, ebx
push str.DeleteSubKeyTree_root:_d__path:_ws
call fcn.0044866c
push dword [edi + 8]
push dword [edi + 4]
call fcn.0042410f
push eax
push str.DeleteSubKeyTree_return:_d
mov dword [ebp - 0xc], eax
call fcn.0044866c
add esp, 0x1c
cmp dword [ebp - 0xc], 0
jmp 0x47ef95
cmp dword [ebp - 4], esi
je 0x47efc9
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x47efc9
jmp 0x47efc2
cmp dword [eax - 0xc], esi
je 0x47efc2
cmp dword [edi + 0x18], 4
jne 0x47efb2
push dword [edi + 0x14]
push eax
lea eax, [ebp - 4]
call fcn.0041f39c
jmp 0x47efbe
push dword [edi + 0x10]
lea esi, [ebp - 4]
push eax
call fcn.0041f3c5
test eax, eax
je 0x47efc9
mov dword [ebp - 8], 1
push dword [edi + 0x10]
mov esi, ebx
push dword [edi + 0xc]
push dword [edi + 0x18]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi + 0x1c]
push dword [ebp - 8]
push str.KExecReg_Run_Return:_d__delete:_d__root:0x_x__path:_ws__type:_d__name:_ws__value:_ws
call fcn.0044866c
add esp, 0x20
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x47efff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x47f0ac
Capabilities:
Delete service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x47f0c6
pop edi
jmp dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
push esi
push 0x10000
push dword [esp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x47f0f5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push edi
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x47f118
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call edi
push esi
call edi
mov eax, ebx
jmp 0x47f0f1
push esi
call ebx
xor esi, esi
jmp 0x47f0ec