joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10abb36
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x10e607c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x210], eax
mov eax, dword [eax + 0x34]
mov ebx, dword [eax + 0x34]
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x214], eax
jne 0x10abb87
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x38]
cmp ecx, edx
je 0x10abb80
mov edi, dword [eax + 0x18]
mov ebx, dword [edi + ecx*4]
inc ecx
test ebx, ebx
mov dword [eax + 0x38], ecx
je 0x10abb6b
test ebx, ebx
jne 0x10abb87
or ebx, 0xffffffff
cmp ebx, 0xffffffff
jne 0x10abb95
mov ax, 0xfe07
jmp 0x10abd28
push dword [ebx + 8]
lea eax, [ebp - 0x20c]
push dword [ebx + 4]
push dword [ebx]
push 0x1012704
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x18
lea edi, [eax + eax + 2]
push edi
push dword [ebp - 0x210]
call fcn.010a9982
xor ecx, ecx
cmp eax, ecx
jne 0x10abbde
or ax, 0xffff
jmp 0x10abd28
mov dword [esi + 0x98], ecx
mov dword [esi + 0x94], ecx
mov dword [esi + 0x90], ecx
mov word [esi + 0xa0], cx
lea ecx, [ebp - 0x20c]
push ecx
mov dword [esi + 0x7c], eax
mov byte [esi], 9
mov dword [esi + 0x9c], 1
push dword [eax + 0x18]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [esi + 0x7c]
pop ecx
mov word [eax + 0x1c], di
pop ecx
lea eax, [ebp - 0x228]
push eax
mov word [esi + 0x78], 1
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esi + 0x60]
push eax
lea eax, [ebp - 0x228]
push eax
call edi
lea eax, [esi + 0x70]
push eax
lea eax, [ebp - 0x228]
push eax
call edi
lea eax, [esi + 0x68]
push eax
lea eax, [ebp - 0x228]
push eax
call edi
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push dword [ebx + 0x10]
push dword [ebp - 0x210]
call fcn.010bab05
test ax, ax
jne 0x10abd09
push edi
push 0x2000080
push 3
push edi
push 3
push 0x100
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10abcfe
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10abcf7
mov eax, dword [ebp - 0x25c]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x258]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x254]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x6c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x210]
call fcn.010ba429
mov eax, dword [0x10f5df0]
mov ecx, dword [ebp - 0x214]
mov dword [esi + 0x38], eax
mov eax, dword [0x10f5df4]
mov dword [esi + 0x3c], eax
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0x34], eax
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 8
Function at 0x10ac1af
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
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 0x10ac1df
or ax, 0xffff
jmp 0x10ac34c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x5c]
test byte [eax + 0x10], 0x80
je 0x10ac1f3
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.010ac058
cmp dword [ebp + 0xc], 0xffffffff
je 0x10ac33b
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 0x10ac2b4
call ebx
push eax
call fcn.010ac058
cmp ax, 0xfe05
jne 0x10ac2b6
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.010ac058
cmp dword [ebp + 8], 0xffffffff
jne 0x10ac2b4
cmp ax, 0xfe05
jne 0x10ac2b6
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.010ac058
cmp dword [ebp + 8], 0xffffffff
je 0x10ac2b6
xor eax, eax
cmp ax, di
jne 0x10ac330
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 0x10ac301
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 0x10ac2c7
cmp dword [ebp - 8], edi
je 0x10ac314
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 0x10ac327
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 0x10ac33e
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 0x10ac357
Capabilities:
Delete file

Disassembly:
mov edi, edi
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.010bab05
test ax, ax
jne 0x10ac4aa
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 0x10ac3b9
push dword [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebx]
call fcn.010ba429
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x10ac4aa
mov dword [ebp - 4], eax
jmp 0x10ac47e
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
cmp ecx, dword [eax]
jne 0x10ac47b
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 4]
jne 0x10ac47b
mov ecx, dword [esi + 8]
cmp ecx, dword [eax + 8]
jne 0x10ac47b
push edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [esi + 0x10]
push dword [ebx]
call fcn.010bab05
test ax, ax
jne 0x10ac4a0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0x1005efc
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
push edi
je 0x10ac43b
push dword [ebp - 4]
push dword [ebp - 8]
jmp 0x10ac449
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 0x10ac474
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10ac474
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebx]
call fcn.010ac1af
mov dword [ebp - 0xc], 0xfffffe05
push dword [ebx]
call fcn.010ba429
mov esi, dword [esi + 0x14]
cmp esi, edi
jne 0x10ac3d3
cmp dword [ebp - 4], edi
je 0x10ac495
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 0x10ac499

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp word [0x10e6ef8], 0
je 0x10ac665
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
push edi
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 edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10ac663
push 0x1005efc
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [esi + 0x5c]
push dword [eax]
push edi
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10ac653
mov word [0x10f6100], 1
push edi
call dword [sym.imp.msvcrt.dll_free]
and word [0x10e6ef8], 0
pop ecx
pop edi
pop esi
mov ax, word [0x10f6100]
pop ebp
ret 4
Function at 0x10ac674
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x10e607c]
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 0x10ac6a6
test byte [esi + 0x60], 4
je 0x10ac857
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x40
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 0x10ac81b
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 0x1012738
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10ac71f
mov dword [ebp - 0x150], 0xfffffe0d
jmp 0x10ac84a
push esi
call fcn.010ac5f1
mov ecx, dword [esi + 0x5c]
mov word [ecx + 4], ax
mov eax, dword [esi + 0x5c]
cmp dword [eax + 8], 0
jne 0x10ac74d
test byte [esi + 0x60], 0x80
jne 0x10ac74d
lea eax, [ebp - 0x14c]
push eax
call fcn.010ac5b0
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x84]
push eax
call fcn.010ac5b0
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x5c]
mov cx, word [ebp - 0x158]
mov word [eax + 0xc], cx
mov cl, byte [ebp - 0x154]
test cl, 2
movzx eax, word [esi + 0x60]
je 0x10ac782
or ax, 0x400
jmp 0x10ac786
and ax, 0xfbff
test cl, 1
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10ac798
or ax, 0x200
jmp 0x10ac79c
and ax, 0xfdff
test cl, 4
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10ac7ae
or ax, 0x1000
jmp 0x10ac7b2
and ax, 0xefff
test cl, 8
mov word [esi + 0x60], ax
movzx eax, ax
je 0x10ac7c3
or eax, 0x40
jmp 0x10ac7c6
and eax, 0xffffffbf
mov word [esi + 0x60], ax
lea eax, [ebp - 0x84]
push 0x101272c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10ac80c
lea eax, [ebp - 0x84]
push 0x1012720
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10ac80c
lea eax, [ebp - 0x84]
push 0x1012718
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10ac80c
or byte [esi + 0x60], 8
jmp 0x10ac810
and byte [esi + 0x60], 0xf7
mov eax, dword [esi + 0x5c]
mov word [eax + 0x4c], 1
jmp 0x10ac84a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10ac840
xor ecx, ecx
cmp eax, 0x15
sete cl
dec ecx
and ecx, 0xffffffd3
add ecx, 0xfffffe3a
mov dword [ebp - 0x150], ecx
jmp 0x10ac84a
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 - 0x150]
pop esi
call fcn.01078836
leave
ret 4
Function at 0x10acc37
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 0x10acc7d
cmp word [edi], bx
je 0x10acc7d
mov edx, edi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10acc8c
cmp word [eax], bx
je 0x10acc8c
mov dword [ebp - 4], eax
cmp edx, ebx
jne 0x10acca7
test byte [esi + 0x4a], 1
je 0x10acca7
cmp byte [esi + 0x30], 2
mov eax, dword [esi + 0x5c]
jne 0x10acca4
mov edx, dword [eax + 0x24]
jmp 0x10acca7
mov edx, dword [eax + 0x18]
cmp dword [ebp - 4], ebx
jne 0x10accc6
test byte [esi + 0x4a], 2
je 0x10accc6
cmp byte [esi + 0x30], 2
mov eax, dword [esi + 0x5c]
jne 0x10accc0
mov eax, dword [eax + 0x28]
jmp 0x10accc3
mov eax, dword [eax + 0x1c]
mov dword [ebp - 4], eax
cmp edx, ebx
je 0x10accd1
cmp word [edx], bx
jne 0x10accd1
xor edx, edx
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10acce0
cmp word [eax], bx
jne 0x10acce0
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 0x10acd05
cmp eax, 0x4b2
je 0x10acd0d
mov dword [ebp + 0x14], 0xfffffe05
jmp 0x10acda3
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 0x10acd5d
push dword [ebp + 0xc]
call fcn.010ac5b0
mov ebx, eax
test ebx, ebx
je 0x10acd57
movzx eax, byte [esi + 0x30]
dec eax
je 0x10acd42
dec eax
jne 0x10acd51
mov eax, dword [esi + 0x5c]
push dword [eax + 0x24]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x24], ebx
jmp 0x10acd50
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 0x10acd5b
and byte [esi + 0x4a], 0xfd
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x10acda3
push dword [ebp + 0x10]
call fcn.010ac5b0
mov ebx, eax
test ebx, ebx
je 0x10acd9f
movzx eax, byte [esi + 0x30]
dec eax
je 0x10acd8a
dec eax
jne 0x10acd99
mov eax, dword [esi + 0x5c]
push dword [eax + 0x28]
call edi
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x28], ebx
jmp 0x10acd98
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 0x10acda3
and byte [esi + 0x4a], 0xfe
mov ax, word [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10b2e2a
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 [0x10e607c]
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 0x10b2f95
mov ebx, dword [ebp - 0x21c]
cmp ebx, edi
je 0x10b2f95
dec eax
dec eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x210]
push eax
push 0x2000000
push edi
push 0x1012798
push 0x80000002
mov word [ebx], di
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10b2f90
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 0x10b2f7b
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 0x10b2f7b
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x230]
push eax
push edi
push 0x1012784
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 0x10b2f7b
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 0x10b2f7e
inc dword [ebp - 0x214]
jmp 0x10b2ec0
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.01078836
leave
ret 8
Function at 0x10b2fb3
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 0x10b307c
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 0x10b300b
inc ebx
inc ebx
jmp 0x10b300d
mov ebx, esi
mov eax, dword [0x10f6984]
cmp eax, 0xffff
jb 0x10b301b
xor eax, eax
mov ecx, eax
push ecx
push dword [ebp + 0xc]
inc eax
push 0x1012808
push ebx
mov dword [0x10f6984], 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 0x10b3066
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10b307a
cmp eax, 0x20
jne 0x10b307a
jmp 0x10b306d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
cmp eax, 0xffff
jb 0x10b300d
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10b3376
Capabilities:
Create directory
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10e607c]
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.0109eea7
test ax, ax
jne 0x10b33ee
push 0x2e
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
je 0x10b348a
and word [eax], 0
mov eax, dword [esi]
push ebx
push dword [eax + 4]
call fcn.0109eea7
test ax, ax
je 0x10b33de
mov word [edi], 1
mov eax, dword [ebp - 0x210]
mov word [eax], 0x2e
jmp 0x10b348a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1005e8c
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 0x10b348a
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.0109e279
test eax, eax
je 0x10b348f
push edi
call dword [sym.imp.msvcrt.dll_free]
mov dword [esp], 0x1011e3c
push ebx
call fcn.010b2fb3
mov edi, eax
test edi, edi
je 0x10b348a
mov eax, dword [esi]
push edi
push ebx
push dword [eax + 4]
call fcn.0109e279
test eax, eax
je 0x10b348f
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x10b34ce
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 0x10b34c6
mov eax, dword [ebp - 0x210]
mov dword [eax + 0x24c], edi
mov word [eax + 0x24a], 1
jmp 0x10b34cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01078836
leave
ret
Function at 0x10b4371
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 0x10b43f9
mov edi, dword [ebp + 0x10]
push eax
push edi
push ebx
push dword [ebp + 8]
call fcn.010b3b28
cmp byte [edi], 9
mov dword [ebp - 8], eax
jne 0x10b43d0
mov eax, dword [ebp + 8]
push 0x10125f0
push dword [eax + 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10b43d0
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xa0], 0
je 0x10b43d0
mov ax, word [ebp - 8]
jmp 0x10b452e
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 0x10b4415
mov eax, dword [ebx + 0x14]
cmp word [eax + 0xa0], 0
je 0x10b4415
xor ax, ax
jmp 0x10b452e
mov eax, dword [ebp + 0x10]
cmp byte [eax], 8
jne 0x10b4421
xor ebx, ebx
jmp 0x10b4427
mov eax, dword [eax + 0x7c]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
push 0x10125f0
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b4474
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1012704
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.010ab9f3
test eax, eax
je 0x10b4474
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.010bab05
test ax, ax
je 0x10b4494
or ax, 0xffff
jmp 0x10b452e
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 0x10b44f3
cmp word [ebp + 0x14], 1
jne 0x10b44c1
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 0x10b44f6
mov eax, dword [ebp - 0x14]
mov edi, dword [esi + 0x270]
cmp edi, ebx
je 0x10b4535
cmp eax, ebx
je 0x10b4523
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.010b3087
mov ebx, eax
test edi, edi
je 0x10b451c
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
and dword [esi + 0x270], 0
push dword [ebp + 8]
call fcn.010ba429
mov ax, bx
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jne 0x10b4504
or ebx, 0xffffffff
jmp 0x10b450f
Function at 0x10b4c14
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp word [ebp + 0xc], 0
mov ax, word [ebp - 4]
je 0x10b4c38
movzx edx, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ax, word [ecx]
inc ecx
inc ecx
dec edx
jne 0x10b4c30
leave
ret 8