joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10a71ca
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x10de03c]
and dword [ebp - 0x150], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x5c]
cmp word [eax + 0x4c], 0
je 0x10a71fc
test byte [esi + 0x60], 4
je 0x10a73ad
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push reloc.ADVAPI32.dll_ReadEncryptedFileRaw
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
push eax
push 0
push 0x64
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [esi + 0x5c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10a7371
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp - 0x154]
mov ebx, dword [sym.imp.msvcrt.dll_wcscmp]
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x84]
push 0x1011de4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10a7275
mov dword [ebp - 0x150], 0xfffffe0d
jmp 0x10a73a0
push esi
call fcn.010a7147
mov ecx, dword [esi + 0x5c]
mov word [ecx + 4], ax
mov eax, dword [esi + 0x5c]
cmp dword [eax + 8], 0
jne 0x10a72a3
test byte [esi + 0x60], 0x80
jne 0x10a72a3
lea eax, [ebp - 0x14c]
push eax
call fcn.0105fe7d
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x84]
push eax
call fcn.0105fe7d
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x5c]
mov cx, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
mov word [eax + 0xc], cx
mov cl, byte [ebp - 0x154]
test cl, 2
movzx eax, word [esi + 0x60]
je 0x10a72d8
or ax, 0x400
jmp 0x10a72dc
and ax, 0xfbff
test cl, 1
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10a72ee
or ax, 0x200
jmp 0x10a72f2
and ax, 0xfdff
test cl, 4
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10a7304
or ax, reloc.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
jmp 0x10a7308
and ax, 0xefff
test cl, 8
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10a7319
or eax, 0x40
jmp 0x10a731c
and eax, 0xffffffbf
mov word [esi + 0x60], ax
lea eax, [ebp - 0x84]
push 0x1011dd8
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10a7362
lea eax, [ebp - 0x84]
push 0x1011dcc
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10a7362
lea eax, [ebp - 0x84]
push 0x1011dc4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10a7362
or byte [esi + 0x60], 8
jmp 0x10a7366
and byte [esi + 0x60], 0xf7
mov eax, dword [esi + 0x5c]
mov word [eax + 0x4c], 1
jmp 0x10a73a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10a7396
xor ecx, ecx
cmp eax, 0x15
sete cl
dec ecx
and ecx, 0xffffffd3
add ecx, 0xfffffe3a
mov dword [ebp - 0x150], ecx
jmp 0x10a73a0
mov dword [ebp - 0x150], 0xfffffe05
push dword [ebp - 0x15c]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop ebx
mov ecx, dword [ebp - 4]
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
pop esi
call fcn.01075bbb
leave
ret 4
Function at 0x10a778d
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov word [eax], bx
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x34]
xor edx, edx
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], 1
je 0x10a77d3
cmp word [edi], bx
je 0x10a77d3
mov edx, edi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10a77e2
cmp word [eax], bx
je 0x10a77e2
mov dword [ebp - 4], eax
cmp edx, ebx
jne 0x10a77fd
test byte [esi + 0x4a], 1
je 0x10a77fd
cmp byte [esi + 0x30], 2
mov eax, dword [esi + 0x5c]
jne 0x10a77fa
mov edx, dword [eax + 0x24]
jmp 0x10a77fd
mov edx, dword [eax + 0x18]
cmp dword [ebp - 4], ebx
jne 0x10a781c
test byte [esi + 0x4a], 2
je 0x10a781c
cmp byte [esi + 0x30], 2
mov eax, dword [esi + 0x5c]
jne 0x10a7816
mov eax, dword [eax + 0x28]
jmp 0x10a7819
mov eax, dword [eax + 0x1c]
mov dword [ebp - 4], eax
cmp edx, ebx
je 0x10a7827
cmp word [edx], bx
jne 0x10a7827
xor edx, edx
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10a7836
cmp word [eax], bx
jne 0x10a7836
mov dword [ebp - 4], ebx
push ebx
push edx
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push eax
call fcn.010cb2ac
cmp eax, ebx
je 0x10a785b
cmp eax, 0x4b2
je 0x10a7863
mov dword [ebp + 0x14], 0xfffffe05
jmp 0x10a78f9
mov eax, dword [ebp + 0x14]
mov word [eax], 1
cmp edi, ebx
mov edi, dword [sym.imp.msvcrt.dll_free]
mov dword [ebp + 0x14], ebx
je 0x10a78b3
push dword [ebp + 0xc]
call fcn.0105fe7d
mov ebx, eax
test ebx, ebx
je 0x10a78ad
movzx eax, byte [esi + 0x30]
dec eax
je 0x10a7898
dec eax
jne 0x10a78a7
mov eax, dword [esi + 0x5c]
push dword [eax + 0x24]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x24], ebx
jmp 0x10a78a6
mov eax, dword [esi + 0x5c]
push dword [eax + 0x18]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x18], ebx
pop ecx
or byte [esi + 0x4a], 2
jmp 0x10a78b1
and byte [esi + 0x4a], 0xfd
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x10a78f9
push dword [ebp + 0x10]
call fcn.0105fe7d
mov ebx, eax
test ebx, ebx
je 0x10a78f5
movzx eax, byte [esi + 0x30]
dec eax
je 0x10a78e0
dec eax
jne 0x10a78ef
mov eax, dword [esi + 0x5c]
push dword [eax + 0x28]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x28], ebx
jmp 0x10a78ee
mov eax, dword [esi + 0x5c]
push dword [eax + 0x1c]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x1c], ebx
pop ecx
or byte [esi + 0x4a], 1
jmp 0x10a78f9
and byte [esi + 0x4a], 0xfe
mov ax, word [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10ad6aa
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
push edi
lea esi, [eax + 0x14fc]
push 0x5c
xor edi, edi
push ebx
mov word [esi], di
call dword [sym.imp.msvcrt.dll_wcsrchr]
push 0x3a
push ebx
mov dword [ebp - 0x21c], eax
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 0x10
cmp eax, edi
je 0x10ad815
mov ebx, dword [ebp - 0x21c]
cmp ebx, edi
je 0x10ad815
dec eax
dec eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x210]
push eax
push 0x2000000
push edi
push 0x1011e48
push reloc.KERNEL32.dll_WaitForSingleObject
mov word [ebx], di
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10ad810
mov dword [ebp - 0x214], edi
mov ebx, 0x208
lea eax, [ebp - 0x238]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x228]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x228], ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
jne 0x10ad7fb
lea eax, [ebp - 0x218]
push eax
push 0x2000000
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10ad7fb
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x230]
push eax
push edi
push reloc.MFC42u.DLL_CView::OnEndPrintPreview
push dword [ebp - 0x218]
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
mov dword [ebp - 0x22c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], edi
jne 0x10ad7fb
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10ad7fe
inc dword [ebp - 0x214]
jmp 0x10ad740
mov word [esi], di
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x21c]
mov word [ebx], 0x5c
mov ax, word [esi]
mov ecx, dword [ebp - 4]
neg ax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 8
Function at 0x10ad833
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
push dword [ebp + 0xc]
mov ebx, eax
call esi
add ebx, eax
lea eax, [ebx + ebx + 0x22]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10ad8fc
push dword [ebp + 8]
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10ad88b
inc ebx
inc ebx
jmp 0x10ad88d
mov ebx, esi
mov eax, dword [0x10ed18c]
cmp eax, reloc.ADVAPI32.dll_RegDeleteValueW
jb 0x10ad89b
xor eax, eax
mov ecx, eax
push ecx
push dword [ebp + 0xc]
inc eax
push 0x1011eb8
push ebx
mov dword [0x10ed18c], eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
push 0
push 0x2000000
push 3
push 0
push 0
push WaitForSingleObject
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10ad8e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10ad8fa
cmp eax, 0x20
jne 0x10ad8fa
jmp 0x10ad8ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
cmp eax, reloc.ADVAPI32.dll_RegDeleteValueW
jb 0x10ad88d
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10adbf6
Capabilities:
Create directory
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10de03c]
push esi
push edi
mov esi, ecx
mov edi, edx
and word [edi], 0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x210], eax
mov eax, dword [esi]
push ebx
push dword [eax + 4]
call fcn.01099bfb
test ax, ax
jne 0x10adc6e
push 0x2e
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
je 0x10add0a
and word [eax], 0
mov eax, dword [esi]
push ebx
push dword [eax + 4]
call fcn.01099bfb
test ax, ax
je 0x10adc5e
mov word [edi], 1
mov eax, dword [ebp - 0x210]
mov word [eax], 0x2e
jmp 0x10add0a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1005d44
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsdup]
add esp, 0x14
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x10add0a
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.01099008
test eax, eax
je 0x10add0f
push edi
call dword [sym.imp.msvcrt.dll_free]
mov dword [esp], 0x101155c
push ebx
call fcn.010ad833
mov edi, eax
test edi, edi
je 0x10add0a
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.01099008
test eax, eax
je 0x10add0f
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x10add4e
push 0
push 0xa000080
push 3
push 0
push 5
push 0x80000100
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10add46
mov eax, dword [ebp - 0x210]
mov dword [eax + 0x24c], edi
mov word [eax + reloc.ADVAPI32.dll_RegDeleteValueW], 1
jmp 0x10add4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075bbb
leave
ret
Function at 0x10aebf1
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
cmp word [ebp + 0x14], ax
push esi
mov esi, dword [ebx + 0x10]
push edi
mov dword [ebp - 0x14], eax
jne 0x10aec79
mov edi, dword [ebp + 0x10]
push eax
push edi
push ebx
push dword [ebp + 8]
call fcn.010ae3a8
cmp byte [edi], 9
mov dword [ebp - 8], eax
jne 0x10aec50
mov eax, dword [ebp + 8]
push 0x1011c9c
push dword [eax + 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10aec50
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xa0], 0
je 0x10aec50
mov ax, word [ebp - 8]
jmp 0x10aedae
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 0x254]
push dword [edi]
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
pop ecx
mov dword [edi], eax
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov word [esi + reloc.KERNEL32.dll_GetTapeParameters], ax
cmp word [ebp + 0x14], 1
jne 0x10aec95
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xa0], 0
je 0x10aec95
xor ax, ax
jmp 0x10aedae
mov eax, dword [ebp + 0x10]
cmp byte [eax], 8
jne 0x10aeca1
xor ebx, ebx
jmp 0x10aeca7
mov eax, dword [eax + 0x7c]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
push 0x1011c9c
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10aecf4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1011db0
push ebx
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x14
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.010a65a0
test eax, eax
je 0x10aecf4
mov edi, dword [eax + 0x10]
xor ebx, ebx
push 0
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
call fcn.010b5387
test ax, ax
je 0x10aed14
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10aedae
push 1
push 0x20
call dword [sym.imp.msvcrt.dll_calloc]
xor ebx, ebx
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x270], eax
je 0x10aed73
cmp word [ebp + 0x14], 1
jne 0x10aed41
push 0x80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 0x270]
add eax, 4
push eax
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
sub al, 8
neg al
sbb eax, eax
and eax, 0xfffffffe
inc eax
xor ecx, ecx
inc eax
cmp word [ebp + 0x14], 1
sete cl
or eax, ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenEncryptedFileRawW]
jmp 0x10aed76
mov eax, dword [ebp - 0x14]
mov edi, dword [esi + 0x270]
cmp edi, ebx
je 0x10aedb5
cmp eax, ebx
je 0x10aeda3
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.010ad907
mov ebx, eax
test edi, edi
je 0x10aed9c
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
and dword [esi + 0x270], 0
push dword [ebp + 8]
call fcn.010b4ca9
mov ax, bx
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jne 0x10aed84
or ebx, 0xffffffff
jmp 0x10aed8f
Function at 0x10afd53
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x54]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xf0]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 4]
mov si, word [eax + reloc.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
cmp word [ebx + 0xda], ax
je 0x10afdf3
mov word [ebx + 0xda], ax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xa4]
push 0x55
pop eax
xor edx, edx
div ecx
mov eax, ecx
sub eax, edx
xor edx, edx
div ecx
mov eax, dword [edi + 8]
add edx, 0x55
push edx
push dword [eax + 0x38]
push esi
call fcn.01097324
test ax, ax
je 0x10afdd6
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 4
call fcn.01075adf
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.010977fd
cmp ax, 1
je 0x10afdd1
cmp word [ebp - 0x20], 0
je 0x10afe2a
mov ax, 0xfdf8
jmp 0x10afdc2
mov ecx, dword [edi + 0x7c]
mov cl, byte [ecx + 0x10]
push eax
mov byte [ebx + 0x3b4], cl
mov eax, dword [edi + 0x7c]
push dword [eax + 0xc]
push esi
call fcn.01097b96
test ax, ax
jne 0x10afdbe
jmp 0x10afe18
call fcn.01075adf
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.010977fd
cmp ax, 1
je 0x10afe13
jmp 0x10afde6
mov ecx, dword [ebp - 0x54]
mov esi, dword [edi + 8]
push edi
call fcn.010af814
xor esi, esi
cmp ax, si
jne 0x10afdc2
mov eax, dword [edi + 4]
test byte [eax + 0x528], 4
je 0x10afed3
cmp byte [ebx + 0x3b4], 1
jne 0x10afebf
push dword [ebp - 0x54]
call dword [sym.imp.msvcrt.dll_ftell]
and word [ebp - 0x50], si
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_fseek]
pop ecx
mov dword [ebp - 0x58], eax
jl 0x10afeb4
movzx eax, word [ebp - 0x50]
add esi, eax
push 0
push esi
push dword [ebp - 0x54]
call edi
add esp, 0xc
test eax, eax
jne 0x10afeca
mov eax, dword [ebp - 0x58]
sub eax, esi
cmp eax, 0x24
jb 0x10afeb4
push dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push 1
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10afeca
movzx eax, word [ebp - 0x50]
add eax, esi
cmp eax, dword [ebp - 0x58]
jle 0x10afe71
push 0
push esi
push dword [ebp - 0x54]
call edi
add esp, 0xc
mov word [ebx + 0xda], 1
jmp 0x10afee1
mov ax, 0xfde7
jmp 0x10afdc2
push esi
push esi
push dword [ebp - 0x54]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
xor ax, ax
jmp 0x10afdc2
Function at 0x10b065a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [edi + 0x54]
mov ebx, dword [esi + 0xf8]
mov dword [ebp - 0x14], eax
xor eax, eax
cmp word [esi + 0xec], ax
jne 0x10b06df
push eax
push eax
push ebx
call dword [sym.imp.msvcrt.dll_fseek]
push ebx
push 1
lea eax, [ebp - 0xc]
push 8
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x1c
cmp eax, 1
jne 0x10b06ef
mov ax, word [esi + 0x16]
add word [ebp - 8], ax
push 0
push 0
push ebx
call dword [sym.imp.msvcrt.dll_fseek]
push ebx
push 1
lea eax, [ebp - 0xc]
push 8
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
xor ecx, ecx
inc ecx
add esp, 0x1c
cmp eax, ecx
je 0x10b06d6
push ecx
push ecx
jmp 0x10b06f3
mov word [esi + 0xec], cx
xor eax, eax
push eax
push eax
push ebx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10b070a
push 1
push 1
push esi
call fcn.010af70e
mov word [esi + 0xd6], 1
xor ax, ax
jmp 0x10b07a5
push dword [ebx + 0x10]
call dword [sym.imp.msvcrt.dll__filelength]
pop ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], eax
add eax, 0x16
xor edx, edx
div dword [ecx + 0xa4]
push dword [ebp - 0x10]
mov ecx, ebx
mov ebx, dword [ebp - 0x14]
push 0
add dword [esi + 0x3c8], eax
lea eax, [ebp - 0xe]
push eax
push 0
push dword [ebp - 0x10]
push 0x504d5354
push dword [ebp + 0xc]
push edi
call fcn.010afeee
mov ebx, eax
test bx, bx
je 0x10b0771
push 1
push 1
push esi
call fcn.010af70e
cmp bx, 0xfde7
mov word [esi + 0xd6], 1
jne 0x10b07a2
xor ebx, ebx
jmp 0x10b07a2
mov eax, dword [edi + 4]
test byte [eax + 0x528], 4
jne 0x10b0799
mov ebx, dword [ebp - 0x14]
push edi
call fcn.010afa30
mov ebx, eax
test bx, bx
jne 0x10b0753
mov eax, dword [edi + 4]
test byte [eax + 0x528], 4
je 0x10b07a2
mov word [esi + 0xdc], 1
mov ax, bx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01075bbb
leave
ret 8

Function at 0x10b09be
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
mov eax, dword [eax + 0x88]
xor edx, edx
mov dword [ebp - 0xc], eax
mov word [ebp - 8], dx
mov byte [ebp - 5], dl
mov byte [ebp - 6], dl
push dword [ecx + 0xf8]
lea eax, [ebp - 0xc]
push 1
push 8
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
mov ecx, dword [ebp - 4]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
and ax, 0xfde7
call fcn.01075bbb
leave
ret 4
Function at 0x10b0d18
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10de03c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [eax + 0xf0]
push esi
mov dword [ebp - 0x44], eax
push edi
mov ecx, ebx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3a], 0x42444244
call fcn.010b0a1a
mov eax, dword [ebx + 0x34]
mov cx, word [ebx + 0x3d]
push dword [ebp - 0x44]
lea esi, [ebx + 0x38]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
movzx esi, word [ebx + 0x3f]
mov edi, dword [sym.imp.msvcrt.dll_fwrite]
add esi, ebx
mov dword [ebp - 0x13], eax
xor eax, eax
xor ebx, ebx
mov word [ebp - 0xf], cx
inc ebx
mov word [ebp - 0xd], 0x35
mov ecx, dword [ebp - 0xf]
push ebx
mov word [ebp - 0xb], ax
mov word [ebp - 9], ax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
add ecx, 0x35
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
mov word [ebp - 0x3c], cx
call edi
add esp, 0x10
cmp eax, ebx
jne 0x10b0dfb
test byte [ebp - 0x34], bl
jne 0x10b0dca
push dword [ebp - 0x44]
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x150], eax
mov word [ecx + reloc.ADVAPI32.dll_RegDeleteValueW], 5
push dword [ebp - 0x44]
lea eax, [ebp - 0x18]
push ebx
push 0x11
push eax
call edi
add esp, 0x10
cmp eax, ebx
jne 0x10b0dfb
cmp word [ebp - 0xf], 0
je 0x10b0e0e
push dword [ebp - 0x44]
movzx eax, word [ebp - 0xf]
push eax
push ebx
push esi
call edi
movzx ecx, word [ebp - 0xf]
add esp, 0x10
cmp eax, ecx
je 0x10b0e0e
mov esi, dword [ebp - 0x40]
push ebx
push 0
push esi
call fcn.010af70e
mov word [esi + 0xd4], bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075bbb
leave
ret 0xc
Function at 0x10b0e25
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10de03c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [eax + 0xf0]
push esi
mov dword [ebp - 0x4c], eax
push edi
mov ecx, ebx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x46], 0x454c4946
call fcn.010b0a1a
mov eax, dword [ebx + 0x34]
lea esi, [ebx + 0x38]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x47]
lea edi, [ebp - 0x15]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push dword [ebp - 0x4c]
lea esi, [ebx + 0x3d]
lea edi, [ebp - 0x1f]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x42]
lea edi, [ebp - 0x1a]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x50]
mov ecx, dword [esi + 0x3a0]
and word [ebp - 8], 0
and word [ebp - 6], 0
movzx edi, word [ebx + 0x56]
mov dword [ebp - 0x10], eax
mov ax, word [ebx + 0x54]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x44
mov eax, dword [ebp - 0xc]
add eax, 0x44
mov word [ebp - 0x48], ax
movzx eax, word [esi + reloc.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ecx + eax*4]
push 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push reloc.ADVAPI32.dll_CloseServiceHandle
add edi, ebx
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10b0f2f
test byte [ebp - 0x40], al
jne 0x10b0efb
push dword [ebp - 0x4c]
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
mov dword [esi + 0x150], eax
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], 3
push dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
push 1
push 0x20
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10b0f2f
cmp word [ebp - 0xc], 0
je 0x10b0f42
push dword [ebp - 0x4c]
movzx eax, word [ebp - 0xc]
push eax
push 1
push edi
call ebx
movzx ecx, word [ebp - 0xc]
add esp, 0x10
cmp eax, ecx
je 0x10b0f42
push 1
push 0
push esi
call fcn.010af70e
mov word [esi + 0xd4], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075bbb
leave
ret 0xc