joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f920
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x1019e704], 0
je 0x1004f957
mov eax, dword [0x1019e708]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1010d699
add esp, 0x98
ret
push 0x90
lea eax, [esp + 8]
push 0
push eax
call fcn.10116880
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [0x1019e704], 1
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 2
cmp dword [esp + 0x10], ecx
jne 0x1004f9cc
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x1004f9cc
jbe 0x1004f9c1
mov dword [0x1019e708], 1
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1010d699
add esp, 0x98
ret
cmp eax, 5
jne 0x1004f9cc
cmp dword [esp + 8], ecx
jae 0x1004f99d
mov ecx, dword [esp + 0x94]
xor ecx, esp
mov dword [0x1019e708], 0
xor eax, eax
call fcn.1010d699
add esp, 0x98
ret

Function at 0x1004f9f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x1019e70c], 0
je 0x1004fa27
mov eax, dword [0x1019e710]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1010d699
add esp, 0x98
ret
push esi
push 0x90
lea eax, [esp + 0xc]
push 0
mov esi, 1
push eax
mov dword [0x1019e70c], esi
call fcn.10116880
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 2
jne 0x1004fa95
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x1004fa95
ja 0x1004fa77
cmp eax, 5
jne 0x1004fa95
cmp dword [esp + 0xc], esi
jb 0x1004fa95
mov dword [0x1019e710], esi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1010d699
add esp, 0x98
ret
mov ecx, dword [esp + 0x98]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1010d699
add esp, 0x98
ret

Function at 0x1004fad0
Capabilities:
Check os version

Disassembly:
sub esp, 0x12c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x128], eax
cmp dword [0x1019e714], 0
jne 0x1004fb9a
push 0x90
lea eax, [esp + 8]
push 0
push eax
call fcn.10116880
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [0x1019e714], 1
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 2
cmp dword [esp + 0x10], ecx
jne 0x1004fb9a
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x1004fb3d
jne 0x1004fb9a
cmp dword [esp + 8], ecx
jb 0x1004fb9a
push 0x90
lea edx, [esp + 0x9c]
push 0
push edx
mov dword [esp + 0xa0], 0
call fcn.10116880
add esp, 0xc
push 0
lea eax, [esp + 0x98]
push eax
call sym.EncDec.dll_MyRtlGetVersion
cmp eax, 1
jne 0x1004fb9a
mov eax, dword [esp + 0x98]
cmp eax, 6
jne 0x1004fb8b
cmp dword [esp + 0x9c], 3
jae 0x1004fb90
jmp 0x1004fb9a
cmp eax, 0xa
jb 0x1004fb9a
mov dword [0x1019e718], 1
mov ecx, dword [esp + 0x128]
mov eax, dword [0x1019e718]
xor ecx, esp
call fcn.1010d699
add esp, 0x12c
ret
Function at 0x1004fbc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x13c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x138], eax
cmp dword [0x1019e71c], 0
je 0x1004fc0f
mov eax, dword [0x1019e720]
test esi, esi
je 0x1004fcd4
test eax, eax
je 0x1004fcd4
mov ecx, dword [0x1019e724]
mov dword [esi], ecx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.1010d699
add esp, 0x13c
ret
push 0x90
lea edx, [esp + 0xc]
push 0
push edx
call fcn.10116880
add esp, 0xc
lea eax, [esp + 4]
push eax
mov dword [0x1019e71c], 1
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 2
cmp dword [esp + 0x14], ecx
jne 0x1004fccf
mov eax, dword [esp + 8]
cmp eax, 6
ja 0x1004fc60
jne 0x1004fccf
cmp dword [esp + 0xc], ecx
jb 0x1004fccf
push 0x90
lea ecx, [esp + 0xa4]
push 0
push ecx
mov dword [esp + 0xa8], 0
call fcn.10116880
add esp, 0xc
push 0
lea edx, [esp + 0xa0]
push edx
call sym.EncDec.dll_MyRtlGetVersion
cmp eax, 1
jne 0x1004fccf
mov eax, dword [esp + 0xa0]
cmp eax, 6
jne 0x1004fcae
cmp dword [esp + 0xa4], 4
jae 0x1004fcb3
jmp 0x1004fccf
cmp eax, 0xa
jb 0x1004fccf
mov eax, dword [esp + 0xa8]
mov dword [0x1019e724], eax
test esi, esi
je 0x1004fcc5
mov dword [esi], eax
mov dword [0x1019e720], 1
mov eax, dword [0x1019e720]
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.1010d699
add esp, 0x13c
ret

Function at 0x1004fd70
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x1019e738], 0
jne 0x1004fde0
push 0x90
lea eax, [esp + 8]
push 0
push eax
call fcn.10116880
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [0x1019e738], 1
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x1004fde0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x1004fdd6
jne 0x1004fde0
cmp dword [esp + 8], 1
jb 0x1004fde0
mov dword [0x1019e73c], 1
mov ecx, dword [esp + 0x94]
mov eax, dword [0x1019e73c]
xor ecx, esp
call fcn.1010d699
add esp, 0x98
ret

Function at 0x1004fe00
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x1019e740], 0
jne 0x1004fe6c
push 0x90
lea eax, [esp + 8]
push 0
push eax
call fcn.10116880
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [0x1019e740], 1
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x1004fe6c
cmp dword [esp + 4], 6
jne 0x1004fe6c
cmp dword [esp + 8], 0
jne 0x1004fe6c
mov dword [0x1019e744], 1
mov ecx, dword [esp + 0x94]
mov eax, dword [0x1019e744]
xor ecx, esp
call fcn.1010d699
add esp, 0x98
ret
Function at 0x1004ff20
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x9c], eax
cmp dword [0x1019e758], 0
jne 0x1004ffb5
push 0x98
lea eax, [esp + 8]
push 0
push eax
call fcn.10116880
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [0x1019e758], 1
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
cmp eax, 5
jb 0x1004ffae
jne 0x1004ffb5
cmp ecx, 1
jne 0x1004ff8e
cmp word [esp + 0x94], 2
jae 0x1004ffb5
jmp 0x1004ffae
cmp ecx, 2
jne 0x1004ffae
cmp word [esp + 0x94], cx
jb 0x1004ffae
call fcn.1004c7c0
cmp eax, 2
mov byte [0x1018cca8], 1
jle 0x1004ffb5
mov byte [0x1018cca8], 0
mov ecx, dword [esp + 0x9c]
mov al, byte [0x1018cca8]
xor ecx, esp
call fcn.1010d699
add esp, 0xa0
ret

Function at 0x10050070
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x1019e764], 0
jne 0x100500ed
push 0x90
lea eax, [esp + 8]
push 0
push eax
call fcn.10116880
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [0x1019e764], 1
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x100500ed
cmp dword [esp + 4], 5
jne 0x100500ed
mov eax, dword [esp + 8]
cmp eax, 1
je 0x100500e3
cmp eax, 2
jne 0x100500ed
call fcn.1004c7c0
cmp eax, 2
jg 0x100500ed
mov dword [0x1019e768], 1
mov ecx, dword [esp + 0x94]
mov eax, dword [0x1019e768]
xor ecx, esp
call fcn.1010d699
add esp, 0x98
ret
Function at 0x10053200
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
xor eax, eax
push 0x10148b5c
push ecx
mov byte [esp + 0x10], 0
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov byte [esp + 0x19], al
call fcn.1010ebfe
mov esi, eax
add esp, 8
test esi, esi
je 0x1005328f
push ebx
push 0x101513e0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push esi
push edi
lea eax, [esp + 0x14]
push 1
push eax
call fcn.1010eeb5
push esi
mov ebx, eax
call fcn.1010f263
add esp, 0x14
cmp ebx, edi
pop ebx
jne 0x1005328f
push edi
mov eax, 0x101513e0
lea ecx, [esp + 0xc]
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x1005328f
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1010d699
add esp, 0x10
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.1010d699
add esp, 0x10
ret
Function at 0x100551a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x928
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x924], eax
mov eax, dword [esp + 0x92c]
push ebx
push esi
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], bl
call fcn.10116880
add esp, 0xc
push str.SYSTEMCurrentControlSet_servicesSharedAccessParametersFirewallPolicyFirewallRules
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebx
lea ecx, [esp + 0x24]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x100553ec
push ebp
push edi
push 0x3ff
lea edx, [esp + 0x539]
push ebx
push edx
call fcn.10116880
push 0x40f
lea eax, [esp + 0x135]
push ebx
push eax
call fcn.10116880
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x128]
push edx
mov edx, dword [esp + 0x20]
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x548]
push ecx
push ebx
push edx
xor edi, edi
mov byte [esp + 0x144], bl
mov byte [esp + 0x554], bl
mov dword [esp + 0x30], 0x400
mov dword [esp + 0x34], 0x410
call ebp
test eax, eax
jne 0x100553db
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x128]
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
je 0x10055390
push str.ProfilePublic
lea ecx, [esp + 0x128]
xor esi, esi
call fcn.10047020
add esp, 4
lea ecx, [esp + 0x124]
cmp eax, 0xffffffff
je 0x100552e0
push ebx
push 0x1013f817
push str.ProfilePublic
push ecx
jmp 0x10055333
push str.ProfilePrivate
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
je 0x10055307
push ebx
push 0x1013f817
push str.ProfilePrivate
lea edx, [esp + 0x130]
push edx
jmp 0x10055333
push str.ProfileDomain
lea ecx, [esp + 0x128]
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
je 0x10055340
push ebx
push 0x1013f817
push str.ProfileDomain
lea eax, [esp + 0x130]
push eax
call fcn.10047ed0
add esp, 0x10
mov esi, 1
push str.EmbedCtxt
lea ecx, [esp + 0x128]
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x1005536e
push str.EmbedCtxteScan_Security
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x10055372
cmp esi, ebx
je 0x10055390
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x53c]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.100312a0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x128]
push edx
mov edx, dword [esp + 0x20]
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x548]
push ecx
inc edi
push edi
push edx
mov byte [esp + 0x144], bl
mov byte [esp + 0x554], bl
mov dword [esp + 0x30], 0x400
mov dword [esp + 0x34], 0x410
call ebp
test eax, eax
je 0x10055293
mov eax, dword [esp + 0x18]
pop edi
pop ebp
cmp eax, ebx
je 0x100553ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x92c]
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x928
ret
Function at 0x10055640
Capabilities:
Check os version
Delete registry value

Disassembly:
sub esp, 0x51c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x518], eax
cmp dword [0x1019e748], 0
push ebx
mov ebx, dword [esp + 0x524]
push esi
jne 0x10055687
mov esi, 1
mov dword [0x1019e748], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x10055687
cmp al, 6
jb 0x10055687
mov dword [0x1019e74c], esi
jmp 0x10055690
cmp dword [0x1019e74c], 0
je 0x10055709
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
call fcn.10116880
push 0x40e
lea ecx, [esp + 0x122]
push 0
push ecx
call fcn.10116880
mov al, byte [ebx]
xor edx, edx
add esp, 0x18
mov word [esp + 0x110], dx
mov byte [esp + 0xc], 0
lea ecx, [esp + 0x110]
mov edx, ebx
test al, al
je 0x100556e7
movzx ax, al
inc edx
mov word [ecx], ax
mov al, byte [edx]
add ecx, 2
test al, al
jne 0x100556d6
xor edx, edx
lea eax, [esp + 0xc]
lea ebx, [esp + 0x110]
mov word [ecx], dx
call fcn.10062a00
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x100557c8
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfileAuthorizedApplicationsList
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call ebp
test esi, esi
jne 0x100557b1
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x10055760
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x100557c6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x534], 1
jne 0x100557c1
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyDomainProfileAuthorizedApplicationsList
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov esi, eax
push esi
call ebp
test esi, esi
jne 0x100557b1
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x100557b6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x100557c6
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop ebp
mov ecx, dword [esp + 0x520]
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x51c
ret 8
Function at 0x10056fe0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x730
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x72c], eax
push esi
push edi
push 0x207
lea eax, [esp + 0x1d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x24], 0
call fcn.10116880
push 0x207
lea ecx, [esp + 0x53d]
push 0
push ecx
mov byte [esp + 0x544], 0
call fcn.10116880
push 0x207
lea edx, [esp + 0x341]
push 0
push edx
mov byte [esp + 0x348], 0
call fcn.10116880
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x24
push esi
lea eax, [esp + 0x530]
push eax
mov dword [esp + 0x14], 0
call edi
push esi
lea ecx, [esp + 0x328]
push ecx
call edi
lea edx, [esp + 0x324]
push 0x5c
push edx
call fcn.1010d780
add esp, 8
test eax, eax
je 0x10057096
mov byte [eax], 0x2f
inc eax
push 0x5c
push eax
call fcn.1010d780
add esp, 8
test eax, eax
jne 0x10057083
push ebx
push ebp
lea eax, [esp + 0x32c]
push eax
lea ecx, [esp + 0x24]
push str.SoftwareMicrosoftWindowsCurrentVersionModuleUsage_s
push ecx
call fcn.1010d6a8
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x2c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call ebx
test esi, esi
jne 0x10057100
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x20]
mov eax, reloc.OLEAUT32.dll_SysReAllocString
call fcn.10048ba0
lea edx, [esp + 0x20]
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDlls
push edx
call fcn.1010d6a8
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x2c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
mov esi, eax
push esi
call ebx
pop ebp
pop ebx
test esi, esi
jne 0x100571ed
push 0x103
lea edx, [esp + 0x225]
push 0
push edx
mov byte [esp + 0x22c], 0
call fcn.10116880
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x224]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0x53c]
push eax
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100571c5
lea edx, [esp + 0x52c]
lea esi, [eax + 1]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x72c]
xor ecx, esp
call fcn.1010d699
add esp, 0x730
ret
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x72c]
xor ecx, esp
call fcn.1010d699
add esp, 0x730
ret
mov ecx, dword [esp + 0x734]
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.1010d699
add esp, 0x730
ret
Function at 0x10057bb0
Capabilities:
Get disk information via ioctl
Get storage device properties

Disassembly:
sub esp, 0x14
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
push ebp
push edi
xor ebp, ebp
push ebp
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push 0xc
lea eax, [esp + 0x20]
push eax
push 0x2d1400
push ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, 1
jne 0x10057c22
cmp esi, ebp
je 0x10057c22
push ebp
lea ecx, [esp + 0xc]
push ecx
push 0xc
push esi
push ebp
xor eax, eax
push ebp
mov dword [esi], eax
push 0x2d1080
mov dword [esi + 4], eax
push ebx
mov dword [esi + 8], eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, edi
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
xor ecx, esp
call fcn.1010d699
add esp, 0x14
ret 4

Function at 0x10057c40
Capabilities:
Get disk information

Disassembly:
sub esp, 0x31c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push ebp
xor ebx, ebx
push 0x103
lea eax, [esp + 0x11d]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x124], bl
call fcn.10116880
push 0x103
lea ecx, [esp + 0x25]
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x104
xor ebp, ebp
mov byte [esp + 0x2c], bl
call fcn.10116880
push 0x103
lea edx, [esp + 0x239]
push ebx
push edx
mov byte [esp + 0x240], bl
call fcn.10116880
lea edx, [esp + 0x38]
add esp, 0x24
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10057cc0
cmp byte [esp + 0x14], 0x5c
je 0x10057ce6
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.1011063b
add esp, 8
cmp eax, ebx
je 0x10057ce6
mov byte [eax], bl
cmp byte [esp + 0x14], bl
je 0x10057d12
lea eax, [esp + 0x14]
inc eax
cmp byte [eax], bl
jne 0x10057cf0
lea ecx, [esp + 0x14]
sub eax, ecx
je 0x10057d12
cmp byte [esp + eax + 0x13], 0x5c
je 0x10057d12
push 0x10149ea8
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x104
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [esp + 0x118]
push 0x10149b74
push eax
call fcn.1010fbae
add esp, 8
test eax, eax
jne 0x10057d62
lea ebp, [eax + 1]
cmp edi, ebx
je 0x10057d7d
lea eax, [esp + 0x118]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10057d73
mov ecx, dword [esp + 0x320]
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x31c
ret
Function at 0x10058e60
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
je 0x10058fa3
push ebx
lea eax, [esp + 0x10]
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0x104
mov byte [edi], 0
call fcn.100315c0
cmp byte [edi], 0
je 0x10058f22
call fcn.10044b00
test eax, eax
je 0x10058f22
call fcn.1004fe90
test eax, eax
je 0x10058f4f
mov eax, str.Common_AppData
mov ecx, ebx
call fcn.10031890
test eax, eax
jne 0x10058f4f
push 0x103
push eax
mov byte [esp + 0x18], al
lea eax, [esp + 0x19]
push eax
call fcn.10116880
add esp, 0xc
push edi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
call fcn.10049c40
push str.microsoft
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10044cc0
add esp, 8
test eax, eax
jne 0x10058f4f
push edi
mov byte [edi], 0
call fcn.10058320
add esp, 4
cmp byte [edi], 0
je 0x10058fa3
call fcn.10044b00
cmp eax, 1
jne 0x10058f4f
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, ebx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.100312a0
cmp byte [edi], 0
je 0x10058fa3
cmp dword [ebp + 8], 0
jne 0x10058f76
mov esi, edi
call fcn.10049c80
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.10044cc0
add esp, 8
test eax, eax
jne 0x10058f9c
mov byte [edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.10049c40
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
Function at 0x1005a120
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
test esi, esi
je 0x1005a17d
cmp byte [esi], 0
je 0x1005a17d
push 0
push esi
call fcn.10044cc0
add esp, 8
test eax, eax
jne 0x1005a174
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push esi
mov dword [esp + 8], 0xc
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
je 0x1005a174
push esi
call fcn.1005a190
add esp, 4
add esp, 0xc
ret
mov eax, 1
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret

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

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1005a1ca
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005a1bf
test al, 0x10
je 0x1005a1bf
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
ret
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
ret

Function at 0x1005a1d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
test ecx, ecx
je 0x1005a213
test eax, eax
je 0x1005a213
cmp byte [ecx], 0
je 0x1005a213
mov edx, 4
mov dword [esp], edx
mov dword [esp + 4], edx
lea edx, [esp]
push edx
push eax
mov dword [eax], 0xffffffff
lea eax, [esp + 0xc]
push eax
push 0
push ecx
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret
xor eax, eax
add esp, 8
ret