joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101cbc59
Capabilities:
Enumerate process modules

Disassembly:
push 0x3b0
mov eax, 0x1033f6ac
call fcn.102f7853
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], esi
call fcn.1031cd33
mov ecx, esi
call fcn.101a6ca9
lea ecx, [ebp - 0x98]
call fcn.101e0665
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 7
call fcn.101610ee
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
push ebx
push 0x410
call fcn.101cad2c
xor edi, edi
inc edi
mov esi, 0x400
push esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 0x1000
call fcn.101caaf6
mov byte [ebp - 4], 4
push esi
lea ecx, [ebp - 0x70]
call fcn.1016c308
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x90]
lea ecx, [ebp - 0x34]
push ecx
shl eax, 2
push eax
push ebx
lea ecx, [ebp - 0x70]
call fcn.101c9fa4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x101cbd16
mov esi, dword [ebp - 0x34]
shr esi, 2
cmp dword [ebp - 0x64], esi
jb 0x101cbcd8
jmp 0x101cbd9f
cmp byte [ebp + 0xc], bl
je 0x101cbd2e
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.101cab65
push ebx
push edi
jmp 0x101cbdc2
push dword [ebp + 8]
push 0x10020248
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x3bc]
push eax
call fcn.101b70ff
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
lea edi, [ebp - 0x2b0]
rep movsd dword es:[edi], dword [esi]
push 0x103495b0
lea eax, [ebp - 0x2b0]
push eax
call fcn.102f72b2
dec esi
push esi
call fcn.101c9fa4
mov edi, dword [eax]
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], edi
call fcn.1031d3b9
lea eax, [ebp - 0x30]
push eax
push edi
lea eax, [ebp - 0x98]
push eax
call fcn.101cb957
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
call fcn.1018419d
lea ecx, [ebp - 0x70]
cmp esi, ebx
ja 0x101cbd6a
mov byte [ebp - 4], 1
call fcn.101cab65
push ebx
jmp 0x101cbdc0
push 1
lea ecx, [ebp - 0x30]
call fcn.10161215
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.101e076f
call fcn.102f78ac
ret 0x10

Function at 0x101cbe31
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x101cbdff
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x101cbe98
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x101cbe98
push esi
push 0x100202a0
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.101b70ff
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x114]
lea edi, [ebp - 0x114]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
pop esi
leave
ret 8
Function at 0x101cc161
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
push edi
xor ecx, ecx
xor eax, eax
lea edi, [ebp - 4]
mov dword [ebp - 8], ecx
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x101cc187
mov eax, dword [esi]
jmp 0x101cc189
mov eax, esi
push ecx
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x101cc1dc
cmp dword [edi + 0x18], 8
jb 0x101cc1a2
mov esi, dword [esi]
push esi
push 0x10020328
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.101b70ff
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x114]
lea edi, [ebp - 0x114]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
leave
ret 4

Function at 0x101cc340
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x101cc37f
call fcn.101c5069
test al, al
je 0x101cc377
xor esi, esi
push esi
push esi
push 0x10020508
push 3
call fcn.101cc2f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101cc3fe
lea eax, [ebp - 0x10]
push eax
push 0x100204dc
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x101cc3ae
call fcn.101c5069
test al, al
je 0x101cc377
push esi
push esi
push 0x10020460
push 3
call fcn.1016266c
jmp 0x101cc377
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x101cc3ea
call fcn.101c5069
test al, al
je 0x101cc377
push esi
push esi
push 0x100203f8
push 3
call fcn.101783e3
jmp 0x101cc377
push 2
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x101cc377
xor eax, eax
pop esi
leave
ret
Function at 0x101cc48a
Capabilities:
Get common file path
Get file version info

Disassembly:
push 0x264
mov eax, 0x1033f707
call fcn.102f781d
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], 7
call fcn.101610ee
push ebx
push 0x104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.101bbc74
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push ebx
call fcn.1016c4dd
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jne 0x101cc512
push 0x100205d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.101b70ff
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x164]
lea edi, [ebp - 0x164]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.101bbc74
mov esi, 0x10003b00
push esi
lea ecx, [ebp - 0x2c]
call fcn.101630bd
push 0x100205c8
lea ecx, [ebp - 0x58]
call fcn.10161547
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10162a70
push ebx
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.10161215
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x101cc561
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x38]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x30], eax
cmp eax, ebx
jbe 0x101cc5d4
push 1
push 0x1b4
push 0x100205a4
push eax
call fcn.101d30b3
mov edi, eax
cmp edi, ebx
je 0x101cc5d4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x101cc596
lea eax, [ebp - 0x28]
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x101cc5ce
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
push edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x101cc5ce
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
cmp eax, dword [ebp + 8]
sbb eax, eax
mov dword [ebp - 0x34], eax
push edi
call fcn.101d308b
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10161215
mov eax, dword [ebp - 0x34]
call fcn.102f78a0
ret 4
Function at 0x101cc5ea
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [esi + 0x18], 8
push edi
mov dword [ebp - 0x214], ecx
lea edi, [esi + 4]
jb 0x101cc61b
mov eax, dword [edi]
jmp 0x101cc61d
mov eax, edi
push 0x105
lea edx, [ebp - 0x210]
push edx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x101cc67b
cmp dword [esi + 0x18], 8
jb 0x101cc641
mov edi, dword [edi]
push edi
push 0x100206b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.101b70ff
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x320]
lea edi, [ebp - 0x320]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
lea eax, [ebp - 0x210]
push eax
mov ecx, ebx
call fcn.10161547
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.102f77a6
leave
ret 8

Function at 0x101cdefb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.102f835e
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, 0x80070057
jne 0x101cdf82
push 0x10020a54
lea eax, [ebp - 0x424]
push 0x1d
push eax
call fcn.10161ac8
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x318]
lea edi, [ebp - 0x318]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.10161521
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.102f77a6
leave
ret 8

Function at 0x101ce336
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x104
mov ecx, esi
call fcn.101bbc74
mov edi, dword [esi + 0x18]
push 0
mov ecx, esi
call fcn.1016c4dd
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x101ce3a3
push 0x10020ab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.101b70ff
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
push 0
push eax
mov ecx, esi
call fcn.101bbc74
pop edi
pop esi
leave
ret 4
Function at 0x101ce3b3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x214], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.102f835e
add esp, 0xc
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
mov dword [ebp - 0x210], eax
jb 0x101ce407
mov eax, dword [eax]
cmp dword [edi + 0x18], 8
lea ebx, [edi + 4]
jb 0x101ce414
mov ecx, dword [ebx]
jmp 0x101ce416
mov ecx, ebx
lea edx, [ebp - 0x20c]
push edx
xor edx, edx
cmp byte [ebp + 0x10], dl
sete dl
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x101ce483
cmp dword [esi + 0x18], 8
mov eax, dword [ebp - 0x210]
jb 0x101ce440
mov eax, dword [eax]
cmp dword [edi + 0x18], 8
jb 0x101ce448
mov ebx, dword [ebx]
push eax
push ebx
push 0x10020acc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.101b70ff
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x320]
lea edi, [ebp - 0x320]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call fcn.10161521
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.102f77a6
leave
ret 0x10

Function at 0x101ce4a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.102f835e
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x101ce52a
push 0x10020b08
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.101b70ff
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x318]
lea edi, [ebp - 0x318]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.10161521
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.102f77a6
leave
ret 4

Function at 0x101d118e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x101d11d2
push 0x10021618
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.10161ac8
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
leave
ret 4
Function at 0x101d11e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x101d1224
push 0x10021618
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.10161ac8
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
leave
ret

Function at 0x101d1693
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp byte [ebp + 0x10], 0
mov dword [ebp - 4], ecx
je 0x101d16be
call fcn.101cc2b4
test al, al
je 0x101d16be
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.101cb1cf
jmp 0x101d174c
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x18], 8
jb 0x101d16cf
add edi, 4
mov ecx, dword [edi]
jmp 0x101d16d4
add edi, 4
mov ecx, edi
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x18], 8
push esi
lea esi, [ebx + 4]
jb 0x101d16e6
mov eax, dword [esi]
jmp 0x101d16e8
mov eax, esi
push 1
push 0
push 0
push ecx
push eax
mov eax, dword [ebp - 4]
push dword [eax + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x101d1749
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 8
jb 0x101d170c
mov edi, dword [edi]
cmp dword [ebx + 0x18], 8
jb 0x101d1714
mov esi, dword [esi]
push edi
push esi
push 0x10021698
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.101b70ff
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
pop esi
pop ebx
pop edi
leave
ret 0xc

Function at 0x101d2a5a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov ecx, dword [ebp + 8]
push esi
mov eax, 0x101
xor esi, esi
push esi
push eax
mov dword [ebp - 4], eax
call fcn.101bbc74
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
call fcn.1016c4dd
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x101d2aca
push 0x10021ac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.101b70ff
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
mov ecx, dword [ebp + 8]
push esi
push dword [ebp - 4]
call fcn.101bbc74
pop esi
leave
ret 4
Function at 0x101d2adb
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov ecx, dword [ebp + 8]
push esi
mov eax, 0x101
xor esi, esi
push esi
push eax
mov dword [ebp - 4], eax
call fcn.101bbc74
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
call fcn.1016c4dd
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x101d2b4a
push 0x10021ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.101b70ff
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
mov ecx, dword [ebp + 8]
push esi
push dword [ebp - 4]
call fcn.101bbc74
pop esi
leave
ret 4
Function at 0x101d978c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x101d97b9
call fcn.101c5069
test al, al
je 0x101d97b5
push ebx
push ebx
add esi, 0x10
push esi
push 0x10025788
push 3
call fcn.101d26f9
mov al, 1
jmp 0x101d9831
push edi
lea edi, [esi + 0x10]
cmp dword [edi + 0x18], 8
jb 0x101d97c8
mov eax, dword [edi + 4]
jmp 0x101d97cb
lea eax, [edi + 4]
push eax
movzx eax, byte [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp eax, 0xb7
jne 0x101d9809
call fcn.101c5069
test al, al
je 0x101d9809
push ebx
push ebx
push edi
push 0x10025748
push 3
call fcn.101d96b7
cmp dword [esi + 4], ebx
jne 0x101d982e
call fcn.101c5069
test al, al
je 0x101d982a
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
push 0x100256e8
push 3
call fcn.101d970f
xor al, al
jmp 0x101d9830
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x101d9a42
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x18], 8
jb 0x101d9a5e
add edi, 4
mov ecx, dword [edi]
jmp 0x101d9a63
add edi, 4
mov ecx, edi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x101d9a73
mov eax, dword [esi]
jmp 0x101d9a75
mov eax, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x101d9acf
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x101d9a8c
mov edi, dword [edi]
cmp dword [ebx + 0x18], 8
jb 0x101d9a94
mov esi, dword [esi]
push edi
push esi
push 0x10025800
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.101b70ff
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x101d9ad6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
push 0
push 0
call esi
mov edi, eax
test edi, edi
jne 0x101d9b2c
push 0x10025834
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.101b70ff
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
mov ecx, dword [ebp + 8]
push 0
lea eax, [edi - 1]
push eax
call fcn.101bbc74
mov ecx, dword [ebp + 8]
push 0
call fcn.1016c4dd
push eax
push edi
call esi
test eax, eax
je 0x101d9af3
pop edi
pop esi
leave
ret 4
Function at 0x101d9b52
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10220
call fcn.102f7e1b
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x10008], 0
cmp dword [eax + 0x18], 8
push esi
push edi
mov edi, dword [ebp + 8]
jb 0x101d9b83
mov eax, dword [eax + 4]
jmp 0x101d9b86
add eax, 4
mov esi, 0x7fff
push esi
lea ecx, [ebp - 0x10004]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x101d9bc2
cmp eax, esi
ja 0x101d9bc2
lea eax, [ebp - 0x10004]
push eax
mov ecx, edi
call fcn.10161547
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.102f77a6
leave
ret 8
push 0x10025854
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10220]
push eax
call fcn.101b70ff
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x10114]
lea edi, [ebp - 0x10114]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
int3

Function at 0x101db382
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push 0x10026a6c
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x101db3ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x101db3ab
xor bl, bl
jmp 0x101db3b8
mov bl, 1
test esi, esi
je 0x101db3b8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x101de37e
mov eax, dword [eax + 4]
jmp 0x101de381
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x101de391
xor al, al
jmp 0x101de396
shr al, 4
and al, 1
pop ebp
ret 4

Function at 0x101de39a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x101de3b5
mov eax, dword [esi]
jmp 0x101de3b7
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x101de40e
cmp eax, 0x50
je 0x101de40e
cmp eax, 0xb7
je 0x101de40e
cmp dword [edi + 0x18], 8
jb 0x101de3da
mov esi, dword [esi]
push esi
push 0x10027aa0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.101b70ff
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
pop edi
pop esi
leave
ret 4
Function at 0x101de414
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x218
cmp dword [eax + 0x18], 8
jb 0x101de42b
mov eax, dword [eax + 4]
jmp 0x101de42e
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x101de472
push 0x10027ad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.101b70ff
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
leave
ret 4