joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a59c
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
jge 0x101a676
push eax
call sub.SPP.dll_SxTracerShouldTrackFailure
mov dword [ebp - 4], eax
mov ecx, 0x1003958
cmp eax, edi
jne 0x101a5d0
mov ecx, 0x1003950
cmp dword [esi + 8], edi
jne 0x101a60c
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101a60c
test dword [eax + 0x1c], 0x2000000
je 0x101a60c
push dword [esi]
movzx edx, word [esi + 6]
push edx
push ecx
movzx ecx, word [esi + 4]
push ecx
push dword [esi + 0x10]
push 0x1003940
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101a1db
cmp dword [esi + 0x1c], edi
je 0x101a648
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
cmp ecx, dword [eax + 0x10]
je 0x101a648
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x101a62b
push eax
call ebx
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
mov dword [esi + 0x1c], edi
mov dword [eax + 0x10], ecx
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x101a65a
mov ecx, dword [esi]
cmp ecx, dword [eax + 8]
je 0x101a6f1
cmp dword [esi + 8], edi
jne 0x101a666
mov ecx, esi
call fcn.0101a442
cmp dword [ebp - 4], edi
je 0x101a6f1
call sub.SPP.dll_SxTracerDebuggerBreak
jmp 0x101a6f1
movzx eax, word [esi + 0xc]
cmp ax, di
jne 0x101a6a0
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101a6f1
test dword [eax + 0x1c], 0x8000000
je 0x101a6f1
push dword [esi + 0x10]
push 0x1003940
push 0x10
jmp 0x101a6e6
cmp ax, 1
jne 0x101a6c7
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101a6f1
test dword [eax + 0x1c], 0x20000000
je 0x101a6f1
push dword [esi + 0x10]
push 0x1003940
push 0x11
jmp 0x101a6e6
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101a6f1
test dword [eax + 0x1c], 0x20000
je 0x101a6f1
push dword [esi + 0x10]
push 0x1003940
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101a12f
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x101a724
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x14], edi
jne 0x101a71f
mov dword [eax + 8], edi
mov eax, dword [esi + 0x18]
push dword [eax + 0xc]
call ebx
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x18]
mov dword [eax + 0x10], edi
jmp 0x101a724
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x101a731
push eax
call ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101b2b2
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101b2e1
test dword [eax + 0x1c], 0x20000000
je 0x101b2e1
push 0x1003968
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e9b8
push esi
push 1
push 0x1bb
push 0x1003a88
lea ecx, [ebp - 0x3c]
call fcn.0101a2c6
xor esi, esi
mov eax, 0x1004590
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov eax, 0x1c3
cmp dword [ebp + 8], esi
jne 0x101b329
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x101b492
push ebx
mov ebx, dword [ebp + 0xc]
mov word [ebp - 0x38], ax
mov eax, 0x1c4
cmp ebx, 2
jae 0x101b34b
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x101b491
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x38], ax
call fcn.0101b05c
mov edi, 0x1003988
push edi
push esi
push dword [ebp + 8]
mov esi, 0x1003a60
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.01021bdd
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1cb
jl 0x101b48c
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x101b3bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x101b3aa
cmp eax, 3
jne 0x101b3bc
and dword [ebp - 0x3c], 0
mov eax, 0x1d3
mov word [ebp - 0x38], ax
jmp 0x101b490
push edi
dec ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.01021bdd
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1d8
jl 0x101b48c
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101b46a
push edi
lea ebx, [eax - 1]
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.01021bdd
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1df
jl 0x101b48c
push 1
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x101b447
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x101b43a
cmp eax, 0x20
je 0x101b43a
cmp eax, 5
jne 0x101b476
and dword [ebp - 0x3c], 0
mov eax, 0x1ec
mov word [ebp - 0x38], ax
push dword [ebp - 0xc]
call fcn.0101af68
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.010223d2
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1f3
jl 0x101b48c
mov word [ebp - 0x38], ax
mov eax, ebx
test eax, eax
ja 0x101b3ee
jmp 0x101b490
test eax, eax
jle 0x101b484
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x3c], eax
mov eax, 0x1ec
mov word [ebp - 0x36], ax
pop edi
pop ebx
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0xc]
call fcn.0102174b
lea ecx, [ebp - 0x18]
call fcn.0102174b
lea ecx, [ebp - 0x3c]
call fcn.0101a59c
mov eax, esi
pop esi
leave
ret 8
Function at 0x101bb0c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101bb4e
test dword [eax + 0x1c], 0x20000000
je 0x101bb4e
push 0x1003ad4
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e9b8
xor ebx, ebx
inc ebx
push ebx
push 0x621
push 0x1003aec
lea ecx, [ebp - 0xf0]
call fcn.0101a2c6
xor eax, eax
push 0xc6
mov word [ebp - 0xcc], ax
xor esi, esi
lea eax, [ebp - 0xca]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x625
cmp edi, esi
jne 0x101bba6
mov dword [ebp - 0xf0], 0x80070057
mov word [ebp - 0xea], ax
jmp 0x101bc29
push edi
mov dword [ebp - 0xf0], esi
mov word [ebp - 0xec], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x101bbcc
mov dword [ebp - 0xf0], ebx
mov eax, 0x62e
jmp 0x101bc22
push 0x64
lea eax, [ebp - 0xcc]
push eax
push esi
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x101bbf2
mov dword [ebp - 0xf0], ebx
mov eax, 0x633
jmp 0x101bc22
lea eax, [ebp - 0xcc]
push 0x1003ae4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x101bc17
mov dword [ebp - 0xf0], ebx
mov eax, 0x638
jmp 0x101bc22
mov dword [ebp - 0xf0], esi
mov eax, 0x63b
mov word [ebp - 0xec], ax
mov esi, dword [ebp - 0xf0]
lea ecx, [ebp - 0xf0]
call fcn.0101a59c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01019b35
leave
ret 4

Function at 0x101bd31
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101bd71
test dword [eax + 0x1c], 0x20000000
je 0x101bd71
push 0x1003ad4
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e9b8
push 1
push 0x351
push 0x1003b04
lea ecx, [ebp - 0x234]
call fcn.0101a2c6
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
je 0x101bdec
mov ecx, esi
call fcn.0102176f
and dword [ebp - 0x234], 0
mov eax, 0x357
mov word [ebp - 0x230], ax
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x101be04
call fcn.0101df25
mov dword [ebp - 0x234], eax
mov eax, 0x360
jmp 0x101bdfb
mov dword [ebp - 0x234], 0x80070057
mov eax, 0x357
mov word [ebp - 0x22e], ax
jmp 0x101be57
mov ecx, 0x360
cmp eax, 0x105
mov word [ebp - 0x230], cx
lea eax, [ecx + 1]
jb 0x101be26
mov dword [ebp - 0x234], 0x8007007a
jmp 0x101bdfb
and dword [ebp - 0x234], 0
lea edx, [ebp - 0x210]
mov ecx, esi
mov word [ebp - 0x230], ax
call fcn.010223d2
mov dword [ebp - 0x234], eax
test eax, eax
mov eax, 0x363
jl 0x101bdfb
mov word [ebp - 0x230], ax
mov esi, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0101a59c
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01019b35
leave
ret 4
Function at 0x101c2ce
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x214], eax
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101c319
test dword [eax + 0x1c], 0x20000000
je 0x101c319
push 0x1003ad4
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e9b8
push 1
push 0x4e7
push 0x1003b9c
lea ecx, [ebp - 0x238]
call fcn.0101a2c6
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
lea edi, [ebp - 0x23c]
mov dword [ebp - 0x240], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x244], ebx
cmp esi, ebx
je 0x101c36e
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, 0x4f2
cmp dword [ebp - 0x214], ebx
jne 0x101c391
mov dword [ebp - 0x238], 0x80070057
mov word [ebp - 0x232], ax
jmp 0x101c4f1
mov word [ebp - 0x234], ax
mov eax, 0x4f3
cmp esi, ebx
je 0x101c37b
push dword [ebp - 0x214]
mov word [ebp - 0x234], ax
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0101a4b3
mov dword [ebp - 0x238], eax
cmp eax, ebx
mov eax, 0x4f8
jl 0x101c385
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101c3de
sub eax, edx
sar eax, 1
jne 0x101c3f5
mov eax, 0x4fb
jmp 0x101c37b
lea eax, [ebp + eax*2 - 0x212]
cmp word [eax], 0x5c
mov ecx, 0x4fb
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x234], cx
jne 0x101c419
xor ecx, ecx
mov word [eax], cx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x101c44e
call fcn.0101df25
mov dword [ebp - 0x238], eax
mov eax, 0x50c
jmp 0x101c385
push ebx
mov eax, 0x50c
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x244]
push eax
push 8
lea eax, [ebp - 0x240]
push eax
push ebx
push ebx
push 0x7405c
push edi
mov dword [ebp - 0x238], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x101c49c
call fcn.0101df25
mov dword [ebp - 0x238], eax
mov eax, 0x512
mov word [ebp - 0x232], ax
jmp 0x101c4e6
mov ecx, dword [ebp - 0x23c]
cmp ecx, ebx
mov eax, 0x512
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x240]
jg 0x101c4cf
jl 0x101c4be
cmp eax, ebx
jae 0x101c4cf
mov dword [ebp - 0x238], 0x8000ffff
mov eax, 0x518
jmp 0x101c493
mov edx, 0x518
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x234], dx
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp edi, ebx
je 0x101c4f1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
call fcn.0101a59c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01019b35
leave
ret 8
Function at 0x101c584
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x1025318]
mov esi, 0x1025318
cmp eax, esi
je 0x101c5c0
test dword [eax + 0x1c], 0x20000000
je 0x101c5c0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1003ad4
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b82d
push 1
push 0x35
push 0x1003bec
lea ecx, [ebp - 0x2c]
call fcn.0101a2c6
xor edi, edi
push 0x40
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
pop eax
cmp dword [ebp + 8], edi
jne 0x101c5f1
mov dword [ebp - 0x2c], 0x80070057
mov word [ebp - 0x26], ax
jmp 0x101c768
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0xc]
push 0x41
cmp eax, edi
jne 0x101c601
pop eax
jmp 0x101c5e1
pop ecx
mov word [ebp - 0x28], cx
push 0x42
cmp dword [ebp + 0x10], edi
jbe 0x101c5fe
pop ecx
mov word [ebp - 0x28], cx
xor ecx, ecx
mov dword [ebp - 0x2c], edi
mov word [eax], cx
mov dword [ebp - 4], 0x105
push ebx
mov eax, dword [ebp - 4]
add eax, eax
push eax
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemRealloc]
mov ebx, eax
push 0x4d
mov dword [ebp - 8], ebx
pop eax
cmp ebx, edi
je 0x101c691
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x2c], edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
cmp eax, edi
jne 0x101c6df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x101c66f
cmp eax, 0xea
jne 0x101c671
xor eax, eax
cmp eax, edi
jle 0x101c67f
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
cmp ecx, edi
push 0x57
mov dword [ebp - 0x2c], ecx
pop eax
jl 0x101c6a1
mov word [ebp - 0x28], ax
jmp 0x101c622
mov dword [ebp - 0x2c], 0x8007000e
mov word [ebp - 0x26], ax
jmp 0x101c767
mov word [ebp - 0x26], ax
mov eax, dword [0x1025318]
cmp eax, esi
je 0x101c767
test dword [eax + 0x1c], 0x2000000
je 0x101c767
push ecx
push dword [ebp + 8]
push 0x1001f30
push 0x1003ad4
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090f1
jmp 0x101c767
or edi, 0xffffffff
cmp word [ebx], 0
mov ecx, ebx
je 0x101c714
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101c6ef
sub eax, esi
sar eax, 1
cmp eax, edi
jae 0x101c705
mov edi, eax
mov ebx, ecx
lea ecx, [ecx + eax*2 + 2]
cmp word [ecx], 0
jne 0x101c6ea
mov esi, 0x1025318
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0101a4b3
push 0x70
mov dword [ebp - 0x2c], eax
test eax, eax
pop eax
jge 0x101c763
mov word [ebp - 0x26], ax
mov eax, dword [0x1025318]
cmp eax, esi
je 0x101c767
test dword [eax + 0x1c], 0x2000000
je 0x101c767
push dword [ebp - 0x2c]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push 0x1003bac
push 0x1003ad4
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b904
jmp 0x101c767
mov word [ebp - 0x28], ax
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0101a59c
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x101ca99
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101cadc
test dword [eax + 0x1c], 0x20000000
je 0x101cadc
push ebx
push 0x1003ad4
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101a73e
push 1
push 0x327
push 0x1003d24
lea ecx, [ebp - 0x64c]
call fcn.0101a2c6
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
mov eax, 0x32e
cmp ebx, edi
jne 0x101cb61
mov dword [ebp - 0x64c], 0x80070057
mov word [ebp - 0x646], ax
jmp 0x101cc4d
mov word [ebp - 0x648], ax
mov esi, 0x105
push esi
lea eax, [ebp - 0x41c]
push eax
push ebx
mov dword [ebp - 0x64c], edi
call fcn.0101c789
mov dword [ebp - 0x64c], eax
cmp eax, edi
mov eax, 0x333
jl 0x101cb55
mov word [ebp - 0x648], ax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x1003d04
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
jne 0x101cbc0
call fcn.0101df25
mov dword [ebp - 0x64c], eax
mov eax, 0x33c
jmp 0x101cb55
mov ecx, 0x33c
cmp eax, esi
mov word [ebp - 0x648], cx
lea eax, [ecx + 1]
jbe 0x101cbe2
mov dword [ebp - 0x64c], 0x8007007a
jmp 0x101cb55
mov word [ebp - 0x648], ax
push esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x64c], edi
call fcn.0101c789
mov dword [ebp - 0x64c], eax
cmp eax, edi
mov eax, 0x33f
jl 0x101cb55
mov word [ebp - 0x648], ax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x101cc4d
mov eax, 0x343
mov dword [ebp - 0x64c], 1
mov word [ebp - 0x648], ax
mov esi, dword [ebp - 0x64c]
lea ecx, [ebp - 0x64c]
call fcn.0101a59c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01019b35
leave
ret 4
Function at 0x101cc76
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101ccba
test dword [eax + 0x1c], 0x20000000
je 0x101ccba
push dword [ebp + 0xc]
push esi
push 0x1003ad4
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b8d2
push 1
push 0x371
push 0x1003d34
lea ecx, [ebp - 0x234]
call fcn.0101a2c6
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x376
test esi, esi
jne 0x101cd0e
mov dword [ebp - 0x234], 0x80070057
mov word [ebp - 0x22e], ax
jmp 0x101cdbf
cmp dword [ebp + 0xc], 0
mov word [ebp - 0x230], ax
mov eax, 0x377
jbe 0x101ccf8
and dword [ebp - 0x234], 0
push edi
mov word [ebp - 0x230], ax
xor eax, eax
mov word [esi], ax
mov edi, 0x105
push edi
lea eax, [ebp - 0x210]
push eax
push 0x1003d04
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x101cd62
call fcn.0101df25
mov dword [ebp - 0x234], eax
mov eax, 0x382
jmp 0x101cdae
mov ecx, 0x382
cmp eax, edi
mov word [ebp - 0x230], cx
lea eax, [ecx + 1]
jbe 0x101cd81
mov dword [ebp - 0x234], 0x8007007a
jmp 0x101cdae
push dword [ebp + 0xc]
and dword [ebp - 0x234], 0
mov word [ebp - 0x230], ax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0101c789
mov dword [ebp - 0x234], eax
test eax, eax
mov eax, 0x385
jge 0x101cdb7
mov word [ebp - 0x22e], ax
jmp 0x101cdbe
mov word [ebp - 0x230], ax
pop edi
mov esi, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0101a59c
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01019b35
leave
ret 8
Function at 0x101d23f
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x101d284
test dword [eax + 0x1c], 0x20000000
je 0x101d284
push 0x1003ad4
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100e9b8
push ebx
push esi
push edi
push 1
push 0x842
push 0x1003dec
lea ecx, [ebp - 0x23c]
call fcn.0101a2c6
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x210]
xor esi, esi
push eax
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
jne 0x101d300
call fcn.0101df25
mov dword [ebp - 0x23c], eax
mov eax, 0x84a
mov word [ebp - 0x236], ax
jmp 0x101d43f
mov eax, 0x84a
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x101d3e1
mov eax, esi
cmp esi, ebx
je 0x101d33c
xor esi, esi
push eax
mov dword [ebp - 0x214], esi
call fcn.0101d11b
mov eax, esi
cmp esi, ebx
je 0x101d34e
push eax
mov dword [ebp - 0x214], ebx
call fcn.0101d11b
lea eax, [ebp - 0x214]
push eax
call fcn.0101d14b
mov esi, dword [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ebx
mov eax, 0x853
jl 0x101d42c
lea ecx, [esi + 4]
lea edx, [ebp - 0x210]
mov word [ebp - 0x238], ax
call fcn.010223d2
mov dword [ebp - 0x23c], eax
cmp eax, ebx
mov eax, 0x855
jl 0x101d42c
mov word [ebp - 0x238], ax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0101be7e
test eax, eax
jl 0x101d3e1
mov eax, dword [ebp - 0x240]
mov eax, dword [eax + 4]
push ebx
push esi
push eax
call fcn.01012153
mov dword [ebp - 0x23c], eax
cmp eax, ebx
mov eax, 0x85a
jl 0x101d42c
mov word [ebp - 0x238], ax
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, ebx
jne 0x101d312
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x101d41c
mov eax, 0x861
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x238], ax
jmp 0x101d433
call fcn.0101df25
mov dword [ebp - 0x23c], eax
mov eax, 0x861
mov word [ebp - 0x236], ax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov edi, dword [ebp - 0x23c]
cmp esi, ebx
je 0x101d44f
push esi
call fcn.0101d11b
lea ecx, [ebp - 0x23c]
call fcn.0101a59c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01019b35
leave
ret 4
Function at 0x101e7de
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push 2
push 0x21
push 0x1003f08
lea ecx, [ebp - 0x30]
call fcn.0101a2c6
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x101e80d
mov dword [ebx], esi
push 0x2a
pop eax
cmp dword [ebp + 0xc], esi
jne 0x101e825
mov dword [ebp - 0x30], 0x80070057
mov word [ebp - 0x2a], ax
jmp 0x101e8d2
push 0x2b
mov word [ebp - 0x2c], ax
pop eax
cmp ebx, esi
je 0x101e815
mov word [ebp - 0x2c], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], esi
je 0x101e86c
cmp eax, 2
jne 0x101e86c
mov dword [ebp - 0x30], 1
push 0x31
jmp 0x101e8cd
cmp eax, esi
jle 0x101e87a
and eax, 0xffff
or eax, 0x80070000
push 0x34
mov dword [ebp - 0x30], eax
cmp eax, esi
pop eax
jge 0x101e891
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x28], 1
jmp 0x101e8d2
cmp dword [ebp - 8], 4
push 0x36
mov word [ebp - 0x2c], ax
pop eax
je 0x101e8aa
mov dword [ebp - 0x30], 0x8007065d
jmp 0x101e81c
cmp dword [ebp - 4], 4
mov word [ebp - 0x2c], ax
je 0x101e8c3
push 0x37
mov dword [ebp - 0x30], 0x80004005
pop eax
jmp 0x101e81c
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebp - 0x30], esi
push 0x3b
pop eax
mov word [ebp - 0x2c], ax
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.0101a59c
mov eax, esi
pop esi
pop ebx
leave
ret 0x10