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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x402b02
xor eax, eax
jmp 0x402bb6
push 0x28
push esi
push edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push esi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
cmp eax, esi
je 0x402b43
cmp byte [eax], 0
mov ecx, eax
je 0x402b43
mov al, byte [ecx]
cmp al, 0x41
jl 0x402b3d
cmp al, 0x5a
jg 0x402b3d
add al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x402b2f
push ebx
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push esi
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
call fcn.004028e4
pop ecx
mov ecx, dword [ebp - 8]
push 0x25
movzx ebx, ax
pop eax
cmp ecx, eax
mov dword [ebp + 8], ecx
jbe 0x402b6a
mov dword [ebp + 8], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push 0
lea esi, [edi + 3]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
push eax
push esi
call sub.MSVCR80.dll_memcpy
mov ecx, dword [ebp + 8]
mov al, cl
add esp, 0xc
add al, 2
test esi, esi
mov word [edi + 1], bx
mov byte [edi], al
pop ebx
je 0x402baa
test ecx, ecx
je 0x402baa
xor eax, eax
test ecx, ecx
jbe 0x402baa
xor byte [eax + esi], 0x5a
inc eax
cmp eax, ecx
jb 0x402ba1
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x402cb9
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push str.Global_
lea ecx, [ebp - 0x1c]
call dword [0x4d95ec]
cmp dword [0x545dbc], 8
mov eax, dword [0x545da8]
jae 0x402ce9
mov eax, 0x545da8
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
jae 0x402cff
lea eax, [ebp - 0x18]
push edi
xor edi, edi
cmp dword [esi + 4], edi
jne 0x402d3a
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [esi], eax
je 0x402d3d
push 0x3fe0
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
jne 0x402d37
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x402d3d
mov dword [esi + 4], eax
xor edi, edi
inc edi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
pop edi
leave
ret

