joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a01
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 + 0x483220]
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 0x417a44
cmp word [esi], dx
jne 0x417a44
or byte [edi + eax + 0x28], 4
jmp 0x417a49
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 0x417b9c
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 0x417b7c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417a8b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417ac1
cmp eax, edx
jae 0x417acd
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 0x417a63
jmp 0x417b9c
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 0x417b78
cmp dword [ebp - 0x14], 0
je 0x417b78
mov eax, dword [ebx*4 + 0x483220]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417b50
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417b19
mov word [esi], cx
jmp 0x417b4c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x483220]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x483220]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x483220]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x417b9c
pop ebx
cmp word [ebp - 4], bx
jne 0x417b61
cmp esi, dword [ebp + 0xc]
jne 0x417b61
mov word [esi], bx
jmp 0x417b99
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418435
add esp, 0x10
cmp word [ebp - 4], bx
je 0x417b9c
push 0xd
jmp 0x417b95
mov ecx, dword [ebx*4 + 0x483220]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417b93
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417b9c
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 0x10005460
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x44]
mov dword [esi], 0x10004420
test al, al
je 0x100054bc
mov eax, dword [esi + 0x18]
push eax
call dword [0x10004380]
mov ecx, dword [esi + 0x18]
push ecx
call dword [0x10004384]
mov ebp, dword [0x10004398]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x18]
push 0x20
push edx
push eax
call ebp
add edi, 4
dec ebx
jne 0x10005495
mov ecx, dword [esi + 0x18]
push ecx
call dword [0x10004394]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x100054f6
mov eax, dword [esi + 0x40]
push eax
call dword [0x10004390]
mov ebp, dword [0x1000438c]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi]
mov edx, dword [esi + 0x40]
push 0x20
push ecx
push edx
call ebp
add edi, 4
dec ebx
jne 0x100054db
mov eax, dword [esi + 0x40]
push eax
call dword [0x1000436c]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi - 0x28]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [edi]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi - 0x20]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [edi + 8]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add edi, 4
dec ebx
jne 0x100054fe
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10005630
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
call dword [fcn.10004358]
test eax, eax
jne 0x10005645
pop edi
xor al, al
pop ebx
pop ecx
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 4
push edi
push 0x100057a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 8]
push 0x20000
push 0
lea edx, [edi + 0x46]
push ecx
lea ebx, [edi + 0x18]
push edx
push 0xffff
push ebx
mov dword [edi + 0x2c], eax
call dword [fcn.10004364]
test eax, eax
je 0x10005690
pop edi
xor al, al
pop ebx
pop ecx
ret
push ebp
push esi
lea esi, [edi + 0x30]
mov ebp, 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [ebx]
push eax
push ecx
call dword [fcn.10004370]
add esi, 4
dec ebp
jne 0x1000569a
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebx]
push 0x20
mov eax, dword [edi + edx*4 + 0x30]
push eax
push ecx
call dword [fcn.10004374]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebx]
push eax
call dword [fcn.10004378]
mov al, 1
pop esi
mov byte [edi + 0x44], al
pop ebp
pop edi
pop ebx
pop ecx
ret
Function at 0x10006d60
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x218
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x105
push eax
mov edi, ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x18]
push 0x5c
push ecx
mov esi, 0x1000137c
call dword [sym.imp.MSVCRT.dll_strchr]
mov edx, 1
add esp, 8
sub edx, esi
lea ecx, [eax + edx]
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x10006d9d
mov edi, dword [edi + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0x23
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, 0x10
mov esi, 0x10001338
lea eax, [esp + 0x128]
rep movsd dword es:[edi], dword [esi]
push eax
push 0
movsb byte es:[edi], byte [esi]
call dword [0x10004240]
lea ecx, [esp + 0x120]
push 0x10001304
push ecx
lea edx, [esp + 0x128]
push 0x100012fc
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x130]
push 0x1000
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
mov esi, eax
xor ebx, ebx
mov edx, dword [esp + ebx*4 + 0x10]
mov ecx, 0x400
xor eax, eax
mov edi, esi
push edx
push 0x1000
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov al, byte [esi]
mov edx, esi
test al, al
je 0x10006e7e
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [edx + ecx + 1]
lea edx, [edx + ecx + 1]
test al, al
jne 0x10006e65
inc ebx
cmp ebx, 2
jb 0x10006e41
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x10008030
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10004460
push 0x10019a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x100081b1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, edi
mov dword [ebp - 0x20], esi
cmp word [edi], 0x5c
jne 0x100080ef
lea eax, [edi + 2]
cmp word [eax], 0x5c
jne 0x100080ef
mov esi, eax
mov dword [ebp - 0x20], esi
add esi, 2
mov dword [ebp - 0x20], esi
mov ax, word [esi]
test ax, ax
je 0x100080c2
cmp ax, 0x5c
je 0x100080c2
push esi
call dword [0x10004300]
mov esi, eax
jmp 0x100080a6
cmp word [esi], 0
je 0x100080ce
add esi, 2
mov dword [ebp - 0x20], esi
mov ax, word [esi]
test ax, ax
je 0x100080e7
cmp ax, 0x5c
je 0x100080e7
push esi
call dword [0x10004300]
mov esi, eax
jmp 0x100080cb
cmp word [esi], 0
je 0x10008117
jmp 0x10008111
lea eax, [edi + 2]
cmp word [eax], 0x3a
jne 0x10008117
mov esi, eax
mov dword [ebp - 0x20], esi
add esi, 2
mov dword [ebp - 0x20], esi
mov ax, word [esi]
test ax, ax
je 0x10008117
cmp ax, 0x5c
jne 0x10008117
add esi, 2
mov dword [ebp - 0x20], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ax, word [esi]
test ax, ax
je 0x10008175
cmp ax, 0x5c
jne 0x10008167
mov word [esi], 0
push edi
call ebx
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x10008158
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10008162
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10008162
push edi
jmp 0x100081a8
and eax, 0x10
cmp al, 0x10
je 0x10008162
push edi
jmp 0x100081a8
mov word [esi], 0x5c
push esi
call dword [0x10004300]
mov esi, eax
mov dword [ebp - 0x20], esi
jmp 0x1000811d
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100081d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x654
push ebx
push ebp
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x74]
mov word [esp + 0x18], ax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x668]
mov dword [esp + 0x1a], eax
push 0x2e
push ecx
mov dword [esp + 0x1c], 0x208
mov word [esp + 0x26], ax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x10008223
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x654
ret 8
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov ebp, dword [fcn.100041dc]
add esp, 8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0xf003f
push 0
push ecx
push 0x80000000
call ebp
test eax, eax
je 0x10008263
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x654
ret 8
mov ecx, dword [esp + 0x10]
mov esi, dword [fcn.100041e0]
lea edx, [esp + 0x14]
lea eax, [esp + 0x74]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ebx, dword [fcn.100041e4]
push edx
call ebx
mov ecx, 0xfa
xor eax, eax
lea edi, [esp + 0x27c]
mov dword [esp + 0x14], 0x208
rep stosd dword es:[edi], eax
lea eax, [esp + 0x74]
lea ecx, [esp + 0x27c]
push eax
push 0x100014c4
push ecx
call dword [fcn.100042fc]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x27c]
push edx
push 0xf003f
push 0
push eax
push 0x80000000
call ebp
test eax, eax
je 0x100082ea
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x654
ret 8
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x74]
lea edx, [esp + 0x74]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_wcsstr]
lea edx, [esp + 0x74]
push 0x100014bc
push edx
call esi
add esp, 8
test eax, eax
jne 0x1000835f
lea eax, [esp + 0x74]
push 0x100014b4
push eax
call esi
add esp, 8
test eax, eax
jne 0x1000835f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x74]
push 0x100014b0
push ecx
call esi
mov edx, dword [esp + 0x668]
lea eax, [esp + 0x74]
push edx
push eax
call esi
jmp 0x1000836e
mov ecx, dword [esp + 0x668]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x66c]
mov dword [esp + 0x30], 0x44
test eax, eax
je 0x10008396
mov dword [esp + 0x38], 0x10001490
lea edx, [esp + 0x20]
lea eax, [esp + 0x30]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x90]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x654
ret 8
Function at 0x100083d0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x790
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push 0x10001524
push 0x10001424
mov dword [esp + 0x34], ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x1000150c
push 0x10001424
mov dword [esp + 0x40], eax
call esi
push eax
call edi
push 0x100014fc
push 0x10001424
mov ebx, eax
call esi
push eax
call edi
push 0x100014f0
push 0x10001424
mov dword [esp + 0x38], eax
call esi
push eax
call edi
mov esi, eax
lea eax, [esp + 0x140]
push eax
push 0x100
mov dword [esp + 0x18], esi
mov byte [esp + 0x3a8], 0x67
call ebx
mov al, byte [esp + 0x140]
xor edx, edx
test al, al
lea ebp, [esp + 0x140]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov ebx, 1
je 0x100085af
jmp 0x10008482
mov esi, dword [esp + 0x10]
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
push edx
push edx
push edx
push edx
push edx
push ebp
call dword [esp + 0x58]
push 0x410
lea edx, [esp + 0x244]
push 0x2b4
push edx
push 0x80
push ebp
call dword [0x10004244]
lea eax, [esp + 0x350]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x3c]
inc edi
push ecx
mov dword [esp + 0x38], edi
call esi
inc eax
mov dword [esp + 0x18], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x10008524
cmp al, 0x42
je 0x10008524
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x20]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10008524
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
shrd esi, ecx, 0x14
shrd eax, edx, 0x14
shr ecx, 0x14
mov dword [esp + 0x14], eax
shr edx, 0x14
jmp 0x1000852a
xor esi, esi
mov dword [esp + 0x14], esi
mov al, byte [ebp]
push ebp
mov byte [esp + ebx + 0x3a4], al
call dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov dword [esp + ebx + 0x3a2], esi
mov dword [esp + ebx + 0x3a6], ecx
mov ecx, edi
mov edx, ecx
lea esi, [esp + 0x350]
lea edi, [esp + ebx + 0x3aa]
mov byte [esp + ebx + 0x3a1], al
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x34]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ebx]
lea esi, [esp + 0x40]
lea edi, [esp + edx + 0x3ae]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [esp + 0x14]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x1000847c
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x3a0]
push ebx
push edx
call fcn.1000da80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x790
ret
Function at 0x100085d0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x468
push ebx
push ebp
push esi
mov esi, 0x2800
push edi
mov ebp, ecx
push esi
push 0x40
mov dword [esp + 0x24], ebp
mov dword [ebp + 0x1c], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov eax, dword [esp + 0x47c]
push eax
lea ecx, [esp + 0x274]
push 0x10001548
push ecx
call dword [fcn.100042fc]
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x270]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x18], edi
jne 0x10008657
lea ecx, [esp + 0x13]
push 1
push ecx
mov ecx, ebp
mov byte [esp + 0x1b], 0x68
call fcn.1000da80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x468
ret 4
mov byte [ebx], 0x68
mov ebp, 1
lea edx, [esi - 0x208]
cmp ebp, edx
jbe 0x1000867f
add esi, 0x208
push 0x42
push esi
push ebx
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
lea eax, [esp + 0x4c]
push 0x10001544
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10008712
lea ecx, [esp + 0x4c]
push 0x1000153c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10008712
mov dl, byte [esp + 0x20]
lea eax, [esp + 0x4c]
and dl, 0x10
push eax
mov byte [ebx + ebp], dl
inc ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
lea esi, [esp + 0x4c]
mov ecx, eax
lea edi, [ebx + ebp]
mov edx, ecx
add ebp, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, 2
and ecx, 3
add ebp, 8
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 0xa], 0
mov byte [ebx + ebp - 9], 0
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
mov dword [ebx + ebp - 8], eax
mov ecx, dword [esp + 0x40]
mov dword [ebx + ebp - 4], ecx
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x38]
mov dword [ebx + ebp + 4], eax
add ebp, 8
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000865f
mov ecx, dword [esp + 0x1c]
push ebp
push ebx
call fcn.1000da80
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x468
ret 4
Function at 0x10008750
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x868
lea eax, [esp + 0x660]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x878]
push edi
mov edi, dword [fcn.100042fc]
push esi
push 0x10001548
push eax
mov ebp, ecx
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x670]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100087a5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x868
ret 4
cmp word [esp + 0x3c], 0x2e
je 0x100087f8
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
push 0x10001558
je 0x100087dd
lea ecx, [esp + 0x26c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x260]
mov ecx, ebp
push edx
call fcn.10008750
jmp 0x100087f8
lea ecx, [esp + 0x474]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100087a5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x868
ret 4

Function at 0x10008830
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea edx, [ecx + 0x20]
push edi
mov dword [esp + 0xc], ecx
mov ecx, 0x82
xor eax, eax
mov edi, edx
push esi
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000887d
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
push ebx
lea eax, [esp + 0x18]
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [eax + eax + 0xb]
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov byte [ebx], 0x69
mov eax, dword [esp + 0x20]
mov dword [ebx + 5], ecx
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
lea edi, [ebx + 9]
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.1000da80
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 4
Function at 0x10008910
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 4]
mov ebp, ecx
cmp eax, 0xffffffff
jne 0x1000892e
call fcn.100089f0
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x20]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10008959
pop edi
pop ebp
or eax, eax
pop ebx
ret 4
mov ecx, dword [ebx + 4]
push esi
push 0
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x14]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [ebx]
mov dword [esi + 1], edx
mov eax, dword [ebx + 4]
lea edx, [esi + 9]
push 0x1ff7
push edx
push edi
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, ebp
test eax, eax
jbe 0x100089d1
add eax, 9
push eax
push esi
call fcn.1000da80
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
call fcn.100089f0
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4