joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4053e5
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x405408
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x40540d
inc esi
cmp esi, dword [ebp - 4]
jb 0x4053ff
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x405502
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x405461
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x405438
cmp cl, 0xff
jne 0x40548c
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x40549a
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4054a1
dec ecx
shl edx, cl
and edx, 7
je 0x405429
movzx ecx, byte [edx + 0x4c6934]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4c692c], 0
mov cl, byte [ebx + 4]
je 0x405489
test cl, cl
je 0x405489
cmp cl, 0xff
jne 0x405429
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4053fa
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4054d5
movzx edi, byte [edx + 0x4c6934]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4054c0
cmp al, 0xff
jne 0x4054d2
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x405453
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4053fa
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x408ae9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x408af1
mov dword [ecx*4 + 0x508960], eax
inc ecx
cmp ecx, 0x100
jb 0x408aec
mov edx, 0x800
jmp 0x408b3e
mov eax, dword [ecx*4 + 0x508560]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x508960]
inc ecx
mov dword [ecx*4 + 0x50895c], eax
cmp ecx, edx
jb 0x408b1d
mov dword [0x50a960], 0x4056af
call fcn.0040561c
test eax, eax
pop esi
jne 0x408b60
mov dword [0x50a960], 0x405745
ret
Function at 0x409bbc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.0043b6aa
xor ebx, ebx
cmp eax, ebx
pop ecx
je 0x409c25
cmp eax, 3
jle 0x409c25
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.0043b4c0
push 3
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043b81b
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409c49
lea eax, [esi + 0x658]
cmp dword [eax], ebx
je 0x409c3c
mov eax, dword [eax]
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x660]
cmp dword [eax], ebx
je 0x409c79
push ebx
jmp 0x409c6d
lea eax, [esi + 0x658]
cmp dword [eax], ebx
je 0x409c61
mov eax, dword [eax]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x660]
cmp dword [eax], ebx
je 0x409c79
push 1
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xd8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b4a5
leave
ret 4

Function at 0x40a2cf
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x4bff79
call fcn.0043c032
lea ecx, [ebp - 0x40]
call fcn.0040db08
xor esi, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.0040dac0
test eax, eax
je 0x40a368
lea eax, [ebp - 0x10]
push eax
mov edi, 0xf013f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40a3cf
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x4c6cc4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a341
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a3cf
push 0x104
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
jmp 0x40a3cd
lea eax, [ebp - 0x14]
push eax
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40a3cf
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x4c6cc4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a3a8
push dword [ebp - 0x14]
jmp 0x40a336
push 0x104
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x14]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040d9e3
call fcn.0043c10a
ret 8
Function at 0x40a47a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0043b4c0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jne 0x40a4d5
xor eax, eax
inc eax
cmp dword [ebp - 0x78], 0
je 0x40a4cd
cmp dword [ebp - 0x78], eax
jne 0x40a4d5
cmp byte [ebp + 0x9a], al
je 0x40a4d7
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0043b4a5
add ebp, 0xa0
leave
ret

Function at 0x40a858
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
push ebx
push esi
push edi
mov ebx, 0x206
xor esi, esi
push ebx
lea eax, [ebp + 0x39a]
mov edi, ecx
push esi
push eax
mov dword [ebp - 0x80], edi
mov word [ebp + 0x398], si
call fcn.0043b4c0
push ebx
lea eax, [ebp + 0x192]
push esi
push eax
mov word [ebp + 0x190], si
call fcn.0043b4c0
add esp, 0x18
push esi
push 0x2b
lea eax, [ebp + 0x398]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [edi + 0x9c]
cmp dword [eax + 0x18], 8
jb 0x40a8d1
mov eax, dword [eax + 4]
jmp 0x40a8d4
add eax, 4
push eax
lea eax, [ebp + 0x190]
push eax
call fcn.0043b68e
mov edi, 0x4dfb94
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.0043b664
lea eax, [ebp + 0x398]
push 0x4c6cc4
push eax
call fcn.0043b664
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.0043b664
lea eax, [ebp + 0x398]
push eax
call fcn.0041ae99
lea eax, [ebp + 0x398]
push str.WanNengWB
push eax
call fcn.0043b664
lea eax, [ebp + 0x398]
push str..ini
push eax
call fcn.0043b664
add esp, 0x34
lea eax, [ebp + 0x398]
push eax
lea eax, [ebp + 0x190]
push eax
mov edi, str.InstallPath
push edi
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x190]
push eax
push edi
call fcn.0040a2cf
push ebx
lea eax, [ebp - 0x76]
push esi
push eax
mov word [ebp - 0x78], si
call fcn.0043b4c0
lea eax, [ebp - 0x78]
push 0x4c6de0
push eax
call fcn.0043b68e
lea eax, [ebp - 0x78]
push 0x4c6cc4
push eax
call fcn.0043b664
add esp, 0x1c
push esi
lea eax, [ebp - 0x7c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a9d9
push 0x104
lea eax, [ebp + 0x190]
push eax
push 1
push esi
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x5a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b4a5
add ebp, 0x5a4
leave
ret
Function at 0x40ab2d
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x290
lea ebp, [esp - 4]
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x290], eax
push 0x28
mov eax, 0x4bffa4
call fcn.0043c032
xor esi, esi
push 0x206
lea eax, [ebp + 0x8a]
push esi
push eax
mov dword [ebp - 0x14], ecx
mov word [ebp + 0x88], si
call fcn.0043b4c0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x88]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x88]
push 0x4c6e5c
push eax
call fcn.0043c71a
cmp eax, esi
pop ecx
pop ecx
je 0x40acd6
lea ecx, [ebp]
call fcn.0041d7eb
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40acd6
push esi
push 0x80
push 4
push esi
push 1
push SysReAllocString
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40acd6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0043158e
mov edi, eax
cmp edi, esi
pop ecx
je 0x40acd6
lea eax, [ebx + 1]
push eax
push esi
push edi
call fcn.0043b4c0
add esp, 0xc
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
lea ecx, [ebp]
call fcn.0041e02a
push edi
call fcn.004b79f4
pop ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp]
call fcn.0041e156
push eax
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp - 4], esi
call fcn.0041d003
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00401740
cmp dword [ebp + 0x80], esi
jbe 0x40accb
mov edi, dword [ebp - 0x14]
cmp dword [edi + 0x1cc], 8
jb 0x40ac82
mov eax, dword [edi + 0x1b8]
jmp 0x40ac88
lea eax, [edi + 0x1b8]
push eax
call fcn.0041ae99
test eax, eax
pop ecx
je 0x40accb
cmp dword [edi + 0x1cc], 8
jb 0x40aca4
mov edi, dword [edi + 0x1b8]
jmp 0x40acaa
add edi, 0x1b8
cmp dword [ebp + 0x84], 8
mov eax, dword [ebp + 0x70]
jae 0x40acb9
lea eax, [ebp + 0x70]
push edi
push eax
push str.SoftMD5
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
push 1
lea ecx, [ebp + 0x6c]
call fcn.004017c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x290]
xor ecx, ebp
call fcn.0043b4a5
add ebp, 0x294
leave
ret
Function at 0x40bbe4
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x7e]
push esi
push eax
mov edi, ecx
mov word [ebp - 0x80], si
call fcn.0043b4c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.0040a5b2
test al, al
jne 0x40bc4b
push esi
push 0x1a
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x80]
push eax
call fcn.0043b6aa
test eax, eax
pop ecx
je 0x40bc9c
mov esi, 0x4dfb94
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043b664
lea eax, [ebp - 0x80]
push str.WanNengWBIME
push eax
call fcn.0043b664
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043b664
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bc8d
lea eax, [ebp - 0x80]
push eax
call fcn.0041ae99
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x17c]
call fcn.00401790
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.0043b4a5
add ebp, 0x18c
leave
ret
Function at 0x40beb7
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0xbbc], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x206
push esi
lea eax, [ebp - 0x72]
push edi
push eax
mov dword [ebp - 0x78], ecx
xor ebx, ebx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov word [ebp - 0x74], di
call fcn.0043b4c0
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.0043b4c0
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.0043b4c0
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.0043b4c0
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.0043b4c0
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.0043b4c0
add esp, 0x48
push edi
push 0x1a
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x9b4]
push eax
call fcn.0043b68e
lea eax, [ebp + 0x9b4]
push eax
call fcn.0043b6aa
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.0043c3e6
add esp, 0x14
cmp eax, edi
je 0x40c0c3
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.0043b68e
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.0043b664
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x40bfe3
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.0043b68e
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.0043b664
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x40c01e
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.0043b68e
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.0043b664
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x40c059
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x40c0c3
cmp dword [ebp - 0x80], edi
je 0x40c0c3
cmp dword [ebp - 0x7c], edi
je 0x40c0c3
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.0040a47a
test eax, eax
je 0x40c0c3
push str.WanNengWBIME
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.0043c4d1
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x40c0af
lea eax, [ebp + 0x5a4]
push eax
call fcn.0041ae99
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x17c]
call fcn.00401790
jmp 0x40c0cb
mov ecx, dword [ebp - 0x78]
call fcn.0040bbe4
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b4a5
add ebp, 0xbc0
leave
ret

Function at 0x40ca8e
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
xor eax, eax
lea ecx, [esi + 0x30c]
push ecx
push eax
push esi
push 0x40ca7f
push eax
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x308], eax
pop esi
ret
Function at 0x40da20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push 0x4c7198
mov esi, ecx
call ebp
test eax, eax
mov dword [esi], eax
je 0x40da9e
push ebx
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
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push 0x4c77ec
mov dword [esi + 0x10], eax
call ebp
test eax, eax
mov dword [esi + 4], eax
je 0x40da9c
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 ebx
pop esi
pop ebp
ret
Function at 0x40f00d
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x24
mov eax, 0x4c0547
call fcn.0043c032
mov eax, dword [ebp + 0x24c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x250]
xor ebx, ebx
push 0x206
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x3a]
push ebx
or esi, 0xffffffff
push eax
mov edi, esi
mov word [ebp + 0x38], bx
call fcn.0043b4c0
add esp, 0xc
call fcn.0040cea1
mov ecx, eax
call fcn.0040a80e
push eax
lea ecx, [ebp]
call fcn.004015c0
push str.WanNengWBInfo.ini
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.004036c0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40f091
lea eax, [ebp + 4]
push eax
push 0x104
lea eax, [ebp + 0x38]
push eax
push 0x4c7060
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004015c0
mov eax, dword [ebp + 0x30]
cmp eax, 6
mov byte [ebp - 4], 1
jbe 0x40f0f8
add eax, 0xfffffffa
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00403680
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.00401d30
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004017c0
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40f104
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x38]
push 0x4c704c
push eax
call fcn.0043c4d1
lea eax, [ebp + 0x38]
push eax
push 0x4c7cb4
call fcn.0041bccd
push dword [ebp - 0x14]
call fcn.0043b6aa
add esp, 0x18
test eax, eax
mov ebx, 0x4c7cb0
je 0x40f14d
lea eax, [ebp + 0x38]
push eax
push ebx
push dword [ebp - 0x14]
call fcn.0041d152
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
neg edi
push dword [ebp - 0x10]
call fcn.0043b6aa
test eax, eax
pop ecx
je 0x40f172
lea eax, [ebp + 0x38]
push eax
push ebx
push dword [ebp - 0x10]
call fcn.0041d152
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp edi, 0xffffffff
je 0x40f1c8
cmp esi, 0xffffffff
je 0x40f1dc
push str.Spreader_Error_
call fcn.0041bccd
xor esi, esi
pop ecx
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.004017c0
push 0
push 1
lea ecx, [ebp]
call fcn.004017c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.0043b4a5
add ebp, 0x244
leave
ret 8
cmp esi, 0xffffffff
jne 0x40f1e8
push str.No_Spreader_Config_
call fcn.0041bccd
xor esi, esi
inc esi
jmp 0x40f188
cmp edi, 1
jne 0x40f1f3
push str.Spreader_ContainSpreader_
jmp 0x40f1d2
test esi, esi
jne 0x40f1f3
push str.Spreader_No_ExcludeSpreader_
jmp 0x40f1d2
push esi
push edi
push str.Spreader_Filter__Contain:_d__Exclude:_d
call fcn.0041bccd
add esp, 0xc
xor esi, esi
jmp 0x40f189
Function at 0x412de1
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
push ebx
push esi
mov esi, dword [ebp + 0x1c8]
push edi
xor ebx, ebx
xor eax, eax
mov word [ebp + 0x1b4], bx
lea edi, [ebp + 0x1b6]
stosd dword es:[edi], eax
push 0x206
stosw word es:[edi], ax
lea eax, [ebp - 0x52]
push ebx
push eax
mov dword [ebp - 0x58], ecx
mov word [ebp - 0x54], bx
call fcn.0043b4c0
push esi
call fcn.0043b6aa
add esp, 0x10
cmp eax, 3
jl 0x412e4f
push 3
lea eax, [ebp + 0x1b4]
push esi
push eax
call fcn.0043e2ba
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x58]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 0x5c], eax
and dword [ebp - 0x5c], 0x80000000
and eax, 0x7fffffff
cmp dword [esi + 0x660], ebx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], ebx
fild qword [ebp - 0x70]
fild qword [ebp - 0x60]
fchs
faddp st(1)
fstp dword [ebp - 0x5c]
je 0x412efc
fld dword [ebp - 0x5c]
call fcn.0043b770
cmp eax, 0x400
jle 0x412edb
fld dword [ebp - 0x5c]
push ecx
fmul qword [0x4c8588]
push ecx
lea eax, [ebp - 0x54]
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fstp qword [esp]
push str._.2fGB
push eax
call fcn.0043c4d1
add esp, 0x10
jmp 0x412eed
push eax
lea eax, [ebp - 0x54]
push str._dMB
push eax
call fcn.0043c4d1
add esp, 0xc
mov ecx, dword [esi + 0x660]
mov eax, dword [ecx]
lea edx, [ebp - 0x54]
push edx
call dword [eax + 0x2c]
mov ecx, dword [ebp + 0x1bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b4a5
add ebp, 0x1c0
leave
ret 4
Function at 0x413408
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3b0]
sub esp, 0x430
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x3ac], eax
mov eax, dword [ebp + 0x3b8]
push ebx
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x68]
push eax
xor ebx, ebx
push 9
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41345a
xor eax, eax
jmp 0x413531
push esi
push edi
mov edi, 0x206
push edi
lea eax, [ebp + 0x1a6]
push ebx
push eax
mov word [ebp + 0x1a4], bx
call fcn.0043b4c0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x1a4]
push eax
mov dword [ebp - 0x6c], ebx
push ebx
jmp 0x413512
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x413504
push edi
lea eax, [ebp - 0x62]
push ebx
push eax
mov dword [ebp - 0x78], esi
mov word [ebp - 0x64], bx
call fcn.0043b4c0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x4c889c
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4134fb
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push eax
call fcn.0043c416
test eax, eax
pop ecx
pop ecx
je 0x4134fb
mov dword [ebp - 0x74], 1
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x6c]
push esi
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x41348f
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
mov ecx, dword [ebp + 0x3ac]
xor ecx, ebp
pop ebx
call fcn.0043b4a5
add ebp, 0x3b0
leave
ret 4