Function at 0x402d4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax + 4]
sub esp, 0x34
push ebx
xor ecx, ecx
cmp eax, ecx
push esi
push edi
jne 0x402d61
xor eax, eax
jmp 0x402dc0
cmp dword [ebp + 8], ecx
lea esi, [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
je 0x402dbd
cmp esi, ecx
je 0x402dbd
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
call fcn.00402bb9
pop ecx
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp - 8]
lea ebx, [ebp - 4]
mov eax, esi
call fcn.00402c03
cmp dword [ebp - 4], 0
pop ecx
je 0x402dbd
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 0x10
add eax, 0x2c
push eax
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
test esi, esi
je 0x402dbd
xor eax, eax
xor byte [eax + esi], 0x7a
inc eax
cmp eax, 0x10
jb 0x402db3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402e19
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x312]
push edi
push eax
mov word [ebp - 0x314], di
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x402e4f
mov esi, dword [esi + 4]
jmp 0x402e52
add esi, 4
cmp dword [0x545df4], 8
mov eax, dword [0x545de0]
jae 0x402e65
mov eax, 0x545de0
push esi
push eax
push 0x50c1b0
lea eax, [ebp - 0x314]
push 0x104
push eax
call fcn.0040a7d4
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20219
push edi
lea eax, [ebp - 0x314]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402eaa
mov eax, 0xe00c0012
jmp 0x402f27
mov esi, 0xfe
push esi
lea eax, [ebp - 0x10a]
push edi
push eax
mov dword [ebp - 8], edi
mov word [ebp - 0x10c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x50c1bc
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
jne 0x402f17
cmp dword [ebp - 8], 1
jne 0x402f17
mov ecx, dword [ebp + 8]
push str..Pipe_
call dword [0x4d95ec]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x402f1c
mov esi, 0xe00c001f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x403282
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x4032b4
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4032c0
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x40328b
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c0009
jmp 0x4032bb

Function at 0x4032c7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x4032f9
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403305
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x4032d0
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x403300
Function at 0x4036e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREkingsoftAntivirus
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40376b
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push str.ProgramPath
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40376b
cmp dword [ebp - 8], 1
jne 0x40376b
cmp dword [ebp - 0xc], 6
jb 0x40376b
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
movzx eax, word [esi + eax*2 - 2]
cmp ax, 0x5c
pop ecx
je 0x403768
cmp ax, 0x2f
je 0x403768
push 0x4da9e4
push esi
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], edi
je 0x403779
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x403a56
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x403a85
push dword [esp + 0xc]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x403a85
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x403a8b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x403b1a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x403ac2
cmp dword [ebp - 8], 2
jne 0x403b19
push esi
mov esi, dword [ebp + 0xc]
call fcn.00401314
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004015aa
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x403b00
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x403b11
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov edx, esi
call fcn.00401354
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x403ccc
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5438cc]
push ebx
push esi
mov esi, 0x5438cc
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push str.kxetraynormal.dat
xor ebx, ebx
push ebx
lea eax, [ebp - 0xc]
call fcn.00496e16
pop ecx
lea ecx, [ebp - 8]
call fcn.0042a029
pop ecx
lea edi, [ebp - 4]
call fcn.0042a0a0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401239
cmp dword [ebp + 8], ebx
je 0x403d7b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403dae
mov eax, dword [0x5438cc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, edi
lea edi, [ebp + 8]
call fcn.0042a0a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x50c270
mov ecx, edi
call fcn.0040a313
mov esi, dword [ebp + 8]
push esi
push dword [ebp - 4]
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 0x10
lea eax, [esi - 0x10]
call fcn.00401239
jmp 0x403dae
call fcn.00403dc2
test eax, eax
je 0x403d89
call fcn.00403c25
call fcn.00403e10
push ebx
push ebx
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
je 0x403dae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401239
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x4048de
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, 0x5438cc
mov esi, eax
mov ecx, edi
call fcn.0040121e
and word [ebp - 0x218], 0
push 0x206
lea eax, [ebp - 0x216]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [0x5438cc]
add esp, 0xc
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x5438cc]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
call fcn.00496fdb
mov edi, eax
push 0
lea eax, [ebp - 0xc]
call fcn.00496e16
push dword [edi]
push dword [eax]
lea eax, [ebp - 8]
push str._sressrc_suplive.svr
push eax
call fcn.0042a016
mov eax, dword [ebp - 0xc]
add esp, 0x14
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401239
lea eax, [ebp - 8]
lea edi, [ebp - 4]
call fcn.0042a0a0
push 0x4dab50
mov eax, edi
push eax
call fcn.00407371
push 0
push dword [ebp - 4]
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
jne 0x4049a7
mov eax, edi
lea edi, [ebp - 8]
call fcn.0042a0a0
push dword [ebp - 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
mov edi, 0x50edd8
push edi
push 0x50c724
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jle 0x4049dd
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040127c
mov eax, esi
call fcn.00407211
push edi
push 0x50c734
push esi
call fcn.00407090
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x404f96
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push str.ressrcchsuplive.svr
push eax
call fcn.0040506b
pop ecx
lea ecx, [ebp - 8]
call fcn.0042a029
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.00401239
mov esi, dword [ebp - 8]
push esi
push 0
push str.TryNo
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00401239
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x405191
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
mov byte [eax + ecx], al
inc eax
cmp eax, 0x100
jb 0x405199
push ebx
push esi
push edi
mov byte [ecx + 0x100], dl
mov byte [ecx + 0x101], dl
mov dword [ebp - 4], edx
xor esi, esi
movzx eax, dl
mov edx, dword [ebp - 4]
lea edi, [edx + ecx]
movzx edx, byte [eax + 0x50d254]
movzx ebx, byte [edi]
add edx, esi
add edx, ebx
and edx, 0x800000ff
jns 0x4051df
dec edx
or edx, 0xffffff00
inc edx
movzx esi, dl
mov dl, byte [edi]
mov bl, byte [esi + ecx]
inc eax
mov byte [edi], bl
mov byte [esi + ecx], dl
cdq
idiv dword [ebp + 8]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
jb 0x4051b8
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405202
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
mov dl, byte [ecx + 0x100]
mov al, byte [ecx + 0x101]
jbe 0x4052b8
push ebx
push esi
push edi
movzx esi, dl
movzx edi, al
jmp 0x405230
mov edi, dword [ebp - 0xc]
lea edx, [esi + 1]
and edx, 0x800000ff
jns 0x405243
dec edx
or edx, 0xffffff00
inc edx
movzx esi, dl
lea eax, [esi + ecx]
movzx ebx, byte [eax]
add ebx, edi
and ebx, 0x800000ff
jns 0x40525e
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edi, bl
mov byte [ebp - 2], bl
mov bl, byte [eax]
mov byte [ebp - 1], bl
mov bl, byte [edi + ecx]
mov byte [eax], bl
mov bl, byte [ebp - 1]
mov byte [edi + ecx], bl
mov ebx, dword [ebp - 8]
movzx eax, byte [eax]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
add edi, ebx
mov ebx, dword [ebp - 0xc]
movzx ebx, byte [ebx + ecx]
add ebx, eax
and ebx, 0x800000ff
jns 0x40529b
dec ebx
or ebx, 0xffffff00
inc ebx
movzx eax, bl
mov al, byte [eax + ecx]
xor byte [edi], al
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jb 0x40522d
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
mov byte [ecx + 0x100], dl
mov byte [ecx + 0x101], al
leave
ret
Function at 0x405592
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, str.6E8BF4D4_75FE_4e6e_8F22_E2AC2E900DF3
push edi
xor ebx, ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, ebx
je 0x4055bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x40561a
push esi
lea esi, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
call fcn.004050f9
push edi
push 1
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [0x5452dc], eax
jne 0x4055e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4055f5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405609
call esi
cmp dword [ebp - 0x18], ebx
mov esi, eax
je 0x405605
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
jmp 0x405619
cmp dword [ebp - 0x18], ebx
je 0x405617
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4069fd
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
xor esi, esi
push 0x208
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 4]
call fcn.00496e16
add esp, 0x10
lea eax, [ebp - 0x10]
call fcn.00496fdb
mov esi, dword [ebp - 4]
add esi, 0xfffffff0
mov eax, esi
call fcn.0042a0e1
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, esi
call fcn.0042a0e1
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, esi
call fcn.0042a0e1
add eax, 0x10
mov dword [ebp - 4], eax
push str.updatekavindexkav.txt.old.txt
lea eax, [ebp - 0xc]
push eax
call fcn.00407371
push dword [ebp - 0x10]
lea ecx, [ebp - 8]
push str.ressrc_skismain.ini
call fcn.0040a313
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
push str.ressrc_suplive.svr
call fcn.0040a313
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
push dword [ebp - 0xc]
call edi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
je 0x406b19
push dword [ebp - 8]
call edi
test eax, eax
je 0x406b19
push dword [ebp - 0xc]
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0x50edd8
push 0x50d388
push 0x50d38c
call ebx
test eax, eax
jbe 0x406b19
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp eax, 0xa
pop ecx
jne 0x406b19
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x14]
call fcn.004014ce
push dword [ebp - 8]
mov edi, dword [ebp - 0x14]
push edi
push 0x50d398
push str.infos
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [edi - 0x10]
call fcn.00401239
push dword [ebp - 4]
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0x50edd8
mov edi, 0x50c724
push edi
push str.Common
call ebx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
test eax, eax
pop ecx
je 0x406b62
push dword [ebp - 8]
lea eax, [ebp - 0x220]
push eax
push edi
push str.DisplayVersions
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401239
mov eax, esi
call fcn.00401239
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x406ee9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5438cc]
push esi
push edi
mov ecx, 0x5438cc
call dword [eax + 0xc]
add eax, 0x10
push str.SOFTWAREKingsoft_shoujizhushou
lea edi, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.004a88a0
mov eax, edi
pop ecx
lea edi, [ebp - 4]
call fcn.0042a0a0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x406f65
push str.appdataphonecfg.dat
mov eax, edi
push eax
call fcn.00407371
mov esi, dword [ebp - 4]
push esi
push 1
push str.firstrun
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
je 0x406f65
push 1
push str.dubaenable1st
call fcn.00404acc
pop ecx
pop ecx
lea eax, [esi - 0x10]
call fcn.00401239
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x406f8b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
inc ebx
push str.data_floatwinsetting.ini
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
call fcn.00496f4f
lea ecx, [ebp - 4]
call fcn.0042a029
mov eax, dword [ebp - 0xc]
pop ecx
add eax, 0xfffffff0
call fcn.00401239
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40702b
mov eax, dword [0x5438cc]
push esi
push edi
mov ecx, 0x5438cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov esi, str.kxetray_floatwin_show
push esi
call fcn.00403696
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push 0x50c270
push eax
call fcn.0042a016
mov edi, dword [ebp - 0xc]
add esp, 0x14
push dword [ebp - 4]
push edi
push esi
push str.common
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [edi - 0x10]
call fcn.00401239
pop edi
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401239
mov eax, ebx
pop ebx
leave
ret
xor ebx, ebx
jmp 0x40701b
Function at 0x40874b
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x543f94]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x408768
mov ebp, dword [eax + 4]
jmp 0x40876a
xor ebp, ebp
cmp ebp, esi
jne 0x40877a
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x40879f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x40879f
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40879f
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ecx
mov eax, esp
mov dword [edi + 0x378], esi
push ebp
mov ebx, edi
mov dword [eax], esi
call fcn.0040908f
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x4087ca
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4088af
mov edx, eax
call fcn.0042429b
mov dword [esp + 0x20], eax
lea ebx, [edi + 4]
push ebx
mov eax, ebp
call fcn.0042414e
cmp dword [edi + 0x36c], esi
je 0x40885a
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x40883a
push 1
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x40885a
push esi
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.004ae26a
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx]
mov dword [edi + 0x378], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x40889b
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x40889b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x40889b
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0042429b
push dword [ebx]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret