joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xea644
call fcn.00406930
mov eax, dword [0x411008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0xea620], 0
push eax
push eax
push eax
mov word [ebp - 0xea60c], ax
lea eax, [ebp - 0xea61c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xea620]
mov dword [ebp - 0xea61c], 0x10001
push eax
mov dword [ebp - 0xea618], 0x7d00
mov dword [ebp - 0xea614], 0x7d00
mov dword [ebp - 0xea610], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xea600
lea eax, [ebp - 0xea608]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0xea624], ecx
nop word [eax + eax]
mov ebx, ecx
mov edx, 0x234568a0
shr ecx, 8
and ecx, 0x1c
shr ebx, 1
sar edx, cl
mov ecx, dword [ebp - 0xea624]
and dl, 0xf
shr ecx, 0xb
movsx eax, bl
movsx edx, dl
imul edx, eax
shr ebx, cl
mov ecx, dword [ebp - 0xea624]
mov eax, ecx
shr eax, 0xc
xor bl, al
mov eax, ecx
shr eax, 4
or dl, bl
and al, cl
and al, 0x18
add dl, al
mov byte [ebp + ecx - 0xea608], dl
inc ecx
mov dword [ebp - 0xea624], ecx
cmp ecx, 0xea600
jb 0x404ce0
lea eax, [ebp - 0xea608]
mov dword [ebp - 0xea640], 0xea600
mov dword [ebp - 0xea644], eax
lea eax, [ebp - 0xea644]
push 0x20
push eax
push dword [ebp - 0xea620]
mov dword [ebp - 0xea63c], 0
mov dword [ebp - 0xea638], 0
mov dword [ebp - 0xea634], 0
mov dword [ebp - 0xea630], 0
mov dword [ebp - 0xea62c], 0
mov dword [ebp - 0xea628], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xea644]
push eax
push dword [ebp - 0xea620]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xea644]
push eax
push dword [ebp - 0xea620]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xea620]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405b07
mov esp, ebp
pop ebp
ret
Function at 0x4063f2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406431
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406431
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406431
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406431
cmp dword [ecx + 0x74], 0xe
jbe 0x406431
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10001180
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x1000118e
xor al, al
pop ecx
ret 4
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100011b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100011b3
xor al, al
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.10042390
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ecx
ret 4

Function at 0x10002a30
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x1006b088
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1007d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [esp + 0x18], esi
push 4
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2c], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 2
push esi
mov dword [esp + 0x24], 0x7d0
call edi
push 4
lea ecx, [esp + 0x18]
push ecx
push 3
push esi
mov dword [esp + 0x24], 3
call edi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.10002f60
add esp, 0x10
test esi, esi
mov bl, al
je 0x10002acb
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x10002ee0
Capabilities:
Create http request

Disassembly:
push esi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
jne 0x10002efb
xor al, al
pop esi
ret
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
push 0x1007f93c
push 2
push esi
call edi
push 4
push 0x1007f940
push 3
push esi
call edi
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x10002f29
mov eax, dword [eax + 4]
jmp 0x10002f2c
add eax, 4
push 0
push 0x84000000
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
jne 0x10002f4f
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
xor al, al
pop esi
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
push esi
call edi
pop edi
mov al, 1
pop esi
ret
Function at 0x10005460
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
mov esi, dword [esp + 0x118]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x11]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
call fcn.10041500
mov ecx, dword [esp + 0x128]
add esp, 0xc
push ebx
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
jne 0x100054c8
push ebx
push 0x100735cc
jmp 0x100054e1
lea eax, [esp + 0xc]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100054d0
sub eax, edx
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.10003ca0
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.10040be4
add esp, 0x10c
ret
Function at 0x10005510
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x1006be48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push edi
mov eax, dword [0x1007d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
push 1
xor ebx, ebx
push ebx
lea eax, [esp + 0x18]
push eax
mov edi, ecx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1c], 0x25
call fcn.10006f20
cmp eax, 0xffffffff
push 0xffffffffffffffff
push ebx
push edi
jne 0x1000557d
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10003960
jmp 0x10005665
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.10003960
mov ebp, 0x10
mov dword [esp + 0x44], ebx
cmp dword [edi + 0x18], ebp
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
jb 0x100055ad
mov eax, dword [eax]
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x100055e7
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edi
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10003960
cmp dword [esp + 0x34], ebp
jb 0x10005665
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x1000565d
add eax, 2
push eax
call fcn.1004109b
add esp, 4
cmp dword [edi + 0x18], 0x10
mov ebp, eax
jb 0x10005603
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x10005607
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [edi + 1]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, ebx
jbe 0x1000562c
cmp eax, edi
ja 0x1000562c
push ebp
lea ecx, [esp + 0x20]
mov byte [eax + ebp], bl
call fcn.10006ba0
push ebp
call fcn.10041096
add esp, 4
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x24]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10003960
cmp dword [esp + 0x34], 0x10
jb 0x10005665
mov eax, dword [esp + 0x20]
push eax
call fcn.10040f62
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10040be4
add esp, 0x38
ret
Function at 0x10006b00
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, 1
mov dword [esp + 4], eax
jne 0x10006b7e
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10006b6f
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp eax, 1
sete dl
pop ebx
xor ecx, esp
mov al, dl
call fcn.10040be4
add esp, 0x14
ret

Function at 0x10008c50
Capabilities:
Move file

Disassembly:
mov edx, 0x10
cmp dword [eax + 0x18], edx
jb 0x10008c5f
mov eax, dword [eax + 4]
jmp 0x10008c62
add eax, 4
cmp dword [ecx + 0x18], edx
jb 0x10008c78
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne al
ret
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne al
ret

Function at 0x10008e20
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov ebx, 0x10
cmp dword [ebp + 0x18], ebx
push edi
lea edi, [ebp + 4]
jb 0x10008e3c
mov edx, dword [edi]
jmp 0x10008e3e
mov edx, edi
mov eax, edx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10008e58
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.10003ca0
cmp dword [esp + 0x28], ebx
mov eax, dword [esp + 0x14]
jae 0x10008e7c
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
mov esi, 0x10
sete bl
cmp dword [esp + 0x28], esi
jb 0x10008ea2
mov eax, dword [esp + 0x14]
push eax
call fcn.10040f62
add esp, 4
test bl, bl
je 0x10008eb0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
cmp dword [ebp + 0x18], esi
jb 0x10008ecb
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
add esp, 0x1c
ret
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
add esp, 0x1c
ret
Function at 0x10008f10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x318
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x314], eax
push ebx
xor ebx, ebx
cmp dword [0x1007f8d4], ebx
push esi
mov esi, dword [esp + 0x324]
je 0x10008f5f
push 0xffffffffffffffff
push ebx
push 0x1007f8c0
mov ecx, esi
call fcn.10003960
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.10040be4
add esp, 0x318
ret
push 0x105
lea eax, [esp + 0xd]
push ebx
push eax
mov byte [esp + 0x14], bl
call fcn.10041500
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x10009042
push 0x208
lea edx, [esp + 0x115]
push ebx
push edx
mov byte [esp + 0x119], bl
mov byte [esp + 0x11c], bl
call fcn.10041500
add esp, 0xc
push 0x208
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
cmp eax, 0x208
ja 0x1000900a
cmp eax, ebx
je 0x1000900a
lea edx, [esp + 0x110]
push edx
mov ecx, esi
mov byte [esp + eax + 0x114], bl
call fcn.10006ba0
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.10040be4
add esp, 0x318
ret
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10009011
sub eax, edx
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.10003ca0
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.10040be4
add esp, 0x318
ret
mov ecx, dword [esp + 0x31c]
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.10040be4
add esp, 0x318
ret

Function at 0x10009060
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
push esi
push edi
push 0x105
lea eax, [esp + 0x11]
push 0
push eax
mov edi, ecx
mov esi, edx
mov byte [esp + 0x18], 0
call fcn.10041500
mov eax, 0x10
add esp, 0xc
cmp dword [esi + 0x18], eax
jb 0x100090aa
mov esi, dword [esi + 4]
jmp 0x100090ad
add esi, 4
cmp dword [edi + 0x18], eax
jb 0x100090b7
mov edi, dword [edi + 4]
jmp 0x100090ba
add edi, 4
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x10009112
lea eax, [esp + 0xc]
mov byte [esp + 0x111], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100090e0
sub eax, edx
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
call fcn.10003ca0
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.10040be4
add esp, 0x10c
ret
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
xor ecx, esp
xor al, al
call fcn.10040be4
add esp, 0x10c
ret
Function at 0x100093b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov edi, ecx
call fcn.10009ce0
push 0x208
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.10041500
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add esp, 0xc
push 0
push 0
call esi
test eax, eax
jne 0x1000940f
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10040be4
add esp, 0x210
ret
cmp eax, 0x208
jae 0x100093f6
lea ecx, [esp + 8]
push ecx
push 0x209
call esi
test eax, eax
je 0x100093f6
cmp eax, 0x208
jae 0x100093f6
lea edx, [esp + 8]
push edx
mov ecx, edi
mov byte [esp + 0x214], 0
call fcn.10006ba0
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.10040be4
add esp, 0x210
ret

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

Disassembly:
sub esp, 0x24
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push esi
mov esi, edx
cdq
push edi
push edx
mov edi, ecx
push eax
lea ecx, [esp + 0x10]
call fcn.1000a160
add esp, 8
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.10003960
push 1
push 0x10073de0
mov ecx, esi
call fcn.100071b0
lea eax, [esp + 8]
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100097f8
sub eax, edi
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.100071b0
push 1
push 0x10073de4
mov ecx, esi
call fcn.100071b0
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.10006df0
cmp dword [esi + 0x18], 0x10
jb 0x10009835
mov esi, dword [esi + 4]
jmp 0x10009838
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor ecx, esp
call fcn.10040be4
add esp, 0x24
ret
Function at 0x1000e000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1006cff0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x1007d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.10003960
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x40]
cmp eax, 2
lea edi, [ebx + 0x10]
jb 0x1000e0cd
cmp dword [esp + 0x44], edi
mov ecx, dword [esp + 0x30]
jae 0x1000e072
lea ecx, [esp + 0x30]
cmp byte [ecx], 0x22
jne 0x1000e0cd
lea esi, [eax - 1]
cmp esi, eax
jbe 0x1000e087
call fcn.10041d26
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x44], edi
mov ecx, dword [esp + 0x30]
jae 0x1000e095
lea ecx, [esp + 0x30]
cmp byte [ecx + esi], 0x22
jne 0x1000e0cd
lea edx, [eax - 2]
mov eax, 1
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x10]
call fcn.1000ab90
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 1
call fcn.10003960
mov ecx, esi
mov byte [esp + 0x54], bl
call fcn.100037f0
push 0x10073e2c
lea ebx, [esp + 0x30]
call fcn.1000a990
mov eax, dword [esp + 0x34]
add esp, 4
cmp dword [esp + 0x44], edi
jae 0x1000e0ec
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000e10f
cmp dword [esp + 0x44], edi
jb 0x1000e10b
mov eax, dword [esp + 0x30]
push eax
call fcn.10040f62
add esp, 4
mov al, 1
jmp 0x1000e124
cmp dword [esp + 0x44], edi
jb 0x1000e122
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10040f62
add esp, 4
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10040be4
add esp, 0x48
ret
Function at 0x1000e150
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1006cfb0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov eax, dword [0x1007d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.10003960
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x3c]
cmp eax, 2
jb 0x1000e21b
cmp dword [esp + 0x40], 0x10
mov ecx, dword [esp + 0x2c]
jae 0x1000e1bf
lea ecx, [esp + 0x2c]
cmp byte [ecx], 0x22
jne 0x1000e21b
lea esi, [eax - 1]
cmp esi, eax
jbe 0x1000e1d4
call fcn.10041d26
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x40], 0x10
mov ecx, dword [esp + 0x2c]
jae 0x1000e1e3
lea ecx, [esp + 0x2c]
cmp byte [ecx + esi], 0x22
jne 0x1000e21b
lea edx, [eax - 2]
mov eax, 1
lea ecx, [esp + 0x28]
lea esi, [esp + 0xc]
call fcn.1000ab90
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
call fcn.10003960
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.100037f0
push 0x10073e2c
lea ebx, [esp + 0x2c]
call fcn.1000a990
mov eax, dword [esp + 0x30]
mov ebx, 0x10
add esp, 4
cmp dword [esp + 0x40], ebx
jae 0x1000e23f
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000e266
test bl, al
jne 0x1000e266
cmp dword [esp + 0x40], ebx
jb 0x1000e262
mov eax, dword [esp + 0x2c]
push eax
call fcn.10040f62
add esp, 4
mov al, 1
jmp 0x1000e27b
cmp dword [esp + 0x40], ebx
jb 0x1000e279
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.10040f62
add esp, 4
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10040be4
add esp, 0x48
ret
Function at 0x1000e2a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1006cf70
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov eax, dword [0x1007d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.10003960
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x3c]
cmp eax, 2
jb 0x1000e36b
cmp dword [esp + 0x40], 0x10
mov ecx, dword [esp + 0x2c]
jae 0x1000e30f
lea ecx, [esp + 0x2c]
cmp byte [ecx], 0x22
jne 0x1000e36b
lea esi, [eax - 1]
cmp esi, eax
jbe 0x1000e324
call fcn.10041d26
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x40], 0x10
mov ecx, dword [esp + 0x2c]
jae 0x1000e333
lea ecx, [esp + 0x2c]
cmp byte [ecx + esi], 0x22
jne 0x1000e36b
lea edx, [eax - 2]
mov eax, 1
lea ecx, [esp + 0x28]
lea esi, [esp + 0xc]
call fcn.1000ab90
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
call fcn.10003960
mov ecx, esi
mov byte [esp + 0x50], bl
call fcn.100037f0
push 0x10073e2c
lea ebx, [esp + 0x2c]
call fcn.1000a990
mov eax, dword [esp + 0x30]
mov ebx, 0x10
add esp, 4
cmp dword [esp + 0x40], ebx
jae 0x1000e38f
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000e3b6
test bl, al
je 0x1000e3b6
cmp dword [esp + 0x40], ebx
jb 0x1000e3b2
mov eax, dword [esp + 0x2c]
push eax
call fcn.10040f62
add esp, 4
mov al, 1
jmp 0x1000e3cb
cmp dword [esp + 0x40], ebx
jb 0x1000e3c9
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.10040f62
add esp, 4
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10040be4
add esp, 0x48
ret

Function at 0x1000e7b0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 0x10
push esi
lea esi, [edi + 4]
jb 0x1000e7be
mov eax, dword [esi]
jmp 0x1000e7c0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
cmp dword [edi + 0x18], 0x10
jb 0x1000e7d4
mov ecx, dword [esi]
jmp 0x1000e7d6
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [edi + 0x18], 0x10
jb 0x1000e7e6
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
pop esi
ret
Function at 0x1000ede0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1006d778
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1007d1f8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x1007d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [edi + 0x14]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x10], eax
jbe 0x1000eef8
lea ebp, [edi + 4]
cmp esi, dword [edi + 0x14]
jbe 0x1000ee31
call fcn.10041d26
cmp dword [edi + 0x18], 0x10
jb 0x1000ee3c
mov eax, dword [ebp]
jmp 0x1000ee3e
mov eax, ebp
cmp byte [eax + esi], 0x2f
je 0x1000ee65
cmp esi, dword [edi + 0x14]
jbe 0x1000ee4e
call fcn.10041d26
cmp dword [edi + 0x18], 0x10
jb 0x1000ee59
mov eax, dword [ebp]
jmp 0x1000ee5b
mov eax, ebp
cmp byte [eax + esi], 0x5c
jne 0x1000eeeb
push esi
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.10006c70
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x28], ebx
je 0x1000eebf
lea edx, [esp + 0x14]
push edx
call fcn.1000e000
add esp, 4
test al, al
jne 0x1000eebf
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x1000ee9d
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000eebf
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x1000eedb
mov eax, dword [esp + 0x18]
push eax
jmp 0x1000eed3
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x1000eedb
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10040f62
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x1000ee27
push edi
call fcn.1000e000
add esp, 4
test al, al
jne 0x1000ef23
cmp dword [edi + 0x18], 0x10
jb 0x1000ef10
mov eax, dword [edi + 4]
jmp 0x1000ef13
lea eax, [edi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000ef23
xor al, al
jmp 0x1000ef2c
push edi
call fcn.1000e2a0
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10040be4
add esp, 0x30
ret