joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b8ab
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push esi
mov esi, eax
xor eax, eax
inc edx
test esi, esi
je 0x46b8eb
push ebx
push edi
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
movzx edi, word [edi + edx*2]
shr dword [esp + 0x14], 1
and ecx, 1
mov ebx, ecx
neg ebx
sar ebx, 4
and ebx, 0x7f
shr edi, 4
xor edi, ebx
mov ebx, dword [esp + 0x18]
add eax, dword [ebx + edi*4]
add edx, edx
or edx, ecx
dec esi
jne 0x46b8b9
pop edi
pop ebx
pop esi
ret

Function at 0x46d233
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor edx, edx
lea ecx, [esi + 0x19c]
mov dword [esi + 0x3bcd4], edx
mov dword [esi + 0x3bcd0], edx
push ebx
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x4c], edx
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x2c], 0x20
mov dword [ecx + 0x54], 1
mov dword [ecx + 0x48], 4
mov dword [ecx + 0x58], edx
mov dword [ebp - 4], edx
lea eax, [ecx + 0x70]
push edi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], 8
mov ebx, edi
and ebx, 1
dec ebx
not ebx
and ebx, 0xedb88320
shr edi, 1
xor edi, ebx
dec dword [ebp - 8]
jne 0x46d280
inc dword [ebp - 4]
mov dword [eax], edi
add eax, 4
cmp dword [ebp - 4], 0x100
jb 0x46d276
mov dword [esi + 0x118], edx
lea eax, [esi + 0x148]
mov dword [eax], edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], edx
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], edx
lea eax, [ebp - 0x38]
mov dword [esi + 0x198], ecx
call fcn.0046b385
mov ebx, esi
call fcn.0046b488
push 2
pop edi
mov byte [esi + 0x306a0], 0
mov byte [esi + 0x306a1], 1
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
xor ebx, ebx
sar ecx, 1
dec ecx
inc ebx
shl ebx, cl
test ebx, ebx
jbe 0x46d337
push ebx
push dword [ebp - 4]
lea eax, [edi + esi + 0x306a0]
push eax
call fcn.0048a3a0
add esp, 0xc
add edi, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x16
jl 0x46d312
push 8
pop edi
mov edx, 0x10000
push 4
mov eax, edi
xor ecx, ecx
pop ebx
imul eax, eax
add ecx, ecx
jmp 0x46d359
shr eax, 1
inc ecx
cmp eax, edx
jae 0x46d356
dec ebx
jne 0x46d34f
mov eax, 0xa1
sub eax, ecx
mov ecx, edi
shr ecx, 4
add edi, 0x10
cmp edi, 0x800
mov dword [esi + ecx*4 + 0x30ea0], eax
jb 0x46d348
and dword [esi + 0x325ac], ebx
and dword [esi + 0x3bd14], ebx
pop edi
pop ebx
leave
ret

