joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016e9f
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x10017000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x1001701f
cmp dword [ebp + 0xc], 0
jne 0x10017029
mov eax, 0x57
jmp 0x100171a0
movzx eax, byte [0x101953c0]
test eax, eax
je 0x10017057
push 0x10194bc0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100019a0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
xor eax, eax
jmp 0x100171a0
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.10108c60
add esp, 0xc
push 0
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.10018cb0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001717f
mov dword [ebp - 0x218], 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.10018560
push eax
push 0
lea edx, [ebp - 0x210]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x1001717f
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.10108c60
add esp, 0xc
mov dword [ebp - 0x424], 0x208
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push str.InstallPath
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], 0
jne 0x1001717f
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100019a0
lea eax, [ebp - 0x420]
push eax
push 0x400
push 0x10194bc0
call fcn.100019a0
mov byte [0x101953c0], 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
xor eax, eax
jmp 0x100171a0
cmp dword [ebp + 0x10], 0
je 0x1001719b
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.100171b0
add esp, 0xc
jmp 0x100171a0
mov eax, 0x65b
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret
Function at 0x10017830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.1010be30
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x1001785c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100179c6
xor eax, eax
mov word [ebp - 0x808], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x806]
push ecx
call fcn.10108c60
add esp, 0xc
push 0
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.10017000
add esp, 0xc
test eax, eax
je 0x1001789c
xor eax, eax
jmp 0x100179c6
xor eax, eax
mov word [ebp - 0x1008], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x1006]
push ecx
call fcn.10108c60
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x808]
push eax
push 0x1017a054
push 0x400
lea ecx, [ebp - 0x1008]
push ecx
call fcn.10001b00
add esp, 0x14
mov dword [ebp - 0x1044], 0
push 0x38
push 0
lea edx, [ebp - 0x1040]
push edx
call fcn.10108c60
add esp, 0xc
mov dword [ebp - 0x1044], 0x3c
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1034], eax
lea ecx, [ebp - 0x808]
mov dword [ebp - 0x102c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1030], edx
mov dword [ebp - 0x1040], 0x440
mov dword [ebp - 0x1028], 1
push 0
push 0
push 0
push 6
call fcn.100181b0
add esp, 0x10
test eax, eax
je 0x1001795f
cmp dword [ebp + 0x14], 1
jne 0x1001795f
mov dword [ebp - 0x1038], str.runas
lea eax, [ebp - 0x1044]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10017974
xor eax, eax
jmp 0x100179c6
cmp dword [ebp + 0x10], 1
jne 0x10017989
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x100c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x100c], 0
je 0x100179c1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x100c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret

Function at 0x10017b60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
jne 0x10017b78
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10017be3
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10018020
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10017b95
xor eax, eax
jmp 0x10017be3
push 0
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
call fcn.1001c560
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
call fcn.1001c5a0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x1001dc10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012ebe0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101870dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x1c]
call fcn.10001be0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10001be0
mov byte [ebp - 4], 1
cmp dword [ebp + 8], 0
jne 0x1001dc8f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001ca0
mov eax, dword [ebp - 0x24]
jmp 0x1001de27
mov eax, dword [ebp + 8]
push eax
call fcn.1001e600
add esp, 4
cmp eax, 1
jne 0x1001dcd7
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.1001e800
add esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10001cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10001ca0
jmp 0x1001dce3
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.10001ce0
lea ecx, [ebp - 0x1c]
call fcn.10002390
cmp eax, 2
jg 0x1001dd22
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001ca0
mov eax, dword [ebp - 0x2c]
jmp 0x1001de27
lea ecx, [ebp - 0x1c]
call fcn.10003960
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1001dd6c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001ca0
mov eax, dword [ebp - 0x30]
jmp 0x1001de27
push 2
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.10020620
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x1001ddbb
mov eax, dword [ebp - 0x20]
add eax, 1
push eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10002200
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.10001ca0
jmp 0x1001ddc7
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.10001cc0
lea ecx, [ebp - 0x10]
call fcn.10003960
push eax
call fcn.1001de40
add esp, 4
cmp eax, 1
jne 0x1001ddfc
lea ecx, [ebp - 0x10]
call fcn.10003960
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.100019a0
mov dword [ebp - 0x14], 1
jmp 0x1001de03
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001ca0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001dea0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012ec0b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101870dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.10001be0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x1001df07
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov eax, dword [ebp - 0x1c]
jmp 0x1001dfe5
mov eax, dword [ebp + 8]
push eax
call fcn.1001e600
add esp, 4
cmp eax, 1
jne 0x1001df4f
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.1001e800
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.10001cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10001ca0
jmp 0x1001df5b
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x10]
call fcn.10001ce0
lea ecx, [ebp - 0x10]
call fcn.10003960
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 5
ja case.default.0x1001df85
mov edx, dword [ebp - 0x30]
jmp dword [edx*4 + 0x1001dff4]
lea ecx, [ebp - 0x10]
call fcn.10002390
cmp eax, 3
jg 0x1001dfb4
push 1
lea ecx, [ebp - 0x10]
call fcn.100027a0
movzx eax, ax
cmp eax, 0x3a
jne 0x1001dfb4
mov dword [ebp - 0x14], 1
jmp 0x1001dfbb
mov dword [ebp - 0x14], 0
jmp 0x1001dfcd
mov dword [ebp - 0x14], 0
jmp 0x1001dfcd
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001e010
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012ec36
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101870dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.10001be0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x1001e077
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov eax, dword [ebp - 0x20]
jmp 0x1001e1f0
mov eax, dword [ebp + 8]
push eax
call fcn.1001e600
add esp, 4
cmp eax, 1
jne 0x1001e0bf
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.1001e800
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x10]
call fcn.10001cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.10001ca0
jmp 0x1001e0cb
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x10]
call fcn.10001ce0
lea ecx, [ebp - 0x10]
call fcn.10002390
cmp eax, 2
jge 0x1001e0fe
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov eax, dword [ebp - 0x28]
jmp 0x1001e1f0
lea ecx, [ebp - 0x10]
call fcn.10003960
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
sub ecx, 1
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 5
ja case.default.0x1001e12c
mov edx, dword [ebp - 0x38]
jmp dword [edx*4 + 0x1001e200]
push 0
lea ecx, [ebp - 0x10]
call fcn.100027a0
movzx eax, ax
cmp eax, 0x5c
jne 0x1001e197
push 1
lea ecx, [ebp - 0x10]
call fcn.100027a0
movzx ecx, ax
cmp ecx, 0x5c
jne 0x1001e197
push 2
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.10020620
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x1001e18e
lea ecx, [ebp - 0x10]
call fcn.10002390
sub eax, 1
cmp dword [ebp - 0x1c], eax
jne 0x1001e185
mov dword [ebp - 0x14], 1
jmp 0x1001e18c
mov dword [ebp - 0x14], 0
jmp 0x1001e195
mov dword [ebp - 0x14], 1
jmp 0x1001e1c6
lea ecx, [ebp - 0x10]
call fcn.10002390
cmp eax, 3
jg 0x1001e1bf
push 1
lea ecx, [ebp - 0x10]
call fcn.100027a0
movzx edx, ax
cmp edx, 0x3a
jne 0x1001e1bf
mov dword [ebp - 0x14], 1
jmp 0x1001e1c6
mov dword [ebp - 0x14], 0
jmp 0x1001e1d8
mov dword [ebp - 0x14], 0
jmp 0x1001e1d8
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001e600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x1001e631
mov ecx, dword [ebp - 8]
and ecx, 0x10
je 0x1001e631
mov dword [ebp - 4], 1
jmp 0x1001e638
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012ec9f
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.1001e900
add esp, 8
mov dword [ebp - 4], 0
lea edx, [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x10]
call fcn.10003960
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1001e77c
lea ecx, [ebp - 0x10]
call fcn.10003960
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.1001f220
add esp, 8
push 0
push 0x3a
lea ecx, [ebp - 0x270]
call fcn.10020620
test eax, eax
jl 0x1001e743
push 0x250
push 0
lea ecx, [ebp - 0x26c]
push ecx
call fcn.10108c60
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.10003960
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0xffffffff
je 0x1001e712
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x26c], edx
jmp 0x1001e741
mov dword [ebp - 0x278], 0
lea ecx, [ebp - 0x270]
call fcn.10001ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov eax, dword [ebp - 0x278]
jmp 0x1001e7e2
jmp 0x1001e76f
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 0x270]
call fcn.10001ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov eax, dword [ebp - 0x27c]
jmp 0x1001e7e2
lea ecx, [ebp - 0x270]
call fcn.10001ca0
jmp 0x1001e786
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x1001e797
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x26c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x26c]
and eax, 0x10
je 0x1001e7c3
mov dword [ebp - 0x280], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov eax, dword [ebp - 0x280]
jmp 0x1001e7e2
mov dword [ebp - 0x284], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10001ca0
mov eax, dword [ebp - 0x284]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret
Function at 0x1001fb30
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1468
call fcn.1010be30
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x258], 0
push 0x24c
push 0
lea eax, [ebp - 0x254]
push eax
call fcn.10108c60
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x460], cx
push 0x206
push 0
lea edx, [ebp - 0x45e]
push edx
call fcn.10108c60
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x1001fb9d
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x1001fbac
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1001fd53
mov edx, dword [ebp + 8]
push edx
push 0x10131518
push 0x104
lea eax, [ebp - 0x460]
push eax
call fcn.10001b00
add esp, 0x10
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x460]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0xffffffff
jne 0x1001fbf3
xor eax, eax
jmp 0x1001fd53
xor eax, eax
mov word [ebp - 0x1468], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x1466]
push ecx
call fcn.10108c60
add esp, 0xc
push 0x10131514
lea edx, [ebp - 0x22c]
push edx
call fcn.1010b68c
add esp, 8
test eax, eax
jne 0x1001fc2f
jmp 0x1001fce8
push 0x1013150c
lea eax, [ebp - 0x22c]
push eax
call fcn.1010b68c
add esp, 8
test eax, eax
jne 0x1001fc4c
jmp 0x1001fce8
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x400
lea eax, [ebp - 0x1468]
push eax
call fcn.10020260
add esp, 0x10
test eax, eax
jne 0x1001fc71
jmp 0x1001fce8
xor ecx, ecx
mov word [ebp - 0xc68], cx
push 0x7fe
push 0
lea edx, [ebp - 0xc66]
push edx
call fcn.10108c60
add esp, 0xc
push 0x400
lea eax, [ebp - 0xc68]
push eax
lea ecx, [ebp - 0x1468]
push ecx
call fcn.10018900
add esp, 0xc
mov edx, dword [ebp - 0x258]
and edx, 0x10
je 0x1001fcc9
push 1
lea eax, [ebp - 0xc68]
push eax
call fcn.1001fb30
add esp, 8
jmp 0x1001fce8
push 0x80
lea ecx, [ebp - 0xc68]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0xc68]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x1001fbf3
cmp dword [ebp - 0x464], 0xffffffff
je 0x1001fd25
mov edx, dword [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x464], 0xffffffff
cmp dword [ebp + 0xc], 1
jne 0x1001fd49
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], eax
jmp 0x1001fd50
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret
Function at 0x100213a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0x57
mov dword [ebp - 8], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x50], 0
push 0x3f
push 0
lea eax, [ebp - 0x4f]
push eax
call fcn.10108c60
add esp, 0xc
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0xffffffff
je 0x10021405
cmp dword [ebp + 0xc], 0
je 0x10021405
cmp dword [ebp + 0x10], 0
jle 0x10021405
cmp dword [ebp + 0x18], 0
je 0x10021405
cmp dword [ebp + 0x1c], 0
ja 0x1002140f
jmp 0x10021514
mov eax, dword [ebp + 0x10]
sub eax, 0x10
cdq
idiv dword [ebp + 0x20]
test edx, edx
jne 0x1002141f
jmp 0x10021429
jmp 0x10021514
cmp dword [0x10199500], 0
jne 0x10021443
mov dword [ebp - 4], 0x65b
jmp 0x10021514
mov dword [ebp - 0x54], 0
jmp 0x10021455
mov ecx, dword [ebp - 0x54]
add ecx, dword [ebp + 0x20]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp + 0x10]
sub edx, 0x10
cmp dword [ebp - 0x54], edx
jge 0x1002150d
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
push 0x40
push 0x40
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x54]
push ecx
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x54]
push eax
call fcn.10023fe0
add esp, 0x24
test eax, eax
jne 0x100214a1
mov dword [ebp - 4], 0x1770
jmp 0x10021514
push 2
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100214c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10021514
push 0
lea edx, [ebp - 0x58]
push edx
push 0x40
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100214f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100214f3
mov dword [ebp - 4], 0x1d
jmp 0x10021514
cmp dword [ebp - 0x58], 0x40
je 0x10021508
mov dword [ebp - 4], 0x1d
jmp 0x10021514
jmp 0x1002144c
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret
Function at 0x10021e10
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x14], ax
xor ecx, ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], ecx
mov word [ebp - 6], cx
cmp dword [ebp + 0xc], 0
je 0x10021e40
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
cmp dword [ebp + 8], 0
je 0x10021e4c
cmp dword [ebp + 0xc], 0
jne 0x10021e56
jmp 0x10021f6f
cmp dword [ebp + 0x14], 1
jne 0x10021ea9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10021e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10021e82
jmp 0x10021e8c
jmp 0x10021f6f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.100019a0
mov dword [ebp - 4], 1
jmp 0x10021f6f
cmp dword [ebp + 0x14], 2
jne 0x10021f01
mov eax, dword [ebp + 8]
push eax
push 0x10131738
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10001b00
add esp, 0x10
test eax, eax
jge 0x10021ed6
jmp 0x10021f6f
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10021ef8
jmp 0x10021f6f
mov dword [ebp - 4], 1
jmp 0x10021f6f
cmp dword [ebp + 0x14], 3
jne 0x10021f6f
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 8]
push ecx
movzx edx, word [ebp - 0xa]
push edx
movzx eax, word [ebp - 0xc]
push eax
movzx ecx, word [ebp - 0xe]
push ecx
movzx edx, word [ebp - 0x12]
push edx
movzx eax, word [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x101316f8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10001b00
add esp, 0x28
test eax, eax
jge 0x10021f50
jmp 0x10021f6f
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10021f68
jmp 0x10021f6f
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret