joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7858d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2cb000]
push edi
or ebp, 0xffffffff
jmp 0x7858f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7858f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7858e8
mov eax, 1
add ebx, ebx
jne 0x78590b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x78591c
jne 0x78593b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x78593b
dec eax
add ebx, ebx
jne 0x785928
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x785900
add ebx, ebx
jne 0x785937
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x78598d
xor ecx, ecx
sub eax, 3
jb 0x785953
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7859c2
sar eax, 1
mov ebp, eax
jmp 0x78595e
add ebx, ebx
jne 0x78595e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x78592c
inc ecx
add ebx, ebx
jne 0x78596c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x78592c
add ebx, ebx
jne 0x785979
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x78596e
jne 0x78598a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x78596e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7859ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x78599e
jmp 0x7858ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7859ac
add edi, ecx
jmp 0x7858ee
pop esi
mov edi, esi
mov ecx, 0xb71f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7859ca
cmp byte [edi], 0x3f
jne 0x7859ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7859cf
lea edi, [esi + 0x381000]
mov eax, dword [edi]
or eax, eax
je 0x785a3e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x394290]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3943bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7859fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3943c0]
or eax, eax
je 0x785a38
mov dword [ebx], eax
add ebx, 4
jmp 0x785a19
call dword [esi + 0x3943d0]
mov ebp, dword [esi + 0x3943c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x785a72
sub esp, 0xffffff80
jmp 0x581840
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x401032
xor eax, eax
jmp 0x4010ed
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0xe
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40106d
cmp dword [ebp - 0x24], 0xe
jne 0x40106d
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
xor edx, edx
mov dx, word [0x40f85c]
cmp ecx, edx
je 0x40107b
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4010ed
mov ecx, dword [ebp - 0x12]
sub ecx, 0xe
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00404bfa
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4010a7
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4010ed
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x4010da
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 4]
je 0x4010ea
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00404bcb
add esp, 4
xor eax, eax
jmp 0x4010ed
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x403e41
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.HardwareDescriptionSystemCentralProcessor0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403ebb
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0
push str.MHz
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403ebb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
fild qword [ebp - 0x20]
fstp qword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
je 0x403ecb
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4043e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00404bfa
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40440d
push str.malloc
call fcn.0040571f
add esp, 4
push 1
call fcn.00405539
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40474a
Capabilities:
Check mutex on windows
Create process on windows
Get file size
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push str.PatchEIOffice
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x20c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40478c
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x404997
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea edx, [ebp - 0x208]
push edx
call fcn.00404698
add esp, 8
test eax, eax
jne 0x4047bb
mov eax, 1
jmp 0x404997
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x310]
push ecx
call fcn.00404c80
add esp, 8
push str.UpgradeOnUpgrade.ini
lea edx, [ebp - 0x208]
push edx
call fcn.00404c90
add esp, 8
push 0x4102ac
lea eax, [ebp - 0x208]
push eax
call fcn.004054c4
add esp, 8
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x404995
mov ecx, dword [ebp - 0x314]
push ecx
call fcn.004052b6
add esp, 4
lea edx, [ebp - 0x208]
push edx
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0x411074
push str.filename
push 0x4102bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.Upgradepatch_
lea ecx, [ebp - 0x310]
push ecx
call fcn.00404c90
add esp, 8
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x310]
push eax
call fcn.00404c90
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 1
push 3
push 0
push 0
push 0x80000000
lea ecx, [ebp - 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0xffffffff
jne 0x4048bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4048b5
mov eax, 1
jmp 0x404997
xor eax, eax
jmp 0x404997
push 0
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x208]
push ecx
push 0x104
lea edx, [ebp - 0x41c]
push edx
push 0x411078
push str.filesize
push str.Patch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x41c]
push eax
call fcn.004057e7
add esp, 4
cmp eax, dword [ebp - 0x318]
jne 0x404995
push 0x44
push 0
lea ecx, [ebp - 0x474]
push ecx
call fcn.00404e10
add esp, 0xc
mov dword [ebp - 0x474], 0x44
push 0x10
push 0
lea edx, [ebp - 0x430]
push edx
call fcn.00404e10
add esp, 0xc
push str.__ss
lea eax, [ebp - 0x310]
push eax
call fcn.00404c90
add esp, 8
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x474]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x310]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404995
mov eax, 1
jmp 0x404997
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x408bb1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4107e0
cmp edx, dword [eax]
je 0x408bd3
add eax, 8
inc ecx
cmp eax, 0x410870
jl 0x408bc4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4107e0]
jne 0x408d01
mov eax, dword [0x4110d8]
cmp eax, 1
je 0x408cdb
test eax, eax
jne 0x408c04
cmp dword [0x410444], 1
je 0x408cdb
cmp edx, 0xfc
je 0x408d01
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408c3b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404c80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404d70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408c7e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404d70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d8b4
push edi
call fcn.0040aee0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404c80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404c90
lea eax, [ebp - 0xa0]
push 0x40d894
push eax
call fcn.00404c90
push dword [esi + 0x4107e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404c90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ae4a
add esp, 0x2c
pop edi
jmp 0x408d01
lea eax, [ebp + 8]
lea esi, [esi + 0x4107e4]
push 0
push eax
push dword [esi]
call fcn.00404d70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406739
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x469c7c], 0
jne 0x406777
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40674d
mov dword [ecx*4 + 0x469c78], eax
inc ecx
cmp ecx, 0x100
jl 0x406748
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4067a4
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469c78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406785
not eax
pop ebp
ret 0xc

Function at 0x5324c80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x5324d8c
test eax, eax
je 0x5324d8c
push esi
push edi
mov ecx, 0x10
mov esi, 0x533fff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x5324d73
lea edi, [eax + 4]
jmp 0x5324cd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x5324cec
mov dword [ebp - 4], 2
jmp 0x5324d0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x5324d03
mov dword [ebp - 4], 1
jmp 0x5324d0d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x5324d83
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x5324d46
mov byte [ecx], 0x3d
jmp 0x5324d52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x5324d5d
mov byte [ecx], 0x3d
jmp 0x5324d63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x5324cd4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e5870
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x90000]
push edi
jmp 0x4e588a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e5891
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e5880
mov eax, 1
add ebx, ebx
jne 0x4e58a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e58b4
jne 0x4e58d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e58d3
dec eax
add ebx, ebx
jne 0x4e58c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e5898
add ebx, ebx
jne 0x4e58cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e5925
xor ecx, ecx
sub eax, 3
jb 0x4e58eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e595a
sar eax, 1
mov ebp, eax
jmp 0x4e58f6
add ebx, ebx
jne 0x4e58f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e58c4
inc ecx
add ebx, ebx
jne 0x4e5904
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e58c4
add ebx, ebx
jne 0x4e5911
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e5906
jne 0x4e5922
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e5906
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e5944
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e5936
jmp 0x4e5886
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e5944
add edi, ecx
jmp 0x4e5886
pop esi
mov edi, esi
mov ecx, 0x404d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e5962
cmp byte [edi], 0x11
jne 0x4e5962
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e5967
lea edi, [esi + 0xde000]
mov eax, dword [edi]
or eax, eax
je 0x4e59df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf2b14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf2c90]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e5994
mov ecx, edi
jns 0x4e59c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf2c94]
or eax, eax
je 0x4e59d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4e59b1
call dword [esi + 0xf2ca4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e5a10
cmp al, 0xef
ja 0x4e5a03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e59e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e59f2
mov ebp, dword [esi + 0xf2c98]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e5a44
sub esp, 0xffffff80
jmp 0x429ab7
Function at 0x4013da
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x5056b0
jmp 0x4013ce
mov eax, 0x4c4ecc
call fcn.00457134
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004014e0
mov eax, dword [0x4fd8e8]
lea ecx, [esi + 0xa0]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [0x4fd8e8]
mov dword [esi + 0xb0], eax
push 1
mov dword [esi], 0x4cc7bc
or dword [esi + 0x20], 0xffffffff
or dword [esi + 0x1c], 0xffffffff
pop edi
mov dword [esi + 0x28], ebx
push 0xa
mov dword [esi + 0x24], ebx
pop eax
mov byte [ebp - 4], 2
push 0x64
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], eax
pop eax
push 0x5056ac
mov dword [esi + 0x2c], 2
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], ebx
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], 0x3e8
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], 0xc0
mov dword [esi + 0x84], 0x6c
mov dword [esi + 0x9c], ebx
call fcn.004af73d
push 0x5056ac
lea ecx, [esi + 0xb0]
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
call fcn.004af73d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40ac6e
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c5cb0
call fcn.00457134
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x505768
push str.DataFile_Types
mov ecx, esi
call fcn.004c23a1
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x40aca4
xor eax, eax
jmp 0x40adec
mov eax, dword [0x4fd8e8]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], ebx
call edi
cmp eax, 0x103
je 0x40adbc
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4ebf3c
push eax
call fcn.004aced7
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004c2453
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004af6ed
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004af5a6
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004c2453
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004af6ed
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004af5a6
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004c23e7
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x40ad95
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x40ad95
cmp eax, 0xffffffff
je 0x40ad95
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040aed9
lea eax, [ebp - 0x38]
inc dword [ebp - 0x20]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24], 0x100
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
jmp 0x40ace0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004af5a6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004af5a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004af5a6
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40bf42
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
mov edi, 0x4ceb78
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push ebx
push eax
call fcn.00457160
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov eax, dword [eax]
sete cl
or cx, 0x4008
push ecx
lea ecx, [ebp - 0x2bc]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 8]
mov esi, eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
and ecx, eax
mov dword [ebp - 8], edi
call fcn.0040c2b6
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40cb39
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push edi
push esi
lea eax, [ebp - 0x2b4]
push 0
mov edi, ecx
push eax
call fcn.00457160
mov eax, dword [ebp + 8]
add esp, 0xc
or ax, 0x4008
push eax
lea eax, [ebp - 0x2b4]
push esi
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b0]
pop edi
pop esi
leave
ret 4

Function at 0x40e24a
Capabilities:
Check os version

Disassembly:
mov eax, 0x4c6193
call fcn.00457134
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.004b4337
mov eax, dword [0x4fd8e8]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x4cf148
jne 0x40e2d0
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.00457160
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x40e2c9
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x40e2d0
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0045792d
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x40e2e5
call fcn.004ad5b8
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0040e4aa
push eax
call fcn.00457160
push 0x200002
call fcn.004afb7a
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.0040e4aa
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040e4aa
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0040e4aa
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0040e4aa
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0040e4aa
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0040e4aa
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0040e4aa
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x40e3a2
mov ecx, esi
call fcn.0040e4aa
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.004c2202
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040e4aa
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0040e4aa
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x40e0d3
je 0x40e3db
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x40e41a
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.004af73d
push ebx
mov ecx, edi
call fcn.004af9eb
push 0x7c
push eax
call fcn.00457904
pop ecx
cmp eax, ebx
pop ecx
je 0x40e40d
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x40e3f7
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0040e4aa
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c