joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e2388
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0x83c
mov eax, 0x52350c
call fcn.00519636
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.004f1300
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
je 0x4e23f3
lea eax, [ebp - 0x218]
push eax
call fcn.00508479
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.0041b090
mov dword [ebp - 4], ebx
mov ebx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push ebx
call fcn.00508479
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.0041c290
xor ebx, ebx
cmp word [esi], bx
jne 0x4e242d
mov eax, ebx
jmp 0x4e2434
push esi
call fcn.00508479
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.0041c290
mov esi, str..lnk
push esi
call fcn.00508479
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.0041c290
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x4e2542
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.004f1300
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.004f1300
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00508457
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004e0dc5
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004f1300
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.00508479
pop ecx
test eax, eax
jne 0x4e2530
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00508457
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x4e2542
xor esi, esi
inc esi
jmp 0x4e2544
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.0041c110
mov eax, esi
call fcn.005195e0
ret 4
Function at 0x4e255c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5793bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x58587c]
test al, al
jne 0x4e25f5
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004f1300
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4e25ec
lea eax, [ebp - 0x20c]
push eax
call fcn.00508642
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.004f1cc3
pop ecx
pop ecx
test eax, eax
jne 0x4e25e4
lea eax, [ebp - 0x20c]
push str.cocuments_and_settingslocalService
push eax
call fcn.004f1cc3
pop ecx
pop ecx
test eax, eax
je 0x4e25ec
mov byte [0x58587c], bl
jmp 0x4e25f2
mov bl, byte [0x58587c]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042774d
mov esp, ebp
pop ebp
ret
Function at 0x4e3114
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5793bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.004f1300
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4e317f
lea eax, [ebp - 0x20c]
push 0x52623c
push eax
call fcn.005083e6
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004e2603
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042774d
mov esp, ebp
pop ebp
ret 4

Function at 0x4e3dd0
Capabilities:
Check if file exists
Delete file
Download url
Receive data

Disassembly:
push 0x20c
mov eax, 0x523961
call fcn.00519636
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
mov dword [ebp - 4], ebx
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e3e0f
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004f1300
push 0x98967f
push 0xf4240
call fcn.004da14e
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x4e3e3b
mov esi, dword [esi]
push eax
push esi
lea eax, [ebp - 0x218]
push str._s__d
push eax
call fcn.0041c3c0
add esp, 0x10
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
cmovae eax, dword [ebp + 0xc]
push ebx
push ebx
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x4e3e88
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e3e88
mov bl, 1
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.0041c110
mov al, bl
call fcn.005195e0
ret 0x1c
Function at 0x4e403b
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push 0x840
mov eax, 0x5239e9
call fcn.00519636
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x830]
mov esi, dword [ebp + 0xc]
mov ebx, 0x208
and dword [ebp - 0x84c], 0
push ebx
push 0
push eax
call fcn.004f1300
lea eax, [ebp - 0x848]
push esi
push eax
call fcn.004dad52
xor esi, esi
lea ecx, [ebp - 0x830]
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
push ecx
cmovae eax, dword [ebp - 0x848]
push eax
mov dword [ebp - 4], esi
call fcn.004d9c82
push ebx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004f1300
push ebx
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.004f1300
push ebx
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.004f1300
add esp, 0x40
lea eax, [ebp - 0x420]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00508457
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005083e6
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e413a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.0041e330
push 0
push 1
lea ecx, [ebp - 0x848]
call fcn.0041c110
mov eax, edi
call fcn.005195e0
ret 8
Function at 0x4e634e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5793bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x4e63e3
lea ecx, [eax + 0x80]
add eax, 0x100
dec edi
mov dword [ebp - 0x14], ecx
shr edi, 3
inc edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov edx, ebx
mov ecx, esi
push 8
sub edx, esi
pop edi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x4e6393
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.004f0010
push esi
push esi
push dword [ebp - 0x14]
call fcn.004e5632
mov edx, dword [ebp - 0x18]
add esp, 0x18
xor ecx, ecx
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x4e63bc
push 8
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.004f0010
add esp, 0xc
add ebx, 8
add esi, 8
sub dword [ebp - 0x10], 1
jne 0x4e638a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042774d
mov esp, ebp
pop ebp
ret
Function at 0x4e6448
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4e645c
xor eax, eax
jmp 0x4e659a
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x4e6485
dec edx
sub edx, 1
jne 0x4e6487
add eax, 2
jmp 0x4e6487
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x4e649a
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x4e6599
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x4e6530
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
lea eax, [eax + edx*4]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 2], al
mov al, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x4e64c5
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x4e6533
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x4e658c
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x4e6548
movzx ecx, byte [eax + 1]
jmp 0x4e654a
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x4e6581
and ecx, 0xf
mov al, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 2], al
jmp 0x4e6585
mov byte [edi + 2], 0x3d
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e6707
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 [0x5793bc]
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.004f1300
push ebx
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004f1300
push ebx
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.004f1300
push ebx
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.004f1300
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004f1300
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004f1300
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.005083e6
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e67c0
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.00508457
lea eax, [ebp - 0x20c]
push str.wnsoft.ini
push eax
call fcn.005083e6
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 0x5255e4
push str.OnlyIdentifier1
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x5255e4
push str.OnlyIdentifier2
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x5255e4
push str.OnlyIdentifier3
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x5255e4
push str.OnlyIdentifier4
push ebx
call esi
lea eax, [ebp - 0x61c]
push eax
call fcn.00508479
mov esi, eax
lea eax, [ebp - 0x824]
push eax
call fcn.00508479
mov dword [ebp - 0xc38], eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.00508479
mov ebx, eax
lea eax, [ebp - 0xc34]
push eax
call fcn.00508479
add esp, 0x10
test esi, esi
je 0x4e6916
cmp dword [ebp - 0xc38], 0
je 0x4e6916
test ebx, ebx
je 0x4e6916
test eax, eax
je 0x4e6916
lea eax, [ebp - 0x61c]
push eax
push dword [edi]
call fcn.00508457
lea eax, [ebp - 0x824]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
call fcn.00508457
lea eax, [ebp - 0xa2c]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
call fcn.00508457
lea eax, [ebp - 0xc34]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
call fcn.00508457
xor eax, eax
add esp, 0x20
inc eax
jmp 0x4e6918
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042774d
mov esp, ebp
pop ebp
ret
Function at 0x4e6d67
Capabilities:
Get mac address on windows

Disassembly:
push 0x48
mov eax, 0x523be1
call fcn.00519636
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x48], 4
call fcn.00508479
push eax
push 0
push ebx
call fcn.004f1300
push 0x288
call fcn.004f8c51
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4e6d5a
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4e6c26
push esi
call fcn.004f8c5c
push dword [ebp - 0x48]
call fcn.004f8c51
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4e6d5a
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4e6d53
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 0x4e6d24
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.0041c3c0
lea eax, [edi + 0x10c]
push eax
call fcn.0051fc0b
push 0x564b6c
push eax
call fcn.004f1a60
add esp, 0x2c
test eax, eax
jne 0x4e6d62
cmp dword [edi + 0x1a0], 0x47
je 0x4e6d62
and dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp word [ebp - 0x2c], ax
je 0x4e6ce7
lea eax, [ebp - 0x2c]
push eax
call fcn.00508479
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041b090
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
call fcn.004dc74d
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.0041c110
mov edi, dword [edi]
test edi, edi
jne 0x4e6c5c
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sub eax, ecx
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4e6d4b
push 0
lea ecx, [ebp - 0x54]
call fcn.004e7656
cmp dword [eax + 0x14], 8
jb 0x4e6d42
mov eax, dword [eax]
push eax
push ebx
call fcn.00508457
pop ecx
pop ecx
lea ecx, [ebp - 0x54]
call fcn.004dbca3
push esi
call fcn.004f8c5c
pop ecx
call fcn.005195e0
ret 4
lea eax, [ebp - 0x2c]
jmp 0x4e6d42
push ebp
mov ebp, esp
lea ecx, [ebp + 0xb]
pop ebp
jmp 0x4e6bc1
Function at 0x4e6d9a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x5793bc]
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.004f1300
push esi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004f1300
push esi
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004f1300
push esi
lea eax, [ebp - 0xa2c]
push ebx
push eax
call fcn.004f1300
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004f1300
lea eax, [ebp - 0x20c]
push str.SOFTWARE_
push eax
call fcn.00508457
add esp, 0x44
lea eax, [ebp - 0x20c]
push str.MySoft
push eax
call fcn.005083e6
lea eax, [ebp - 0x20c]
push 0x52623c
push eax
call fcn.005083e6
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 0x4e6ee3
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.00508479
mov esi, eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00508479
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x824]
push eax
call fcn.00508479
mov ebx, eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.00508479
add esp, 0x10
test esi, esi
je 0x4e6f93
cmp dword [ebp - 0xa30], 0
je 0x4e6f93
test ebx, ebx
je 0x4e6f93
test eax, eax
je 0x4e6f93
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call fcn.00508457
lea eax, [ebp - 0x61c]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
call fcn.00508457
lea eax, [ebp - 0x824]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
call fcn.00508457
lea eax, [ebp - 0xa2c]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
call fcn.00508457
xor eax, eax
add esp, 0x20
inc eax
jmp 0x4e6f95
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042774d
mov esp, ebp
pop ebp
ret
Function at 0x4e6fa6
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x5793bc]
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.004f1300
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x564b84
call fcn.00508479
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00509cdc
push edi
lea eax, [ebp - 0x630]
push ebx
push eax
call fcn.004f1300
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.004f1300
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 0x4e7092
push dword [ebp - 0x634]
push str._08X
push esi
call fcn.0041c3c0
add esp, 0xc
jmp 0x4e709f
push 0x5255e4
push esi
call fcn.00508457
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042774d
mov esp, ebp
pop ebp
ret 4
Function at 0x4e725e
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5793bc]
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.004f1300
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004f1300
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.005083e6
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
pop ecx
pop ecx
push eax
call esi
test eax, eax
jne 0x4e72e1
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.00508457
lea eax, [ebp - 0x414]
push str.wnsoft.ini
push eax
call fcn.005083e6
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x4e7376
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.0042774d
mov esp, ebp
pop ebp
ret