joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4789d4
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 [0x5c24ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x428], eax
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x418], ebx
push ebx
push eax
mov esi, ebx
mov dword [ebp - 0x41c], ebx
call fcn.00485370
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x109
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x478b1f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x478af9
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 0x478aeb
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.00485370
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 0x478ae3
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.00486ed0
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 0x478a55
push dword [ebp - 0x418]
call edi
test esi, esi
jne 0x478c14
xor ebx, ebx
lea eax, [ebp - 0x418]
push eax
push 9
push ebx
push 0x56d3c0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x478c14
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
jmp 0x478bf8
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 0x478bea
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], 0x104
push eax
call fcn.00485370
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x478be2
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.00486ed0
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 0x478b54
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e95
mov esp, ebp
pop ebp
ret 4
Function at 0x478d6a
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0x83c
mov eax, 0x55f956
call fcn.004a9932
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.00485370
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 0x478dd5
lea eax, [ebp - 0x218]
push eax
call fcn.00488e51
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.00419ff0
mov dword [ebp - 4], ebx
mov ebx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push ebx
call fcn.00488e51
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.00419e50
xor ebx, ebx
cmp word [esi], bx
jne 0x478e0f
mov eax, ebx
jmp 0x478e16
push esi
call fcn.00488e51
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00419e50
mov esi, str..lnk
push esi
call fcn.00488e51
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00419e50
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 0x478f24
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.00485370
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.00485370
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0048dcd9
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004772e7
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00485370
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.00488e51
pop ecx
test eax, eax
jne 0x478f12
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0048dcd9
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x478f24
xor esi, esi
inc esi
jmp 0x478f26
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.00419c20
mov eax, esi
call fcn.004a98dc
ret 4
Function at 0x478f3e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c24ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x5cf699]
test al, al
jne 0x478fd7
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00485370
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 0x478fce
lea eax, [ebp - 0x20c]
push eax
call fcn.0048f7cc
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.00486ed0
pop ecx
pop ecx
test eax, eax
jne 0x478fc6
lea eax, [ebp - 0x20c]
push str.cocuments_and_settingslocalService
push eax
call fcn.00486ed0
pop ecx
pop ecx
test eax, eax
je 0x478fce
mov byte [0x5cf699], bl
jmp 0x478fd4
mov bl, byte [0x5cf699]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e95
mov esp, ebp
pop ebp
ret
Function at 0x479762
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c24ac]
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.00485370
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 0x4797cd
lea eax, [ebp - 0x20c]
push 0x56ca38
push eax
call fcn.0048ee96
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00478fe5
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e95
mov esp, ebp
pop ebp
ret 4

Function at 0x47a118
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 0x47a918
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 0x47a92c
xor eax, eax
jmp 0x47aa6a
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 0x47a955
dec edx
sub edx, 1
jne 0x47a957
add eax, 2
jmp 0x47a957
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x47a96a
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x47aa69
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x47aa00
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 + 0x56e008]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
mov al, byte [eax + 0x56e008]
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 + 0x56e008]
mov byte [edi + 2], al
mov al, byte [esi + 0x56e008]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x47a995
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 0x47aa03
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x47aa5c
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x47aa18
movzx ecx, byte [eax + 1]
jmp 0x47aa1a
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
mov al, byte [eax + 0x56e008]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
mov al, byte [eax + 0x56e008]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x47aa51
and ecx, 0xf
mov al, byte [ecx*4 + 0x56e008]
mov byte [edi + 2], al
jmp 0x47aa55
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 0x47abd7
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 [0x5c24ac]
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.00485370
push ebx
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.00485370
push ebx
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.00485370
push ebx
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.00485370
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00485370
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00485370
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.0048ee96
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47ac90
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.0048dcd9
lea eax, [ebp - 0x20c]
push str.wnsoft.ini
push eax
call fcn.0048ee96
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 0x563a30
push str.OnlyIdentifier1
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x563a30
push str.OnlyIdentifier2
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x563a30
push str.OnlyIdentifier3
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x563a30
push str.OnlyIdentifier4
push ebx
call esi
lea eax, [ebp - 0x61c]
push eax
call fcn.00488e51
mov esi, eax
lea eax, [ebp - 0x824]
push eax
call fcn.00488e51
mov dword [ebp - 0xc38], eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.00488e51
mov ebx, eax
lea eax, [ebp - 0xc34]
push eax
call fcn.00488e51
add esp, 0x10
test esi, esi
je 0x47ade6
cmp dword [ebp - 0xc38], 0
je 0x47ade6
test ebx, ebx
je 0x47ade6
test eax, eax
je 0x47ade6
lea eax, [ebp - 0x61c]
push eax
push dword [edi]
call fcn.0048dcd9
lea eax, [ebp - 0x824]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
call fcn.0048dcd9
lea eax, [ebp - 0xa2c]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
call fcn.0048dcd9
lea eax, [ebp - 0xc34]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
call fcn.0048dcd9
xor eax, eax
add esp, 0x20
inc eax
jmp 0x47ade8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e95
mov esp, ebp
pop ebp
ret
Function at 0x47b237
Capabilities:
Get mac address on windows

Disassembly:
push 0x48
mov eax, 0x55fb2e
call fcn.004a9932
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x48], 4
call fcn.00488e51
push eax
push 0
push ebx
call fcn.00485370
push 0x288
call fcn.0048dd00
mov esi, eax
add esp, 0x14
test esi, esi
je 0x47b22a
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x47b0f6
push esi
call fcn.0048dcfb
push dword [ebp - 0x48]
call fcn.0048dd00
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x47b22a
lea eax, [ebp - 0x48]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x47b223
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 0x47b1f4
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.00434b60
lea eax, [edi + 0x10c]
push eax
call fcn.00556aa5
push 0x56e0fc
push eax
call fcn.00488270
add esp, 0x2c
test eax, eax
jne 0x47b232
cmp dword [edi + 0x1a0], 0x47
je 0x47b232
and dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp word [ebp - 0x2c], ax
je 0x47b1b7
lea eax, [ebp - 0x2c]
push eax
call fcn.00488e51
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00419ff0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
call fcn.0043a5d0
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00419c20
mov edi, dword [edi]
test edi, edi
jne 0x47b12c
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sub eax, ecx
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x47b21b
push 0
lea ecx, [ebp - 0x54]
call fcn.00458930
cmp dword [eax + 0x14], 8
jb 0x47b212
mov eax, dword [eax]
push eax
push ebx
call fcn.0048dcd9
pop ecx
pop ecx
lea ecx, [ebp - 0x54]
call fcn.0043a3c0
push esi
call fcn.0048dcfb
pop ecx
call fcn.004a98dc
ret 4
lea eax, [ebp - 0x2c]
jmp 0x47b212
push ebp
mov ebp, esp
lea ecx, [ebp + 0xb]
pop ebp
jmp 0x47b091
Function at 0x47b26a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x5c24ac]
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.00485370
push esi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.00485370
push esi
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00485370
push esi
lea eax, [ebp - 0xa2c]
push ebx
push eax
call fcn.00485370
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00485370
lea eax, [ebp - 0x20c]
push 0x56ce48
push eax
call fcn.0048dcd9
add esp, 0x44
lea eax, [ebp - 0x20c]
push str.MySoft
push eax
call fcn.0048ee96
lea eax, [ebp - 0x20c]
push 0x56ca38
push eax
call fcn.0048ee96
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 0x47b3b3
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.00488e51
mov esi, eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00488e51
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x824]
push eax
call fcn.00488e51
mov ebx, eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.00488e51
add esp, 0x10
test esi, esi
je 0x47b463
cmp dword [ebp - 0xa30], 0
je 0x47b463
test ebx, ebx
je 0x47b463
test eax, eax
je 0x47b463
lea eax, [ebp - 0x414]
push eax
push dword [edi]
call fcn.0048dcd9
lea eax, [ebp - 0x61c]
push eax
mov eax, dword [edi]
add eax, 0x208
push eax
call fcn.0048dcd9
lea eax, [ebp - 0x824]
push eax
mov eax, dword [edi]
add eax, 0x410
push eax
call fcn.0048dcd9
lea eax, [ebp - 0xa2c]
push eax
mov eax, dword [edi]
add eax, 0x618
push eax
call fcn.0048dcd9
xor eax, eax
add esp, 0x20
inc eax
jmp 0x47b465
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e95
mov esp, ebp
pop ebp
ret
Function at 0x47b476
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x5c24ac]
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.00485370
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x56ca3c
call fcn.00488e51
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00498474
push edi
lea eax, [ebp - 0x630]
push ebx
push eax
call fcn.00485370
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00485370
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 0x47b562
push dword [ebp - 0x634]
push str._08X
push esi
call fcn.00434b60
add esp, 0xc
jmp 0x47b56f
push 0x563a30
push esi
call fcn.0048dcd9
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e95
mov esp, ebp
pop ebp
ret 4
Function at 0x47b72e
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5c24ac]
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.00485370
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00485370
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.0048ee96
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
pop ecx
pop ecx
push eax
call esi
test eax, eax
jne 0x47b7b1
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.0048dcd9
lea eax, [ebp - 0x414]
push str.wnsoft.ini
push eax
call fcn.0048ee96
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x47b846
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.00464e95
mov esp, ebp
pop ebp
ret
Function at 0x47b9ef
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 str.software
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47baed
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 0x47baed
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

Function at 0x47f815
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x47f895
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x47f894
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret

Function at 0x47f8f1
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
mov eax, esi
setne dl
mov dword [esi + 4], edx
pop esi
pop ebp
ret 4