joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4104e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e09ac
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push esi
mov esi, dword [esp + 0x168]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4106c4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4106c4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4106c4
test al, 0x10
je 0x4106c4
push ebp
push esi
lea ecx, [esp + 0x18]
call fcn.005d0e15
push 0x5c
lea ecx, [esp + 0x18]
mov dword [esp + 0x16c], ebx
call fcn.005ce7ed
mov ecx, 0x4e
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push 0x6391c0
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.005d103c
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.005d0da7
cmp ebp, 0xffffffff
je 0x4106a8
mov esi, dword [esp + 0x178]
mov edi, dword [esp + 0x174]
mov bl, 2
lea eax, [esp + 0x4c]
push 0x6394b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41067b
lea ecx, [esp + 0x4c]
push 0x6394b0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41067b
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x10]
push edx
call fcn.005d0e15
mov al, byte [esp + 0x20]
mov byte [esp + 0x168], 1
test al, 0x10
je 0x410660
lea eax, [esp + 0x14]
push 0x6333c8
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.005d103c
lea edx, [esp + 0x10]
mov byte [esp + 0x168], bl
push edx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.005d0fd6
mov eax, dword [eax]
push esi
push edi
push eax
mov byte [esp + 0x174], 3
call fcn.004104e0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], bl
call fcn.005d0da7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], 1
call fcn.005d0da7
jmp 0x410662
inc dword [edi]
test esi, esi
je 0x41066a
cmp esi, dword [edi]
jbe 0x410690
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.005d0da7
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4106a1
jmp 0x4105af
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.005d0da7
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], 0xffffffff
call fcn.005d0da7
mov eax, 1
pop ebp
jmp 0x4106c6
xor eax, eax
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x411330
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x2818
call fcn.00442300
mov eax, dword [esp + 0x2820]
mov ecx, dword [esp + 0x2824]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2828]
push edi
xor ebx, ebx
xor edi, edi
mov dword [eax], ebx
cmp esi, ebx
mov dword [esp + 0x1c], edi
mov dword [ecx], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
je 0x411481
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push 0x2800
push eax
push 2
push esi
mov dword [esp + 0x34], ebx
call ebp
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4113cf
call ebx
cmp eax, 0x7a
jne 0x4114ae
mov edi, dword [esp + 0x20]
push edi
call fcn.005d1478
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x41149b
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
push 2
push esi
call ebp
test eax, eax
je 0x4114ae
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push eax
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 0
mov byte [esp + 0x42], 0
mov byte [esp + 0x43], 0
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4114c1
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jbe 0x4114e6
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esp + 0x2c]
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
push ecx
push edx
call ebx
test eax, eax
jne 0x411451
mov eax, dword [esp + 0x28]
inc esi
add edi, 8
cmp esi, eax
jb 0x411432
jmp 0x4114e6
mov eax, dword [esp + esi*8 + 0x30]
mov dword [esp + 0x1c], 1
test al, 8
je 0x41146e
mov ecx, dword [esp + 0x2830]
mov dword [ecx], 1
test al, 4
je 0x4114e6
mov edx, dword [esp + 0x2834]
mov dword [edx], 1
jmp 0x4114e6
cmp dword [0x66fd48], ebx
je 0x411533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CAgentNWMgrU::CheckCurrentUserIsAdmin__ERROR___GetCurrentToken_Failed____08x_
jmp 0x4114d2
mov eax, dword [0x66fd48]
test eax, eax
je 0x4114e6
call ebx
push eax
push str.CAgentNWMgrU::CheckCurrentUserIsAdmin__ERROR___new_UCHAR_Failed____08x_
jmp 0x4114d2
mov eax, dword [0x66fd48]
test eax, eax
je 0x4114e6
call ebx
push eax
push str.CAgentNWMgrU::CheckCurrentUserIsAdmin__ERROR___GetTokenInformation_Failed____08x_
jmp 0x4114d2
mov eax, dword [0x66fd48]
test eax, eax
je 0x4114e6
call ebx
push eax
push str.CAgentNWMgrU::CheckCurrentUserIsAdmin__ERROR___AllocateAndInitializeSid_Failed____08x_
push str.Funclib
push 0xf
push 0x66fcdc
call fcn.004277c0
add esp, 0x14
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x4114fb
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x41150c
push eax
call fcn.005d14a1
add esp, 4
mov eax, dword [0x66fd48]
mov edi, dword [esp + 0x1c]
cmp eax, ebx
je 0x411533
push edi
push str.CAgentNWMgrU::CheckCurrentUserIsAdmin____d_
push str.Funclib
push 0xf
push 0x66fcdc
call fcn.004277c0
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2818
ret
Function at 0x4128d0
Capabilities:
Check if file exists
Get disk size
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e0b0b
push eax
mov edx, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x414
push ebp
push esi
xor esi, esi
cmp edx, esi
je 0x4129f8
mov ebp, dword [esp + 0x430]
cmp ebp, esi
jne 0x41291c
cmp dword [esp + 0x434], esi
jne 0x41291c
cmp dword [esp + 0x438], esi
je 0x4129f8
push ebx
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
push edx
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
call fcn.0045aaa0
mov ebx, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [esp + 0x42c], esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41297b
test al, 0x10
je 0x41297b
mov ecx, dword [esp + 0x440]
mov edx, dword [esp + 0x43c]
mov eax, dword [esp + 0x10]
push ecx
push edx
push ebp
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4129c9
mov edx, dword [esp + 0x10]
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0x207
push ecx
push edx
call fcn.0047bf30
add esp, 0xc
test eax, eax
je 0x4129c9
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00443310
add esp, 8
test eax, eax
je 0x4129c9
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.0045b5f0
jmp 0x412949
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.0045b310
pop edi
mov eax, esi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x414]
mov dword fs:[0], ecx
add esp, 0x420
ret
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x420
ret
Function at 0x415630
Capabilities:
Copy file

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
je 0x4156b0
mov edi, dword [esp + 0x18]
test edi, edi
je 0x415651
push 0
push edi
call fcn.00483e50
add esp, 8
test eax, eax
jne 0x415668
mov edi, dword [esp + 0x14]
test edi, edi
je 0x415682
push 0
push edi
call fcn.00483e50
add esp, 8
test eax, eax
je 0x415682
push esi
push edi
call fcn.004154f0
add esp, 8
test eax, eax
jne 0x4156b0
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
ret
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4156b0
push 0
push edi
call fcn.00483e50
add esp, 8
test eax, eax
je 0x4156b0
push esi
push edi
call fcn.004154f0
add esp, 8
test eax, eax
jne 0x4156b0
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
ret
Function at 0x419330
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
xor ebp, ebp
xor ebx, ebx
cmp edi, esi
je 0x419411
xor eax, eax
push 2
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push 0xc
push ecx
mov dword [esp + 0x24], eax
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 8
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x419418
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x41941d
test eax, eax
jbe 0x41941d
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0
push edx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x4193d0
mov eax, dword [esp + 0x20]
test byte [eax + 1], 0x10
jne 0x4193d7
add eax, 8
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4193de
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x41938f
jmp 0x41941d
mov ebx, 3
jmp 0x41941d
mov ebx, 4
jmp 0x41941d
mov eax, dword [esp + 0x28]
mov ebp, 1
cmp eax, 0x10000000
jne 0x41941d
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x419408
mov ecx, dword [eax + 4]
and ecx, 0x1f0000
cmp ecx, 0x1f0000
je 0x41941d
mov ebx, 5
xor ebp, ebp
jmp 0x41941d
mov ebx, 1
jmp 0x41941d
mov ebx, 2
mov eax, dword [0x66fd48]
test eax, eax
je 0x41944d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push esi
push edx
push eax
push edi
push ebx
push ebp
push str.CKSecurity::IsInAcl_____Inner___ret:__d___myerror:__d___Acl:__08x___Sid:__08x___Mask:__08x___Index:__d_
push str.Security
push 0xf
push 0x66fcdc
call fcn.004277c0
add esp, 0x28
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x419590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e0fe5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x60], 0x5f6b7c
mov dword [esi + 0x64], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], edi
lea ecx, [esi + 0x80]
mov dword [esp + 0x18], edi
call fcn.00462020
lea ecx, [esi + 0x90]
mov byte [esp + 0x18], 1
call fcn.00462020
lea ebx, [esi + 0xa0]
push edi
mov ecx, ebx
mov byte [esp + 0x1c], 2
call fcn.0044081e
mov dword [ebx], 0x5f6b64
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [esp + 0x18], 3
mov dword [esi], 0x5f6b60
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.00419750
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4199d0
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, dword [0x6708e0]
test eax, eax
jne 0x4199ef
push 1
push 0x63dfb0
push 0xffffffffffffffff
call fcn.0048f0f0
add esp, 0xc
mov dword [0x6708e0], eax
ret

Function at 0x41a9a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x30c
push ebp
push esi
mov esi, dword [esp + 0x318]
push edi
test esi, esi
mov ebp, ecx
je 0x41aba0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41aba0
mov ecx, 0x40
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00442650
mov al, byte [esp + 0x18]
add esp, 0xc
cmp al, 0x5c
jne 0x41ab10
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xc
lea ecx, [esp + 0x10]
push 0x63e468
push ecx
stosb byte es:[edi], al
call fcn.004491e0
add esp, 0xc
test eax, eax
jne 0x41aabe
mov edi, 0x63e458
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11d]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x120], 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x41aba0
cmp eax, 0x104
jb 0x41ab09
pop edi
pop esi
pop ebp
add esp, 0x30c
ret 8
push 4
lea eax, [esp + 0x10]
push 0x639898
push eax
call fcn.004491e0
add esp, 0xc
test eax, eax
jne 0x41ab10
lea ecx, [esp + 0x10]
push 0x103
lea edx, [esp + 0x114]
push ecx
push edx
call fcn.00442650
lea eax, [esp + 0x11c]
push 0x103
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00442650
add esp, 0x18
jmp 0x41ab10
mov esi, dword [esp + 0x31c]
lea edx, [esp + 0xc]
push 0x104
push edx
mov ecx, ebp
call fcn.0041b350
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 4]
test eax, eax
je 0x41ab89
lea eax, [esp + 0xc]
push 0x7e
push eax
call fcn.00442790
add esp, 8
test eax, eax
je 0x41ab89
lea ecx, [esp + 0x214]
push 0x104
lea edx, [esp + 0x10]
push ecx
push edx
call dword [ebp + 4]
test eax, eax
jbe 0x41ab89
cmp eax, 0x104
jae 0x41ab89
mov eax, dword [esp + 0x320]
lea ecx, [esp + 0x214]
dec eax
push eax
push ecx
jmp 0x41ab97
mov edx, dword [esp + 0x320]
lea eax, [esp + 0xc]
dec edx
push edx
push eax
push esi
call fcn.00442650
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x30c
ret 8
Function at 0x41abb0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5e10e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004620f0
mov ebp, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.004620f0
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x41ac26
cmp eax, ecx
jne 0x41ac26
mov edx, dword [esi + 0x78]
test edx, edx
je 0x41ac26
cmp edi, edx
jb 0x41ac26
add edx, 0x493e0
cmp edx, edi
jae 0x41ac2e
mov dword [esp + 0x38], 1
mov edx, dword [0x66fd48]
test edx, edx
je 0x41ac61
mov edx, dword [esi + 0x7c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esi + 0x78]
push edi
push edx
push eax
push ecx
push str.CProcMgr::EnumVolumesW___08x______08x____d______d____enum_:__d___loop_:__d_
push str.EnumVolumes
push 0xf
push 0x66fcdc
call fcn.004277c0
add esp, 0x28
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x41acb4
mov ecx, dword [esi + 0x7c]
lea eax, [esi + 0xa0]
inc ecx
push 1
mov dword [esi + 0x7c], ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00440a05
lea ecx, [esi + 0x80]
mov dword [esp + 0x30], 0
push ecx
mov ecx, ebx
call fcn.00462340
add esi, 0x90
mov ecx, ebp
push esi
call fcn.00462340
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x41ad26
push ebp
push ebx
mov ecx, esi
mov dword [esi + 0x7c], 0
call fcn.0041ad70
lea edx, [esi + 0xa0]
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.00440a05
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x78], edi
lea edi, [esi + 0x80]
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x38], 1
mov dword [esi + 0x74], eax
call fcn.004620f0
push ebx
mov ecx, edi
call fcn.00462340
add esi, 0x90
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004620f0
push ebp
mov ecx, esi
call fcn.00462340
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00440a41
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x41ad70
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5e1106
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.004620f0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.004620f0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x41aea9
mov edx, dword [0x63849c]
mov cx, word [0x6384a0]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.0045aaa0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.00462780
mov edx, dword [0x5fac04]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x103
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.0045b5f0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00462780
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.0045b310
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0045b310
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x41adcb
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 8
Function at 0x41b470
Capabilities:
Get disk information

Disassembly:
sub esp, 0x110
xor eax, eax
push ebx
mov word [esp + 5], ax
push ebp
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x120]
xor ebx, ebx
push edi
cmp eax, 3
mov edi, ecx
mov byte [esp + 0xc], bl
jbe 0x41b49d
mov eax, 3
mov ebp, dword [esp + 0x120]
push eax
lea ecx, [esp + 0x10]
push ebp
push ecx
call fcn.00441770
mov al, byte [esp + 0x18]
add esp, 0xc
cmp al, 0x43
jl 0x41b4bf
cmp al, 0x5a
jle 0x41b4c7
cmp al, 0x63
jl 0x41b4f1
cmp al, 0x7a
jg 0x41b4f1
cmp byte [esp + 0xd], 0x3a
jne 0x41b4f1
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, ebx
je 0x41b4f1
cmp eax, 2
je 0x41b4f1
cmp eax, 3
je 0x41b4f1
cmp eax, 5
je 0x41b4f1
cmp eax, 6
jne 0x41b4ff
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 8
mov eax, dword [edi + 0x5c]
push esi
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x41b51a
push eax
call fcn.0048d0d0
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x24], 0x104
mov byte [esp + 0x1e], bl
call sub.MPR.dll_WNetGetConnectionA
test eax, eax
jne 0x41b5be
lea edx, [ebp + 2]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebx, ecx
cmp ebx, 0x104
jae 0x41b5bc
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x1c]
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x128]
mov ecx, edx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebp
call fcn.00441770
add esp, 0xc
mov esi, 1
xor ebx, ebx
cmp dword [esp + 0x14], ebx
je 0x41b5c9
call fcn.0048d440
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x110
ret 8

Function at 0x41e030
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x2001f
push esi
push ecx
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e0a8
mov eax, dword [esp + 4]
cmp eax, esi
je 0x41e0a8
cmp dword [esp + 0x20], esi
je 0x41e081
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x41e08d
mov edx, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, esi
jne 0x41e096
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0x18
xor eax, eax
pop esi
pop ecx
ret 0x18
Function at 0x41e200
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
je 0x41e2e9
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
je 0x41e2e9
xor ecx, ecx
push edi
mov dword [esp + 0x11], ecx
push eax
mov dword [esp + 0x19], ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x1d], ecx
push 0x63ed30
mov word [esp + 0x25], cx
push edx
xor edi, edi
mov byte [esp + 0x1c], bl
mov byte [esp + 0x2b], cl
call fcn.00441c02
add esp, 0xc
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
push eax
push 0x2001f
push ebx
push str.softwareTECOcular.3ShareDataPID
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e2de
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x41e2de
lea ecx, [esp + 0x28]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x14]
push ebx
push edx
lea ecx, [esp + 0x20]
push ebx
push ecx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], ebx
call esi
test eax, eax
jne 0x41e2d2
cmp dword [esp + 0x10], 1
jne 0x41e2d2
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp edx, eax
ja 0x41e2d2
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
push ebp
push ebx
lea ecx, [esp + 0x20]
push ebx
push ecx
push edx
call esi
test eax, eax
jne 0x41e2d2
mov edi, 1
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc