joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a8d60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70256d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x48]
push 0x20
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.00473560
movups xmm0, xmmword [str.boost::filesystem::space]
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x7c14e4]
movq qword [eax + 0x10], xmm0
mov byte [eax + 0x18], 0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x6a8dde
mov ecx, dword [eax]
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
sete byte [ebp - 0xd]
test eax, eax
je 0x6a8e13
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x6a8e32
mov dword [esi], 0
call fcn.006a3c70
mov dword [esi + 4], eax
jmp 0x6a8e32
push edi
mov edi, dword [ebp + 0x10]
call fcn.006a3c70
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x6a8ede
mov dword [edi], eax
mov dword [edi + 4], esi
pop edi
mov edx, dword [ebp - 0x34]
pop esi
cmp edx, 0x10
jb 0x6a8e67
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6a8e5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6a8f0a
push edx
push ecx
call fcn.004e7fa0
add esp, 8
cmp byte [ebp - 0xd], 0
mov edx, dword [ebp + 8]
jne 0x6a8e9f
mov ecx, dword [ebp - 0x14]
xor eax, eax
add eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
adc ecx, 0
xor eax, eax
add eax, dword [ebp - 0x20]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x1c]
adc ecx, 0
mov dword [edx + 0x10], eax
xor eax, eax
mov dword [edx + 0x14], ecx
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
adc ecx, 0
jmp 0x6a8ec9
xorps xmm0, xmm0
mov dword [edx + 0x10], 0
movlpd qword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x14], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx], eax
mov eax, edx
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.004e6070
lea ecx, [ebp - 0x7c]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x48]
push dword [ebp + 0xc]
push eax
call fcn.006a6730
push 0x7ea55c
lea eax, [ebp - 0x7c]
push eax
call fcn.006c19b9
call fcn.006cc674
int3
Function at 0x6a8f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x70995d
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x6a8f3b
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6a8f6c
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.006a85c0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
test ebx, 0x400
je 0x6a9088
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x6a8f82
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6a8fa0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.00473710
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 0
cmovae eax, dword [ebp - 0x24]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 0xc], esi
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
cmp edx, 8
jb 0x6a9020
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x6a9016
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6a90d1
push edx
push ecx
call fcn.004e7fa0
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp esi, 0xffffffff
je 0x6a8f49
push edi
call fcn.006a7b10
add esp, 4
test al, al
jne 0x6a907a
push ebx
push edi
call fcn.006a8290
mov edi, dword [ebp + 8]
add esp, 8
push esi
mov dword [edi], 9
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x6a909d
mov dword [esi], 0
call fcn.006a3c70
mov dword [esi + 4], eax
mov esi, 3
push ebx
push edi
test bl, 0x10
jne 0x6a90ae
mov esi, 2
call fcn.006a8290
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.006cc674
int3
Function at 0x6aa5a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x709a3d
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x7f51b4]
push ebx
cmp eax, 0xffffffff
jne 0x6aa5cd
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x6aa5d9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x6aa62a
push esi
push edi
nop dword [eax]
cmp dword [ebx + 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
jne 0x6aa639
test esi, esi
jne 0x6aa640
push esi
call fcn.006aa6d0
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x6aa628
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x6aa680
nop dword [eax]
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x6aa66d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x6aa640
mov edi, dword [ebx + 0x10]
lea eax, [ebx + 0x10]
mov dword [ebp - 0x18], eax
mov esi, dword [edi]
mov dword [ebp - 0x10], esi
cmp esi, edi
je 0x6aa5f0
mov ebx, eax
lea ecx, [ebp - 0x10]
call fcn.004bd670
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x6aa6b4
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x6aa6b4
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
mov ecx, ebx
call fcn.006a9a10
mov esi, dword [ebp - 0x10]
cmp esi, edi
jne 0x6aa698
mov ebx, dword [ebp - 0x14]
jmp 0x6aa5f0

Function at 0x6aa770
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x18]
push eax
push 4
push edx
push 0x6aa7d0
push 0
push 0
call fcn.006d268b
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x6aa799
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x6aa7b7
cmp eax, 0xffffffff
je 0x6aa7b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x6d4536
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.006bfd90
mov eax, dword [0x7f5314]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.006e14e2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x6d4578
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x6d46d4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.006c0540
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0xf2e3e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.006d7358
mov ecx, dword [esi*4 + 0xf2e3e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x6d46cd
cmp eax, dword [edi + ecx + 0x24]
jne 0x6d46cd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6d46cd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006d7358
add esp, 0x14
test edx, edx
jl 0x6d46cd
jg 0x6d4643
test eax, eax
jb 0x6d46cd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x6d46cd
jl 0x6d465d
cmp dword [ebp - 0x1008], eax
ja 0x6d46cd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x6d467b
test ebx, ebx
je 0x6d46b4
cmp ecx, edi
jae 0x6d46b4
mov al, byte [ecx]
cmp al, 0xd
jne 0x6d4695
lea eax, [edi - 1]
cmp ecx, eax
jae 0x6d46a1
cmp byte [ecx + 1], 0xa
jne 0x6d46a1
inc ecx
jmp 0x6d46a1
movzx eax, al
movsx eax, byte [eax + 0x7f5480]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x6d467b
cmp edx, ebx
jne 0x6d467b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x6d46d2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.006c0fe0
leave
ret
Function at 0x6d5b10
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xf2e3e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6d5b50
cmp byte [ebx], 0xa
jne 0x6d5b50
or byte [eax + edi + 0x28], 4
jmp 0x6d5b55
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x6d5c53
mov al, byte [edx]
cmp al, 0x1a
je 0x6d5c35
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x6d5b84
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x6d5ba9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x6d5bb3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x6d5b66
jmp 0x6d5c53
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6d5c30
cmp dword [ebp - 0xc], 0
je 0x6d5c30
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0xf2e3e0]
test byte [eax + edi + 0x28], 0x48
je 0x6d5c0a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x6d5bf5
mov byte [esi], dl
jmp 0x6d5c06
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xf2e3e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x6d5c53
cmp byte [ebp - 1], 0xa
jne 0x6d5c19
cmp esi, ebx
jne 0x6d5c19
mov byte [esi], 0xa
jmp 0x6d5c52
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.006d7376
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6d5c53
mov byte [esi], 0xd
jmp 0x6d5c52
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0xf2e3e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6d5c4f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6d5c53
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6d5c5c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0xf2e3e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6d5c9f
cmp word [esi], dx
jne 0x6d5c9f
or byte [edi + eax + 0x28], 4
jmp 0x6d5ca4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x6d5df7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x6d5dd7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x6d5ce6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x6d5d1c
cmp eax, edx
jae 0x6d5d28
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x6d5cbe
jmp 0x6d5df7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6d5dd3
cmp dword [ebp - 0x14], 0
je 0x6d5dd3
mov eax, dword [ebx*4 + 0xf2e3e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x6d5dab
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x6d5d74
mov word [esi], cx
jmp 0x6d5da7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0xf2e3e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0xf2e3e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0xf2e3e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x6d5df7
pop ebx
cmp word [ebp - 4], bx
jne 0x6d5dbc
cmp esi, dword [ebp + 0xc]
jne 0x6d5dbc
mov word [esi], bx
jmp 0x6d5df4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.006d7376
add esp, 0x10
cmp word [ebp - 4], bx
je 0x6d5df7
push 0xd
jmp 0x6d5df0
mov ecx, dword [ebx*4 + 0xf2e3e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6d5dee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6d5df7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6e0dc8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x7f5314]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x7c5dc8
push esi
call fcn.006ed02b
pop ecx
pop ecx
test eax, eax
jne 0x6e0df6
xor al, al
jmp 0x6e0e73
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.006e0acc
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x6e0e30
push dword [ebp - 0x210]
call fcn.006d12cc
xor al, al
jmp 0x6e0e71
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x6e0e36
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x6e0e56
push edx
call fcn.006e0cfe
pop ecx
test al, al
je 0x6e0e21
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x6e0e64
mov bl, 1
push dword [ebp - 0x210]
call fcn.006d12cc
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006c0fe0
leave
ret

Function at 0x6ea995
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7c79fc
push 0x7c79f4
push str.FlsAlloc
push 0x1e
call fcn.006ea7c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6ea9c9
push dword [ebp + 8]
mov ecx, esi
call dword [0x7125e4]
call esi
jmp 0x6ea9cf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x6eaa13
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7c7a0c
push 0x7c7a04
push str.FlsGetValue
push 0x20
call fcn.006ea7c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6eaa4a
push dword [ebp + 8]
mov ecx, esi
call dword [0x7125e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x6eb367
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006eb1d8
Function at 0x6ebdaf
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006ebd2b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x6ebf27
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x6ebf27
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x6ebed6
jg 0x6ebe08
test eax, eax
je 0x6ebecc
push 1
push 0x1000
call fcn.006e9693
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x6ebe2e
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x6ebec3
push 0x8000
push ebx
call fcn.006e1684
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x6ebe5a
jg 0x6ebe55
cmp ecx, 0x1000
jb 0x6ebe5a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.006d6d76
add esp, 0x10
cmp eax, 0xffffffff
je 0x6ebe9f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x6ebe55
jl 0x6ebe86
test ecx, ecx
jne 0x6ebe47
push dword [ebp - 0xc]
push ebx
call fcn.006e1684
push esi
call fcn.006e81a8
add esp, 0xc
xor edi, edi
jmp 0x6ebf38
cmp byte [edi + 0x24], 0
je 0x6ebeb6
cmp dword [edi + 0x20], 5
jne 0x6ebeb6
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x6ebec1
mov edi, dword [edi + 0x18]
jmp 0x6ebec3
xor edi, edi
push esi
call fcn.006e81a8
pop ecx
jmp 0x6ebf38
test ecx, ecx
jg 0x6ebe98
jl 0x6ebed6
test eax, eax
jae 0x6ebe98
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006d7376
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x6ebef9
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x6ebe98
jmp 0x6ebf30
push ebx
call fcn.006dd20b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x6ebe98
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x6ebf38
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x6ebf35
mov edi, dword [edi + 0x18]
jmp 0x6ebf38
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.006d7376
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6eeee3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x7f5314]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x6eef2e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.006ef082
test al, al
jne 0x6eef28
sub edx, 2
cmp edx, edi
jne 0x6eef0e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x6eef50
lea eax, [edi + 2]
cmp edx, eax
je 0x6eef50
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.006eee2f
add esp, 0x10
jmp 0x6ef04a
push esi
lea ecx, [ebp - 0x255]
call fcn.006ef082
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6eef93
push dword [ebp - 0x25c]
jmp 0x6eef40
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x6eefd0
cmp word [ebp - 0x226], 0
je 0x6eeff1
cmp word [ebp - 0x226], ax
jne 0x6eefd0
cmp word [ebp - 0x224], 0
je 0x6eeff1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.006eee2f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x6ef03d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x6eefaa
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x6ef025
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x6ef04a
push 0x6eec5f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.006e0eb0
add esp, 0x10
jmp 0x6ef01a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006c0fe0
leave
ret
Function at 0x6ef955
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x6ef9f2
push ebx
push esi
call fcn.006ef91e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.006ebaec
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x6ef99f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6ef9f1
push edi
push eax
call fcn.006e81e2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x6ef9bf
call fcn.006e81a8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6ef9f0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.006ebaec
add esp, 0x20
test eax, eax
jne 0x6ef9de
push edi
call fcn.006e81a8
jmp 0x6ef9e6
push ebx
call fcn.006e81a8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x6ef9f5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x6efa06
pop esi
ret
push ebx
push edi
push esi
call fcn.006ef91e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.006e81e2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x6efa2e
push ebx
push esi
push edi
call fcn.006c1de0
add esp, 0xc
push 0
call fcn.006e81a8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x6f017a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006efca1