joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107bc42
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x78
push esi
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
push WaitForSingleObject
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107bcac
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0x100dc8c
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x107bca3
mov dword [ebp - 0x10], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], esi
jne 0x107bcdb
push esi
lea ecx, [ebp - 0x84]
call fcn.01069415
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], esi
call fcn.01054c69
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.01075e18
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x107bced
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0xac
mov eax, dword [0x10de03c]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x48]
push eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
push WaitForSingleObject
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107bd80
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
mov edi, 0x100add8
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x107bd70
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107bd76
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp dword [ebp - 0x3c], esi
jne 0x107bdaf
push esi
lea ecx, [ebp - 0xb8]
call fcn.01054dd3
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 4], esi
call fcn.01054c69
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.01075e18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01075aef
leave
ret
Function at 0x107bdc9
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0xb8
mov eax, dword [0x10de03c]
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
push WaitForSingleObject
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107bead
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
mov edi, 0x100a0bc
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0x28
call ebx
test eax, eax
je 0x107be5c
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107be62
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
mov edi, 0x100c774
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0x28
call ebx
test eax, eax
pop ebx
je 0x107be9e
push 4
lea eax, [ebp - 0x44]
push eax
push 4
push esi
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107bea4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
cmp dword [0x10e6c08], esi
jne 0x107bebb
mov dword [ebp - 0x3c], edi
cmp dword [ebp - 0x44], esi
jne 0x107bec8
cmp dword [0x10e6c0c], esi
je 0x107bed3
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], edi
call fcn.0107a38a
cmp dword [ebp - 0x3c], esi
jne 0x107bf3e
mov ecx, dword [ebp - 0x48]
call fcn.01079f6b
test al, al
je 0x107bf3e
push esi
lea ecx, [ebp - 0xc4]
call fcn.010500c0
lea eax, [ebp - 0xc4]
push eax
mov dword [ebp - 4], esi
call fcn.01054c69
cmp eax, edi
jne 0x107bf2f
cmp dword [ebp - 0x58], esi
je 0x107bf10
mov ecx, dword [ebp - 0x48]
call fcn.0107a38a
cmp dword [ebp - 0x5c], esi
je 0x107bf2f
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push 0x100a0bc
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.01075e18
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01075aef
leave
ret 4
Function at 0x10813a4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push LoadLibraryW
push dword [0x10de044]
call fcn.010cb340
cmp eax, 0xffffffff
mov dword [0x10e6c20], eax
je 0x10813db
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push reloc.ADVAPI32.dll_AddAccessAllowedAce
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10e6c18], eax
leave
ret
Function at 0x1082773
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x10827ee
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 8]
push eax
push 0
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x10827e9
add eax, 5
push esi
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
je 0x10827e8
push edi
lea edi, [esi + 4]
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x10827df
cmp byte [esi + 5], 0x3a
jne 0x10827df
mov al, byte [edi]
push esi
mov byte [esi + 3], ReadEncryptedFileRaw
mov byte [esi], 0x3d
mov byte [esi + 1], al
mov byte [esi + 2], 0x3a
call dword [sym.imp.msvcrt.dll__putenv]
test eax, eax
pop ecx
je 0x10827e7
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
or eax, 0xffffffff
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1082853
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 2
or eax, 0xffffffff
pop ebp
ret
test al, 1
je 0x108286b
test byte [ebp + 0xc], 2
je 0x108286b
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], LoadLibraryW
jmp 0x108284e
xor eax, eax
pop ebp
ret

Function at 0x1082874
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x108288b
or eax, eax
pop ebp
ret
test byte [ebp + 0xc], 0x80
je 0x1082896
and eax, 0xfffffffe
jmp 0x1082899
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
dec eax
pop ebp
ret

Function at 0x1082b4a
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10de03c]
and dword [ebp - 0x208], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x204]
push 0x1004528
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x204]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push 0xf003f
push 0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x1082beb
push 4
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1082be8
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1082be5
cmp dword [ebp - 0x220], 4
jne 0x1082be5
mov dword [ebp - 0x208], 1
push esi
call edi
push ebx
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x208], eax
pop edi
pop esi
setne al
pop ebx
call fcn.01075aef
leave
ret 8
Function at 0x1086db1
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d0
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4cc]
push 0x10e85e0
push eax
xor ebx, ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x4cc]
push 0x1004204
push eax
call esi
lea eax, [ebp - 0x4cc]
push 0x10106ec
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0x18
push 1
call esi
push ebx
push 0x80
push 4
push ebx
push ebx
mov dword [ebp - 0x4d0], eax
push 0xc0000000
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1086e46
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1086e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13
jne 0x1086e54
xor ebx, ebx
inc ebx
push dword [ebp - 0x4d0]
call esi
mov ecx, dword [ebp - 4]
pop esi
mov byte [0x10de1c0], bl
mov ax, bx
pop ebx
call fcn.01075aef
leave
ret

Function at 0x1087250
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
and dword [0x10eb274], 0
push 0xa
pop ecx
push 0xa
or eax, 0xffffffff
mov edi, 0x10eb21c
rep stosd dword es:[edi], eax
pop ecx
or eax, 0xffffffff
mov edi, 0x10e89e0
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
push 0
push 0x100a0f0
push reloc.KERNEL32.dll_WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10872ef
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x10de180
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1010728
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10872e6
mov eax, dword [0x10de180]
cmp eax, edi
jae 0x10872cd
mov eax, edi
cmp eax, 0x64
jbe 0x10872d5
push 0x64
pop eax
imul eax, eax, 0xf4240
mov dword [0x10de180], eax
mov dword [0x10eb274], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [0x10eb214], 0xffffffff
pop edi
leave
ret
Function at 0x1087e4c
Capabilities:
Set file attributes

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
push ecx
push ecx
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.010872fe
dec eax
jne 0x108806d
cmp dword [0x10eb26c], ebx
jne 0x108806d
push esi
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
mov esi, 0x10e8a08
push esi
mov dword [0x10eb254], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10eb214], eax
jne 0x108800b
push edi
mov edi, 0x10e8e10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
mov dword [0x10e8e08], eax
mov dword [ebp - 0x10], eax
jne 0x1087f9b
lea ecx, [ebp - 0x14]
call fcn.01075e60
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.01075e60
push esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
add esp, 0x10
test eax, eax
je 0x1087fe8
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
push 0x2805
lea ecx, [ebp + 8]
mov word [eax], bx
call fcn.01075e90
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.01075e84
add esp, 0xc
call fcn.01021462
cmp word [eax + reloc.ADVAPI32.dll_RegDeleteValueW], 2
je 0x1087f50
push 1
push ebx
push reloc.ADVAPI32.dll_ReadEncryptedFileRaw
push 4
push dword [ebp - 0x14]
push 0x2806
call fcn.01054b83
cmp eax, 6
jne 0x1087fe0
push edi
call fcn.01033add
test eax, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
je 0x1087fe4
call fcn.01075e24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01075e24
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10eb214], eax
je 0x1087eaf
jmp 0x108800a
push ebx
push 0x80
push 4
push ebx
push ebx
push WaitForSingleObject
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10eb214], eax
jne 0x1087fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10e8e08], eax
mov dword [ebp - 0x10], eax
jmp 0x108800a
mov dword [0x10e8e08], ebx
mov dword [ebp - 0x10], ebx
mov dword [0x10eb254], 1
jmp 0x108800a
push 3
jmp 0x1087fea
push 0x57
jmp 0x1087ff0
push 0x57
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
pop eax
mov dword [0x10e8e08], eax
mov dword [ebp - 0x10], eax
call fcn.01075e24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01075e24
pop edi
cmp dword [0x10e8e08], 0xb7
jne 0x108801d
mov dword [0x10e8e08], ebx
cmp dword [0x10eb214], 0xffffffff
je 0x108806c
push 0x2000
push esi
mov dword [0x10eb26c], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.010870d2
push ebx
push dword [0x10eb264]
push dword [0x10eb260]
push dword [0x10eb214]
call fcn.0108739e
push ebx
push dword [0x10de1b8]
push edx
push eax
call fcn.01077b00
mov dword [0x10eb258], eax
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1088272
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.010872fe
xor esi, esi
sub eax, esi
je 0x1088381
dec eax
jne 0x10883a0
push dword [ebp + 0x10]
call fcn.010881d8
mov ecx, dword [0x10eb214]
cmp ecx, 0xffffffff
mov ebx, eax
jne 0x10882b2
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x1088355
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], si
je 0x10882e6
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, bl
mov dl, al
mov dh, dl
push ReadEncryptedFileRaw
pop ecx
mov eax, edx
shl eax, 0x10
mov ax, dx
xor esi, esi
mov dword [0x10e8e08], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x10883a3
mov eax, ebx
xor edx, edx
div dword [0x10de1b8]
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
sub ebx, edx
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x108830d
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x10e8e08], eax
jne 0x1088326
and dword [0x10e8e08], 0
mov eax, dword [edi]
mov ecx, dword [0x10de1b8]
cmp eax, ecx
jb 0x1088361
sub eax, ecx
add eax, ebx
mov edx, dword [eax]
mov ecx, 0x101075c
cmp edx, dword [ecx]
jne 0x1088361
push 0x1a
push eax
call fcn.010af2d5
test ax, ax
jne 0x1088361
mov eax, dword [0x10de1b8]
sub dword [edi], eax
mov dword [0x10e8e08], 0x44d
jmp 0x10883a3
test esi, esi
jne 0x10883a3
cmp dword [0x10e8e08], 0x44d
je 0x10883a3
cmp dword [edi], esi
jne 0x10883a3
mov dword [0x10e8e08], 0x450
jmp 0x10883a3
push dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01087325
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x10883a3
mov esi, dword [ebp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x1088e7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push edi
xor edi, edi
cmp dword [0x10de1c8], edi
je 0x1088fc7
cmp dword [0x10eb288], edi
mov dword [0x10de1c8], edi
jne 0x1088fc7
push ebx
push 0x1010834
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x1088fc6
push 1
push reloc.ADVAPI32.dll_CloseServiceHandle
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [0x10eb288], eax
je 0x1088fc6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1010818
push ebx
call esi
mov ecx, dword [0x10eb288]
push 0x10107fc
push ebx
mov dword [ecx + 4], eax
call esi
mov ecx, dword [0x10eb288]
push 0x10107e4
push ebx
mov dword [ecx + 8], eax
call esi
mov ecx, dword [0x10eb288]
push 0x10107c8
push ebx
mov dword [ecx + 0xc], eax
call esi
mov ecx, dword [0x10eb288]
push 0x10107b8
push ebx
mov dword [ecx + 0x10], eax
call esi
mov ecx, dword [0x10eb288]
push 0x101079c
push ebx
mov dword [ecx + 0x14], eax
call esi
mov ecx, dword [0x10eb288]
push 0x1010784
push ebx
mov dword [ecx + 0x18], eax
call esi
mov ecx, dword [0x10eb288]
push 0x101076c
push ebx
mov dword [ecx + 0x1c], eax
call esi
mov ecx, dword [0x10eb288]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10eb288]
cmp dword [eax + 4], edi
pop esi
je 0x1088f8b
cmp dword [eax + 8], edi
je 0x1088f8b
cmp dword [eax + 0xc], edi
je 0x1088f8b
cmp dword [eax + 0x10], edi
je 0x1088f8b
cmp dword [eax + 0x14], edi
je 0x1088f8b
cmp dword [eax + 0x18], edi
je 0x1088f8b
cmp dword [eax + 0x1c], edi
je 0x1088f8b
cmp dword [eax + 0x20], edi
jne 0x1088fc6
mov dword [eax + 4], edi
mov eax, dword [0x10eb288]
mov dword [eax + 8], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0xc], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0x10], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0x14], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0x18], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0x1c], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0x20], edi
pop ebx
pop edi
ret
Function at 0x1089154
Capabilities:
Enumerate disk volumes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20c], eax
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x204]
push eax
call edi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x204]
push eax
call esi
mov ecx, CompareStringW
sub ecx, eax
add esp, 0xc
shl ecx, 1
push ecx
lea eax, [ebp - 0x204]
push eax
call esi
pop ecx
lea eax, [ebp + eax*2 - 0x204]
push eax
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
test eax, eax
mov dword [ebp - 0x208], eax
je 0x1089244
cmp eax, 0xffffffff
je 0x1089244
push dword [ebp - 0x20c]
mov ecx, ebx
lea edx, [ebp - 0x204]
call fcn.01088fe3
test eax, eax
je 0x10891f3
push dword [ebp - 0x20c]
push eax
call fcn.01089154
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x204]
push eax
call edi
lea eax, [ebp - 0x204]
push eax
call esi
mov ecx, CompareStringW
sub ecx, eax
add esp, 0xc
shl ecx, 1
push ecx
lea eax, [ebp - 0x204]
push eax
call esi
pop ecx
lea eax, [ebp + eax*2 - 0x204]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
test eax, eax
jne 0x10891d0
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 8
Function at 0x108ab1c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], ebx
call fcn.01088e3f
push 0x430
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x108ab6e
push esi
push edi
call fcn.010a6f11
test ax, ax
je 0x108ab5a
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push edi
call fcn.010a45e7
mov esi, dword [edi + 0x34]
cmp esi, ebx
je 0x108ad27
push edi
call fcn.010a6484
push dword [esi + 0x20]
jmp 0x108ab91
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x78], ecx
push eax
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [esi + 0x78]
cmp eax, ebx
pop ecx
jne 0x108ab8a
jmp 0x108abc1
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x20c]
push eax
mov dword [ebp - 0x41c], ecx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x41c]
pop ecx
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x5c], ebx
jne 0x108aba1
push edi
call fcn.01088bef
cmp word [esi + 0x96], bx
je 0x108abdb
push edi
call fcn.0108a6c9
cmp word [esi + 0x92], bx
je 0x108abf7
cmp dword [0x10eb28c], ebx
jne 0x108abf1
call fcn.010892bb
mov dword [ebp - 0x418], ebx
cmp word [esi + 0x90], bx
je 0x108ac05
call fcn.01078057
mov eax, dword [edi + 0x14]
test byte [eax + 0x9e], 0x80
je 0x108ac82
cmp word [esi + 0x8e], bx
je 0x108ac82
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1005d9c
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], bx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x10108ac
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.010cb40c
cmp eax, 0x13c0
jne 0x108ac78
push ebx
push 1
lea eax, [ebp - 0x414]
push eax
call fcn.010cb40c
cmp eax, ebx
je 0x108ac82
push edi
call fcn.0109858c
push dword [esi + 0x14f0]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push edi
call fcn.010a59d1
push dword [esi + 0x14f4]
call fcn.010a4e74
mov ecx, dword [esi + 0x14f8]
cmp ecx, ebx
je 0x108acda
lea eax, [esi + 0x14fc]
cmp word [eax], bx
je 0x108acda
lea edx, [ebp - 0x41c]
push edx
push ecx
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0x54]
add ecx, 4
push ecx
push eax
call fcn.010cb418
mov dword [esi + 0x14f8], ebx
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], bx
cmp word [esi + 0x88], bx
je 0x108acfb
push ebx
push 0x23f
push ebx
push ebx
push edi
call fcn.010892e6
mov dword [ebp - 0x418], 0xfffffe40
cmp word [esi + 0x8a], bx
je 0x108ad27
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x5c]
cmp dword [eax + 0x38], ebx
jne 0x108ad27
push ebx
push 0x240
push ebx
push ebx
push edi
call fcn.010892e6
mov dword [ebp - 0x418], 0xfffffe40
push edi
call fcn.010a47a7
push dword [edi + 0x3c]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [edi + 0x34]
call esi
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 4