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

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x10011fff
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x100120e7
mov edx, edi
shr edx, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [ebx*4 + 0x10076b70]
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x10076b70]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [ebx*4 + 0x10076b70]
movzx ebx, byte [ecx + 1]
xor ebx, eax
add ecx, 1
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x10076b70]
movzx ebx, byte [ecx + 1]
xor ebx, eax
add ecx, 1
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x10076b70]
movzx ebx, byte [ecx + 1]
xor ebx, eax
add ecx, 1
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x10076b70]
movzx ebx, byte [ecx + 1]
add ecx, 1
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x10076b70]
movzx ebx, byte [ecx + 1]
add ecx, 1
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x10076b70]
add ecx, 1
sub edi, 8
sub edx, 1
mov esi, eax
jne 0x10012010
pop ebx
test edi, edi
je 0x1001210c
jmp 0x100120f0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x10076b70]
add ecx, 1
sub edi, 1
jne 0x100120f0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x10012120
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x10076b70]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10076b70]
mov dword [edx + 8], ecx
ret

Function at 0x100121b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [esi + 0x14], 0
push ebx
mov ebx, eax
jne 0x1001224a
shr eax, 8
test byte [esi], 0x10
mov byte [ebp - 4], bl
mov byte [ebp - 3], al
je 0x100121e7
lea edx, [esi + 0x24]
call fcn.10012190
mov bl, byte [ebp - 3]
mov byte [ebp - 4], al
call fcn.10012190
mov byte [ebp - 3], al
test byte [esi], 1
je 0x10012214
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 2]
cmp ecx, dword [esi + 0x20]
jb 0x10012203
mov dword [esi + 0x14], 0xb
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov cx, word [ebp - 4]
mov word [eax + edx], cx
add dword [esi + 0x1c], 2
jmp 0x1001223b
mov ecx, dword [esi + 4]
push 0
lea edx, [ebp - 8]
push edx
push 2
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10012234
cmp dword [ebp - 8], 2
je 0x1001223b
mov dword [esi + 0x14], 3
test dword [esi], 0x40000000
je 0x1001224a
mov dword [esi + 0x14], 0x14
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push edi
mov edi, eax
je 0x1001234e
cmp dword [esi + 0x14], 0
jne 0x1001234e
test byte [esi], 0x10
je 0x100122ef
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1001228b
cmp dword [esi + 0x34], ebx
jae 0x1001228b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x30], 0
cmp dword [esi + 0x30], 0
jne 0x100122b3
lea eax, [ebx + ebx]
push eax
push 0
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x100122b3
mov dword [esi + 0x14], 2
jmp 0x1001233f
mov eax, dword [esi + 0x30]
push ebx
push edi
push eax
call fcn.10042570
add esp, 0xc
xor edi, edi
test ebx, ebx
jbe 0x100122ec
lea edx, [esi + 0x24]
lea ebx, [ebx]
mov ecx, dword [esi + 0x30]
mov bl, byte [ecx + edi]
call fcn.10012190
mov ecx, dword [esi + 0x30]
mov byte [edi + ecx], al
add edi, 1
cmp edi, dword [ebp + 8]
jb 0x100122d0
mov ebx, dword [ebp + 8]
mov edi, dword [esi + 0x30]
test byte [esi], 1
je 0x1001231d
mov eax, dword [esi + 0x1c]
lea edx, [eax + ebx]
cmp edx, dword [esi + 0x20]
jb 0x10012308
mov dword [esi + 0x14], 0xb
jmp 0x1001233f
mov ecx, dword [esi + 4]
push ebx
add ecx, eax
push edi
push ecx
call fcn.10042570
add esp, 0xc
add dword [esi + 0x1c], ebx
jmp 0x1001233f
mov eax, dword [esi + 4]
push 0
lea edx, [ebp + 8]
push edx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10012338
cmp dword [ebp + 8], ebx
je 0x1001233f
mov dword [esi + 0x14], 3
test dword [esi], 0x40000000
je 0x1001234e
mov dword [esi + 0x14], 0x14
pop edi
pop ebx
pop ebp
ret

Function at 0x10012400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
test eax, 0x40000000
push edi
je 0x1001241c
mov dword [esi + 0x14], 0x14
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
test al, al
jns 0x1001244d
mov eax, dword [esi + 0x50]
mov edi, dword [esi + 0x4c]
cmp eax, edi
jae 0x1001246a
sub edi, eax
cmp edi, ecx
mov dword [ebp - 4], edi
jbe 0x10012438
mov edi, ecx
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x48]
push edi
add ecx, eax
push ecx
push ebx
call fcn.10042570
add esp, 0xc
add dword [esi + 0x50], edi
jmp 0x10012474
mov eax, dword [esi + 0x48]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10012471
mov dword [esi + 0x14], 7
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
mov edx, dword [esi + 0x44]
add dword [esi + 0x40], edi
mov eax, edi
mov ecx, ebx
call fcn.10011ff0
mov dword [esi + 0x44], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100126f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10012762
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x10012731
cmp eax, 2
jne 0x1001274c
test esi, esi
mov eax, dword [ebp + 0x10]
je 0x1001275c
test eax, eax
je 0x10012757
test al, 1
jne 0x1001274c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x1001275c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10012850
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov word [ecx + 0x20], ax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
mov dword [ecx + 0x14], 0xc3d2e1f0
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0x70], eax
push 0x29
mov dword [ecx + 0x74], eax
add ecx, 0x78
push eax
push ecx
call fcn.10042010
add esp, 0xc
ret

Function at 0x10012f40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
movzx eax, word [esi + 0x20]
cmp ax, 0x37
push edi
mov edi, 1
jbe 0x10012fb4
movzx eax, ax
mov byte [eax + esi + 0x22], 0x80
add word [esi + 0x20], di
movzx eax, word [esi + 0x20]
mov ecx, 0x40
xor bl, bl
cmp ax, cx
jae 0x10012f85
movzx edx, ax
mov byte [edx + esi + 0x22], bl
add word [esi + 0x20], di
cmp word [esi + 0x20], cx
movzx eax, word [esi + 0x20]
jb 0x10012f70
mov ecx, esi
call fcn.10012a00
mov ecx, 0x38
cmp word [esi + 0x20], cx
jae 0x10012fe5
jmp 0x10012fa0
movzx eax, word [esi + 0x20]
mov byte [eax + esi + 0x22], bl
add word [esi + 0x20], di
cmp word [esi + 0x20], cx
jb 0x10012fa0
jmp 0x10012fe5
movzx ecx, ax
mov byte [ecx + esi + 0x22], 0x80
add word [esi + 0x20], di
movzx eax, word [esi + 0x20]
mov ecx, 0x38
cmp ax, cx
jae 0x10012fe5
xor bl, bl
movzx edx, ax
mov byte [edx + esi + 0x22], bl
add word [esi + 0x20], di
cmp word [esi + 0x20], cx
movzx eax, word [esi + 0x20]
jb 0x10012fd0
mov eax, dword [esi + 0x1c]
mov ecx, eax
mov edx, eax
shr eax, 8
mov byte [esi + 0x5c], al
movzx eax, byte [esi + 0x1c]
shr ecx, 0x18
shr edx, 0x10
mov byte [esi + 0x5d], al
mov eax, dword [esi + 0x18]
mov byte [esi + 0x5a], cl
mov byte [esi + 0x5b], dl
mov ecx, eax
mov edx, eax
shr ecx, 0x18
shr edx, 0x10
shr eax, 8
mov byte [esi + 0x60], al
movzx eax, byte [esi + 0x18]
mov byte [esi + 0x5e], cl
pop edi
mov byte [esi + 0x5f], dl
mov byte [esi + 0x61], al
mov ecx, esi
pop esi
pop ebx
jmp fcn.10012a00
Function at 0x100137f0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10086e84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x43
lea eax, [ebp - 0x47]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x48], bl
call fcn.10042010
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], ebx
je 0x1001383c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001384d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1001385e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x4c], 2
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x50]
push edx
push eax
mov eax, dword [esi]
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x48]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x100138a7
cmp dword [esi + 4], ebx
jne 0x100138a7
lea ecx, [eax + eax]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 4], eax
sub dword [ebp - 0x4c], 1
jne 0x10013865
cmp edi, ebx
je 0x1001391f
lea edi, [esi + 8]
push edi
lea edx, [ebp - 0x48]
push edx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
cmp eax, ebx
je 0x100138cf
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1001391f
mov eax, dword [esi]
cmp eax, ebx
je 0x100138e6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x100138ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x1001390e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1001391f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041ffa
mov esp, ebp
pop ebp
ret
Function at 0x100140a0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
mov dword [ebp - 0x14], ecx
je 0x100140bc
cmp dword [ebp + 0xc], 0
je 0x100140bc
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x100140c6
mov dword [ebp - 4], 0x80070057
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0x10]
lea edx, [esi + 8]
cmp edx, 0x10000
mov dword [ebp - 8], edx
jb 0x100140df
mov dword [ebp - 8], 0x10000
test eax, eax
jl 0x100141ef
cmp dword [ecx + 4], 0
jne 0x100140f9
mov eax, 0x80070005
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1001411f
mov dword [ebp - 4], 0x8007000e
jmp 0x100141d7
push edi
xor edi, edi
cmp edi, esi
jae 0x100141d6
mov eax, esi
mov esi, dword [ebp - 8]
sub eax, edi
add esi, 0xfffffff8
cmp eax, esi
jae 0x1001413a
mov esi, eax
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [edi + ecx]
push edx
push ebx
mov dword [ebp - 0xc], esi
call fcn.10042570
mov eax, dword [ebp - 8]
add esp, 0xc
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
add esi, edi
cmp esi, dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [eax + 4]
sete dl
push ebx
push 0
push edx
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x10014195
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10014186
mov dword [ebp - 4], eax
jmp 0x100141c1
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x100141c1
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0xc]
push ecx
push ebx
push eax
mov dword [ebp - 0x10], 0
call edx
test eax, eax
mov dword [ebp - 4], eax
jl 0x100141d6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x100141cf
mov edi, esi
cmp dword [ebp - 4], 0
jl 0x100141d6
mov esi, dword [ebp + 0x10]
jmp 0x10014122
mov dword [ebp - 4], 0x8000ffff
pop edi
test ebx, ebx
je 0x100141eb
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10014490
Capabilities:
Encrypt data using des via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
mov esi, dword [ebx]
neg esi
sbb esi, esi
push edi
and esi, 0x7ff8fffb
add esi, 0x80070005
mov edi, 0
mov dword [ebp - 4], edi
js 0x100144c1
cmp dword [ebp + 8], edi
jne 0x100144c1
mov esi, 0x80070057
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x100144d2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebx + 4], edi
cmp esi, edi
jl 0x100145b4
mov ecx, dword [ebx]
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x8004
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x10014508
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10014506
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x100145b4
mov eax, dword [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 4
lea edx, [ebp - 8]
push edx
push eax
mov dword [ebp - 8], 0x420042
call edi
test eax, eax
jne 0x10014544
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10014542
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x100145b4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp + 8]
push 0
add eax, eax
push eax
mov eax, dword [ebp - 4]
push edx
push eax
call edi
test eax, eax
jne 0x1001457b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10014579
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x100145b4
mov ecx, dword [ebp - 4]
mov edx, dword [ebx]
lea eax, [ebx + 4]
push eax
push 0xc00000
push ecx
push 0x6603
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x100145b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100145b2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x100145c2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10016850
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7ff8ffa9
add esi, 0x80070057
mov dword [ebp - 8], ecx
mov dword [ebp + 8], 0
js 0x10016978
push ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100168b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100168b1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x10016954
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100168e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100168e0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x10016953
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp + 8], eax
jne 0x10016904
mov esi, 0x8007000e
jmp 0x10016953
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001693d
cmp dword [ebp - 4], edi
jne 0x10016936
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push edi
push edx
push eax
call fcn.10016770
jmp 0x10016951
mov esi, 0x8000ffff
jmp 0x10016953
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10016951
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
cmp ebx, 0xffffffff
je 0x10016960
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
pop ebx
je 0x10016978
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10018ac6
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10018ac6
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018abe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
pop ebp
ret
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018ae2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100195e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
add eax, 0x106
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003e542
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0x10]
add esp, 4
test ebx, ebx
mov esi, eax
jne 0x1001962e
mov dword [ebp - 4], 9
jmp 0x10019741
test esi, esi
jne 0x1001963c
pop edi
lea eax, [esi + 2]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10019660
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
je 0x10019678
mov word [esi + eax*2], 0x5c
add eax, 1
lea eax, [esi + eax*2]
push 0x10076f98
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x10019741
lea ecx, [ecx]
cmp dword [ebp - 4], 0
jne 0x10019737
mov eax, dword [ebp - 0xc]
lea edi, [ebx + 0x2c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test byte [ebx], 0x10
je 0x100196fc
cmp word [edi], 0x2e
jne 0x100196d2
movzx eax, word [ebx + 0x2e]
test ax, ax
je 0x10019724
cmp ax, 0x2e
je 0x10019724
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x10019724
mov eax, dword [ebp - 8]
test eax, eax
je 0x100196e8
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp + 8]
add edi, 0xffffffff
push edi
push ebx
push esi
push ecx
call fcn.100195e0
add esp, 0x10
jmp 0x10019721
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001970f
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x10019724
push esi
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov edx, dword [ebp + 8]
push eax
push edx
call fcn.10018960
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100196a0
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x1001974e
push esi
call fcn.100421fa
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019760
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x106
push eax
call fcn.1003e542
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0x10]
add esp, 4
test ebx, ebx
mov esi, eax
jne 0x1001979e
mov dword [ebp - 4], 9
jmp 0x100198ac
test esi, esi
jne 0x100197ac
pop edi
lea eax, [esi + 2]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x100197d0
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
je 0x100197e5
mov byte [eax + esi], 0x5c
add eax, 1
add eax, esi
push 0x10076b1c
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x100198ac
lea esp, [esp]
cmp dword [ebp - 4], 0
jne 0x100198a2
mov eax, dword [ebp - 0xc]
lea edi, [ebx + 0x2c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [ebx], 0x10
je 0x10019867
cmp byte [edi], 0x2e
jne 0x1001983d
mov al, byte [ebx + 0x2d]
test al, al
je 0x1001988f
cmp al, 0x2e
je 0x1001988f
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x1001988f
mov eax, dword [ebp - 8]
test eax, eax
je 0x10019853
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [ebp + 8]
add edi, 0xffffffff
push edi
push ebx
push esi
push ecx
call fcn.10019760
add esp, 0x10
jmp 0x1001988c
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001987a
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecA]
test eax, eax
je 0x1001988f
push esi
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov edx, dword [ebp + 8]
push eax
push edx
call fcn.10018940
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10019810
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x100198b9
push esi
call fcn.100421fa
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret