joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8626
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
mov ebx, 0xf013f
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x4b86fe
lea eax, [ebp - 8]
push eax
push ebx
push edi
push str.SoftWare
push dword [ebp - 4]
call esi
test eax, eax
je 0x4b867f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b86fe
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x4b86a3
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b86f4
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4b86c1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b86ef
push dword [ebp + 0x18]
call fcn.004d5735
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x18]
push 1
push edi
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b8705
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov ebx, 0xf013f
mov dword [ebp - 0xc], edi
push ebx
push edi
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b87c2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4b8763
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4b87c1
push edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x4b8789
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x4b87bf
push dword [ebp + 0x14]
call fcn.004d5735
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b8eac
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
xor edi, edi
push edi
push eax
call fcn.004c42d0
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004d2c20
push 0x3e8
lea eax, [ebp - 0xc10]
push edi
push eax
call fcn.004c42d0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sgswb.log
push eax
call fcn.004b7196
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.004c42d0
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004c42d0
add esp, 0x48
lea eax, [ebp - 0x20c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004c6092
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x4b9083
lea eax, [ebp - 0x20c]
push eax
call fcn.004d5735
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004d2c20
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.004b7196
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc10]
push 0x1f3
push 0x1f4
push eax
call fcn.004b9094
xor eax, eax
add esp, 0x38
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call esi
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x518ea0
push eax
cmovne edi, ebx
call fcn.004cc581
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4b9083
test edi, edi
jne 0x4b9029
push esi
push 2
lea eax, [ebp - 0xc18]
mov dword [ebp - 0xc18], 0xfeff
push ebx
push eax
call fcn.004cb742
add esp, 0x10
lea eax, [ebp - 0xc10]
push eax
call fcn.004d5735
push esi
add eax, eax
push eax
lea eax, [ebp - 0xc10]
push ebx
push eax
call fcn.004cb742
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xd
push ebx
push eax
call fcn.004cb742
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xa
push ebx
push eax
call fcn.004cb742
push esi
call fcn.004cb1af
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004add49
mov esp, ebp
pop ebp
ret

Function at 0x4b95f8
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x24]
push eax
xor eax, eax
push eax
push esi
push 0x4b95e6
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
pop esi
test eax, eax
je 0x4b9626
cmp eax, 0xffffffff
je 0x4b9626
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret

Function at 0x4ba334
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4bb569
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x516ebb
call fcn.004ae708
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x24c], edi
push esi
push eax
call fcn.004c42d0
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x19
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x4bb660
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x4bb5e5
lea eax, [ebp - 0x218]
push eax
call fcn.004d5735
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00498dc0
and dword [ebp - 4], 0
push 0x561ba4
call fcn.004d5735
pop ecx
push eax
push 0x561ba4
lea ecx, [ebp - 0x230]
call fcn.0049db90
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.004bb227
mov edi, eax
lea ecx, [ebp - 0x230]
push 0
push 1
test edi, edi
je 0x4bb651
call fcn.00498c10
mov eax, edi
jmp 0x4bb712
or dword [ebp - 4], 0xffffffff
call fcn.00498c10
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x4bb710
and dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
je 0x4bb6a7
lea eax, [ebp - 0x218]
push eax
call fcn.004d5735
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00498dc0
mov esi, 0x561ba4
mov dword [ebp - 4], 1
push esi
call fcn.004d5735
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.0049db90
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.004bb227
push 0
lea ecx, [ebp - 0x248]
mov esi, eax
push 1
call fcn.00498c10
test esi, esi
je 0x4bb710
mov eax, esi
jmp 0x4bb712
xor eax, eax
call fcn.004ae6c3
ret 4
Function at 0x4bb71a
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x428], eax
xor edi, edi
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
push 9
push edi
push 0x51b1b0
push reloc.WS2_32.dll_accept
mov esi, edi
mov dword [ebp - 0x41c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4bb76d
xor eax, eax
jmp 0x4bb86c
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004c42d0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, edi
push 0x104
push eax
push edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4bb859
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4bb83f
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.004c42d0
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bb837
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.004c354d
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call edi
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4bb7a9
push dword [ebp - 0x418]
call edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004add49
mov esp, ebp
pop ebp
ret 4
Function at 0x4bc43e
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 [0x56b0f0]
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.004c42d0
push ebx
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004c42d0
push ebx
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.004c42d0
push ebx
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.004c42d0
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004c42d0
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004c42d0
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.004d56a2
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bc4f7
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.004d5713
lea eax, [ebp - 0x20c]
push str.wnsoft.ini
push eax
call fcn.004d56a2
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 0x561700
push str.OnlyIdentifier1
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x561700
push str.OnlyIdentifier2
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x561700
push str.OnlyIdentifier3
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x561700
push str.OnlyIdentifier4
push ebx
call esi
lea eax, [ebp - 0x61c]
push eax
call fcn.004d5735
mov esi, eax
lea eax, [ebp - 0x824]
push eax
call fcn.004d5735
mov dword [ebp - 0xc38], eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.004d5735
mov ebx, eax
lea eax, [ebp - 0xc34]
push eax
call fcn.004d5735
add esp, 0x10
test esi, esi
je 0x4bc64d
cmp dword [ebp - 0xc38], 0
je 0x4bc64d
test ebx, ebx
je 0x4bc64d
test eax, eax
je 0x4bc64d
lea eax, [ebp - 0x61c]
push eax
push dword [edi]
call fcn.004d5713
lea eax, [ebp - 0x824]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
call fcn.004d5713
lea eax, [ebp - 0xa2c]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
call fcn.004d5713
lea eax, [ebp - 0xc34]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
call fcn.004d5713
xor eax, eax
add esp, 0x20
inc eax
jmp 0x4bc64f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004add49
mov esp, ebp
pop ebp
ret
Function at 0x4bca9e
Capabilities:
Get mac address on windows

Disassembly:
push 0x48
mov eax, 0x51703d
call fcn.004ae708
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x48], 4
call fcn.004d5735
push eax
push 0
push ebx
call fcn.004c42d0
push 0x288
call fcn.004cc3f4
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4bca91
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4bc95d
push esi
call fcn.004cba3d
push dword [ebp - 0x48]
call fcn.004cc3f4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4bca91
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4bca8a
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 0x4bca5b
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.00499d90
lea eax, [edi + 0x10c]
push eax
call fcn.005130b3
push 0x51b5e8
push eax
call fcn.004c61f0
add esp, 0x2c
test eax, eax
jne 0x4bca99
cmp dword [edi + 0x1a0], 0x47
je 0x4bca99
and dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp word [ebp - 0x2c], ax
je 0x4bca1e
lea eax, [ebp - 0x2c]
push eax
call fcn.004d5735
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00498dc0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
call fcn.00498840
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00498c10
mov edi, dword [edi]
test edi, edi
jne 0x4bc993
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sub eax, ecx
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4bca82
push 0
lea ecx, [ebp - 0x54]
call fcn.004bd34a
cmp dword [eax + 0x14], 8
jb 0x4bca79
mov eax, dword [eax]
push eax
push ebx
call fcn.004d5713
pop ecx
pop ecx
lea ecx, [ebp - 0x54]
call fcn.004987e0
push esi
call fcn.004cba3d
pop ecx
call fcn.004ae6c3
ret 4
lea eax, [ebp - 0x2c]
jmp 0x4bca79
push ebp
mov ebp, esp
lea ecx, [ebp + 0xb]
pop ebp
jmp 0x4bc8f8
Function at 0x4bcad1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x56b0f0]
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.004c42d0
push esi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004c42d0
push esi
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004c42d0
push esi
lea eax, [ebp - 0xa2c]
push ebx
push eax
call fcn.004c42d0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004c42d0
lea eax, [ebp - 0x20c]
push str.SOFTWARE_
push eax
call fcn.004d5713
add esp, 0x44
lea eax, [ebp - 0x20c]
push str.MySoft
push eax
call fcn.004d56a2
lea eax, [ebp - 0x20c]
push 0x561ba4
push eax
call fcn.004d56a2
add esp, 0x10
lea eax, [ebp - 0xa34]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bcc1a
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.004d5735
mov esi, eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004d5735
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x824]
push eax
call fcn.004d5735
mov ebx, eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.004d5735
add esp, 0x10
test esi, esi
je 0x4bccca
cmp dword [ebp - 0xa30], 0
je 0x4bccca
test ebx, ebx
je 0x4bccca
test eax, eax
je 0x4bccca
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call fcn.004d5713
lea eax, [ebp - 0x61c]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
call fcn.004d5713
lea eax, [ebp - 0x824]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
call fcn.004d5713
lea eax, [ebp - 0xa2c]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
call fcn.004d5713
xor eax, eax
add esp, 0x20
inc eax
jmp 0x4bcccc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004add49
mov esp, ebp
pop ebp
ret
Function at 0x4bccdd
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x56b0f0]
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.004c42d0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x51b600
call fcn.004d5735
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004d6370
push edi
lea eax, [ebp - 0x630]
push ebx
push eax
call fcn.004c42d0
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.004c42d0
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 0x4bcdc9
push dword [ebp - 0x634]
push str._08X
push esi
call fcn.00499d90
add esp, 0xc
jmp 0x4bcdd6
push 0x561700
push esi
call fcn.004d5713
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004add49
mov esp, ebp
pop ebp
ret 4
Function at 0x4bcf95
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x56b0f0]
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.004c42d0
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004c42d0
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.004d56a2
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
pop ecx
pop ecx
push eax
call esi
test eax, eax
jne 0x4bd018
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.004d5713
lea eax, [ebp - 0x414]
push str.wnsoft.ini
push eax
call fcn.004d56a2
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x4bd0ad
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.004add49
mov esp, ebp
pop ebp
ret

Function at 0x4bd256
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 ebx, 0xf003f
push eax
push ebx
xor esi, esi
mov edi, ecx
push esi
push str.software
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bd311
push esi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push esi
push esi
push esi
push str.ShiQiang
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4bd311
mov ebx, 0x104
push ebx
push dword [edi]
push 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.OnlyIdentifier1
push dword [ebp - 4]
call esi
mov eax, dword [edi]
push ebx
add eax, 0x208
push eax
push 1
push 0
push str.OnlyIdentifier2
push dword [ebp - 4]
call esi
mov eax, dword [edi]
push ebx
add eax, 0x410
push eax
push 1
push 0
push str.OnlyIdentifier3
push dword [ebp - 4]
call esi
mov eax, dword [edi]
push ebx
add eax, 0x618
push eax
push 1
push 0
push str.OnlyIdentifier4
push dword [ebp - 4]
call esi
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