joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc893
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.004682f0
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x61c]
push edi
xor esi, esi
push esi
push eax
call fcn.004e37a0
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004f3bbf
push 0x800
lea eax, [ebp - 0x1024]
push esi
push eax
call fcn.004e37a0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sxzq.log
push eax
call fcn.004cc616
push edi
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004e37a0
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004e37a0
add esp, 0x48
lea eax, [ebp - 0x20c]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004e2ab4
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
je 0x4ccac0
lea eax, [ebp - 0x20c]
push eax
call fcn.004f3a59
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004f3bbf
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.004cc616
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1024]
push 0x3ff
push 0x400
push eax
call fcn.00404e80
push esi
call fcn.004eba4a
mov dword [ebp - 0x2034], eax
lea eax, [ebp - 0x2034]
push eax
mov dword [ebp - 0x2030], edx
call fcn.004f542d
add esp, 0x40
lea ecx, [ebp - 0x1024]
push ecx
push dword [eax]
mov ecx, dword [eax + 0x10]
push dword [eax + 4]
inc ecx
push dword [eax + 8]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push ecx
add eax, 0x76c
push eax
lea eax, [ebp - 0x2024]
push str.__d__d__d__d__d__d_:_s
push eax
call fcn.004cc634
xor eax, eax
add esp, 0x24
mov word [ebp - 0x826], ax
lea eax, [ebp - 0x414]
push eax
call edi
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x6250a0
push eax
cmovne esi, ebx
call fcn.004eaa0b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ccac0
test esi, esi
jne 0x4cca66
push edi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xfeff
push ebx
push eax
call fcn.004eb7d1
add esp, 0x10
lea eax, [ebp - 0x2024]
push eax
call fcn.004f3a59
push edi
add eax, eax
push eax
lea eax, [ebp - 0x2024]
push ebx
push eax
call fcn.004eb7d1
push edi
push 2
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2028], 0xd
push ebx
push eax
call fcn.004eb7d1
push edi
push 2
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2028], 0xa
push ebx
push eax
call fcn.004eb7d1
push edi
call fcn.004ea7de
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004682d0
mov esp, ebp
pop ebp
ret
Function at 0x4ce493
Capabilities:
Check if file exists
Move file

Disassembly:
push 0x2a8
mov eax, 0x5453b6
call fcn.00506b61
push 0x6b
pop ecx
mov esi, str.jLnElcYz5GDljG8DcedZYWITUyKYcGZiOY4dwbl2eKWc7TA7ZoGF9TlDYnYjO5FQNBlA8JipumxP7VLpkkT6cWo3RPqB8UQ0wojf8Kl7Y8MrzOZON6H0E2xhFm8SGbXxwfpjIDOGEiGI8IClJQqLUbOsEFfk7VF71df3wHZVKZDFjw125OrZxs3lNwpriLUzB8uYhDhYVsDLfKwqtd3DvA7WcWzaMVraKMPBxogmH90fw6Jd7TBJhzKkn27ZMhuZuifQcMAizBc2I2Ep8ZyLbMYbomZbwTmG00UWsTGwQxEhgk1mQ87WTBW57pk7LM1Jz0XsLeq3hWAsORyC9zX40UuA1auTvdyo0Ks5eXEwAAerGRsL7iFVINgl08NSni8ELUKZTGQ618NFFe0frJ3NJoCfGsUnpG2nZfPxMocMOb58ht
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x290]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push 0x33
pop ecx
mov dword [ebp - 0x2b4], eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2ac], eax
movsb byte es:[edi], byte [esi]
mov esi, str.efLmeKwfnRJUTyz2XgLn0qc4uGw6SAWqbHy8qDpHcY9yxVtkaCKwUtwB3lQGpGXCKOWh2F12jVkddhNwE3VKDBDICJd5HQpuidHkb9d9GzyjDi5wqUqejcamymQGBQpKw4rFJIr3nQSFqusHOrdMUOgBVtajPzvd45Y4b6Fw77rTKfBtsQ24IGPzr4LKZpAB5ujhalfwUZi1sg
lea edi, [ebp - 0xe0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x290]
push eax
call fcn.00405820
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00407e30
push 0
push 1
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0
call fcn.0046d37e
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00405820
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00407e30
push 0
push 1
lea ecx, [ebp - 0x2a8]
call fcn.0046d37e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ce56a
push 5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x2b4]
call fcn.0046d3d0
call fcn.00506b0b
ret
Function at 0x4ce807
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0x820
mov eax, 0x545471
call fcn.00506b61
push 0x3c
pop ecx
mov esi, str.ZTSg7jushywIZrgGPjPWvGoGTov7Sg0Y81L2s94M5yV8heJmK3jdzcZu2vpQv0norYsNDGRLmjE902sZoKPniQBVovRmcFmp2tEYh88KYzrQm97VdI4F8ceV95SlCRDxvX9ZwUmJwtZPSUeVhmSagEXE5uQhnoZHmNT7UiHFaYshIYks7ZldUSAiijrqMloQCIQR16oi4MkLoW44tGCIjwRn2jQ7w5q0FaIt68q6PqeM2TnaFz
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x3f4]
mov ebx, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
push 0x39
pop ecx
mov dword [ebp - 0x820], eax
xor eax, eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x824], eax
movsb byte es:[edi], byte [esi]
mov esi, str.WboYCwYJhzLUyGIA0jmpLbPUKOnPBCrZGQyuXe82DD64YNxaV0ZSN2V0K7BnM78j2eEvmuj30qIzv79OfdVuQWLQNxGV3QczFpBrsjiknXW00V5FLuOQCeIZV0sublJD8H7rJbXWzWjuGIibjMVYvm4LYYsQRSONLRhtVYP9wC3jE3YYKHwuc8g8Te3e3KMilseVMmVf8Btr7wMUTwHUJFiAq4zfzGE4ALoD
lea edi, [ebp - 0x300]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x81c]
lea eax, [ebp - 0x3f4]
push eax
call fcn.00405820
lea eax, [ebp - 0x81c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x82c]
call fcn.00407e30
push 0
push 1
lea ecx, [ebp - 0x81c]
mov byte [ebp - 4], 0
call fcn.0046d37e
lea eax, [ebp - 0x300]
push eax
lea ecx, [ebp - 0x81c]
call fcn.00405820
lea eax, [ebp - 0x81c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x82c]
call fcn.00407e30
xor esi, esi
lea ecx, [ebp - 0x81c]
push esi
push 1
call fcn.0046d37e
mov edi, 0x208
lea eax, [ebp - 0x804]
push edi
push esi
push eax
call fcn.004e37a0
push edi
lea eax, [ebp - 0x5fc]
push esi
push eax
call fcn.004e37a0
mov esi, dword [ebp - 0x820]
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.004f3a37
lea eax, [ebp - 0x5fc]
push ebx
push eax
call fcn.004f3a37
lea eax, [ebp - 0x804]
push eax
call fcn.004ee398
lea eax, [ebp - 0x5fc]
push eax
call fcn.004ee398
lea eax, [ebp - 0x5fc]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.004f39f7
add esp, 0x38
test eax, eax
je 0x4cea06
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cea06
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e37a0
add esp, 0xc
lea eax, [ebp - 0x218]
test esi, esi
jne 0x4ce98f
push ebx
push str._s.bak
push eax
call fcn.00407eb0
add esp, 0xc
jmp 0x4ce99f
push esi
push ebx
push str._s.bak_d
push eax
call fcn.00407eb0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ce9bd
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.004eb829
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
lea eax, [ebp - 0x218]
push 0
push eax
jne 0x4cea04
call edi
cmp esi, 0xa
jge 0x4cea06
inc esi
jmp 0x4ce95e
call edi
lea ecx, [ebp - 0x82c]
call fcn.0046d3d0
call fcn.00506b0b
ret
Function at 0x4cea17
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x4cc
mov eax, 0x5454ba
call fcn.00506b61
push 0x58
pop ecx
mov esi, str.8NSBBwKeEnnm0Awj26Utc1XlZSEJKENORp7hV8a0rUWUTMXmv9cvUZQhYpSLieq4aQP63d7r6GtFLHtYQHGQqeksKj9WBybiNIiCuSvu2fjSyhj0j4azxCCH1NqrouGQwt8m31sgeFkrMGn30IRy3tBAJFojRgqdDiAzCy8Myu4YSPJc0lHEvqwoDQ2qEwFZYJgu5fv3bXaVa0p5TPz7VtPqVNq3pedQkWG865cyxgusvAPtXACp9bxNX0v7GTg5SsJoFCdvCJUd9jkVAkmEQJSj18eAdU3HlRVzytaYoHNjHS4WmHuAKDxNWky3BSubl5Abs5WnklzDKVp2mqw0rcKmzITlc8L4f
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x4b4]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push 0x4d
pop ecx
mov dword [ebp - 0x4d8], eax
movsw word es:[edi], word [esi]
mov esi, str.AMc19GlzLDjal26RbNS1T5bxHxwWrATQDXatdIqNhGXJSJqj6oKvuBv6n2GZ8ia4kJOuggaKjrsyrfyPjk5Dd8cWl4a6SBq0bZcVtwJU7pFJrypH0fKRXp9QWOMPTeLAkKchAOA8WahG9YAzL2UCsxAKKRMLn0RLCHEtpkLfxNCPNpxd5GXb4EuLr3byDN8pbEnbuQh4D57AQrxIl0hQVr962Z397K7aBzRn76YbGt52Y6QQLs8oelAdNWKOpqwq4qGGNHU5EKvoPL5VpZOivjKjjt9WKVD7MKFOYDy3peSawH5XmI2n
mov dword [ebp - 0x4d4], eax
lea edi, [ebp - 0x350]
mov dword [ebp - 0x4d0], eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x4cc]
lea eax, [ebp - 0x4b4]
push eax
call fcn.00405820
lea eax, [ebp - 0x4cc]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x4d8]
call fcn.00407e30
push 0
push 1
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 0
call fcn.0046d37e
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.00405820
lea eax, [ebp - 0x4cc]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x4d8]
call fcn.00407e30
push 0
push 1
lea ecx, [ebp - 0x4cc]
call fcn.0046d37e
push str..del
push ebx
call fcn.004e2b55
pop ecx
pop ecx
test eax, eax
je 0x4ceaf0
push 5
push 0
push ebx
jmp 0x4ceb77
xor esi, esi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e37a0
add esp, 0xc
lea eax, [ebp - 0x218]
test esi, esi
jne 0x4ceb23
push ebx
push str._s.del
push eax
call fcn.00407eb0
add esp, 0xc
jmp 0x4ceb33
push esi
push ebx
push str._s.del_d
push eax
call fcn.00407eb0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ceb5d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4ceb5d
cmp esi, 0xa
jge 0x4ceb7d
inc esi
jmp 0x4ceaf2
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.004eb829
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x4d8]
call fcn.0046d3d0
call fcn.00506b0b
ret

