joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102d6980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1034d89d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10480b90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
call fcn.102cf300
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.102d9cb0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
add ecx, 0xc
call fcn.102dc5b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
mov dword [eax], vtable.file_collector.0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0x14
call fcn.10336650
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x30]
add ecx, 0x1c
call fcn.1005c0d0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp + 0x14]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp + 0x1c]
mov dword [edx + 0x34], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x20]
mov dword [edx + 0x38], eax
mov ecx, dword [ebp + 0x24]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x30]
add edx, 0x40
push edx
call fcn.102d9c10
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x30]
add ecx, 0x60
call fcn.1005bfe0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x30]
add ecx, 0x80
call fcn.102dc6b0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x98], 0
mov dword [eax + 0x9c], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.102d9c40
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0x60
call fcn.1014f2a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.10012630
mov edx, dword [ebp - 0x30]
add edx, 0x60
push edx
call fcn.102d9bf0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x103027a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.102dd240
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x103027d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10302b20
add esp, 4
movzx eax, al
test eax, eax
jne 0x103027d6
mov dword [ebp - 4], 0
jmp 0x103027dd
mov dword [ebp - 4], 1
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x103027f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.102dd240
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10302826
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10302b20
add esp, 4
movzx eax, al
test eax, eax
jne 0x10302826
mov dword [ebp - 4], 0
jmp 0x1030282d
mov dword [ebp - 4], 1
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10303100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.102dd240
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1030313b
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.10302ff0
add esp, 0xc
mov ecx, eax
call fcn.100b1c30
jmp 0x1030318e
cmp dword [ebp + 0xc], 0
je 0x10303149
mov ecx, dword [ebp + 0xc]
call fcn.103072e0
mov eax, dword [ebp - 4]
and eax, 0x400
je 0x1030317f
mov ecx, dword [ebp + 8]
push ecx
call fcn.10302ea0
add esp, 4
movzx edx, al
test edx, edx
je 0x10303178
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
and eax, 7
add eax, 4
jmp 0x1030318e
mov eax, 9
jmp 0x1030318e
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
add eax, 2
mov esp, ebp
pop ebp
ret

Function at 0x103031a0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x103524e4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10480b90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x10]
call fcn.102f6f00
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x10], 0xffffffff
je 0x10303234
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10303234
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10303234
mov dword [ebp - 0x24], 1
jmp 0x1030323b
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10307620
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10304050
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.102dd240
push eax
mov ecx, dword [ebp + 8]
call fcn.102dd240
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x1030407d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10304084
mov dword [ebp - 4], 0
push str.boost::filesystem::copy_directory
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.103025d0
add esp, 0x14
mov esp, ebp
pop ebp
ret

Function at 0x103040b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 0x10], 0
sete al
push eax
mov ecx, dword [ebp + 0xc]
call fcn.102dd240
push eax
mov ecx, dword [ebp + 8]
call fcn.102dd240
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x103040e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x103040ec
mov dword [ebp - 4], 0
push str.boost::filesystem::copy_file
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.103025d0
add esp, 0x14
mov esp, ebp
pop ebp
ret

Function at 0x103044b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10352772
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x10480b90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov ecx, dword [ebp + 8]
call fcn.102dd240
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10304502
cmp dword [ebp + 0xc], 0
je 0x103044fb
mov ecx, dword [ebp + 0xc]
call fcn.103072e0
mov al, 1
jmp 0x103045bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x18]
call fcn.1002ab50
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10307a70
add esp, 8
movzx edx, al
test edx, edx
je 0x1030453c
cmp dword [ebp + 0xc], 0
je 0x10304538
mov ecx, dword [ebp + 0xc]
call fcn.103072e0
xor al, al
jmp 0x103045bb
cmp dword [ebp + 0xc], 0
jne 0x103045a7
push str.boost::filesystem::create_directory
lea ecx, [ebp - 0x9c]
call fcn.10003660
mov dword [ebp - 4], 0
call fcn.102fd720
push eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1000a870
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x74]
call fcn.102da710
push 0x10452e58
lea edx, [ebp - 0x74]
push edx
call fcn.102762c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.10046860
jmp 0x103045b9
call fcn.102fd720
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.103072c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10304780
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x103527b1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10480b90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x103047c6
mov dword [ebp - 0x14], 1
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1024b670
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.102f6f00
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.102c9210
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1030481a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x10304821
mov dword [ebp - 0x20], 0
push 0x1040edc4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10302420
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.102c9210
push eax
mov ecx, dword [ebp + 8]
call fcn.103008e0
mov ecx, dword [ebp - 0x1c]
or ecx, 1
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10301eb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x10305850
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push 3
mov ecx, dword [ebp + 0xc]
call fcn.102dd240
push eax
mov ecx, dword [ebp + 8]
call fcn.102dd240
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1030587d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10305884
mov dword [ebp - 4], 0
push str.boost::filesystem::rename
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.103025d0
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x10305900
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push str.boost::filesystem::space
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.102dd240
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
neg eax
sbb eax, eax
add eax, 1
push eax
call fcn.103024f0
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x10305999
mov eax, dword [ebp - 0xc]
xor edx, edx
mov cl, 0x20
call fcn.1027b9d0
mov ecx, dword [ebp - 0x10]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov cl, 0x20
call fcn.1027b9d0
mov ecx, dword [ebp - 8]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov cl, 0x20
call fcn.1027b9d0
mov ecx, dword [ebp - 0x30]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x103059bf
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x103059f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10352982
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10480b90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
call fcn.102dd240
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10305a49
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10302ff0
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x10305b8a
mov eax, dword [ebp - 0x10]
and eax, 0x400
je 0x10305b21
mov ecx, dword [ebp + 0xc]
call fcn.102dd240
push eax
lea ecx, [ebp - 0x34]
call fcn.103008e0
mov dword [ebp - 4], 0
push 0
push 0x2000000
push 3
push 0
push 7
push 0
lea ecx, [ebp - 0x34]
push ecx
call fcn.10302e70
add esp, 0x1c
push eax
lea ecx, [ebp - 0x14]
call fcn.102f6f00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.10012630
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10305ad0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10302ff0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10307620
mov eax, dword [ebp + 8]
jmp 0x10305b8a
mov edx, dword [ebp + 0xc]
push edx
call fcn.10302ea0
add esp, 4
movzx eax, al
test eax, eax
jne 0x10305b12
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10302b70
add esp, 8
push eax
push 9
mov ecx, dword [ebp + 8]
call fcn.103118f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10307620
mov eax, dword [ebp + 8]
jmp 0x10305b8a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10307620
cmp dword [ebp + 0x10], 0
je 0x10305b2f
mov ecx, dword [ebp + 0x10]
call fcn.103072e0
mov eax, dword [ebp - 0x10]
and eax, 0x10
je 0x10305b57
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10302b70
add esp, 8
push eax
push 3
lea ecx, [ebp - 0x40]
call fcn.103118f0
mov dword [ebp - 0x4c], eax
jmp 0x10305b75
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10302b70
add esp, 8
push eax
push 2
lea ecx, [ebp - 0x48]
call fcn.103118f0
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.10307d20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10305ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 0xc]
call fcn.102dd240
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10305bda
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10302ff0
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x10305cb5
cmp dword [ebp + 0x10], 0
je 0x10305be8
mov ecx, dword [ebp + 0x10]
call fcn.103072e0
mov eax, dword [ebp - 4]
and eax, 0x400
je 0x10305c5a
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10302ea0
add esp, 4
movzx edx, al
test edx, edx
je 0x10305c25
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10302b70
add esp, 8
push eax
push 4
lea ecx, [ebp - 0x10]
call fcn.103118f0
mov dword [ebp - 0x30], eax
jmp 0x10305c43
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10302b70
add esp, 8
push eax
push 9
lea ecx, [ebp - 0x18]
call fcn.103118f0
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.10307d20
mov eax, dword [ebp + 8]
jmp 0x10305cb5
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x10305c82
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10302b70
add esp, 8
push eax
push 3
lea ecx, [ebp - 0x24]
call fcn.103118f0
mov dword [ebp - 0x34], eax
jmp 0x10305ca0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10302b70
add esp, 8
push eax
push 2
lea ecx, [ebp - 0x2c]
call fcn.103118f0
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.10307d20
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x10306960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10352b8e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x10480b90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
call fcn.102cf300
push eax
lea ecx, [ebp - 0x284]
call fcn.10056220
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x284]
call fcn.100120c0
movzx eax, al
test eax, eax
jne 0x10306a2a
lea ecx, [ebp - 0x284]
call fcn.100126b0
sub eax, 1
push eax
lea ecx, [ebp - 0x284]
call fcn.1025cad0
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x10306a1e
lea ecx, [ebp - 0x284]
call fcn.100126b0
sub eax, 1
push eax
lea ecx, [ebp - 0x284]
call fcn.1025cad0
movzx edx, word [eax]
cmp edx, 0x2f
je 0x10306a1e
lea ecx, [ebp - 0x284]
call fcn.100126b0
sub eax, 1
push eax
lea ecx, [ebp - 0x284]
call fcn.1025cad0
movzx eax, word [eax]
cmp eax, 0x3a
jne 0x10306a2a
mov dword [ebp - 0x2a8], 0x1040f354
jmp 0x10306a34
mov dword [ebp - 0x2a8], 0x1040f34c
mov ecx, dword [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x284]
call fcn.102e3420
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x284]
call fcn.10012dd0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0xffffffff
jne 0x10306ad2
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10306a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10306a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2ac], eax
jmp 0x10306aa3
mov dword [ebp - 0x2ac], 0
call fcn.102fd720
push eax
mov ecx, dword [ebp - 0x2ac]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000a870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.10012630
mov eax, dword [ebp + 8]
jmp 0x10306bae
lea edx, [ebp - 0x238]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.102db840
mov eax, dword [ebp - 0x264]
and eax, 0x400
je 0x10306b07
push 0
mov ecx, dword [ebp + 0x18]
call fcn.10307e10
push 0
mov ecx, dword [ebp + 0x1c]
call fcn.10307e10
jmp 0x10306b91
mov ecx, dword [ebp - 0x264]
and ecx, 0x10
je 0x10306b28
push 3
mov ecx, dword [ebp + 0x18]
call fcn.10307e10
push 3
mov ecx, dword [ebp + 0x1c]
call fcn.10307e10
jmp 0x10306b3c
push 2
mov ecx, dword [ebp + 0x18]
call fcn.10307e10
push 2
mov ecx, dword [ebp + 0x1c]
call fcn.10307e10
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp - 0x2a4]
call fcn.103008e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
call fcn.10302b70
add esp, 8
push eax
mov ecx, dword [ebp + 0x18]
call fcn.10307e30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a4]
call fcn.10012630
mov ecx, dword [ebp + 0x18]
call fcn.10307df0
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.10307e30
mov ecx, dword [ebp + 8]
call fcn.1002ab50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.10012630
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1026af30
mov esp, ebp
pop ebp
ret
Function at 0x10307b20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10352dc3
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10480b90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
lea ecx, [ebp - 0x20]
call fcn.10307f90
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.103080b0
movzx ecx, al
test ecx, ecx
jne 0x10307bcc
lea ecx, [ebp - 0x20]
call fcn.10339af0
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.103080d0
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10307bcc
push 0
lea ecx, [ebp - 0x20]
call fcn.103080d0
push eax
lea ecx, [ebp - 0x64]
call fcn.1025c8d0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68]
or ecx, 1
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
jmp 0x10307bf3
lea ecx, [ebp - 0x44]
call fcn.1005bfe0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x68]
or ecx, 2
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10056220
mov edx, dword [ebp - 0x68]
or edx, 4
mov dword [ebp - 0x68], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x68]
and eax, 2
je 0x10307c29
and dword [ebp - 0x68], 0xfffffffd
lea ecx, [ebp - 0x44]
call fcn.10012630
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
and ecx, 1
je 0x10307c44
and dword [ebp - 0x68], 0xfffffffe
lea ecx, [ebp - 0x64]
call fcn.10012630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10308010
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x1030cc50
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0x1030cbe0
push 0x10494558
call fcn.1030e6e0
add esp, 8
cmp dword [0x1048508c], 0xffffffff
je 0x1030cc99
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x1048508c]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1030cc97
push 0x6e
push 0x10410698
push str.TlsSetValue_current_thread_tls_key__new_data_
call fcn.10276df0
add esp, 0xc
jmp 0x1030ccb1
xor eax, eax
jne 0x1030ccb1
push 0x72
push 0x10410740
push 0x10410784
call fcn.10276df0
add esp, 0xc
pop ebp
ret