joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ecfd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100ed003
push 0x96
push str.d:z47287_view_spes5x_1_spessca_dev_vobclient_foundationpoco_1.3.2poco_1.3.2_data_foundation_srcFile_WIN32.cpp
push str.__path.empty__
call fcn.100f6d50
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0x10
jb 0x100ed020
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x100ed029
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100ed04b
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.100edbd0
add esp, 4
mov eax, dword [ebp - 4]
and eax, 1
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100ed163
push 0xa8
push str.d:z47287_view_spes5x_1_spessca_dev_vobclient_foundationpoco_1.3.2poco_1.3.2_data_foundation_srcFile_WIN32.cpp
push str.__path.empty__
call fcn.100f6d50
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0x10
jb 0x100ed180
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x100ed189
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100ed1ab
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.100edbd0
add esp, 4
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x100ed1c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100ed1f3
push 0xb3
push str.d:z47287_view_spes5x_1_spessca_dev_vobclient_foundationpoco_1.3.2poco_1.3.2_data_foundation_srcFile_WIN32.cpp
push str.__path.empty__
call fcn.100f6d50
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0x10
jb 0x100ed210
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x100ed219
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100ed23b
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.100edbd0
add esp, 4
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100ed293
push 0xc4
push str.d:z47287_view_spes5x_1_spessca_dev_vobclient_foundationpoco_1.3.2poco_1.3.2_data_foundation_srcFile_WIN32.cpp
push str.__path.empty__
call fcn.100f6d50
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0x10
jb 0x100ed2b0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
jmp 0x100ed2b9
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100ed2db
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.100edbd0
add esp, 4
mov eax, dword [ebp - 4]
and eax, 2
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x100ed720
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100ed753
push 0x111
push str.d:z47287_view_spes5x_1_spessca_dev_vobclient_foundationpoco_1.3.2poco_1.3.2_data_foundation_srcFile_WIN32.cpp
push str.__path.empty__
call fcn.100f6d50
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0x10
jb 0x100ed770
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
jmp 0x100ed779
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100ed79b
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.100edbd0
add esp, 4
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x100ed7ae
mov edx, dword [ebp - 4]
and edx, 0xfffffffe
mov dword [ebp - 4], edx
jmp 0x100ed7b6
mov eax, dword [ebp - 4]
or al, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x18], 0x10
jb 0x100ed7d3
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
jmp 0x100ed7dc
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x100ed7fd
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
call fcn.100edbd0
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x100ed820
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10132781
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100ed868
push 0x127
push str.d:z47287_view_spes5x_1_spessca_dev_vobclient_foundationpoco_1.3.2poco_1.3.2_data_foundation_srcFile_WIN32.cpp
push str.__path.empty__
call fcn.100f6d50
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x100ed87c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x38], edx
jmp 0x100ed885
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
add ecx, 4
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x18], 0x10
jb 0x100ed8a2
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
jmp 0x100ed8ab
mov edx, dword [ebp - 0x30]
add edx, 4
mov dword [ebp - 0x3c], edx
push 0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x100ed8ed
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.100ecb60
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100ed720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100ecce0
jmp 0x100ed8fc
mov eax, dword [ebp - 0x34]
add eax, 4
push eax
call fcn.100edbd0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x100ed910
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100ed943
push 0x134
push str.d:z47287_view_spes5x_1_spessca_dev_vobclient_foundationpoco_1.3.2poco_1.3.2_data_foundation_srcFile_WIN32.cpp
push str.__path.empty__
call fcn.100f6d50
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x100ed957
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
jmp 0x100ed960
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0x10
jb 0x100ed97d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
jmp 0x100ed986
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100ed9a7
mov edx, dword [ebp - 8]
add edx, 4
push edx
call fcn.100edbd0
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x100ed9b0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100ed9e3
push 0x13d
push str.d:z47287_view_spes5x_1_spessca_dev_vobclient_foundationpoco_1.3.2poco_1.3.2_data_foundation_srcFile_WIN32.cpp
push str.__path.empty__
call fcn.100f6d50
add esp, 0xc
mov ecx, dword [ebp - 0xc]
call fcn.100ed1c0
movzx eax, al
test eax, eax
je 0x100eda37
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0x10
jb 0x100eda0f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
jmp 0x100eda18
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x100eda35
mov ecx, dword [ebp - 0xc]
add ecx, 4
push ecx
call fcn.100edbd0
add esp, 4
jmp 0x100eda7a
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0x10
jb 0x100eda54
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
jmp 0x100eda5d
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x100eda7a
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
call fcn.100edbd0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x100edb30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp dword [eax + 0x18], 0
sete cl
movzx edx, cl
test edx, edx
je 0x100edb63
push 0x160
push str.d:z47287_view_spes5x_1_spessca_dev_vobclient_foundationpoco_1.3.2poco_1.3.2_data_foundation_srcFile_WIN32.cpp
push str.__path.empty__
call fcn.100f6d50
add esp, 0xc
mov ecx, dword [ebp - 8]
call fcn.100ece60
movzx eax, al
test eax, eax
je 0x100edb85
mov ecx, dword [ebp - 8]
call fcn.100ed1c0
movzx ecx, al
test ecx, ecx
je 0x100edb85
xor al, al
jmp 0x100edbcc
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0x10
jb 0x100edba2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
jmp 0x100edbab
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100edbca
mov edx, dword [ebp - 8]
add edx, 4
push edx
call fcn.100edbd0
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x100f77e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10132f25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f8
mov dword [ebp - 0x188], 0
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x100f7942
cmp dword [ebp - 0x10], 0x104
jae 0x100f7942
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.100014c0
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x138]
call fcn.100020c0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x120], 0x10
jb 0x100f7877
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x1e4], eax
jmp 0x100f7883
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x1e4], ecx
mov edx, dword [ebp - 0x1e4]
add edx, dword [ebp - 0x10]
movsx eax, byte [edx - 1]
cmp eax, 0x5c
je 0x100f78f5
mov dword [ebp - 0x1e8], 0x101366a0
mov ecx, dword [ebp - 0x1e8]
add ecx, 1
mov dword [ebp - 0x1ec], ecx
mov edx, dword [ebp - 0x1e8]
mov al, byte [edx]
mov byte [ebp - 0x1ed], al
add dword [ebp - 0x1e8], 1
cmp byte [ebp - 0x1ed], 0
jne 0x100f78ae
mov ecx, dword [ebp - 0x1e8]
sub ecx, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f4], ecx
mov edx, dword [ebp - 0x1f4]
push edx
push 0x101366a0
lea ecx, [ebp - 0x138]
call fcn.10002380
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.100014c0
mov eax, dword [0x1016284c]
push eax
push 0
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001fd0
mov edx, dword [ebp - 0x188]
or edx, 1
mov dword [ebp - 0x188], edx
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.100014c0
mov eax, dword [ebp + 8]
jmp 0x100f79dd
push 0
push 0
lea ecx, [ebp - 0x184]
call fcn.100014c0
mov dword [ebp - 0x1f8], str.Cannot_get_current_directory
mov eax, dword [ebp - 0x1f8]
add eax, 1
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1f8]
mov dl, byte [ecx]
mov byte [ebp - 0x1fd], dl
add dword [ebp - 0x1f8], 1
cmp byte [ebp - 0x1fd], 0
jne 0x100f796a
mov eax, dword [ebp - 0x1f8]
sub eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x204]
push ecx
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x184]
call fcn.100020c0
mov dword [ebp - 4], 2
push 0
lea edx, [ebp - 0x184]
push edx
lea ecx, [ebp - 0x168]
call fcn.100f2200
push 0x1018d2b8
lea eax, [ebp - 0x168]
push eax
call fcn.10056f02
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100f7c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10132fad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f8
mov dword [ebp - 0x188], 0
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x100f7dc2
cmp dword [ebp - 0x10], 0x104
jae 0x100f7dc2
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.100014c0
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x138]
call fcn.100020c0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x120], 0x10
jb 0x100f7cf7
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x1e4], eax
jmp 0x100f7d03
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x1e4], ecx
mov edx, dword [ebp - 0x1e4]
add edx, dword [ebp - 0x10]
movsx eax, byte [edx - 1]
cmp eax, 0x5c
je 0x100f7d75
mov dword [ebp - 0x1e8], 0x101366a0
mov ecx, dword [ebp - 0x1e8]
add ecx, 1
mov dword [ebp - 0x1ec], ecx
mov edx, dword [ebp - 0x1e8]
mov al, byte [edx]
mov byte [ebp - 0x1ed], al
add dword [ebp - 0x1e8], 1
cmp byte [ebp - 0x1ed], 0
jne 0x100f7d2e
mov ecx, dword [ebp - 0x1e8]
sub ecx, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f4], ecx
mov edx, dword [ebp - 0x1f4]
push edx
push 0x101366a0
lea ecx, [ebp - 0x138]
call fcn.10002380
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.100014c0
mov eax, dword [0x1016284c]
push eax
push 0
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001fd0
mov edx, dword [ebp - 0x188]
or edx, 1
mov dword [ebp - 0x188], edx
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.100014c0
mov eax, dword [ebp + 8]
jmp 0x100f7e5d
push 0
push 0
lea ecx, [ebp - 0x184]
call fcn.100014c0
mov dword [ebp - 0x1f8], str.Cannot_get_current_directory
mov eax, dword [ebp - 0x1f8]
add eax, 1
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1f8]
mov dl, byte [ecx]
mov byte [ebp - 0x1fd], dl
add dword [ebp - 0x1f8], 1
cmp byte [ebp - 0x1fd], 0
jne 0x100f7dea
mov eax, dword [ebp - 0x1f8]
sub eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x204]
push ecx
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x184]
call fcn.100020c0
mov dword [ebp - 4], 2
push 0
lea edx, [ebp - 0x184]
push edx
lea ecx, [ebp - 0x168]
call fcn.100f2200
push 0x1018d2b8
lea eax, [ebp - 0x168]
push eax
call fcn.10056f02
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100f7ee0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov dword [ebp - 0x114], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x100f7f0a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x184], edx
jmp 0x100f7f16
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0x184], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x100f7f77
cmp dword [ebp - 4], 0x104
jae 0x100f7f77
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.100014c0
mov eax, dword [ebp - 4]
sub eax, 1
push eax
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100020c0
mov edx, dword [ebp - 0x114]
or edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 8]
jmp 0x100f7fa9
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.100014c0
mov eax, dword [0x1016284c]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001fd0
mov edx, dword [ebp - 0x114]
or edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x100f7fb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10132fc2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov ecx, dword [ebp + 8]
call fcn.1006dcf0
lea eax, [ebp - 0x9c]
push eax
push 0x7f
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x14], 0x80
jbe 0x100f8006
mov dword [ebp - 0x150], 0x80
jmp 0x100f800f
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x150]
lea ecx, [ebp + eax - 0x9c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x18]
jae 0x100f80b0
push 0
push 0
lea ecx, [ebp - 0xb8]
call fcn.100014c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jae 0x100f807d
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x100f807d
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x105], cl
mov dl, byte [ebp - 0x105]
push edx
push 1
lea ecx, [ebp - 0xb8]
call fcn.10033650
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x100f8041
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1003d4a0
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.100014c0
jmp 0x100f801f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10102630
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10133a31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x1010266c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xd4], edx
jmp 0x10102678
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0xd4], eax
push 0
push 0
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x101026ae
push 0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x60]
call fcn.100f1c00
push 0x1018d1f8
lea eax, [ebp - 0x60]
push eax
call fcn.10056f02
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.101209d2
add esp, 4
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x101026da
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xd8], edx
jmp 0x101026e6
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10002340
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.101209d7
add esp, 4
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.100014c0
mov ecx, dword [0x1016284c]
push ecx
push 0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.10001fd0
mov eax, dword [ebp - 0x6c]
or al, 1
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100014c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10102770
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x1010278a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 8], edx
jmp 0x10102793
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 8], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 4], eax
xor edx, edx
cmp edx, dword [ebp - 4]
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x101027c0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10133a43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x101027f5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xac], edx
jmp 0x10102801
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0x10
jb 0x10102818
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xb0], eax
jmp 0x10102824
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xac]
push edx
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x10102881
push str.cannot_set_environment_variable:
lea ecx, [ebp - 0x28]
call fcn.10002340
mov dword [ebp - 4], 0
mov ecx, dword [0x1016284c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.10001ee0
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.100f2200
push 0x1018d2b8
lea ecx, [ebp - 0x58]
push ecx
call fcn.10056f02
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret