joyce8/EMBER2024-capa huggingface dataset:
Function at 0x109a44b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push 0x10000
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
xor esi, esi
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
jne 0x109a479
or ax, 0xffff
jmp 0x109a5e6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x5c]
test byte [eax + 0x10], 0x80
je 0x109a48d
mov esi, 0x200000
push ebx
push edi
or esi, 0xa000000
push esi
push 3
push edi
push 3
push 0x81000000
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
call ebx
push eax
call fcn.0109a2fe
cmp dword [ebp + 0xc], 0xffffffff
je 0x109a5d5
push edi
push dword [ebp - 4]
push 2
push edi
push 3
push 0xc10c0000
push dword [ebp + 0x10]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x109a54e
call ebx
push eax
call fcn.0109a2fe
cmp ax, 0xfe05
jne 0x109a550
push 0x80
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push dword [ebp - 4]
push 2
push edi
push 3
push 0xc10c0000
push dword [ebp + 0x10]
call esi
mov dword [ebp + 8], eax
call ebx
push eax
call fcn.0109a2fe
cmp dword [ebp + 8], 0xffffffff
jne 0x109a54e
cmp ax, 0xfe05
jne 0x109a550
push edi
push dword [ebp - 4]
push 2
push edi
push 3
push 0xc00c0000
push dword [ebp + 0x10]
call esi
mov dword [ebp + 8], eax
call ebx
push eax
call fcn.0109a2fe
cmp dword [ebp + 8], 0xffffffff
je 0x109a550
xor eax, eax
cmp ax, di
jne 0x109a5ca
mov esi, dword [sym.imp.KERNEL32.dll_BackupRead]
xor ebx, ebx
mov dword [ebp + 0x10], edi
inc ebx
lea eax, [ebp - 8]
push eax
push ebx
push edi
lea eax, [ebp + 0x10]
push eax
push 0x10000
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call esi
cmp dword [ebp + 0x10], edi
je 0x109a59b
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_BackupWrite]
cmp dword [ebp + 0x10], edi
jne 0x109a561
cmp dword [ebp - 8], edi
je 0x109a5ae
lea eax, [ebp - 8]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0xc]
call esi
cmp dword [ebp - 0xc], edi
je 0x109a5c1
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x109a5d8
mov di, ax
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ax, di
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x109a5ec
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x14]
push edi
xor edi, edi
push edi
push edi
lea ecx, [ebp - 4]
push ecx
push edi
push dword [eax + 0x10]
mov dword [ebp - 8], edi
push dword [ebx]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.010a7a67
test ax, ax
jne 0x109a73d
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x109a64c
push dword [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebx]
call fcn.010a7422
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x109a73d
mov dword [ebp - 4], eax
jmp 0x109a711
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
cmp ecx, dword [eax]
jne 0x109a70e
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 4]
jne 0x109a70e
mov ecx, dword [esi + 8]
cmp ecx, dword [eax + 8]
jne 0x109a70e
push edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [esi + 0x10]
push dword [ebx]
call fcn.010a7a67
test ax, ax
jne 0x109a733
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0x1005e34
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
push edi
je 0x109a6ce
push dword [ebp - 4]
push dword [ebp - 8]
jmp 0x109a6dc
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
cmp eax, edi
jne 0x109a707
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x109a707
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebx]
call fcn.0109a44b
mov dword [ebp - 0xc], 0xfffffe05
push dword [ebx]
call fcn.010a7422
mov esi, dword [esi + 0x14]
cmp esi, edi
jne 0x109a666
cmp dword [ebp - 4], edi
je 0x109a728
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ax, word [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or ax, 0xffff
jmp 0x109a72c

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

Disassembly:
cmp word [0x10cfe08], 0
je 0x109a8d1
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x5c]
push dword [eax]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 0xa]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x109a8cf
push 0x1005e34
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [edi + 0x5c]
push dword [eax]
push esi
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x109a8bf
mov word [0x10dd4b8], 1
push esi
call dword [sym.imp.msvcrt.dll_free]
and word [0x10cfe08], 0
pop ecx
pop edi
pop esi
mov ax, word [0x10dd4b8]
ret 4
Function at 0x109a8da
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x154
and dword [ebp + 0x70], 0
push esi
mov esi, dword [ebp + 0x7c]
mov eax, dword [esi + 0x5c]
cmp word [eax + 0x4c], 0
je 0x109a901
test byte [esi + 0x60], 4
je 0x109aa82
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x40
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x64
lea eax, [ebp - 0xe0]
push eax
mov eax, dword [esi + 0x5c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x109aa4f
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp + 0x7c]
mov ebx, dword [sym.imp.msvcrt.dll_wcscmp]
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x18]
push 0x1011d6c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x109a965
mov dword [ebp + 0x70], 0xfffffe0d
jmp 0x109aa78
push esi
call fcn.0109a861
mov ecx, dword [esi + 0x5c]
mov word [ecx + 4], ax
mov eax, dword [esi + 0x5c]
cmp dword [eax + 8], 0
jne 0x109a993
test byte [esi + 0x60], 0x80
jne 0x109a993
lea eax, [ebp - 0xe0]
push eax
call fcn.0109a82a
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0109a82a
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x5c]
mov cx, word [ebp + 0x68]
mov word [eax + 0xc], cx
mov cl, byte [ebp + 0x7c]
test cl, 2
movzx eax, word [esi + 0x60]
je 0x109a9bf
or ax, 0x400
jmp 0x109a9c3
and ax, 0xfbff
test cl, 1
mov word [esi + 0x60], ax
movzx eax, ax
je 0x109a9d5
or ax, 0x200
jmp 0x109a9d9
and ax, 0xfdff
test cl, 4
mov word [esi + 0x60], ax
movzx eax, ax
je 0x109a9eb
or ax, 0x1000
jmp 0x109a9ef
and ax, 0xefff
test cl, 8
mov word [esi + 0x60], ax
movzx eax, ax
je 0x109aa00
or eax, 0x40
jmp 0x109aa03
and eax, 0xffffffbf
mov word [esi + 0x60], ax
lea eax, [ebp - 0x18]
push 0x1011d60
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x109aa40
lea eax, [ebp - 0x18]
push 0x1011d54
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x109aa40
lea eax, [ebp - 0x18]
push 0x1011d4c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x109aa40
or byte [esi + 0x60], 8
jmp 0x109aa44
and byte [esi + 0x60], 0xf7
mov eax, dword [esi + 0x5c]
mov word [eax + 0x4c], 1
jmp 0x109aa78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x109aa71
xor ecx, ecx
cmp eax, 0x15
sete cl
dec ecx
and ecx, 0xffffffd3
add ecx, 0xfffffe3a
mov dword [ebp + 0x70], ecx
jmp 0x109aa78
mov dword [ebp + 0x70], 0xfffffe05
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop ebx
mov ax, word [ebp + 0x70]
pop esi
add ebp, 0x74
leave
ret 4
Function at 0x109ae11
Capabilities:
Connect network resource

Disassembly:
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 0x109ae55
cmp word [edi], bx
je 0x109ae55
mov edx, edi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x109ae64
cmp word [eax], bx
je 0x109ae64
mov dword [ebp - 4], eax
cmp edx, ebx
jne 0x109ae7f
test byte [esi + 0x4a], 1
je 0x109ae7f
cmp byte [esi + 0x30], 2
mov eax, dword [esi + 0x5c]
jne 0x109ae7c
mov edx, dword [eax + 0x24]
jmp 0x109ae7f
mov edx, dword [eax + 0x18]
cmp dword [ebp - 4], ebx
jne 0x109ae9e
test byte [esi + 0x4a], 2
je 0x109ae9e
cmp byte [esi + 0x30], 2
mov eax, dword [esi + 0x5c]
jne 0x109ae98
mov eax, dword [eax + 0x28]
jmp 0x109ae9b
mov eax, dword [eax + 0x1c]
mov dword [ebp - 4], eax
cmp edx, ebx
je 0x109aea9
cmp word [edx], bx
jne 0x109aea9
xor edx, edx
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x109aeb8
cmp word [eax], bx
jne 0x109aeb8
mov dword [ebp - 4], ebx
push ebx
push edx
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push eax
call sub.MPR.dll_WNetAddConnection2W
cmp eax, ebx
je 0x109aedd
cmp eax, 0x4b2
je 0x109aee5
mov dword [ebp + 0x14], 0xfffffe05
jmp 0x109af7b
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 0x109af35
push dword [ebp + 0xc]
call fcn.0109a82a
mov ebx, eax
test ebx, ebx
je 0x109af2f
movzx eax, byte [esi + 0x30]
dec eax
je 0x109af1a
dec eax
jne 0x109af29
mov eax, dword [esi + 0x5c]
push dword [eax + 0x24]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x24], ebx
jmp 0x109af28
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 0x109af33
and byte [esi + 0x4a], 0xfd
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x109af7b
push dword [ebp + 0x10]
call fcn.0109a82a
mov ebx, eax
test ebx, ebx
je 0x109af77
movzx eax, byte [esi + 0x30]
dec eax
je 0x109af62
dec eax
jne 0x109af71
mov eax, dword [esi + 0x5c]
push dword [eax + 0x28]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x28], ebx
jmp 0x109af70
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 0x109af7b
and byte [esi + 0x4a], 0xfe
mov ax, word [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10a0727
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
push ebx
push esi
push edi
push 0x5c
push dword [ebp + 0xc]
lea edi, [eax + 0x14fc]
xor esi, esi
mov word [edi], si
call dword [sym.imp.msvcrt.dll_wcsrchr]
push 0x3a
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 0x10
cmp eax, esi
je 0x10a083f
cmp ebx, esi
je 0x10a083f
dec eax
dec eax
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push 0x2000000
push esi
push 0x1011dd0
push 0x80000002
mov word [ebx], si
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10a083a
mov dword [ebp + 0xc], esi
mov ebx, 0x208
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x10a082b
lea eax, [ebp - 4]
push eax
push 0x2000000
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10a082b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x1011db8
push dword [ebp - 4]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jne 0x10a082b
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10a082e
inc dword [ebp + 0xc]
jmp 0x10a07a4
mov word [edi], si
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xc]
mov word [ebx], 0x5c
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10a0850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
add edi, eax
lea eax, [edi + edi + 0x22]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10a0918
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 edi, eax
add esp, 0x10
test edi, edi
je 0x10a08a6
inc edi
inc edi
jmp 0x10a08a8
mov edi, esi
push ebx
mov ebx, 0xffff
mov eax, dword [0x10dd93c]
cmp eax, ebx
jb 0x10a08b9
xor eax, eax
mov ecx, eax
push ecx
push dword [ebp + 0xc]
inc eax
push 0x1011e40
push edi
mov dword [0x10dd93c], eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
push 0
push 0x2000000
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10a0904
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10a0915
cmp eax, 0x20
jne 0x10a0915
jmp 0x10a090b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
cmp eax, ebx
jb 0x10a08ae
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x10a0bfc
Capabilities:
Create directory
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, eax
mov eax, dword [ebp + 0xc]
and word [eax], 0
mov eax, dword [esi + 0x10]
push edi
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ebx
push dword [eax + 4]
call fcn.0108e0a1
test ax, ax
jne 0x10a0c61
push 0x2e
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10a0cfd
and word [edi], 0
mov eax, dword [esi]
push ebx
push dword [eax + 4]
call fcn.0108e0a1
test ax, ax
je 0x10a0c57
mov eax, dword [ebp + 0xc]
mov word [eax], 1
mov word [edi], 0x2e
jmp 0x10a0cfd
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1005dc4
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 0x10a0cfd
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.0108d74a
test eax, eax
je 0x10a0d02
push edi
call dword [sym.imp.msvcrt.dll_free]
mov dword [esp], 0x10114e4
push ebx
call fcn.010a0850
mov edi, eax
test edi, edi
je 0x10a0cfd
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.0108d74a
test eax, eax
je 0x10a0d02
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x10a0d3e
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 0x10a0d36
mov eax, dword [ebp - 4]
mov dword [eax + 0x24c], edi
mov word [eax + 0x24a], 1
jmp 0x10a0d3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0x10a18d3
Capabilities:
Set file attributes

Disassembly:
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 0x10a1959
mov edi, dword [ebp + 0x10]
push eax
push edi
push ebx
push dword [ebp + 8]
call fcn.010a123f
cmp byte [edi], 9
mov dword [ebp - 8], eax
jne 0x10a1930
mov eax, dword [ebp + 8]
push 0x1011c24
push dword [eax + 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10a1930
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xa0], 0
je 0x10a1930
mov ax, word [ebp - 8]
jmp 0x10a1a8e
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 + 0x250], ax
mov word [esi + 0x258], ax
cmp word [ebp + 0x14], 1
jne 0x10a1975
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xa0], 0
je 0x10a1975
xor ax, ax
jmp 0x10a1a8e
mov eax, dword [ebp + 0x10]
cmp byte [eax], 8
jne 0x10a1981
xor ebx, ebx
jmp 0x10a1987
mov eax, dword [eax + 0x7c]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
push 0x1011c24
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10a19d4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1011d38
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.01099d30
test eax, eax
je 0x10a19d4
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.010a7a67
test ax, ax
je 0x10a19f4
or ax, 0xffff
jmp 0x10a1a8e
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 0x10a1a53
cmp word [ebp + 0x14], 1
jne 0x10a1a21
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 0x10a1a56
mov eax, dword [ebp - 0x14]
mov edi, dword [esi + 0x270]
cmp edi, ebx
je 0x10a1a95
cmp eax, ebx
je 0x10a1a83
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.010a091e
mov ebx, eax
test edi, edi
je 0x10a1a7c
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
and dword [esi + 0x270], 0
push dword [ebp + 8]
call fcn.010a7422
mov ax, bx
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jne 0x10a1a64
or ebx, 0xffffffff
jmp 0x10a1a6f
Function at 0x10a2453
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov cx, word [eax + 0x540]
push ebx
push edi
or edi, 0xffffffff
mov word [ebp - 4], cx
mov ecx, dword [eax + 0xa4]
mov eax, edi
xor edx, edx
div ecx
mov ebx, dword [esi + 0x38]
sub edi, edx
cmp edi, 0xffffffff
jne 0x10a2489
or edi, edi
sub edi, ecx
mov eax, dword [esi + 0x44]
cmp edi, eax
jb 0x10a2492
mov edi, eax
and dword [esi + 0x50], 0
push edi
push ebx
push dword [ebp - 4]
call fcn.0108bee4
test ax, ax
je 0x10a24b4
mov ax, 0xfdff
pop edi
pop ebx
leave
ret 8
call fcn.0106e781
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0108c332
cmp ax, 1
je 0x10a24af
mov dx, word [ebp - 0x20]
test dx, dx
je 0x10a24d9
cmp dx, 5
jne 0x10a25e6
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jb 0x10a24e8
mov dword [esi + 0x48], eax
jmp 0x10a24eb
mov dword [esi + 0x48], ecx
push 0xa
push ebx
mov word [esi + 0x58], dx
call fcn.01091d75
cmp ax, word [ebx + 0x14]
je 0x10a2503
mov ax, 0xfdf6
jmp 0x10a24a9
mov ebx, dword [ebx + 8]
push 0x16
push esi
call fcn.0109f691
jmp 0x10a2599
mov eax, dword [esi + 0x48]
push dword [ebp + 0xc]
sub ebx, eax
push eax
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x50]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, dword [esi + 0x48]
jne 0x10a25cc
cmp word [esi + 0x58], 5
je 0x10a25d5
and dword [esi + 0x50], 0
push edi
push dword [esi + 0x38]
push dword [ebp - 4]
call fcn.0108bee4
test ax, ax
jne 0x10a24a5
jmp 0x10a2562
call fcn.0106e781
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0108c332
cmp ax, 1
je 0x10a255d
mov dx, word [ebp - 0x20]
test dx, dx
je 0x10a2583
cmp dx, 5
jne 0x10a25e6
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jb 0x10a2592
mov dword [esi + 0x48], eax
jmp 0x10a2595
mov dword [esi + 0x48], ecx
mov word [esi + 0x58], dx
cmp ebx, dword [esi + 0x48]
ja 0x10a2513
push dword [ebp + 0xc]
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x50]
xor edi, edi
push ebx
inc edi
push edi
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, ebx
jne 0x10a25cc
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
pop ecx
je 0x10a25ef
mov ax, 0xfde7
jmp 0x10a24a9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
or word [eax + 0x528], 0x204
jmp 0x10a2642
mov ax, 0xfdf8
jmp 0x10a24a9
cmp word [esi + 0x58], 5
je 0x10a2629
push 0
push edi
push dword [ebp - 4]
call fcn.0108c276
test ax, ax
jne 0x10a24a5
jmp 0x10a2611
call fcn.0106e781
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0108c332
cmp ax, di
je 0x10a260c
cmp word [ebp - 0x20], 0
jne 0x10a25e6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
and word [eax + 0x528], 0xfefa
mov eax, dword [ecx + 4]
or dword [eax + 0x528], 2
xor ax, ax
jmp 0x10a24a9
Function at 0x10a294c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x54]
mov eax, dword [ebx + 0xf0]
mov dword [ebp + 8], eax
mov eax, dword [edi + 4]
mov si, word [eax + 0x540]
xor eax, eax
cmp word [ebx + 0xda], ax
je 0x10a29da
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.0108bee4
test ax, ax
je 0x10a29bd
mov ax, 0xfdff
pop edi
pop esi
pop ebx
leave
ret 4
call fcn.0106e781
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0108c332
cmp ax, 1
je 0x10a29b8
cmp word [ebp - 0x44], 0
je 0x10a2a11
mov ax, 0xfdf8
jmp 0x10a29b1
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.0108c6a2
test ax, ax
jne 0x10a29ad
jmp 0x10a29ff
call fcn.0106e781
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0108c332
cmp ax, 1
je 0x10a29fa
jmp 0x10a29cd
push dword [ebp + 8]
mov esi, dword [edi + 8]
push edi
call fcn.010a2453
xor esi, esi
cmp ax, si
jne 0x10a29b1
mov eax, dword [edi + 4]
test byte [eax + 0x528], 4
je 0x10a2aba
cmp byte [ebx + 0x3b4], 1
jne 0x10a2aa6
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_ftell]
and word [ebp - 0x28], si
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_fseek]
pop ecx
mov dword [ebp - 4], eax
jl 0x10a2a9b
movzx eax, word [ebp - 0x28]
add esi, eax
push 0
push esi
push dword [ebp + 8]
call edi
add esp, 0xc
test eax, eax
jne 0x10a2ab1
mov eax, dword [ebp - 4]
sub eax, esi
cmp eax, 0x24
jb 0x10a2a9b
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push 1
push 0x24
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10a2ab1
movzx eax, word [ebp - 0x28]
add eax, esi
cmp eax, dword [ebp - 4]
jle 0x10a2a58
push 0
push esi
push dword [ebp + 8]
call edi
add esp, 0xc
mov word [ebx + 0xda], 1
jmp 0x10a2ac8
mov ax, 0xfde7
jmp 0x10a29b1
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
xor ax, ax
jmp 0x10a29b1