joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47efe9
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.004019de
mov esi, dword [ebp + 8]
push esi
push ebx
call fcn.0047f165
test eax, eax
jne 0x47f149
push edi
push esi
call fcn.0049472d
test eax, eax
pop ecx
pop ecx
jne 0x47f150
mov eax, dword [0x519a54]
mov ecx, 0x519a54
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.0041e7b9
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp - 4]
push esi
call fcn.00497e49
test eax, eax
pop ecx
pop ecx
je 0x47f0d7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
mov esi, 0x51b95c
call fcn.0044cc8c
mov esi, 0x4f6638
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041e7cc
add esp, 0xc
push dword [eax]
push ebx
call fcn.0047f165
mov edi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
test edi, edi
je 0x47f0ca
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041e7cc
pop ecx
push 5
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
jmp 0x47f133
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
jmp 0x47f150
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.0047f165
test eax, eax
jne 0x47f13e
mov esi, 0x4f6638
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041e7cc
pop ecx
push dword [eax]
push ebx
call fcn.0047f165
mov ebx, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
test ebx, ebx
je 0x47f0ca
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041e7cc
pop ecx
push 5
push dword [ebp + 8]
push dword [eax]
call edi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x47f1be
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x14]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x47f2a2
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.0041e6f7
pop ecx
lea eax, [ebp - 4]
call fcn.0047fba1
test eax, eax
je 0x47f297
mov eax, dword [0x519a54]
push esi
mov esi, 0x519a54
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x519a54]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
lea edi, [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.0047fc28
lea edi, [ebp - 8]
call fcn.0040208c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040153b
push dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.0047fcbc
pop ecx
lea edi, [ebp - 0xc]
call fcn.0040208c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, edi
push eax
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.0041e6f7
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.0040153b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
pop edi
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
or dword [ebx + 0x14], 0xffffffff
leave
ret
Function at 0x47f70d
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 0x47f76c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str.CreateFile:_d
call fcn.004256af
push dword [ebp + 0xc]
push esi
push str.CreateFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x51b95c
call fcn.0044cc8c
add esp, 0x14
jmp 0x47f8d0
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 0x47f7a7
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.CreateFileMapping:_d
call fcn.004256af
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x47f7dc
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 0x47f7ee
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.MapViewOfFile:_d
call fcn.004256af
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x51b95c
call fcn.0044cc8c
add esp, 0xc
jmp 0x47f87a
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 0x47f80d
cmp dword [ebp - 0x18], ebx
je 0x47f812
call fcn.00493406
cmp dword [ebp - 0x14], esi
je 0x47f868
lea esi, [ebp - 0x18]
call fcn.00486ad4
mov esi, dword [eax]
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x47f82c
xor eax, eax
jmp 0x47f831
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push 0
call fcn.0047ff45
push eax
push dword [ebp - 4]
call fcn.00492ac0
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
jne 0x47f850
xor esi, esi
jmp 0x47f855
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 4], esi
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x18]
call fcn.0044bb30
mov edi, dword [ebp + 8]
jmp 0x47f7ff
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 0x47f88a
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 4], ebx
je 0x47f8d0
push dword [ebp + 0xc]
mov eax, edi
call fcn.0047f8da
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x47f8d0
mov eax, 0xe0000025
call fcn.004256a0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp + 0xc]
mov esi, 0x51b95c
push dword [ebp - 4]
push str.ChecksumFileByMem_return_d__path:_ws
call fcn.0044cc8c
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x47f8da
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 0x47f938
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str.CreateFile:_d
call fcn.004256af
push ebx
push esi
push str.ChecksumFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x51b95c
call fcn.0044cc8c
add esp, 0x14
jmp 0x47fa7f
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 0x47f97f
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.CreateFileMapping:_d
call fcn.004256af
pop ecx
pop ecx
push ebx
call esi
push eax
push str.ChecksumFileByMem_CreateFileMapping_error:_d__path:_ws
mov esi, 0x51b95c
call fcn.0044cc8c
add esp, 0xc
jmp 0x47fa6a
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 0x47f9c4
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.MapViewOfFile:_d
call fcn.004256af
pop ecx
pop ecx
push ebx
call esi
push eax
push str.ChecksumFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x51b95c
call fcn.0044cc8c
add esp, 0xc
jmp 0x47fa5c
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 0x47f9e2
cmp dword [ebp - 0x20], ebx
je 0x47f9e7
call fcn.00493406
cmp dword [ebp - 0x1c], esi
je 0x47fa55
lea esi, [ebp - 0x20]
call fcn.00486ad4
mov esi, dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x47fa01
xor eax, eax
jmp 0x47fa06
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edi
call fcn.0047ff45
push eax
push dword [ebp - 8]
call fcn.004960e8
add esp, 0xc
test eax, eax
jne 0x47fa3f
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x47fa28
xor esi, esi
jmp 0x47fa2d
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 8], esi
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x20]
call fcn.0044bb30
xor edi, edi
jmp 0x47f9d5
push dword [ebp + 8]
mov esi, 0x51b95c
push str.ChecksumFileByMem_memcmp_return_not_same__path:_ws
call fcn.0044cc8c
pop ecx
pop ecx
jmp 0x47fa5c
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], edi
je 0x47fa6a
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 0x47fa7a
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 0x47fac6
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 0x47fafd
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x47fb09
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47faea
jmp 0x47fb10
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x47fb17
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.004019de
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47fb4c
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
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 0x47fb37
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x47fb37
lea eax, [ebp - 4]
call fcn.00489ddc
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x47fb83
xor esi, esi
jmp 0x47fb3a
push eax
call fcn.0047fb17
test eax, eax
pop ecx
je 0x47fb7f
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47fb37
call edi
cmp eax, ebx
jne 0x47fb7f
jmp 0x47fb37

Function at 0x47fc28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [0x51bfc0], 1
jne 0x47fc61
mov eax, dword [0x519a54]
or dword [0x51bfc0], 1
mov ecx, 0x519a54
call dword [eax + 0xc]
add eax, 0x10
push 0x4e34e4
mov dword [0x51bfbc], eax
call fcn.00494b1f
pop ecx
mov eax, dword [0x51bfbc]
cmp dword [eax - 0xc], 0
jne 0x47fcab
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x47fca6
push esi
lea eax, [ebp - 0x208]
push eax
mov esi, 0x51bfbc
push esi
call fcn.00401b70
call fcn.0047fa89
push str.drivers_
push esi
call fcn.0040554e
pop esi
mov eax, dword [0x51bfbc]
add eax, 0xfffffff0
call fcn.00401667
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x480ab2
Capabilities:
Delete file
Set file attributes

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [0x519a54]
push edi
mov ecx, 0x519a54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
call fcn.00481462
test eax, eax
je 0x480e38
lea eax, [ebp - 4]
push eax
call fcn.00481324
jmp 0x480e5d
push str.idex
lea eax, [ebp - 8]
call fcn.004019de
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00480ecc
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040153b
cmp dword [esi + 0x18], 8
jb 0x480e68
mov eax, dword [esi + 4]
jmp 0x480e6b
lea eax, [esi + 4]
push eax
lea eax, [ebp - 8]
call fcn.004019de
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
mov esi, dword [ebp - 8]
jg 0x480e85
xor ebx, ebx
inc ebx
jmp 0x480e9c
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.0040153b
test ebx, ebx
je 0x480eb4
lea eax, [ebp - 4]
push eax
call fcn.00481324
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 8]
push edi
call fcn.0040104b
lea eax, [edi - 0x10]
call fcn.0040153b
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x480ecc
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.004923b0
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.004022c9
test eax, eax
je 0x480f1e
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
jmp 0x480f3a
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [edi]
push eax
lea ebx, [ebp - 4]
call fcn.00402317
test eax, eax
je 0x480f3a
mov dword [ebp - 0xc], 1
mov eax, dword [0x519a54]
mov ecx, 0x519a54
xor ebx, ebx
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.00481357
test eax, eax
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
je 0x480f7f
mov eax, dword [edi]
push esi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
push eax
push 0x4ff468
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov ebx, eax
cmp dword [ebp - 0xc], 0
je 0x480fb0
test ebx, ebx
ja 0x480f97
push dword [ebp + 0xc]
push edi
call fcn.00480fe0
mov dword [ebp - 8], eax
jmp 0x480fbf
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.00401b70
mov dword [ebp - 8], 1
jmp 0x480fb7
test ebx, ebx
ja 0x480fbf
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.004814fc
lea eax, [esi - 0x10]
call fcn.0040153b
cmp dword [ebp - 4], 0
je 0x480fd6
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 0x4813bb
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.004923b0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x48145d
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 0x481428
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x48145d
lea eax, [ebp - 0x208]
push str.All_UsersApplication_Data
push eax
call fcn.0042c6a2
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push str.KingsoftKIS_
push eax
call fcn.0042c6a2
lea eax, [ebp - 0x208]
push eax
call fcn.004926b1
add esp, 0xc
cmp eax, esi
jae 0x48145d
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.00499893
pop ecx
pop ecx
pop esi
leave
ret 4

Function at 0x4815bb
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.004923b0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x481662
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 0x48162a
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x481662
push str.All_UsersApplication_Data
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.004959e0
add esp, 0xc
push str.KingsoftKISkich
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.004959e0
lea eax, [ebp - 0x208]
push eax
call fcn.004926b1
add esp, 0x10
cmp eax, esi
jae 0x481662
lea eax, [ebp - 0x208]
push eax
push esi
push dword [ebp + 8]
call fcn.004959e0
add esp, 0xc
pop esi
leave
ret

Function at 0x4817cd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x519a54]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, 0x519a54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call dword [section..data]
cmp dword [ebp + 0xc], 0
je 0x481809
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x48180d
xor eax, eax
jmp 0x481827
lea edi, [eax + eax]
mov eax, edi
call fcn.004a50d0
mov esi, esp
push 0xfde9
push edi
push dword [ebp + 0xc]
call fcn.00439587
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041d63f
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 0x48184d
xor byte [ecx + edi], 0x88
inc ecx
cmp ecx, eax
jl 0x481844
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 2
add esi, 4
pop ebx
call fcn.0048167d
movzx ebx, word [ebp - 4]
push edi
call fcn.0048167d
lea eax, [edi - 0x10]
call fcn.0040153b
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x481985
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 [0x519a54]
push edi
mov ecx, 0x519a54
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.00447d8f
push edi
mov ebx, eax
call fcn.00495f96
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.0041e7b9
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 0x481a4a
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 0x481a39
cmp dword [ebp + 8], ebx
jne 0x481a39
mov dword [ebp - 8], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 8], edi
je 0x481a4a
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x48268c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x519a54]
push ebx
push esi
mov esi, 0x519a54
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x519a54]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
call fcn.00489e19
lea edi, [ebp - 4]
call fcn.0040208c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x4826f7
lea eax, [ebp - 0xc]
call fcn.00489cfd
call fcn.0040208c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
push str.kxetray.exe
lea eax, [ebp - 4]
push eax
call fcn.0040554e
push 0x4ed090
lea eax, [ebp - 8]
push eax
call fcn.00401b70
mov edi, dword [ebp - 4]
push dword [edi - 0xc]
lea eax, [ebp - 8]
push edi
call fcn.0040cf77
push str.___autorun
lea eax, [ebp - 8]
push eax
call fcn.0040554e
mov eax, dword [0x519a54]
mov ecx, esi
call dword [eax + 0xc]
and dword [ebp - 4], 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ebx, [eax + 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 4]
mov dword [ebp - 0xc], ebx
call fcn.004022c9
test eax, eax
je 0x48276f
lea eax, [ebp - 0xc]
push eax
push str.kxesc
mov ebx, esi
call fcn.00443803
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 4], 0
je 0x48277e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx - 0xc], 0
jne 0x482789
xor esi, esi
inc esi
jmp 0x48279d
push dword [ebp - 8]
push ebx
call fcn.00493a74
mov esi, eax
neg esi
pop ecx
sbb esi, esi
pop ecx
and esi, 2
lea eax, [ebx - 0x10]
call fcn.0040153b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040153b
lea eax, [edi - 0x10]
call fcn.0040153b
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x483599
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.004923b0
mov esi, dword [ebp + 8]
mov edi, 0x519a54
add esp, 0xc
mov ecx, edi
call fcn.004016bf
mov eax, dword [0x519a54]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x51b6f4]
add eax, 0xfffffff0
call fcn.00401667
lea esi, [eax + 0x10]
push 0x4ecb24
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], esi
call fcn.0041e7cc
pop ecx
lea edi, [ebp - 4]
call fcn.0040208c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
lea eax, [esi - 0x10]
call fcn.0040153b
mov esi, dword [ebp - 4]
push esi
push 0x208
lea eax, [ebp - 0x214]
push eax
push 0x4f6638
push str.TryNo
push 0x4ec858
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x483658
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call fcn.00401b70
lea eax, [esi - 0x10]
call fcn.0040153b
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret