joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473570
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.004703d0
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 0x473717
lea esp, [esp]
mov eax, dword [esi + 0x4c]
sub eax, 0
je 0x47361f
dec eax
jne 0x4736f1
mov ecx, dword [esi + 0x5c]
cmp ecx, dword [esi + 0x60]
jle 0x4735f2
mov ecx, dword [esi + 0x48]
push ecx
push edx
mov edx, dword [esi + 0x40]
push 1
push edx
call fcn.00498c5a
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 0x4735ef
mov dword [esi + 0x58], eax
cmp ecx, dword [esi + 0x60]
jne 0x4736f1
mov eax, dword [esi + 0x48]
test eax, eax
je 0x473608
push eax
call fcn.00492b68
add esp, 4
mov eax, 0x200
mov dword [esi + 0x4c], 0
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
jmp 0x4736f1
mov eax, dword [str.rnempty0]
mov edi, dword [esi + 0x40]
push eax
lea ecx, [ebp - 0x14]
mov dword [esi + 0x50], edi
call fcn.00470680
cmp byte [eax + 7], 0xff
jne 0x47363b
mov eax, dword [eax]
push edi
push eax
call fcn.004928c4
add esp, 8
test eax, eax
lea ecx, [ebp - 0x14]
sete bl
call fcn.00470660
lea ecx, [ebp - 0xc]
push ecx
test bl, bl
je 0x47368c
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x14]
add edx, 0x159
push edx
push eax
call fcn.00472e90
add esp, 0xc
test eax, eax
jns 0x4736f1
lea ecx, [ebp - 0xc]
mov byte [esi + 0x20], 5
call fcn.00470660
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.00473050
xor edi, edi
add esp, 0x10
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x473674
mov eax, dword [esi + 0x50]
add eax, 0x7c
push 0xb
push eax
call fcn.00472e50
add esp, 8
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], edi
cmp eax, edi
jle 0x4736e5
mov dword [esi + 0x4c], 1
mov dword [esi + 0x54], edi
cmp eax, 0x8000
jge 0x4736dc
mov dword [esi + 0x58], eax
jmp 0x4736f1
mov dword [esi + 0x58], 0x8000
jmp 0x4736f1
mov ecx, dword [esi + 0x48]
push ecx
call fcn.00492b68
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 0x4735b0
lea ecx, [ebp - 0xc]
call fcn.00470660
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473730
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.00476d90
xor edi, edi
cmp dword [esi + 0x44], edi
je 0x47375b
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.0047b860
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.0047bae0
test edi, edi
je 0x473787
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.0047bd50
push ebx
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047b090
push eax
push 1
lea edx, [ebp - 0x30]
push edx
call fcn.0047b070
push eax
call fcn.00498c5a
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.0047b8d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x473fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4fc5b0]
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.004703d0
cmp byte [ebx], 0
push edi
je 0x474009
push 0x5c
push ebx
lea eax, [ebp - 0x30]
push str._s_c_s
push eax
call fcn.00471330
add esp, 0x14
jmp 0x474011
lea ecx, [ebp - 0x30]
call fcn.004707b0
cmp byte [ebp - 0x29], 0xff
lea eax, [ebp - 0x30]
jne 0x47401d
mov eax, dword [ebp - 0x30]
push 0x4d1f20
push eax
call fcn.00492fff
add esp, 8
mov ebx, eax
push edi
test ebx, ebx
jne 0x47404d
push str.Cant_open_file__s_for_reading__skipping_n
call fcn.0049985e
add eax, 0x40
push eax
call fcn.004946ab
add esp, 0xc
jmp 0x47413f
push str.Processing_file__s_for_compression_n
call fcn.0049985e
add eax, 0x20
push eax
call fcn.004946ab
push 0x200
push 0
push esi
call fcn.00491e90
add esp, 0x18
cmp byte [ebp - 0x29], 0xff
lea eax, [ebp - 0x30]
jne 0x47407c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push edi
push ecx
lea ecx, [ebp - 0x28]
mov edx, esi
call fcn.004737c0
add esp, 8
mov dword [ebp - 0x34], eax
test eax, eax
jns 0x4740ce
push edi
push str.Cant_stat__s__skipping_n
call fcn.0049985e
add eax, 0x40
push eax
call fcn.004946ab
push ebx
call fcn.00492b68
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.00470660
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492093
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.00476d40
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.00498494
add esp, 4
test eax, eax
jne 0x474136
push ebx
push 0x8000
push 1
push esi
call fcn.0049872e
add esp, 0x10
test eax, eax
jle 0x474129
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.00498494
add esp, 4
test eax, eax
je 0x474100
push ebx
call fcn.00492b68
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.00470660
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00492093
mov esp, ebp
pop ebp
ret
Function at 0x474860
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x502f8c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, ecx
je 0x474890
call ebx
sub eax, dword [0x502f8c]
cmp eax, 0xc8
jae 0x474890
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 0x4748f8
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], edi
mov ecx, dword [eax]
push 0x4d9bf8
push eax
mov eax, dword [ecx]
call eax
cmp dword [ebp - 4], edi
je 0x4748f8
call ebx
mov edx, dword [ebp + 8]
mov dword [0x502f8c], 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 0x4748d9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, 0x80040088
jne 0x4748f8
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4748f8
push eax
call fcn.00492b68
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 0x474910
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.00476d90
xor edi, edi
cmp dword [esi + 0x40], edi
je 0x47493b
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.0047b860
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.0047bae0
test edi, edi
je 0x474967
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.0047bd50
push ebx
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047b090
push eax
push 1
lea edx, [ebp - 0x30]
push edx
call fcn.0047b070
push eax
call fcn.00498c5a
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.0047b8d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x476b80
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x18]
push eax
mov edi, 0x400
call fcn.0047bf90
add esp, 4
cmp dword [ebp - 0x10], 8
jne 0x476c4c
push esi
lea ecx, [ebp - 0x20]
call fcn.004703d0
push 0x104
lea ecx, [ebp - 0x20]
call fcn.004710f0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00471180
test esi, esi
pop esi
je 0x476c44
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00470450
cmp eax, 0xffffffff
je 0x476c44
push eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00470e50
push eax
lea ecx, [ebp - 0x20]
call fcn.00470710
lea ecx, [ebp - 0x34]
call fcn.00470660
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00470b60
cmp byte [ebp - 0x19], 0xff
lea eax, [ebp - 0x20]
jne 0x476c22
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 0x476c44
mov edi, dword [ebp - 0x28]
imul edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.00470660
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00492093
mov esp, ebp
pop ebp
ret

Function at 0x476d90
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.0047b860
push esi
lea ecx, [ebp - 0x60]
call fcn.0047b0b0
lea eax, [ebp - 0x60]
push eax
call fcn.0047b090
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.0047b860
cmp byte [esi + 0x23], 0xff
lea eax, [esi + 0x1c]
jne 0x476dca
mov eax, dword [eax]
push 4
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047bd50
push edi
lea edx, [ebp - 0x30]
push edx
call fcn.0047bae0
lea eax, [ebp - 0x30]
push eax
call fcn.0047b090
mov ebx, dword [ebp + 8]
push ebx
mov esi, eax
push esi
push 1
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047b070
push eax
call fcn.00498c5a
add esp, 0x10
cmp eax, esi
je 0x476e24
lea ecx, [ebp - 0x30]
call fcn.0047b8d0
lea ecx, [ebp - 0x60]
call fcn.0047b8d0
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.0047b070
push eax
call fcn.00498c5a
add esp, 0x10
lea ecx, [ebp - 0x30]
cmp eax, edi
jne 0x476e0b
call fcn.0047b8d0
lea ecx, [ebp - 0x60]
call fcn.0047b8d0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x479990
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.00479790
cmp byte [eax + 7], 0xff
jne 0x4799aa
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 8]
mov ebx, eax
call fcn.00470660
cmp ebx, 0xffffffff
je 0x4799d0
test bl, 0x10
je 0x4799d0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4799e0
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.00479790
cmp byte [eax + 7], 0xff
jne 0x4799fa
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.00470660
neg esi
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push edi
call fcn.00479860
lea ecx, [ebp - 0x1c]
call fcn.004703d0
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x479c45
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHGetSpecialFolderLocation
push edi
call esi
push 0x4df728
push edi
mov ebx, eax
call esi
mov edi, eax
test edi, edi
jne 0x479adc
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 0x479c39
cmp edi, esi
je 0x479c39
cmp eax, esi
je 0x479c39
lea edx, [ebp - 4]
push edx
push 0x1c
push esi
mov dword [ebp - 4], esi
call ebx
test eax, eax
jne 0x479b47
push 0x105
lea ecx, [ebp - 0x1c]
call fcn.004710f0
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 0x479b96
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 0x479b85
lea eax, [ebp - 4]
push eax
push 0x1a
push esi
call ebx
test eax, eax
jne 0x479ba2
push 0x105
lea ecx, [ebp - 0x1c]
call fcn.004710f0
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 0x479b96
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.00471180
jmp 0x479c01
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 0x479c01
lea ecx, [ebp - 0x10]
push ecx
push 0x105
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x104
call fcn.004710f0
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.00471180
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x15]
cmp cl, 0xff
je 0x479c55
xor eax, eax
cmp cl, 7
sete al
test al, al
jne 0x479c39
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.004798c0
push esi
call fcn.00479990
add esp, 4
test eax, eax
jne 0x479c39
push esi
call fcn.004799e0
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.00470660
mov eax, dword [ebp + 8]
pop edi
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x18], 0
jne 0x479c15
cmp byte [ebp - 0x17], 0
jne 0x479c15
cmp byte [ebp - 0x16], 0
je 0x479c39
jmp 0x479c15
Function at 0x479dc0
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 0x479e4a
push 0x4cfa58
lea ecx, [esi + 4]
call fcn.004704f0
cmp eax, 0xffffffff
je 0x479e4a
add eax, 2
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 4]
call fcn.00470e50
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 0x479e10
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 0x479e42
cmp dword [ebp - 4], esi
je 0x479e42
lea ecx, [ebp - 0x18]
call fcn.00470660
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
call fcn.00470660
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x479e60
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.0049a65f
add esp, 4
test eax, eax
je 0x479e9f
lea esi, [edi + 4]
push eax
mov ecx, esi
call fcn.004707b0
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
mov ecx, edi
call edx
test eax, eax
jne 0x479f53
mov ecx, esi
call fcn.00470630
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x479f10
push 0x104
lea esi, [edi + 4]
push 0x105
mov ecx, esi
call fcn.004710f0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00471180
push 0x5c
mov ecx, esi
call fcn.004704c0
mov ecx, esi
cmp eax, 0xffffffff
jne 0x479ee2
call fcn.00470630
jmp 0x479efc
push eax
lea eax, [ebp - 8]
push eax
call fcn.00470e50
push eax
mov ecx, esi
call fcn.00470710
lea ecx, [ebp - 8]
call fcn.00470660
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
test eax, eax
jne 0x479f53
mov ecx, esi
call fcn.00470630
push 0x104
lea esi, [edi + 4]
push 0x105
mov ecx, esi
call fcn.004710f0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00471180
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
test eax, eax
jne 0x479f53
mov ecx, esi
call fcn.00470630
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 0x479fb7
cmp byte [eax], 0
je 0x479fb7
mov al, byte [esi + 7]
mov ebx, esi
cmp al, 0xff
jne 0x479fc5
mov ebx, dword [esi]
mov edi, ebx
mov ecx, esi
call fcn.004703e0
add eax, ebx
push eax
push edi
call fcn.0047ac20
add esp, 8
cmp byte [esi + 7], 0xff
mov edi, eax
mov ebx, esi
jne 0x479f8b
mov ebx, dword [esi]
mov ecx, esi
call fcn.004703e0
add eax, ebx
lea ecx, [edi + 1]
cmp ecx, eax
jne 0x479fa0
cmp byte [edi], 0x5c
je 0x479fac
push 0x4cf9a0
mov ecx, esi
call fcn.00470ae0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, esi
call fcn.00470ae0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, esi
jmp 0x479f6c
Function at 0x47a000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ecx + 0xb]
push esi
lea esi, [ecx + 4]
cmp al, 0xff
je 0x47a0a5
xor ecx, ecx
cmp al, 7
sete cl
test cl, cl
jne 0x47a0e7
cmp al, 0xff
mov eax, esi
jne 0x47a039
mov eax, dword [esi]
cmp byte [eax], 0x2e
je 0x47a0e7
mov ecx, esi
call fcn.004703e0
cmp eax, 3
jne 0x47a0bc
mov cl, byte [esi + 7]
mov eax, esi
cmp cl, 0xff
jne 0x47a05a
mov eax, dword [esi]
cmp byte [eax + 1], 0x3a
jne 0x47a0bc
mov eax, esi
cmp cl, 0xff
jne 0x47a069
mov eax, dword [esi]
cmp byte [eax + 2], 0x5c
jne 0x47a0bc
cmp cl, 0xff
jne 0x47a076
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x47a091
cmp eax, 4
je 0x47a091
cmp eax, 2
je 0x47a091
cmp eax, 6
jne 0x47a0e7
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492093
mov esp, ebp
pop ebp
ret
cmp byte [esi + 4], 0
jne 0x47a031
cmp byte [esi + 5], 0
jne 0x47a031
cmp byte [esi + 6], 0
je 0x47a0e7
jmp 0x47a031
cmp byte [esi + 7], 0xff
jne 0x47a0c4
mov esi, dword [esi]
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x47a0e7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x144], 0x10
jne 0x47a091
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00492093
mov esp, ebp
pop ebp
ret

Function at 0x47a100
Capabilities:
Get disk information

Disassembly:
push esi
lea esi, [ecx + 4]
mov ecx, esi
call fcn.004703e0
cmp eax, 2
jb 0x47a146
mov al, byte [esi + 7]
mov ecx, esi
cmp al, 0xff
jne 0x47a11b
mov ecx, dword [esi]
cmp byte [ecx + 1], 0x3a
jne 0x47a146
cmp al, 0xff
jne 0x47a127
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x47a13a
mov eax, 1
pop esi
ret
xor ecx, ecx
cmp eax, 2
sete cl
pop esi
mov eax, ecx
ret
xor eax, eax
pop esi
ret

Function at 0x47bf30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x7fffffff
jne 0x47bf49
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x28], 0
jne 0x47bf83
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemFloatingPointProcessor
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47bf43
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x47bf90
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x94
lea eax, [ebp - 0x98]
push 0
or edi, 0xffffffff
push eax
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], 0
call fcn.00491e90
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dx, word [ebp - 0x8c]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
mov word [ebp - 0xa8], dx
xor edx, edx
cmp dword [ebp - 0x88], 2
mov word [ebp - 0xac], ax
sete dl
mov word [ebp - 0xaa], cx
mov esi, edx
test esi, esi
je 0x47c02a
mov edi, 8
jmp 0x47c04b
cmp ax, 4
jae 0x47c037
mov edi, 2
jmp 0x47c04b
jne 0x47c04b
cmp cx, 0xa
sbb edi, edi
and edi, 0xfffffc04
add edi, 0x400
test ebx, ebx
je 0x47c11b
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0xd0]
cmp eax, 3
ja case.default.0x47c070
jmp dword [eax*4 + 0x47c130]
test esi, esi
je 0x47c0b8
mov ax, word [ebp - 0xac]
cmp ax, 3
ja 0x47c094
jne 0x47c0b8
cmp word [ebp - 0xaa], 0x32
jb 0x47c0b8
movzx eax, word [ebp - 0xb0]
sub eax, 4
js 0x47c0dd
test eax, eax
je 0x47c0d6
cmp eax, 1
je 0x47c0cf
sub eax, 2
neg eax
sbb eax, eax
and eax, 0xfffffffb
lea esi, [eax + 4]
jmp 0x47c0fc
mov eax, dword [ebp - 0xb8]
sub eax, 0x182
je 0x47c0dd
sub eax, 0x64
je 0x47c0d6
sub eax, 0x64
jne case.default.0x47c070
mov esi, 2
jmp 0x47c0fc
mov esi, 1
jmp 0x47c0fc
mov esi, 0xfffffffe
jmp 0x47c0fc
mov esi, 0x40
jmp 0x47c0fc
mov esi, 0x20
jmp 0x47c0fc
mov esi, 8
jmp 0x47c0fc
or esi, 0xffffffff
call fcn.0047bf30
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp - 0xa8]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492093
mov esp, ebp
pop ebp
ret

Function at 0x4813b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480e10

Function at 0x4820c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 2]
shr eax, 1
push 2
push eax
call fcn.00493ea1
mov esi, eax
add esp, 8
test esi, esi
jne 0x4820e5
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
push edi
push 1
push esi
call fcn.0049872e
xor edx, edx
cmp eax, edi
setne dl
push esi
mov edi, edx
call fcn.00493e67
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
ret