Function at 0x4ceb8e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4cebd1
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ced3f
Capabilities:
Check if file exists
Create directory
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x61c]
push ebx
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.004e37a0
push ebx
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004e37a0
push ebx
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.004e37a0
push ebx
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.004e37a0
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004e37a0
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004e37a0
add esp, 0x48
lea eax, [ebp - 0x414]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x414]
push str._shiqiang_
push eax
call fcn.004f39c6
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cedf8
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004f3a37
lea eax, [ebp - 0x20c]
push str.wnsoft.ini
push eax
call fcn.004f39c6
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
add esp, 0x10
mov ebx, str.Globals
push eax
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x63d8a0
push str.OnlyIdentifier1
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x63d8a0
push str.OnlyIdentifier2
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x63d8a0
push str.OnlyIdentifier3
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x63d8a0
push str.OnlyIdentifier4
push ebx
call esi
lea eax, [ebp - 0x61c]
push eax
call fcn.004f3a59
mov esi, eax
lea eax, [ebp - 0x824]
push eax
call fcn.004f3a59
mov dword [ebp - 0xc38], eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.004f3a59
mov ebx, eax
lea eax, [ebp - 0xc34]
push eax
call fcn.004f3a59
add esp, 0x10
test esi, esi
je 0x4cef4e
cmp dword [ebp - 0xc38], 0
je 0x4cef4e
test ebx, ebx
je 0x4cef4e
test eax, eax
je 0x4cef4e
lea eax, [ebp - 0x61c]
push eax
push dword [edi]
call fcn.004f3a37
lea eax, [ebp - 0x824]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
call fcn.004f3a37
lea eax, [ebp - 0xa2c]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
call fcn.004f3a37
lea eax, [ebp - 0xc34]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
call fcn.004f3a37
xor eax, eax
add esp, 0x20
inc eax
jmp 0x4cef50
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004682d0
mov esp, ebp
pop ebp
ret
Function at 0x4cf39f
Capabilities:
Get mac address on windows

Disassembly:
push 0x48
mov eax, 0x545525
call fcn.00506b61
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x48], 4
call fcn.004f3a59
push eax
push 0
push ebx
call fcn.004e37a0
push 0x288
call fcn.004ea5cb
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4cf392
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4cf25e
push esi
call fcn.004ea5c6
push dword [ebp - 0x48]
call fcn.004ea5cb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4cf392
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4cf38b
and dword [ebp - 0x4c], eax
lea edi, [ebp - 0x2a]
push 6
pop ecx
mov word [ebp - 0x2c], ax
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
and dword [ebp - 4], ecx
mov edi, esi
test esi, esi
je 0x4cf35c
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
lea eax, [ebp - 0x2c]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.00407eb0
lea eax, [edi + 0x10c]
push eax
call fcn.00530684
push 0x625e44
push eax
call fcn.004e5b40
add esp, 0x2c
test eax, eax
jne 0x4cf39a
cmp dword [edi + 0x1a0], 0x47
je 0x4cf39a
and dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp word [ebp - 0x2c], ax
je 0x4cf31f
lea eax, [ebp - 0x2c]
push eax
call fcn.004f3a59
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402650
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
call fcn.0041bae0
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00402590
mov edi, dword [edi]
test edi, edi
jne 0x4cf294
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sub eax, ecx
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4cf383
push 0
lea ecx, [ebp - 0x54]
call fcn.004cfc8e
cmp dword [eax + 0x14], 8
jb 0x4cf37a
mov eax, dword [eax]
push eax
push ebx
call fcn.004f3a37
pop ecx
pop ecx
lea ecx, [ebp - 0x54]
call fcn.004c3153
push esi
call fcn.004ea5c6
pop ecx
call fcn.00506b0b
ret 4
lea eax, [ebp - 0x2c]
jmp 0x4cf37a
push ebp
mov ebp, esp
lea ecx, [ebp + 0xb]
pop ebp
jmp 0x4cf1f9
Function at 0x4cf3d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x414]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.004e37a0
push esi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004e37a0
push esi
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004e37a0
push esi
lea eax, [ebp - 0xa2c]
push ebx
push eax
call fcn.004e37a0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004e37a0
lea eax, [ebp - 0x20c]
push 0x625f84
push eax
call fcn.004f3a37
add esp, 0x44
lea eax, [ebp - 0x20c]
push 0x625f98
push eax
call fcn.004f39c6
lea eax, [ebp - 0x20c]
push 0x63d88c
push eax
call fcn.004f39c6
add esp, 0x10
lea eax, [ebp - 0xa34]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cf51b
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xa30], 0x104
push eax
push ebx
push ebx
push str.OnlyIdentifier1
push dword [ebp - 0xa34]
call esi
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x61c]
push eax
push ebx
push ebx
push str.OnlyIdentifier2
push dword [ebp - 0xa34]
call esi
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x824]
push eax
push ebx
push ebx
push str.OnlyIdentifier3
push dword [ebp - 0xa34]
call esi
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa2c]
push eax
push ebx
push ebx
push str.OnlyIdentifier4
push dword [ebp - 0xa34]
call esi
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x414]
push eax
call fcn.004f3a59
mov esi, eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004f3a59
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x824]
push eax
call fcn.004f3a59
mov ebx, eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.004f3a59
add esp, 0x10
test esi, esi
je 0x4cf5cb
cmp dword [ebp - 0xa30], 0
je 0x4cf5cb
test ebx, ebx
je 0x4cf5cb
test eax, eax
je 0x4cf5cb
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call fcn.004f3a37
lea eax, [ebp - 0x61c]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
call fcn.004f3a37
lea eax, [ebp - 0x824]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
call fcn.004f3a37
lea eax, [ebp - 0xa2c]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
call fcn.004f3a37
xor eax, eax
add esp, 0x20
inc eax
jmp 0x4cf5cd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004682d0
mov esp, ebp
pop ebp
ret
Function at 0x4cf5de
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, dword [ebp + 8]
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x220]
mov edi, 0x208
push edi
push ebx
push eax
call fcn.004e37a0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x63d890
call fcn.004f3a59
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004f3a74
push edi
lea eax, [ebp - 0x630]
push ebx
push eax
call fcn.004e37a0
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.004e37a0
add esp, 0x28
mov dword [ebp - 0x634], ebx
mov ecx, 0x104
mov dword [ebp - 0x63c], ebx
lea eax, [ebp - 0x428]
mov dword [ebp - 0x638], ebx
push ecx
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x634]
push eax
push ecx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4cf6ca
push dword [ebp - 0x634]
push str._08X
push esi
call fcn.00407eb0
add esp, 0xc
jmp 0x4cf6d7
push 0x63d8a0
push esi
call fcn.004f3a37
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004682d0
mov esp, ebp
pop ebp
ret 4
Function at 0x4cf896
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x657114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.004e37a0
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004e37a0
add esp, 0x18
lea eax, [ebp - 0x20c]
push ebx
push 0x2b
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push str._shiqiang_
push eax
call fcn.004f39c6
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
pop ecx
pop ecx
push eax
call esi
test eax, eax
jne 0x4cf919
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004f3a37
lea eax, [ebp - 0x414]
push str.wnsoft.ini
push eax
call fcn.004f39c6
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x4cf9ae
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x414]
push eax
push dword [edi]
mov ebx, str.Globals
push str.OnlyIdentifier1
push ebx
call esi
lea eax, [ebp - 0x414]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
push str.OnlyIdentifier2
push ebx
call esi
lea eax, [ebp - 0x414]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
push str.OnlyIdentifier3
push ebx
call esi
lea eax, [ebp - 0x414]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
push str.OnlyIdentifier4
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004682d0
mov esp, ebp
pop ebp
ret
Function at 0x4cfb57
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov esi, 0xf003f
push eax
push esi
xor edi, edi
mov ebx, ecx
push edi
push 0x625fc8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cfc55
push edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push edi
push edi
push edi
push str.ShiQiang
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4cfc55
push dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
lea eax, [eax*2 + 2]
push eax
push dword [ebx]
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.OnlyIdentifier1
push dword [ebp - 4]
call edi
mov eax, dword [ebx]
add eax, 0x208
push eax
call esi
lea eax, [eax*2 + 2]
push eax
mov eax, dword [ebx]
add eax, 0x208
push eax
push 1
push 0
push str.OnlyIdentifier2
push dword [ebp - 4]
call edi
mov eax, dword [ebx]
add eax, 0x410
push eax
call esi
lea eax, [eax*2 + 2]
push eax
mov eax, dword [ebx]
add eax, 0x410
push eax
push 1
push 0
push str.OnlyIdentifier3
push dword [ebp - 4]
call edi
mov eax, dword [ebx]
add eax, 0x618
push eax
call esi
lea eax, [eax*2 + 2]
push eax
mov eax, dword [ebx]
add eax, 0x618
push eax
push 1
push 0
push str.OnlyIdentifier4
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret