joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1082865
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 0x10828e0
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 0x10828db
add eax, 5
push esi
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
je 0x10828da
push edi
lea edi, [esi + 4]
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x10828d1
cmp byte [esi + 5], 0x3a
jne 0x10828d1
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 0x10828d9
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 0x1082921
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 0x1082945
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 2
or eax, 0xffffffff
pop ebp
ret
test al, 1
je 0x108295d
test byte [ebp + 0xc], 2
je 0x108295d
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], LoadLibraryW
jmp 0x1082940
xor eax, eax
pop ebp
ret

Function at 0x1082966
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 0x108297d
or eax, eax
pop ebp
ret
test byte [ebp + 0xc], 0x80
je 0x1082988
and eax, 0xfffffffe
jmp 0x108298b
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 0x1082c3c
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 0x1082cdd
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 0x1082cda
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1082cd7
cmp dword [ebp - 0x220], 4
jne 0x1082cd7
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.01075bbb
leave
ret 8
Function at 0x108363f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
push edi
xor edi, edi
cmp dword [0x10e6c78], edi
jne 0x1083688
push 0x10106c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x10e6c78], eax
je 0x1083870
push 0x10ec9dc
push ebx
call fcn.01082afa
cmp dword [0x10e6c78], edi
je 0x1083870
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10106b4
push dword [0x10e6c78]
call esi
push 0x1010698
push dword [0x10e6c78]
mov dword [0x10e6c58], eax
call esi
push 0x1010688
push dword [0x10e6c78]
mov dword [0x10e6c5c], eax
call esi
push 0x1010678
push dword [0x10e6c78]
mov dword [0x10e6c60], eax
call esi
push 0x1010664
push dword [0x10e6c78]
mov dword [0x10e6c64], eax
call esi
push 0x101064c
push dword [0x10e6c78]
mov dword [0x10e6c68], eax
call esi
push 0x1010634
push dword [0x10e6c78]
mov dword [0x10e6c6c], eax
call esi
push 0x1010628
push dword [0x10e6c78]
mov dword [0x10e6c70], eax
call esi
push 0x101061c
push dword [0x10e6c78]
mov dword [0x10e6c74], eax
call esi
push 0x1010608
push dword [0x10e6c78]
mov dword [0x10e6c50], eax
call esi
push 0x10105f4
push dword [0x10e6c78]
mov dword [0x10e6c4c], eax
call esi
push 0x10105d8
push dword [0x10e6c78]
mov dword [0x10e6c54], eax
call esi
push 0x10105b8
push dword [0x10e6c78]
mov dword [0x10e6c44], eax
call esi
push 0x10105a8
push dword [0x10e6c78]
mov dword [0x10e6c40], eax
call esi
cmp dword [0x10e6c78], edi
mov dword [0x10e6c48], eax
je 0x1083870
cmp dword [0x10e6c58], edi
je 0x1083870
cmp dword [0x10e6c5c], edi
je 0x1083870
cmp dword [0x10e6c60], edi
je 0x1083870
cmp dword [0x10e6c64], edi
je 0x1083870
cmp dword [0x10e6c68], edi
je 0x1083870
cmp dword [0x10e6c6c], edi
je 0x1083870
cmp dword [0x10e6c70], edi
je 0x1083870
cmp dword [0x10e6c74], edi
je 0x1083870
cmp dword [0x10e6c50], edi
je 0x1083870
cmp dword [0x10e6c4c], edi
je 0x1083870
cmp dword [0x10e6c54], edi
je 0x1083870
cmp dword [0x10e6c44], edi
je 0x1083870
cmp dword [0x10e6c40], edi
je 0x1083870
cmp eax, edi
je 0x1083870
or dword [ebp + 8], 0xffffffff
lea eax, [ebp + 8]
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.01082b9f
mov esi, eax
cmp esi, edi
je 0x1083866
push 0x10103fc
push esi
call fcn.01082c3c
test ax, ax
je 0x108385e
push edi
push edi
lea eax, [ebp - 4]
push eax
push 3
push esi
push ebx
mov dword [ebp - 4], edi
call fcn.01082fa1
jmp 0x1083866
mov eax, dword [ebp + 8]
call fcn.01082bd8
cmp dword [ebp + 8], 0xffffffff
jne 0x1083822
xor eax, eax
jmp 0x1083873
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1086ea3
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 0x10e85e8
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 0x1010704
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 0x1086f38
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1086f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13
jne 0x1086f46
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.01075bbb
leave
ret

Function at 0x108739a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
and dword [0x10eb27c], 0
push 0xa
pop ecx
push 0xa
or eax, 0xffffffff
mov edi, 0x10eb224
rep stosd dword es:[edi], eax
pop ecx
or eax, 0xffffffff
mov edi, 0x10e89e8
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
push 0
push 0x100a0f8
push reloc.KERNEL32.dll_WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1087439
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 0x1010740
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1087430
mov eax, dword [0x10de180]
cmp eax, edi
jae 0x1087417
mov eax, edi
cmp eax, 0x64
jbe 0x108741f
push 0x64
pop eax
imul eax, eax, 0xf4240
mov dword [0x10de180], eax
mov dword [0x10eb27c], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [0x10eb21c], 0xffffffff
pop edi
leave
ret
Function at 0x1087540
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call fcn.01087448
xor esi, esi
sub eax, esi
je 0x10876d4
dec eax
jne 0x108771c
mov ecx, dword [0x10eb21c]
cmp ecx, 0xffffffff
je 0x10876c0
cmp dword [0x10eb25c], esi
jne 0x10876c0
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [0x10de1b8]
sub dword [ebp + 0x10], edx
cmp dword [0x10eb260], esi
jne 0x1087598
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [0x10eb250]
mov ecx, dword [0x10de17c]
cmp eax, ecx
jbe 0x10875ad
sub eax, ecx
inc eax
inc eax
jmp 0x10875b5
cmp eax, 2
jbe 0x10875b5
push 2
pop eax
mov ecx, dword [ebp + 0x10]
shr ecx, 9
cmp ecx, eax
jae 0x10875c1
mov eax, ecx
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push dword [ebp + 0x18]
mov ecx, eax
and ecx, 1
sub eax, ecx
shl eax, 9
push edi
mov ebx, eax
push ebx
push dword [ebp + 0xc]
push dword [0x10eb21c]
call esi
cmp dword [edi], 0
mov dword [ebp + 0x10], eax
jne 0x1087636
call fcn.0108721c
mov ecx, dword [0x10eb250]
mov eax, ecx
shl eax, 9
cmp eax, ebx
jae 0x108763c
mov eax, dword [0x10de17c]
cmp ecx, eax
jbe 0x1087610
sub ecx, eax
jmp 0x1087617
push 2
pop eax
cmp ecx, eax
ja 0x1087619
mov eax, ecx
push dword [ebp + 0x18]
mov ecx, eax
and ecx, 1
push edi
sub eax, ecx
shl eax, 9
push eax
push dword [ebp + 0xc]
push dword [0x10eb21c]
call esi
mov dword [ebp + 0x10], eax
mov ecx, dword [0x10eb250]
cmp dword [ebp + 0x10], 0
pop ebx
je 0x1087647
and dword [ebp + 0x10], 0
mov eax, dword [edi]
xor edx, edx
div dword [0x10de1b8]
mov esi, eax
cmp dword [0x10eb254], esi
jae 0x1087668
call fcn.0108721c
mov ecx, dword [0x10eb250]
jmp 0x108766e
sub dword [0x10eb254], esi
cmp ecx, esi
jbe 0x108767a
sub ecx, esi
mov dword [0x10eb250], ecx
cmp ecx, dword [0x10de17c]
jae 0x108768c
mov dword [0x10eb270], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
add dword [0x10eb260], esi
cmp dword [0x10eb27c], 0
mov dword [0x10e8e10], eax
je 0x108771c
mov eax, dword [0x10eb284]
add eax, dword [edi]
cmp eax, dword [0x10de180]
mov dword [0x10eb284], eax
jbe 0x108771c
and dword [ebp + 0x10], 0
jmp 0x1087712
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], esi
mov dword [eax], esi
mov dword [0x10e8e10], 0x13
jmp 0x108771c
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0108746f
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x10eb27c], esi
mov dword [ebp + 0x10], eax
je 0x108771c
mov eax, dword [0x10eb284]
add eax, dword [edi]
cmp eax, dword [0x10de180]
mov dword [0x10eb284], eax
jbe 0x108771c
mov dword [ebp + 0x10], esi
mov dword [0x10eb280], 1
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x1087ba6
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call fcn.01087448
xor esi, esi
sub eax, esi
je 0x1087c5a
dec eax
jne 0x1087c76
mov eax, dword [0x10eb21c]
xor edi, edi
cmp eax, 0xffffffff
je 0x1087c4e
cmp dword [0x10eb25c], esi
jne 0x1087c4e
cmp dword [0x10eb260], esi
jne 0x1087bee
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1087c79
cmp dword [ebp + 0x10], esi
je 0x1087c79
call fcn.01087b14
push esi
lea eax, [ebp + 8]
push eax
push dword [0x10de1b8]
push 0x10e9218
push dword [0x10eb21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov eax, dword [0x10de1b8]
cmp dword [ebp + 8], eax
jne 0x1087c41
xor edx, edx
div eax
sub dword [0x10eb254], eax
sub dword [0x10eb250], eax
add dword [0x10eb260], eax
dec dword [ebp + 0x10]
jne 0x1087bf7
jmp 0x1087c79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10e8e10], eax
jmp 0x1087c79
mov dword [0x10e8e10], 0x13
jmp 0x1087c79
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0108746f
push eax
call dword [sym.imp.KERNEL32.dll_WriteTapemark]
mov edi, eax
jmp 0x1087c79
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x1087f96
Capabilities:
Set file attributes

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
push ecx
push ecx
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.01087448
dec eax
jne 0x10881b7
cmp dword [0x10eb274], ebx
jne 0x10881b7
push esi
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
mov esi, 0x10e8a10
push esi
mov dword [0x10eb25c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10eb21c], eax
jne 0x1088155
push edi
mov edi, 0x10e8e18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
mov dword [0x10e8e10], eax
mov dword [ebp - 0x10], eax
jne 0x10880e5
lea ecx, [ebp - 0x14]
call fcn.01075f2c
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.01075f2c
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 0x1088132
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.01075f5c
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.01075f50
add esp, 0xc
call fcn.0102150d
cmp word [eax + reloc.ADVAPI32.dll_RegDeleteValueW], 2
je 0x108809a
push 1
push ebx
push reloc.ADVAPI32.dll_ReadEncryptedFileRaw
push 4
push dword [ebp - 0x14]
push 0x2806
call fcn.01054b96
cmp eax, 6
jne 0x108812a
push edi
call fcn.01086f68
test eax, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
je 0x108812e
call fcn.01075ef0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01075ef0
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 [0x10eb21c], eax
je 0x1087ff9
jmp 0x1088154
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 [0x10eb21c], eax
jne 0x1088115
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10e8e10], eax
mov dword [ebp - 0x10], eax
jmp 0x1088154
mov dword [0x10e8e10], ebx
mov dword [ebp - 0x10], ebx
mov dword [0x10eb25c], 1
jmp 0x1088154
push 3
jmp 0x1088134
push 0x57
jmp 0x108813a
push 0x57
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
pop eax
mov dword [0x10e8e10], eax
mov dword [ebp - 0x10], eax
call fcn.01075ef0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01075ef0
pop edi
cmp dword [0x10e8e10], 0xb7
jne 0x1088167
mov dword [0x10e8e10], ebx
cmp dword [0x10eb21c], 0xffffffff
je 0x10881b6
push 0x2000
push esi
mov dword [0x10eb274], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.0108721c
push ebx
push dword [0x10eb26c]
push dword [0x10eb268]
push dword [0x10eb21c]
call fcn.010874e8
push ebx
push dword [0x10de1b8]
push edx
push eax
call fcn.01077bd0
mov dword [0x10eb260], 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 0x10881ce
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push eax
mov dword [ebp - 0x408], edi
call fcn.01087448
dec eax
jne 0x108830a
cmp dword [0x10eb274], edi
je 0x108830a
push ebx
push esi
push 1
push edi
push edi
push dword [0x10eb21c]
call fcn.010874e8
push 2
push edi
push edi
push dword [0x10eb21c]
mov dword [0x10eb268], eax
mov dword [0x10eb26c], edx
call fcn.010874e8
push dword [0x10eb21c]
mov esi, eax
mov dword [ebp - 0x40c], edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x1088255
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
push dword [0x10eb21c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
or dword [0x10eb21c], 0xffffffff
or esi, dword [ebp - 0x40c]
jne 0x108827d
push 0x10e8a10
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x10eb220], edi
je 0x1088302
lea eax, [ebp - 0x404]
push 0x1010720
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x404]
push 0x10e85e8
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1088302
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x10882e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
push edi
lea eax, [ebp - 0x40c]
push eax
push edi
push edi
push edi
push edi
push 0x90020
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call ebx
pop esi
mov dword [0x10eb274], edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop edi
call fcn.01075bbb
leave
ret 4
Function at 0x10883bc
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.01087448
xor esi, esi
sub eax, esi
je 0x10884cb
dec eax
jne 0x10884ea
push dword [ebp + 0x10]
call fcn.01088322
mov ecx, dword [0x10eb21c]
cmp ecx, 0xffffffff
mov ebx, eax
jne 0x10883fc
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x108849f
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], si
je 0x1088430
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 [0x10e8e10], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x10884ed
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 0x1088457
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x10e8e10], eax
jne 0x1088470
and dword [0x10e8e10], 0
mov eax, dword [edi]
mov ecx, dword [0x10de1b8]
cmp eax, ecx
jb 0x10884ab
sub eax, ecx
add eax, ebx
mov edx, dword [eax]
mov ecx, 0x1010774
cmp edx, dword [ecx]
jne 0x10884ab
push 0x1a
push eax
call fcn.0109dd22
test ax, ax
jne 0x10884ab
mov eax, dword [0x10de1b8]
sub dword [edi], eax
mov dword [0x10e8e10], 0x44d
jmp 0x10884ed
test esi, esi
jne 0x10884ed
cmp dword [0x10e8e10], 0x44d
je 0x10884ed
cmp dword [edi], esi
jne 0x10884ed
mov dword [0x10e8e10], 0x450
jmp 0x10884ed
push dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0108746f
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x10884ed
mov esi, dword [ebp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x108900a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push edi
xor edi, edi
cmp dword [0x10de1c8], edi
je 0x1089155
cmp dword [0x10eb290], edi
mov dword [0x10de1c8], edi
jne 0x1089155
push ebx
push 0x101084c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x1089154
push 1
push reloc.ADVAPI32.dll_CloseServiceHandle
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [0x10eb290], eax
je 0x1089154
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1010830
push ebx
call esi
mov ecx, dword [0x10eb290]
push 0x1010814
push ebx
mov dword [ecx + 4], eax
call esi
mov ecx, dword [0x10eb290]
push 0x10107fc
push ebx
mov dword [ecx + 8], eax
call esi
mov ecx, dword [0x10eb290]
push 0x10107e0
push ebx
mov dword [ecx + 0xc], eax
call esi
mov ecx, dword [0x10eb290]
push 0x10107d0
push ebx
mov dword [ecx + 0x10], eax
call esi
mov ecx, dword [0x10eb290]
push 0x10107b4
push ebx
mov dword [ecx + 0x14], eax
call esi
mov ecx, dword [0x10eb290]
push 0x101079c
push ebx
mov dword [ecx + 0x18], eax
call esi
mov ecx, dword [0x10eb290]
push 0x1010784
push ebx
mov dword [ecx + 0x1c], eax
call esi
mov ecx, dword [0x10eb290]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10eb290]
cmp dword [eax + 4], edi
pop esi
je 0x1089119
cmp dword [eax + 8], edi
je 0x1089119
cmp dword [eax + 0xc], edi
je 0x1089119
cmp dword [eax + 0x10], edi
je 0x1089119
cmp dword [eax + 0x14], edi
je 0x1089119
cmp dword [eax + 0x18], edi
je 0x1089119
cmp dword [eax + 0x1c], edi
je 0x1089119
cmp dword [eax + 0x20], edi
jne 0x1089154
mov dword [eax + 4], edi
mov eax, dword [0x10eb290]
mov dword [eax + 8], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0xc], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0x10], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0x14], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0x18], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0x1c], edi
mov eax, dword [0x10eb290]
mov dword [eax + 0x20], edi
pop ebx
pop edi
ret
Function at 0x1089171
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x10de03c]
push esi
mov esi, edx
test esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x408], ecx
jne 0x108919b
xor eax, eax
jmp 0x10892d0
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcscpy]
push edi
mov edi, dword [eax + 0x5c]
lea eax, [ebp - 0x404]
push esi
push eax
call ebx
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0xc
cmp word [esi + eax*2 - 2], 0x5c
je 0x10891d6
lea eax, [ebp - 0x404]
push 0x1004204
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 0x200
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1089205
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x204]
push eax
call ebx
pop ecx
pop ecx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x10892cc
cmp eax, 2
je 0x10892cc
mov esi, dword [edi + 0x54]
jmp 0x108924a
lea eax, [ebp - 0x204]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x10892cc
mov esi, dword [esi + 0x404]
test esi, esi
jne 0x1089229
push 1
push 0x408
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10892cc
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x1089275
mov dword [eax + 0x404], esi
jmp 0x1089278
mov dword [edi + 0x54], esi
lea eax, [ebp - 0x204]
push eax
lea edi, [esi + 4]
push edi
call ebx
pop ecx
pop ecx
push 0
push 0x2000000
push 3
push 0
push 3
push 0x20080
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10892c8
lea eax, [ebp - 0x43c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10892c1
mov eax, dword [ebp - 0x420]
mov dword [esi], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10892ce
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01075bbb
leave
ret 4