joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ab010
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x100ab01b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
mov esi, edi
not eax
jb 0x100ab11d
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x1026e9f4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1026e9f4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1026e9f4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1026e9f4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1026e9f4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1026e9f4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1026e9f4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1026e9f4]
xor eax, edx
inc ecx
dec edi
jne 0x100ab036
test esi, esi
je 0x100ab13f
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1026e9f4]
xor eax, edx
inc ecx
dec esi
jne 0x100ab121
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x100abbc0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1026413b
push eax
mov dword fs:[0], esp
sub esp, 0x260
lea eax, [esp + 8]
push ebp
mov ebp, dword [esp + 0x274]
push esi
mov esi, dword [esp + 0x27c]
push eax
push ebp
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x100abc27
push 0x104
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
add esp, 0x26c
ret
mov ecx, dword [0x1026e87c]
push edi
mov dword [esp + 0xc], ecx
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x278], 0
call fcn.100918c0
mov esi, eax
mov ecx, 0x41
xor eax, eax
mov edi, esi
push 0x104
push ebp
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dx, word [esi]
mov eax, esi
test dx, dx
pop edi
je 0x100abc9a
mov ecx, edx
cmp cx, 0x5c
je 0x100abc7e
cmp cx, 0x2f
jne 0x100abc8e
mov cx, word [eax + 2]
cmp cx, 0x5c
je 0x100abc9a
cmp cx, 0x2f
je 0x100abc9a
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x100abc72
cmp word [eax], 0
je 0x100abcfb
mov cx, word [eax + 4]
add eax, 4
test cx, cx
je 0x100abcc4
cmp cx, 0x5c
je 0x100abcc4
cmp cx, 0x2f
je 0x100abcc4
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x100abcac
cmp word [eax], 0
je 0x100abccd
add eax, 2
mov cx, word [eax]
test cx, cx
je 0x100abced
cmp cx, 0x5c
je 0x100abced
cmp cx, 0x2f
je 0x100abced
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x100abcd5
cmp word [eax], 0
je 0x100abd26
mov word [eax + 2], 0
jmp 0x100abd26
test dx, dx
je 0x100abd1a
mov eax, edx
cmp ax, 0x5c
je 0x100abd1a
cmp ax, 0x2f
je 0x100abd1a
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x100abd02
cmp word [esi], 0
je 0x100abd26
mov word [esi + 2], 0
or esi, 0xffffffff
lea ecx, [esp + 8]
push esi
call fcn.10091990
mov ecx, dword [esp + 8]
push 0
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x100abd7f
lea ecx, [esp + 8]
mov dword [esp + 0x270], esi
call fcn.10090bf0
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
add esp, 0x26c
ret
test byte [esp + 0xc], 2
jne 0x100abd8d
push ebp
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [esp + 0xc], 4
jne 0x100abdc2
mov eax, dword [esp + 0x27c]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x100abdc2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 8]
mov dword [esp + 0x270], esi
call fcn.10090bf0
mov ecx, dword [esp + 0x268]
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x26c
ret
Function at 0x100abe40
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x100abe9f
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push edi
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100abe86
mov edi, dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100abe86
push edi
push eax
push eax
call fcn.100ab490
push eax
call fcn.100ab220
add esp, 0xc
mov eax, dword [esp + 0x14]
pop edi
cmp eax, ebx
je 0x100abe9f
mov eax, dword [esi + 0xc]
push eax
push 0xffffffffffffffff
push 0xd
call fcn.100ab220
add esp, 0xc
pop esi
pop ebx
ret 8

Function at 0x100ac490
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
sub esp, 0x18
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov ecx, 0x87
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
push 0x104
lea ecx, [esi + 0x12]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp + 4]
cmp eax, 0xffffffff
je 0x100ac5a1
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x100ac4eb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov eax, dword [ebp + 4]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x100ac50c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 4
mov ebp, dword [ebp + 0xc]
cmp dword [ebp - 8], ebx
jne 0x100ac519
mov byte [esi + 0x10], bl
jmp 0x100ac52d
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100ac52a
mov byte [esi + 0x10], bl
jmp 0x100ac52d
mov byte [esi + 0x10], al
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x34]
call fcn.100a2a30
push eax
mov ecx, esi
call fcn.100a26c0
lea edx, [esp + 0x18]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x34]
lea ebx, [esi + 8]
call fcn.100a2a30
push eax
mov ecx, ebx
call fcn.100a26c0
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x34]
lea edi, [esi + 4]
call fcn.100a2a30
push eax
mov ecx, edi
call fcn.100a26c0
mov ecx, esi
call fcn.100a26e0
test eax, eax
jne 0x100ac58e
push edi
mov ecx, esi
call fcn.100a26c0
mov ecx, ebx
call fcn.100a26e0
test eax, eax
jne 0x100ac5a1
push edi
mov ecx, ebx
call fcn.100a26c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 4
Function at 0x100acde0
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, 0xffffffff
jne 0x100ace27
mov eax, dword [esi + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x100ace27
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push edi
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x100ace27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [esi + 8]
cmp esi, 0xffffffff
je 0x100ace3d
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100ace4b
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ecx
ret 4

Function at 0x100ad370
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0xffffffff
jne 0x100ad3b5
mov eax, dword [esi + 4]
xor edi, edi
cmp dword [eax - 8], edi
je 0x100ad3b7
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push edi
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x100ad3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x100ad3b7
xor edi, edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x100ad492
push 1
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x18], edi
mov ebp, dword [edx]
lea eax, [ebx + ebp]
cmp eax, ebx
jb 0x100ad3e9
cmp eax, ebp
mov dword [esp + 0x18], edi
jae 0x100ad3f1
mov dword [esp + 0x18], 1
mov ecx, dword [esi + 0x20]
cmp ecx, edi
mov dword [esp + 0x10], ecx
je 0x100ad43c
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x20], edi
lea edi, [ecx + edx]
cmp edi, ecx
jb 0x100ad415
cmp edi, edx
jb 0x100ad415
xor edx, edx
jmp 0x100ad41a
mov edx, 1
cmp ecx, ebx
ja 0x100ad43c
cmp dword [esp + 0x18], edx
ja 0x100ad43c
jb 0x100ad42a
cmp eax, edi
ja 0x100ad43c
mov eax, dword [esp + 0x10]
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret 4
push ebp
mov ecx, esi
call fcn.100ad730
test eax, eax
je 0x100ad492
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 8]
lea edi, [esi + 0x28]
mov eax, dword [ebp]
push 0
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ad47d
mov eax, dword [edi]
pop edi
mov dword [ebp], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x2c], ebx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov dword [edi], 0
mov dword [esi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
Function at 0x100ad375
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0xffffffff
jne 0x100ad3b5
mov eax, dword [esi + 4]
xor edi, edi
cmp dword [eax - 8], edi
je 0x100ad3b7
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push edi
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x100ad3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x100ad3b7
xor edi, edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x100ad492
push 1
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x18], edi
mov ebp, dword [edx]
lea eax, [ebx + ebp]
cmp eax, ebx
jb 0x100ad3e9
cmp eax, ebp
mov dword [esp + 0x18], edi
jae 0x100ad3f1
mov dword [esp + 0x18], 1
mov ecx, dword [esi + 0x20]
cmp ecx, edi
mov dword [esp + 0x10], ecx
je 0x100ad43c
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x20], edi
lea edi, [ecx + edx]
cmp edi, ecx
jb 0x100ad415
cmp edi, edx
jb 0x100ad415
xor edx, edx
jmp 0x100ad41a
mov edx, 1
cmp ecx, ebx
ja 0x100ad43c
cmp dword [esp + 0x18], edx
ja 0x100ad43c
jb 0x100ad42a
cmp eax, edi
ja 0x100ad43c
mov eax, dword [esp + 0x10]
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret 4
push ebp
mov ecx, esi
call fcn.100ad730
test eax, eax
je 0x100ad492
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 8]
lea edi, [esi + 0x28]
mov eax, dword [ebp]
push 0
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ad47d
mov eax, dword [edi]
pop edi
mov dword [ebp], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x2c], ebx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov dword [edi], 0
mov dword [esi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4

Function at 0x100ad530
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x100ad5af
mov edi, dword [esp + 0x14]
test edi, edi
je 0x100ad5af
cmp dword [esi + 8], 0xffffffff
jne 0x100ad581
mov eax, dword [esi + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x100ad581
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push 0
push 0x80
push ecx
mov ecx, dword [esi + 0xc]
push 0
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x100ad581
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [esi + 8]
cmp esi, 0xffffffff
je 0x100ad5af
lea edx, [esp + 0x10]
push 0
push edx
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100ad5af
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x100af930
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100af9f0
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.1007a0ca
add esp, 8
test eax, eax
je 0x100af97f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x100af9e9
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x100af9e9
lea edx, [esp + 0xc]
test edx, edx
je 0x100af9e9
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x100af9c6
push eax
lea eax, [esp + 0x10]
push eax
push 0x102ba7a8
push ebx
push edi
call fcn.10079f61
add esp, 0x14
xor esi, esi
jmp 0x100af9f8
lea ecx, [esp + 0xc]
push ecx
call fcn.10078f12
add esp, 4
cmp ebx, eax
jbe 0x100af9f8
lea edx, [esp + 0xc]
push edx
push edi
call fcn.10079554
add esp, 8
xor esi, esi
jmp 0x100af9f8
mov esi, 0x57
jmp 0x100af9f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x1030d630], esi
je 0x100afa09
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret

Function at 0x100afb20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100afbe0
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.1007a0ca
add esp, 8
test eax, eax
je 0x100afb6f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x100afbd9
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x100afbd9
lea edx, [esp + 0xc]
test edx, edx
je 0x100afbd9
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x100afbb6
push eax
lea eax, [esp + 0x10]
push eax
push 0x102ba7a8
push ebx
push edi
call fcn.10079f61
add esp, 0x14
xor esi, esi
jmp 0x100afbe8
lea ecx, [esp + 0xc]
push ecx
call fcn.10078f12
add esp, 4
cmp ebx, eax
jbe 0x100afbe8
lea edx, [esp + 0xc]
push edx
push edi
call fcn.10079554
add esp, 8
xor esi, esi
jmp 0x100afbe8
mov esi, 0x57
jmp 0x100afbe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x1030d630], esi
je 0x100afbf9
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x100b5b10
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x100b5b31
push 0x57
mov dword [0x1030d630], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x100b5b62
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b5b62
test al, 0x10
jne 0x100b5b62
test al, 1
je 0x100b5b2c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x100b5bd0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x100b5bf1
push 0x57
mov dword [0x1030d630], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x100b5c22
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b5c22
test al, 0x10
jne 0x100b5c22
test al, 1
je 0x100b5bec
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x100b5d30
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
push edi
je 0x100b5ded
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x100b5ded
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x100b5ded
push edi
call fcn.10078f12
add esp, 4
test eax, eax
jbe 0x100b5ded
push edi
push ebx
call fcn.10097220
add esp, 8
test eax, eax
je 0x100b5ded
push esi
call fcn.10078f12
push ebx
mov ebp, eax
call fcn.10078f12
mov edi, eax
add esp, 8
test edi, edi
jle 0x100b5ded
push edi
push ebx
push esi
call fcn.1007a728
add esp, 0xc
test eax, eax
jne 0x100b5ded
cmp ebp, edi
je 0x100b5db0
cmp word [esi + edi*2 - 2], 0x5c
je 0x100b5db0
cmp word [esi + edi*2], 0x5c
jne 0x100b5ded
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x100b5de3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b5de3
test al, 0x10
jne 0x100b5de3
test al, 1
je 0x100b5dff
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 0x57
mov dword [0x1030d630], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x100b7ce0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x100b7cfc
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10079c40
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.1007a450
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x100b7d80
cmp byte [esp + 0x10], 0x5c
jne 0x100b7d80
cmp byte [esp + 0x11], 0x5c
jne 0x100b7d80
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.1007a450
add esp, 8
test eax, eax
je 0x100b7dfe
inc eax
push 0x5c
push eax
call fcn.1007a450
add esp, 8
mov esi, eax
test esi, esi
je 0x100b7dfe
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x100b7dc2
test bl, 1
je 0x100b7db1
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x100b7e34
cmp ebx, 0xffffffff
je 0x100b7dcb
test edi, edi
jne 0x100b7dda
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x100b7e34
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.1007a450
mov esi, eax
add esp, 8
test esi, esi
jne 0x100b7d84
test ebp, ebp
je 0x100b7e34
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100b7e29
test al, 0x10
jne 0x100b7e34
test al, 1
je 0x100b7e1c
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x100b7e34
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x100b7e50
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
test ebx, ebx
jne 0x100b7e6c
xor eax, eax
pop ebx
add esp, 0x410
ret
push ebp
push esi
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10079788
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.100791b9
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.10078f12
add esp, 0x18
cmp eax, 2
jbe 0x100b7ef1
cmp word [esp + 0x10], di
jne 0x100b7ef1
cmp word [esp + 0x12], di
jne 0x100b7ef1
lea eax, [esp + 0x14]
push edi
push eax
call fcn.100791b9
add esp, 8
test eax, eax
je 0x100b7f79
add eax, 2
push edi
push eax
call fcn.100791b9
add esp, 8
mov esi, eax
test esi, esi
je 0x100b7f79
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x100b7f39
test bl, 1
je 0x100b7f28
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x100b7faf
cmp ebx, 0xffffffff
je 0x100b7f42
test edi, edi
jne 0x100b7f51
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x100b7faf
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.100791b9
mov esi, eax
add esp, 8
test esi, esi
jne 0x100b7ef9
test ebp, ebp
je 0x100b7faf
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b7fa4
test al, 0x10
jne 0x100b7faf
test al, 1
je 0x100b7f97
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x100b7faf
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x410
ret