joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053ef
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 0x405408
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 0x40542b
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x405430
inc esi
cmp esi, dword [ebp - 4]
jb 0x405422
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x405525
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x405484
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x40545b
cmp cl, 0xff
jne 0x4054af
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 0x4054bd
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4054c4
dec ecx
shl edx, cl
and edx, 7
je 0x40544c
movzx ecx, byte [edx + 0x4c7754]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4c774c], 0
mov cl, byte [ebx + 4]
je 0x4054ac
test cl, cl
je 0x4054ac
cmp cl, 0xff
jne 0x40544c
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x40541d
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4054f8
movzx edi, byte [edx + 0x4c7754]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4054e3
cmp al, 0xff
jne 0x4054f5
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 0x405476
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 0x40541d
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 0x408b10
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 0x408b18
mov dword [ecx*4 + 0x510320], eax
inc ecx
cmp ecx, 0x100
jl 0x408b13
mov edx, 0x800
jmp 0x408b65
mov eax, dword [ecx*4 + 0x50ff20]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x510320]
inc ecx
mov dword [ecx*4 + 0x51031c], eax
cmp ecx, edx
jb 0x408b44
mov dword [0x512320], 0x4056d2
call fcn.0040563f
test eax, eax
pop esi
jne 0x408b87
mov dword [0x512320], 0x405768
ret
Function at 0x409b9b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x50db70]
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.0042237a
xor ebx, ebx
cmp eax, ebx
pop ecx
je 0x409c04
cmp eax, 3
jle 0x409c04
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.004221d0
push 3
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004223bb
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409c28
lea eax, [esi + 0x658]
cmp dword [eax], ebx
je 0x409c1b
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 0x409c58
push ebx
jmp 0x409c4c
lea eax, [esi + 0x658]
cmp dword [eax], ebx
je 0x409c40
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 0x409c58
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.004221b5
leave
ret 4

Function at 0x40a1e7
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x4c28f6
call fcn.00422cc6
lea ecx, [ebp - 0x40]
call fcn.0040c576
xor esi, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.0040c54d
test eax, eax
je 0x40a280
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 0x40a2e7
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x4c7ad4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a259
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a2e7
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 0x40a2e5
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 0x40a2e7
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x4c7ad4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a2c0
push dword [ebp - 0x14]
jmp 0x40a24e
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.0040c470
call fcn.00422d9e
ret 8
Function at 0x40a55f
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x50db70]
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.004221d0
push ebx
lea eax, [ebp + 0x192]
push esi
push eax
mov word [ebp + 0x190], si
call fcn.004221d0
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 + 0x7c]
cmp dword [eax + 0x18], 8
jb 0x40a5d5
mov eax, dword [eax + 4]
jmp 0x40a5d8
add eax, 4
push eax
lea eax, [ebp + 0x190]
push eax
call fcn.0042235e
mov edi, 0x4eaef0
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.00422334
lea eax, [ebp + 0x398]
push 0x4c7ad4
push eax
call fcn.00422334
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.00422334
lea eax, [ebp + 0x398]
push eax
call fcn.00417304
lea eax, [ebp + 0x398]
push str.DongFang
push eax
call fcn.00422334
lea eax, [ebp + 0x398]
push str..ini
push eax
call fcn.00422334
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.0040a1e7
push ebx
lea eax, [ebp - 0x76]
push esi
push eax
mov word [ebp - 0x78], si
call fcn.004221d0
lea eax, [ebp - 0x78]
push str.SOFTWARE_
push eax
call fcn.0042235e
lea eax, [ebp - 0x78]
push 0x4c7ad4
push eax
call fcn.00422334
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 0x40a6dd
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.004221b5
add ebp, 0x5a4
leave
ret
Function at 0x40ace9
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5ec]
sub esp, 0x66c
mov eax, dword [0x50db70]
xor eax, ebp
mov dword [ebp + 0x5e8], eax
push ebx
push esi
mov esi, dword [ebp + 0x5f4]
push edi
push esi
lea eax, [ebp + 0x1d8]
push str._s.
push eax
mov dword [ebp - 0x80], ecx
call fcn.00423151
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
mov dword [ebp - 0x7c], ebx
je 0x40addd
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40addd
cmp word [ebp - 0x4c], 0x2e
je 0x40ad46
cmp word [ebp - 0x4a], bx
je 0x40ad46
cmp word [ebp - 0x4a], 0x2e
jne 0x40ad73
cmp word [ebp - 0x48], bx
je 0x40ad46
test byte [ebp - 0x78], 0x10
je 0x40ad46
push 0x206
lea eax, [ebp + 0x3e2]
push ebx
push eax
mov word [ebp + 0x3e0], bx
call fcn.004221d0
push str.DongFangInfo.ini
lea eax, [ebp - 0x4c]
push eax
push esi
lea eax, [ebp + 0x3e0]
push 0x4c7b6c
push eax
call fcn.00423151
add esp, 0x20
lea eax, [ebp + 0x3e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ad46
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x3e0]
push eax
add ecx, 0xd0
mov dword [ebp - 0x7c], 1
call fcn.00401df0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x5e8]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004221b5
add ebp, 0x5ec
leave
ret 4

Function at 0x40b230
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x50db70]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x4c29b4
call fcn.00422cc6
mov esi, ecx
lea eax, [esi + 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.004039e0
mov eax, dword [ebp - 0x24]
xor edi, edi
cmp dword [ebp - 0x10], 8
mov dword [ebp - 4], edi
jae 0x40b273
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040ace9
test eax, eax
je 0x40b2d7
push 0x206
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.004221d0
lea eax, [esi + 0xd0]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40b2a6
mov eax, dword [eax + 4]
jmp 0x40b2a9
add eax, 4
push eax
push 0x104
lea eax, [ebp]
push eax
push 0x4eaf10
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp]
push eax
lea ecx, [esi + 0x98]
call fcn.00401df0
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401e20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004221b5
add ebp, 0x20c
leave
ret
Function at 0x40b305
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x50db70]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x1c
mov eax, 0x4c29e4
call fcn.00422cc6
mov esi, ecx
lea eax, [esi + 0x60]
push eax
lea ecx, [ebp - 0x28]
call fcn.004039e0
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp dword [ebp - 0x10], 8
mov dword [ebp - 4], ebx
jae 0x40b348
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040ace9
test eax, eax
jne 0x40b35a
push ebx
jmp 0x40b413
mov edi, 0x206
push edi
lea eax, [ebp + 0x20a]
push ebx
push eax
mov word [ebp + 0x208], bx
call fcn.004221d0
push edi
lea eax, [ebp + 2]
push ebx
push eax
mov word [ebp], bx
call fcn.004221d0
add esp, 0x18
cmp dword [esi + 0xe8], 8
jb 0x40b397
mov eax, dword [esi + 0xd4]
jmp 0x40b39d
lea eax, [esi + 0xd4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x104
lea eax, [ebp + 0x208]
push eax
push 0x4eaf10
push 0x4c7c24
mov ebx, str.AppUpdate
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x40b3d3
mov eax, dword [esi + 0xd4]
jmp 0x40b3d9
lea eax, [esi + 0xd4]
push eax
push 0x104
lea eax, [ebp]
push eax
push 0x4eaf10
push str.MinVer
push ebx
call edi
lea eax, [ebp + 0x208]
push eax
lea ecx, [esi + 0xec]
call fcn.00401df0
lea eax, [ebp]
push eax
lea ecx, [esi + 0x108]
call fcn.00401df0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401e20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004221b5
add ebp, 0x414
leave
ret

Function at 0x40bd60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
xor eax, eax
lea ecx, [esi + 0x27c]
push ecx
push eax
push esi
push 0x40bd51
push eax
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x278], eax
pop esi
ret

Function at 0x40c4ad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push 0x4c7cf0
mov esi, ecx
call ebp
test eax, eax
mov dword [esi], eax
je 0x40c52b
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 0x4c8094
mov dword [esi + 0x10], eax
call ebp
test eax, eax
mov dword [esi + 4], eax
je 0x40c529
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 0x410287
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50db70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push str.mainframe_title
lea ecx, [esi + 0x2c]
call dword [0x4eb064]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x2f0], eax
je 0x4102fd
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.004221d0
push 0x4c7da0
lea eax, [ebp - 0x20c]
push 0x4c86fc
push eax
call fcn.00423151
mov ecx, dword [esi + 0x2f0]
mov eax, dword [ecx]
add esp, 0x18
lea edx, [ebp - 0x20c]
push edx
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2f4]
cmp ecx, ebx
je 0x41030c
call fcn.00415861
mov ecx, dword [esi + 0x2f8]
cmp ecx, ebx
je 0x41031b
call fcn.0041083b
mov ecx, dword [esi + 0x2fc]
cmp ecx, ebx
je 0x410370
call fcn.00416be4
mov eax, dword [esi + 0x2fc]
cmp eax, ebx
je 0x41033b
add eax, 0x4f4
jmp 0x41033d
xor eax, eax
push eax
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0x210], esp
push 0xffffffffffffffff
mov edi, str.WelcomeBar
push edi
call dword [0x4eb094]
lea ecx, [esi + 0x10]
call dword [0x4eb0b4]
mov ecx, dword [esi + 0x2fc]
push edi
call dword [0x4eb0b0]
mov ecx, dword [esi + 0x300]
cmp ecx, ebx
je 0x41037f
call fcn.00410c37
mov ecx, dword [esi + 0x304]
cmp ecx, ebx
je 0x41038e
call fcn.004156c7
mov ecx, dword [esi + 0x308]
cmp ecx, ebx
je 0x41039d
call fcn.0040c102
mov ecx, dword [esi + 0x30c]
cmp ecx, ebx
je 0x4103ac
call fcn.00409d72
lea ecx, [esi + 0x2dc]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
call fcn.0040ca45
call fcn.0040c806
mov ecx, eax
call fcn.0040a313
test eax, eax
je 0x4103ea
lea eax, [esi + 0x340]
push eax
push ebx
push esi
push 0x410278
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x33c], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004221b5
leave
ret 4
Function at 0x4108f9
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x50db70]
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.004221d0
push esi
call fcn.0042237a
add esp, 0x10
cmp eax, 3
jl 0x410967
push 3
lea eax, [ebp + 0x1b4]
push esi
push eax
call fcn.004235b2
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 0x410a14
fld dword [ebp - 0x5c]
call fcn.00423670
cmp eax, 0x400
jle 0x4109f3
fld dword [ebp - 0x5c]
push ecx
fmul qword [0x4c8ab8]
push ecx
lea eax, [ebp - 0x54]
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fstp qword [esp]
push str._.2fGB
push eax
call fcn.00423151
add esp, 0x10
jmp 0x410a05
push eax
lea eax, [ebp - 0x54]
push str._dMB
push eax
call fcn.00423151
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.004221b5
add ebp, 0x1c0
leave
ret 4
Function at 0x411039
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 [0x50db70]
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 0x41108b
xor eax, eax
jmp 0x411162
push esi
push edi
mov edi, 0x206
push edi
lea eax, [ebp + 0x1a6]
push ebx
push eax
mov word [ebp + 0x1a4], bx
call fcn.004221d0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x1a4]
push eax
mov dword [ebp - 0x6c], ebx
push ebx
jmp 0x411143
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 0x411135
push edi
lea eax, [ebp - 0x62]
push ebx
push eax
mov dword [ebp - 0x78], esi
mov word [ebp - 0x64], bx
call fcn.004221d0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x4c8dcc
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41112c
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push eax
call fcn.004230b6
test eax, eax
pop ecx
pop ecx
je 0x41112c
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 0x4110c0
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.004221b5
add ebp, 0x3b0
leave
ret 4
Function at 0x41302a
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x413080
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x413096
push 0x80004005
call fcn.00412e2e
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x413099
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x413600
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x50db70]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00412ff5
mov edi, eax
cmp edi, esi
je 0x413668
lea ecx, [ebp - 0x70]
call fcn.00412f90
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004221b5
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x413680
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00413600
cmp eax, esi
jne 0x4136b3
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x413670
lea ecx, [ebp - 0x70]
call fcn.00412f90
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00412f90
mov eax, esi
jmp 0x41364e
Function at 0x415b9a
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x50db70]
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.004221d0
push esi
call fcn.0042237a
add esp, 0x10
cmp eax, 3
jl 0x415c08
push 3
lea eax, [ebp + 0x1b4]
push esi
push eax
call fcn.004235b2
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 + 0x6a4], 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 0x415cb5
fld dword [ebp - 0x5c]
call fcn.00423670
cmp eax, 0x400
jle 0x415c94
fld dword [ebp - 0x5c]
push ecx
fmul qword [0x4c8ab8]
push ecx
lea eax, [ebp - 0x54]
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fstp qword [esp]
push str._.2fGB
push eax
call fcn.00423151
add esp, 0x10
jmp 0x415ca6
push eax
lea eax, [ebp - 0x54]
push str._dMB
push eax
call fcn.00423151
add esp, 0xc
mov ecx, dword [esi + 0x6a4]
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.004221b5
add ebp, 0x1c0
leave
ret 4