joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d820
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx + 0xf8]
push edi
push eax
call fcn.0049333b
mov edi, 0x100
push edi
mov dword [ebx + 0xf8], 0
call fcn.00493dba
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x104]
push edx
mov dword [ebx + 0xf8], eax
mov byte [eax], 0
push 1
mov dword [ebp - 0x108], edi
call esi
mov edx, dword [ebx + 0xf8]
lea ecx, [ebp - 0x104]
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x46d890
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push 2
mov dword [ebp - 0x10c], edi
call esi
cmp dword [ebp - 0x10c], 0
je 0x46d90d
mov edi, dword [ebx + 0xf8]
add edi, dword [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46d8c8
mov dx, word [0x4d1a18]
lea eax, [ebp - 0x104]
mov word [edi], dx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d8e2
mov edi, dword [ebp - 0x108]
sub eax, esi
add edi, dword [ebx + 0xf8]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46d8f7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00493f43
mov esp, ebp
pop ebp
ret
Function at 0x4702d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00493d40
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
push 0xc
jb 0x470348
call fcn.00493dba
add esp, 4
test eax, eax
je 0x47033c
mov ecx, eax
call fcn.00470600
push eax
mov ecx, esi
call fcn.004701d0
jmp 0x470367
xor eax, eax
push eax
mov ecx, esi
call fcn.004701d0
jmp 0x470367
call fcn.00493dba
add esp, 4
test eax, eax
je 0x47035d
mov ecx, eax
call fcn.00471200
jmp 0x47035f
xor eax, eax
push eax
mov ecx, esi
call fcn.00470250
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
xor ecx, ebp
add eax, 0x8007000e
pop esi
call fcn.00493f43
mov esp, ebp
pop ebp
ret
Function at 0x4748b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x18
mov dword [ebp - 4], 0
call fcn.00493dba
add esp, 4
test eax, eax
je 0x4748d7
mov ecx, eax
call fcn.004bb050
mov esi, eax
test esi, esi
jne 0x4748e3
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push ebx
push edi
push esi
call ecx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x474919
mov edi, dword [ebp + 0x10]
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push edi
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1c]
push ebx
push edi
push 1
push esi
call edx
push eax
call fcn.0049a5ee
add esp, 0x10
test eax, eax
jns 0x474922
xor eax, eax
mov edi, 0x80004005
jmp 0x474925
mov edi, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x14]
push eax
push esi
call edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push esi
push edi
push eax
call edx
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x474950
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4d4010
push eax
call fcn.00494eaf
mov esi, eax
add esp, 8
test esi, esi
je 0x4749d4
push esi
call fcn.0049a354
add esp, 4
test eax, eax
jne 0x4749cb
lea esp, [esp]
push esi
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.0049a5ee
add esp, 0x10
test eax, eax
jle 0x4749be
push edi
push eax
lea ecx, [ebp - 0x204]
push 1
push ecx
call fcn.0049ab1a
add esp, 0x10
push esi
call fcn.0049a354
add esp, 4
test eax, eax
je 0x474990
push esi
call fcn.00494a18
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00493f43
mov esp, ebp
pop ebp
ret
Function at 0x475240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0xc]
call fcn.00472090
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
mov edx, dword [esi + 0x58]
push edx
mov edx, dword [esi + 0x54]
push edx
mov edx, dword [esi + 0x40]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov edx, dword [ebp - 4]
test edx, edx
jle 0x4753e7
lea esp, [esp]
mov eax, dword [esi + 0x4c]
sub eax, 0
je 0x4752ef
dec eax
jne 0x4753c1
mov ecx, dword [esi + 0x5c]
cmp ecx, dword [esi + 0x60]
jle 0x4752c2
mov ecx, dword [esi + 0x48]
push ecx
push edx
mov edx, dword [esi + 0x40]
push 1
push edx
call fcn.0049ab1a
add dword [esi + 0x60], eax
mov ecx, dword [esi + 0x5c]
mov eax, ecx
sub eax, dword [esi + 0x60]
add esp, 0x10
cmp eax, 0x8000
jge 0x4752bf
mov dword [esi + 0x58], eax
cmp ecx, dword [esi + 0x60]
jne 0x4753c1
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4752d8
push eax
call fcn.00494a18
add esp, 4
mov eax, 0x200
mov dword [esi + 0x4c], 0
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
jmp 0x4753c1
mov eax, dword [str.rnempty0]
mov edi, dword [esi + 0x40]
push eax
lea ecx, [ebp - 0x14]
mov dword [esi + 0x50], edi
call fcn.00472340
cmp byte [eax + 7], 0xff
jne 0x47530b
mov eax, dword [eax]
push edi
push eax
call fcn.00494774
add esp, 8
test eax, eax
lea ecx, [ebp - 0x14]
sete bl
call fcn.00472320
lea ecx, [ebp - 0xc]
push ecx
test bl, bl
je 0x47535c
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x14]
add edx, 0x159
push edx
push eax
call fcn.00474a80
add esp, 0xc
test eax, eax
jns 0x4753c1
lea ecx, [ebp - 0xc]
mov byte [esi + 0x20], 5
call fcn.00472320
pop edi
pop esi
mov eax, 0x8004008a
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x14]
push eax
add eax, 0x159
push eax
push edx
call fcn.00474c40
xor edi, edi
add esp, 0x10
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x475344
mov eax, dword [esi + 0x50]
add eax, 0x7c
push 0xb
push eax
call fcn.00474a40
add esp, 8
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], edi
cmp eax, edi
jle 0x4753b5
mov dword [esi + 0x4c], 1
mov dword [esi + 0x54], edi
cmp eax, 0x8000
jge 0x4753ac
mov dword [esi + 0x58], eax
jmp 0x4753c1
mov dword [esi + 0x58], 0x8000
jmp 0x4753c1
mov ecx, dword [esi + 0x48]
push ecx
call fcn.00494a18
add esp, 4
mov eax, dword [esi + 0x3c]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0x58]
push ecx
mov ecx, dword [esi + 0x54]
push ecx
mov ecx, dword [esi + 0x40]
push ecx
push eax
call edx
mov edx, dword [ebp - 4]
test edx, edx
jg 0x475280
lea ecx, [ebp - 0xc]
call fcn.00472320
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x38]
push ebx
call fcn.00478ad0
xor edi, edi
cmp dword [esi + 0x44], edi
je 0x47542b
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
mov edi, eax
lea ecx, [ebp - 0x30]
call fcn.0047d560
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.0047d7e0
test edi, edi
je 0x475457
mov esi, dword [esi + 0x44]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1c]
push edi
push esi
call edx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0047da50
push ebx
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047cdc0
push eax
push 1
lea edx, [ebp - 0x30]
push edx
call fcn.0047cda0
push eax
call fcn.0049ab1a
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.0047d5d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x475ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x40]
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], eax
call fcn.00472090
cmp byte [ebx], 0
push edi
je 0x475ce9
push 0x5c
push ebx
lea eax, [ebp - 0x30]
push str._s_c_s
push eax
call fcn.00472ff0
add esp, 0x14
jmp 0x475cf1
lea ecx, [ebp - 0x30]
call fcn.00472470
cmp byte [ebp - 0x29], 0xff
lea eax, [ebp - 0x30]
jne 0x475cfd
mov eax, dword [ebp - 0x30]
push 0x4d4010
push eax
call fcn.00494eaf
add esp, 8
mov ebx, eax
push edi
test ebx, ebx
jne 0x475d2d
push str.Cant_open_file__s_for_reading__skipping_n
call fcn.0049b37d
add eax, 0x40
push eax
call fcn.004965fb
add esp, 0xc
jmp 0x475e1f
push str.Processing_file__s_for_compression_n
call fcn.0049b37d
add eax, 0x20
push eax
call fcn.004965fb
push 0x200
push 0
push esi
call fcn.00493d40
add esp, 0x18
cmp byte [ebp - 0x29], 0xff
lea eax, [ebp - 0x30]
jne 0x475d5c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push edi
push ecx
lea ecx, [ebp - 0x28]
mov edx, esi
call fcn.00475490
add esp, 8
mov dword [ebp - 0x34], eax
test eax, eax
jns 0x475dae
push edi
push str.Cant_stat__s__skipping_n
call fcn.0049b37d
add eax, 0x40
push eax
call fcn.004965fb
push ebx
call fcn.00494a18
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.00472320
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f43
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
push edx
push edi
mov edi, dword [ebp - 0x38]
mov ecx, dword [edi + 0x38]
call fcn.00478a80
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push 0x200
push esi
push eax
mov eax, dword [ecx + 0x14]
call eax
push ebx
call fcn.0049a354
add esp, 4
test eax, eax
jne 0x475e16
push ebx
push 0x8000
push 1
push esi
call fcn.0049a5ee
add esp, 0x10
test eax, eax
jle 0x475e09
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea edi, [ebp - 0x3c]
push edi
push eax
mov eax, dword [edx + 0x14]
push esi
push ecx
call eax
mov edi, dword [ebp - 0x38]
push ebx
call fcn.0049a354
add esp, 4
test eax, eax
je 0x475de0
push ebx
call fcn.00494a18
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.00472320
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00493f43
mov esp, ebp
pop ebp
ret
Function at 0x476540
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x505fac], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, ecx
je 0x476570
call ebx
sub eax, dword [0x505fac]
cmp eax, 0xc8
jae 0x476570
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x1c]
push edi
xor edi, edi
test eax, eax
je 0x4765d8
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], edi
mov ecx, dword [eax]
push 0x4df8e0
push eax
mov eax, dword [ecx]
call eax
cmp dword [ebp - 4], edi
je 0x4765d8
call ebx
mov edx, dword [ebp + 8]
mov dword [0x505fac], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4765b9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, 0x80040088
jne 0x4765d8
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4765d8
push eax
call fcn.00494a18
add esp, 4
mov dword [esi + 0x44], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4776f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x38]
push ebx
call fcn.00478ad0
xor edi, edi
cmp dword [esi + 0x40], edi
je 0x47771b
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
mov edi, eax
lea ecx, [ebp - 0x30]
call fcn.0047d560
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.0047d7e0
test edi, edi
je 0x477747
mov esi, dword [esi + 0x40]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1c]
push edi
push esi
call edx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0047da50
push ebx
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047cdc0
push eax
push 1
lea edx, [ebp - 0x30]
push edx
call fcn.0047cda0
push eax
call fcn.0049ab1a
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.0047d5d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4788c0
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x18]
push eax
mov edi, 0x400
call fcn.0047dc90
add esp, 4
cmp dword [ebp - 0x10], 8
jne 0x47898c
push esi
lea ecx, [ebp - 0x20]
call fcn.00472090
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00472db0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00472e40
test esi, esi
pop esi
je 0x478984
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00472110
cmp eax, 0xffffffff
je 0x478984
push eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00472b10
push eax
lea ecx, [ebp - 0x20]
call fcn.004723d0
lea ecx, [ebp - 0x34]
call fcn.00472320
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00472820
cmp byte [ebp - 0x19], 0xff
lea eax, [ebp - 0x20]
jne 0x478962
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x478984
mov edi, dword [ebp - 0x28]
imul edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.00472320
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00493f43
mov esp, ebp
pop ebp
ret

Function at 0x478ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x60]
call fcn.0047d560
push esi
lea ecx, [ebp - 0x60]
call fcn.0047cde0
lea eax, [ebp - 0x60]
push eax
call fcn.0047cdc0
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.0047d560
cmp byte [esi + 0x23], 0xff
lea eax, [esi + 0x1c]
jne 0x478b0a
mov eax, dword [eax]
push 4
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047da50
push edi
lea edx, [ebp - 0x30]
push edx
call fcn.0047d7e0
lea eax, [ebp - 0x30]
push eax
call fcn.0047cdc0
mov ebx, dword [ebp + 8]
push ebx
mov esi, eax
push esi
push 1
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047cda0
push eax
call fcn.0049ab1a
add esp, 0x10
cmp eax, esi
je 0x478b64
lea ecx, [ebp - 0x30]
call fcn.0047d5d0
lea ecx, [ebp - 0x60]
call fcn.0047d5d0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 1
lea edx, [ebp - 0x60]
push edx
call fcn.0047cda0
push eax
call fcn.0049ab1a
add esp, 0x10
lea ecx, [ebp - 0x30]
cmp eax, edi
jne 0x478b4b
call fcn.0047d5d0
lea ecx, [ebp - 0x60]
call fcn.0047d5d0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47b680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
lea eax, [ebp - 8]
push eax
call fcn.0047b5b0
cmp byte [eax + 7], 0xff
jne 0x47b69a
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 8]
mov ebx, eax
call fcn.00472320
cmp ebx, 0xffffffff
je 0x47b6c0
test bl, 0x10
je 0x47b6c0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b6d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
lea eax, [ebp - 8]
push eax
call fcn.0047b5b0
cmp byte [eax + 7], 0xff
jne 0x47b6ea
mov eax, dword [eax]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.00472320
neg esi
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47b770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push edi
call fcn.0047b560
lea ecx, [ebp - 0x1c]
call fcn.00472090
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x47b935
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHGetSpecialFolderLocation
push edi
call esi
push 0x4e1b80
push edi
mov ebx, eax
call esi
mov edi, eax
test edi, edi
jne 0x47b7cc
mov eax, dword [ebp - 0xc]
push str.SHGetPathFromIDList
push eax
call esi
mov edi, eax
mov ecx, dword [ebp - 0xc]
push str.SHGetMalloc
push ecx
call esi
xor esi, esi
mov dword [ebp - 0x10], eax
cmp ebx, esi
je 0x47b929
cmp edi, esi
je 0x47b929
cmp eax, esi
je 0x47b929
lea edx, [ebp - 4]
push edx
push 0x1c
push esi
mov dword [ebp - 4], esi
call ebx
test eax, eax
jne 0x47b837
push 0x105
lea ecx, [ebp - 0x1c]
call fcn.00472db0
push eax
mov eax, dword [ebp - 4]
push eax
call edi
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], esi
call dword [ebp - 0x10]
test eax, eax
js 0x47b886
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
jmp 0x47b875
lea eax, [ebp - 4]
push eax
push 0x1a
push esi
call ebx
test eax, eax
jne 0x47b892
push 0x105
lea ecx, [ebp - 0x1c]
call fcn.00472db0
mov ecx, dword [ebp - 4]
push eax
push ecx
call edi
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], esi
call dword [ebp - 0x10]
test eax, eax
js 0x47b886
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00472e40
jmp 0x47b8f1
lea eax, [ebp - 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x47b8f1
lea ecx, [ebp - 0x10]
push ecx
push 0x105
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x104
call fcn.00472db0
push eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
push esi
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00472e40
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x15]
cmp cl, 0xff
je 0x47b945
xor eax, eax
cmp cl, 7
sete al
test al, al
jne 0x47b929
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.0047b590
push esi
call fcn.0047b680
add esp, 4
test eax, eax
jne 0x47b929
push esi
call fcn.0047b6d0
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
lea ecx, [ebp - 0x1c]
call fcn.00472320
mov eax, dword [ebp + 8]
pop edi
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x18], 0
jne 0x47b905
cmp byte [ebp - 0x17], 0
jne 0x47b905
cmp byte [ebp - 0x16], 0
je 0x47b929
jmp 0x47b905
Function at 0x47baa0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
call edx
test eax, eax
je 0x47bb2a
push 0x4d1a5c
lea ecx, [esi + 4]
call fcn.004721b0
cmp eax, 0xffffffff
je 0x47bb2a
add eax, 2
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 4]
call fcn.00472b10
xor esi, esi
cmp byte [ebp - 0x11], 0xff
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
lea eax, [ebp - 0x18]
jne 0x47baf0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x47bb22
cmp dword [ebp - 4], esi
je 0x47bb22
lea ecx, [ebp - 0x18]
call fcn.00472320
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
call fcn.00472320
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47bb40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push str.TEMP
mov edi, ecx
call fcn.0049c52f
add esp, 4
test eax, eax
je 0x47bb7f
lea esi, [edi + 4]
push eax
mov ecx, esi
call fcn.00472470
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
mov ecx, edi
call edx
test eax, eax
jne 0x47bc33
mov ecx, esi
call fcn.004722f0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x47bbf0
push 0x104
lea esi, [edi + 4]
push 0x105
mov ecx, esi
call fcn.00472db0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00472e40
push 0x5c
mov ecx, esi
call fcn.00472180
mov ecx, esi
cmp eax, 0xffffffff
jne 0x47bbc2
call fcn.004722f0
jmp 0x47bbdc
push eax
lea eax, [ebp - 8]
push eax
call fcn.00472b10
push eax
mov ecx, esi
call fcn.004723d0
lea ecx, [ebp - 8]
call fcn.00472320
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
test eax, eax
jne 0x47bc33
mov ecx, esi
call fcn.004722f0
push 0x104
lea esi, [edi + 4]
push 0x105
mov ecx, esi
call fcn.00472db0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00472e40
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
test eax, eax
jne 0x47bc33
mov ecx, esi
call fcn.004722f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47bc97
cmp byte [eax], 0
je 0x47bc97
mov al, byte [esi + 7]
mov ebx, esi
cmp al, 0xff
jne 0x47bca5
mov ebx, dword [esi]
mov edi, ebx
mov ecx, esi
call fcn.004720a0
add eax, ebx
push eax
push edi
call fcn.0047c920
add esp, 8
cmp byte [esi + 7], 0xff
mov edi, eax
mov ebx, esi
jne 0x47bc6b
mov ebx, dword [esi]
mov ecx, esi
call fcn.004720a0
add eax, ebx
lea ecx, [edi + 1]
cmp ecx, eax
jne 0x47bc80
cmp byte [edi], 0x5c
je 0x47bc8c
push 0x4d19a0
mov ecx, esi
call fcn.004727a0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, esi
call fcn.004727a0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, esi
jmp 0x47bc4c