Function at 0x46ddbf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0048cbed
mov ecx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
je 0x46dde8
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x46ddf3
inc eax
leave
ret
Function at 0x47c566
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.00401994
mov esi, dword [ebp + 8]
push esi
push ebx
call fcn.0047c6e2
test eax, eax
jne 0x47c6c6
push edi
push esi
call fcn.0048c122
test eax, eax
pop ecx
pop ecx
jne 0x47c6cd
mov eax, dword [0x4dd4b4]
mov ecx, 0x4dd4b4
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.0041e2cd
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp - 4]
push esi
call fcn.0048f632
test eax, eax
pop ecx
pop ecx
je 0x47c654
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
mov esi, 0x4de92c
call fcn.0044aa61
mov esi, 0x4bd458
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041e2e0
add esp, 0xc
push dword [eax]
push ebx
call fcn.0047c6e2
mov edi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
test edi, edi
je 0x47c647
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041e2e0
pop ecx
push 5
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
jmp 0x47c6b0
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
jmp 0x47c6cd
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.0047c6e2
test eax, eax
jne 0x47c6bb
mov esi, 0x4bd458
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041e2e0
pop ecx
push dword [eax]
push ebx
call fcn.0047c6e2
mov ebx, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
test ebx, ebx
je 0x47c647
push esi
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041e2e0
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 0x47c73b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x14]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x47c81f
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.0041e20b
pop ecx
lea eax, [ebp - 4]
call fcn.0047d15b
test eax, eax
je 0x47c814
mov eax, dword [0x4dd4b4]
push esi
mov esi, 0x4dd4b4
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x4dd4b4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
lea edi, [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.0047d1e2
lea edi, [ebp - 8]
call fcn.0040204d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
push dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.0047d276
pop ecx
lea edi, [ebp - 0xc]
call fcn.0040204d
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.0041e20b
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 0x47cc8a
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 0x47cce9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str.CreateFile:_d
call fcn.00424d1d
push dword [ebp + 0xc]
push esi
push str.CreateFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x4de92c
call fcn.0044aa61
add esp, 0x14
jmp 0x47ce4d
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 0x47cd24
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.CreateFileMapping:_d
call fcn.00424d1d
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x47cd59
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 0x47cd6b
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.MapViewOfFile:_d
call fcn.00424d1d
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x4de92c
call fcn.0044aa61
add esp, 0xc
jmp 0x47cdf7
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 0x47cd8a
cmp dword [ebp - 0x18], ebx
je 0x47cd8f
call fcn.0048c323
cmp dword [ebp - 0x14], esi
je 0x47cde5
lea esi, [ebp - 0x18]
call fcn.0047d543
mov esi, dword [eax]
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x47cda9
xor eax, eax
jmp 0x47cdae
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push 0
call fcn.0047d591
push eax
push dword [ebp - 4]
call fcn.0048a740
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
jne 0x47cdcd
xor esi, esi
jmp 0x47cdd2
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 4], esi
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x18]
call fcn.0047d563
mov edi, dword [ebp + 8]
jmp 0x47cd7c
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 0x47ce07
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 4], ebx
je 0x47ce4d
push dword [ebp + 0xc]
mov eax, edi
call fcn.0047ce57
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x47ce4d
mov eax, 0xe0000025
call fcn.00424d0e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push dword [ebp + 0xc]
mov esi, 0x4de92c
push dword [ebp - 4]
push str.ChecksumFileByMem_return_d__path:_ws
call fcn.0044aa61
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x47ce57
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 0x47ceb5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push str.CreateFile:_d
call fcn.00424d1d
push ebx
push esi
push str.ChecksumFileByMem_CreateFile_error:_d__path:_ws
mov esi, 0x4de92c
call fcn.0044aa61
add esp, 0x14
jmp 0x47cffc
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 0x47cefc
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.CreateFileMapping:_d
call fcn.00424d1d
pop ecx
pop ecx
push ebx
call esi
push eax
push str.ChecksumFileByMem_CreateFileMapping_error:_d__path:_ws
mov esi, 0x4de92c
call fcn.0044aa61
add esp, 0xc
jmp 0x47cfe7
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 0x47cf41
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
push str.MapViewOfFile:_d
call fcn.00424d1d
pop ecx
pop ecx
push ebx
call esi
push eax
push str.ChecksumFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x4de92c
call fcn.0044aa61
add esp, 0xc
jmp 0x47cfd9
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 0x47cf5f
cmp dword [ebp - 0x20], ebx
je 0x47cf64
call fcn.0048c323
cmp dword [ebp - 0x1c], esi
je 0x47cfd2
lea esi, [ebp - 0x20]
call fcn.0047d543
mov esi, dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x47cf7e
xor eax, eax
jmp 0x47cf83
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edi
call fcn.0047d591
push eax
push dword [ebp - 8]
call fcn.0048d39d
add esp, 0xc
test eax, eax
jne 0x47cfbc
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x47cfa5
xor esi, esi
jmp 0x47cfaa
mov esi, dword [esi + 8]
sub esi, eax
add dword [ebp - 8], esi
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x20]
call fcn.0047d563
xor edi, edi
jmp 0x47cf52
push dword [ebp + 8]
mov esi, 0x4de92c
push str.ChecksumFileByMem_memcmp_return_not_same__path:_ws
call fcn.0044aa61
pop ecx
pop ecx
jmp 0x47cfd9
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], edi
je 0x47cfe7
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 0x47cff7
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 0x47d080
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 0x47d0b7
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x47d0c3
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47d0a4
jmp 0x47d0ca
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x47d0d1
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.00401994
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47d106
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 0x47d0f1
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x47d0f1
lea eax, [ebp - 4]
call fcn.0047d006
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x47d13d
xor esi, esi
jmp 0x47d0f4
push eax
call fcn.0047d0d1
test eax, eax
pop ecx
je 0x47d139
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47d0f1
call edi
cmp eax, ebx
jne 0x47d139
jmp 0x47d0f1

Function at 0x47d1e2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [0x4def38], 1
jne 0x47d21b
mov eax, dword [0x4dd4b4]
or dword [0x4def38], 1
mov ecx, 0x4dd4b4
call dword [eax + 0xc]
add eax, 0x10
push 0x4b3d0d
mov dword [0x4def34], eax
call fcn.0048bdd1
pop ecx
mov eax, dword [0x4def34]
cmp dword [eax - 0xc], 0
jne 0x47d265
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x47d260
push esi
lea eax, [ebp - 0x208]
push eax
mov esi, 0x4def34
push esi
call fcn.00401af8
call fcn.0047d043
push str.drivers_
push esi
call fcn.0040537b
pop esi
mov eax, dword [0x4def34]
add eax, 0xfffffff0
call fcn.00401648
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x47e132
Capabilities:
Delete file
Set file attributes

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [0x4dd4b4]
push edi
mov ecx, 0x4dd4b4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
call fcn.0047eae9
test eax, eax
je 0x47e4b8
lea eax, [ebp - 4]
push eax
call fcn.0047e9ab
jmp 0x47e4dd
push str.idex
lea eax, [ebp - 8]
call fcn.00401994
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0047e54d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
cmp dword [esi + 0x18], 8
jb 0x47e4e8
mov eax, dword [esi + 4]
jmp 0x47e4eb
lea eax, [esi + 4]
push eax
lea eax, [ebp - 8]
call fcn.00401994
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
mov esi, dword [ebp - 8]
jg 0x47e505
xor ebx, ebx
inc ebx
jmp 0x47e51c
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 0x47e534
lea eax, [ebp - 4]
push eax
call fcn.0047e9ab
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 0x47e54d
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.0048a3a0
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.0040225b
test eax, eax
je 0x47e59f
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
jmp 0x47e5bb
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [edi]
push eax
lea ebx, [ebp - 4]
call fcn.004022a9
test eax, eax
je 0x47e5bb
mov dword [ebp - 0xc], 1
mov eax, dword [0x4dd4b4]
mov ecx, 0x4dd4b4
xor ebx, ebx
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.0047e9de
test eax, eax
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], eax
je 0x47e600
mov eax, dword [edi]
push esi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
push eax
push 0x4c60c0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov ebx, eax
cmp dword [ebp - 0xc], 0
je 0x47e631
test ebx, ebx
ja 0x47e618
push dword [ebp + 0xc]
push edi
call fcn.0047e661
mov dword [ebp - 8], eax
jmp 0x47e640
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.00401af8
mov dword [ebp - 8], 1
jmp 0x47e638
test ebx, ebx
ja 0x47e640
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.0047eb83
lea eax, [esi - 0x10]
call fcn.0040151c
cmp dword [ebp - 4], 0
je 0x47e657
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 0x47ea42
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.0048a3a0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x47eae4
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 0x47eaaf
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x47eae4
lea eax, [ebp - 0x208]
push str.All_UsersApplication_Data
push eax
call fcn.0042ba4f
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push str.KingsoftKIS_
push eax
call fcn.0042ba4f
lea eax, [ebp - 0x208]
push eax
call fcn.0048a6a1
add esp, 0xc
cmp eax, esi
jae 0x47eae4
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.004915a6
pop ecx
pop ecx
pop esi
leave
ret 4

Function at 0x47ec42
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.0048a3a0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x47ece9
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 0x47ecb1
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x47ece9
push str.All_UsersApplication_Data
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0048fcb1
add esp, 0xc
push str.KingsoftKISkich
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0048fcb1
lea eax, [ebp - 0x208]
push eax
call fcn.0048a6a1
add esp, 0x10
cmp eax, esi
jae 0x47ece9
lea eax, [ebp - 0x208]
push eax
push esi
push dword [ebp + 8]
call fcn.0048fcb1
add esp, 0xc
pop esi
leave
ret

Function at 0x47ee8f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4dd4b4]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, 0x4dd4b4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call dword [section..data]
cmp dword [ebp + 0xc], 0
je 0x47eecb
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x47eecf
xor eax, eax
jmp 0x47eee9
lea edi, [eax + eax]
mov eax, edi
call fcn.0049a100
mov esi, esp
push 0xfde9
push edi
push dword [ebp + 0xc]
call fcn.004387fa
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041d1c1
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 0x47ef0f
xor byte [ecx + edi], 0x88
inc ecx
cmp ecx, eax
jl 0x47ef06
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 2
add esi, 4
pop ebx
call fcn.0047ed04
movzx ebx, word [ebp - 4]
push edi
call fcn.0047ed04
lea eax, [edi - 0x10]
call fcn.0040151c
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x47f047
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 [0x4dd4b4]
push edi
mov ecx, 0x4dd4b4
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.00445bfb
push edi
mov ebx, eax
call fcn.0048fe10
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.0041e2cd
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 0x47f10c
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 0x47f0fb
cmp dword [ebp + 8], ebx
jne 0x47f0fb
mov dword [ebp - 8], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 8], edi
je 0x47f10c
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 0x480a74
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.0048a3a0
mov esi, dword [ebp + 8]
mov edi, 0x4dd4b4
add esp, 0xc
mov ecx, edi
call fcn.004016ab
mov eax, dword [0x4dd4b4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x4de70c]
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.0041e2e0
pop ecx
lea edi, [ebp - 4]
call fcn.0040204d
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 0x4bd458
push str.TryNo
push str.common
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x480b33
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call fcn.00401af8
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret