joyce8/EMBER2024-capa huggingface dataset:
Function at 0x108fc0d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
sete bl
and dword [eax], 0
push edi
mov edi, ebx
shl edi, 7
add edi, 0x10d38b8
cmp byte [ebx + 0x10d38b4], 0
jne 0x108fd04
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x108fc5b
call fcn.01091f43
mov esi, eax
push esi
push 0x201d019a
jmp 0x108fc9b
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x108fc78
call fcn.01091f43
mov esi, eax
push esi
push 0x2025019a
jmp 0x108fc9b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x108fca2
call fcn.01091f43
mov esi, eax
test esi, esi
jne 0x108fc95
mov esi, 0x8007000d
push esi
push 0x2031019a
call fcn.0108c55a
jmp 0x108fd0b
push 0x101b80c
lea eax, [esi + 6]
push eax
call fcn.0108f903
test eax, eax
je 0x108fcbb
mov esi, 0x8007000d
jmp 0x108fd0b
cmp byte [ebp + 0xc], 0
je 0x108fcd6
movzx eax, word [esi + 0x34]
push eax
movzx eax, word [esi + 0x36]
push eax
movzx eax, word [esi + 0x30]
push eax
movzx eax, word [esi + 0x32]
jmp 0x108fce9
movzx eax, word [esi + 0x3c]
push eax
movzx eax, word [esi + 0x3e]
push eax
movzx eax, word [esi + 0x38]
push eax
movzx eax, word [esi + 0x3a]
push eax
push 0x101b7f4
push 0x40
push edi
call fcn.0102e48f
add esp, 0x1c
xchg dword [ebp + 0xc], eax
mov byte [ebx + 0x10d38b4], 1
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x109279e
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
xor ebx, ebx
push 0x38
lea eax, [ebp - 0x44]
push ebx
push eax
mov dword [ebp - 8], ebx
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
add esp, 0xc
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], 0x3c
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10927e1
mov esi, dword [sym.imp.WININET.dll_InternetCrackUrlW]
sub eax, ecx
lea ecx, [ebp - 0x48]
push ecx
push ebx
sar eax, 1
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1092816
call fcn.01091f43
mov edi, eax
push edi
push 0x4b001ca
jmp 0x109293a
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 8]
push eax
call fcn.010926fd
mov edi, eax
cmp edi, ebx
je 0x1092838
push edi
push 0x4b901ca
jmp 0x109293a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 8]
push eax
call fcn.010926fd
mov edi, eax
cmp edi, ebx
je 0x109285a
push edi
push 0x4bc01ca
jmp 0x109293a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call fcn.010926fd
mov edi, eax
cmp edi, ebx
je 0x109287c
push edi
push 0x4bf01ca
jmp 0x109293a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.010926fd
mov edi, eax
cmp edi, ebx
je 0x109289e
push edi
push 0x4c201ca
jmp 0x109293a
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10928a4
lea ecx, [ebp - 0x48]
push ecx
sub eax, edx
push SysReAllocString
sar eax, 1
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10928d4
call fcn.01091f43
mov edi, eax
push edi
push 0x4c901ca
jmp 0x109293a
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.WININET.dll_InternetCreateUrlW]
test eax, eax
jne 0x1092901
call fcn.01091f43
mov edi, eax
cmp edi, 0x8007007a
jne 0x109291b
cmp esi, ebx
jne 0x109291b
cmp esi, ebx
jne 0x1092923
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x109292f
shr dword [ebp - 0xc], 1
jmp 0x10928d7
push edi
push 0x4e401ca
jmp 0x109293a
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [ebp - 4], ebx
xor edi, edi
jmp 0x109293f
mov edi, 0x8007000e
push edi
push 0x4f101ca
call fcn.0108c55a
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x40], ebx
je 0x109294f
push dword [ebp - 0x44]
call esi
cmp dword [ebp - 0x34], ebx
je 0x1092959
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x18], ebx
je 0x1092963
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x10], ebx
je 0x109296d
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 4], ebx
je 0x1092977
push dword [ebp - 4]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x109334b
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor ecx, ecx
push eax
mov dword [edi], ecx
push ecx
mov dword [ebx], ecx
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1093387
mov eax, 0x8007000e
push eax
push 0x73f01a3
mov edi, eax
call fcn.0108c55a
jmp 0x10933d8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10933c2
call fcn.01091f43
mov edi, eax
push edi
push 0x74c01a3
call fcn.0108c55a
jmp 0x10933cd
mov eax, dword [ebp + 0x14]
mov dword [edi], esi
xor esi, esi
mov dword [ebx], eax
xor edi, edi
test esi, esi
je 0x10933d8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x1093be5
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000000
push 1
xor edi, edi
push 0x1012820
push edi
mov dword [esi], edi
push esi
mov dword [ebx], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1093c22
mov dword [esi], edi
call fcn.01091f43
mov ebx, eax
push ebx
push 0xd2d01a3
jmp 0x1093c45
push ebx
push edi
push edi
push 0x8004
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1093c4c
mov dword [ebx], edi
call fcn.01091f43
mov ebx, eax
push ebx
push 0xd3401a3
call fcn.0108c55a
jmp 0x1093c4e
xor ebx, ebx
cmp ebx, edi
je 0x1093c76
mov eax, dword [esi]
cmp eax, edi
je 0x1093c76
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x1093c74
call fcn.01091f43
push ebx
push 0xd3f01a3
call fcn.0108c55a
mov dword [esi], edi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x1095531
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
call fcn.0107368a
mov dword [ebp - 4], eax
test eax, eax
je 0x1095564
push eax
push 0x6f101a3
call fcn.0108c55a
jmp 0x1095615
push esi
push edi
mov edi, dword [ebp - 8]
jmp 0x10955c7
push ebx
push dword [ebp + 0xc]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
lea eax, [ebp + 0x10]
push eax
push esi
push 0
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x10955f6
call fcn.01091f43
cmp dword [ebp - 0xc], 0
mov dword [ebp - 4], eax
jne 0x10955e9
cmp eax, 0x800700ea
jne 0x10955e9
mov eax, esi
test edi, edi
je 0x10955b3
mov byte [eax], 0
inc eax
dec edi
jne 0x10955ac
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 1
push edi
push 0
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x109556b
mov eax, 0x8007000e
push eax
mov dword [ebp - 4], eax
push 0x6fa01a3
jmp 0x10955ef
push eax
push 0x71601a3
call fcn.0108c55a
jmp 0x1095608
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
xor esi, esi
mov dword [eax], ecx
mov dword [ebp - 4], esi
test esi, esi
je 0x1095613
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x14
Function at 0x109e04f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
or dword [esi], 0xffffffff
push edi
mov edi, dword [ebp + 0x10]
and dword [edi], 0
push esi
call fcn.0109c9ea
test ebx, ebx
jne 0x109e0c2
mov ebx, 0xf6
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x101b4a8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x109e0a7
cmp eax, ebx
jae 0x109e0a7
push 0x101e6b0
jmp 0x109e119
mov eax, 0x80070002
push eax
push 0x4f70191
mov dword [ebp - 0x210], eax
call fcn.0108c55a
jmp 0x109e20b
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x109e130
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x109e0d6
sub eax, edx
sar eax, 1
lea ecx, [eax + 2]
mov eax, 0x104
cmp ecx, eax
jb 0x109e106
mov eax, 0x800700ce
push eax
mov dword [ebp - 0x210], eax
push 0x5030191
jmp 0x109e205
push 0x101e6a8
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e082
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e0bc
lea ebx, [ebp - 0x20c]
push ebx
push esi
call fcn.0109d312
mov dword [ebp - 0x210], eax
test eax, eax
je 0x109e14c
push eax
push 0x50b0191
jmp 0x109e205
push 2
pop eax
jmp 0x109e16f
call fcn.01091f43
mov dword [ebp - 0x210], eax
cmp eax, 0xe0000100
jne 0x109e1d7
cmp dword [ebp - 0x218], 2
jne 0x109e1d7
xor eax, eax
inc eax
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
push ecx
push eax
push 0
push ebx
mov dword [ebp - 0x218], eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov dword [esi], eax
mov eax, dword [ebp - 0x214]
mov dword [edi], eax
cmp dword [esi], 0xffffffff
je 0x109e151
xor edi, edi
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
push edi
push edi
push 0x101e698
push esi
call fcn.0109d811
push edi
push edi
push ebx
push 1
push 0x3b2
push edi
push 0x536
push 0x191
call fcn.010a9a17
mov dword [ebp - 0x210], edi
jmp 0x109e20b
mov ecx, dword [edi]
neg ecx
sbb ecx, ecx
and ecx, edi
push ecx
push 0
push ebx
push 1
push 0x3b3
push eax
push 0x526
push 0x191
call fcn.010a9a17
push dword [ebp - 0x210]
push 0x5270191
push ebx
call fcn.0108c595
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0xc
Function at 0x10a0781
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x10a07c9
push eax
call fcn.01091f0e
mov esi, eax
push esi
push 0x5ab0197
push ebx
call fcn.0108c595
jmp 0x10a0849
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x10a07e7
mov esi, 0x8007000e
push esi
push 0x5b20197
jmp 0x10a082c
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x10a0811
push eax
call fcn.01091f0e
mov esi, eax
push esi
push 0x5b90197
push ebx
call fcn.0108c595
jmp 0x10a083b
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0108e2d6
mov esi, eax
cmp esi, edi
je 0x10a0833
push esi
push 0x5bd0197
call fcn.0108c55a
jmp 0x10a083b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp + 0xc], edi
je 0x10a0849
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10a0b9a
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 2
push 0x1002068
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.010ada68
mov esi, eax
cmp esi, edi
je 0x10a0bda
push esi
push 0x7dc0197
push dword [ebp + 8]
call fcn.0108c595
jmp 0x10a0bf9
push 0x101ebf0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp esi, edi
je 0x10a0bf9
push esi
push 0x7df0197
call fcn.0108c55a
cmp dword [ebp - 4], edi
je 0x10a0c07
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x10a0c15
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x10a1174
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0xf0000000
xor eax, eax
push 1
push eax
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10a11c1
call fcn.01091f43
mov esi, eax
push esi
push 0xc3f0197
call fcn.0108c55a
jmp 0x10a1298
mov esi, dword [ebp + 8]
cmp esi, 1
je 0x10a11ce
cmp esi, 0x10
jbe 0x10a11d1
push 0x10
pop esi
mov eax, dword [ebp + 0x10]
dec eax
cmp esi, eax
jbe 0x10a11db
mov esi, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x28]
call edi
test eax, eax
jne 0x10a11ff
call fcn.01091f43
mov esi, eax
push esi
push 0xc4d0197
jmp 0x10a121a
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x28]
call edi
test eax, eax
jne 0x10a1221
call fcn.01091f43
mov esi, eax
push esi
push 0xc520197
call fcn.0108c55a
jmp 0x10a1297
lea eax, [esi + esi + 2]
push eax
push 0
mov edi, esi
push ebx
mov dword [ebp - 0x2c], 0x59
shr edi, 3
call sub.msvcrt.dll_memset
add esp, 0xc
xor ecx, ecx
test esi, esi
jbe 0x10a1295
movzx eax, byte [ebp + ecx - 0x14]
xor edx, edx
div dword [ebp - 0x2c]
movzx eax, byte [ebp + ecx - 0x24]
mov dword [ebp - 0x30], edx
xor edx, edx
div esi
mov eax, dword [ebp - 0x34]
jmp 0x10a1265
inc edx
cmp edx, esi
jne 0x10a1265
xor edx, edx
xor ebx, ebx
cmp bx, word [eax + edx*2]
jne 0x10a125e
mov ebx, dword [ebp - 0x30]
mov bx, word [ebx*2 + 0x101eaf8]
push 0x3e
mov word [eax + edx*2], bx
pop eax
cmp dword [ebp - 0x30], eax
jb 0x10a1290
test edi, edi
jbe 0x10a128b
dec edi
test edi, edi
jne 0x10a1290
mov dword [ebp - 0x2c], eax
inc ecx
cmp ecx, esi
jb 0x10a1243
xor esi, esi
pop edi
push 0x10
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
dec ecx
jne 0x10a129e
cmp dword [ebp - 0x28], ecx
je 0x10a12b4
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0xc
Function at 0x10a1676
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor edx, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x258], edx
mov dword [edi], edx
cmp esi, edx
je 0x10a16b0
mov dword [esi], edx
lea ebx, [ebp - 0x258]
push ebx
push edx
push eax
push ecx
call fcn.0108df83
mov ebx, eax
test ebx, ebx
je 0x10a16d5
push ebx
push 0x8c0197
call fcn.0108c55a
jmp 0x10a1785
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x10a16fa
xor ebx, ebx
jmp 0x10a1785
test byte [ebp - 0x254], 0x10
jne 0x10a1749
mov dword [edi], 1
test esi, esi
je 0x10a1749
lea eax, [ebp - 0x25c]
push eax
push 0
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x264]
call fcn.0108df83
mov ebx, eax
test ebx, ebx
jne 0x10a1762
push dword [ebp - 0x25c]
call fcn.010a073d
test eax, eax
jne 0x10a176f
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10a16fa
jmp 0x10a1777
push ebx
push 0xa30197
call fcn.0108c55a
jmp 0x10a1779
mov eax, dword [ebp - 0x25c]
mov dword [esi], eax
xor ebx, ebx
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x258], 0
je 0x10a179a
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0x10
Function at 0x10a2183
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x668], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
and dword [edi], 0
mov eax, ebx
mov dword [ebp - 0x66c], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10a21b6
sub eax, ecx
sar eax, 1
add eax, 6
mov esi, 0x104
cmp eax, esi
jb 0x10a21e1
mov eax, 0x8007006f
push eax
push 0xf010197
push ebx
jmp 0x10a2285
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e082
push 0x101ec5c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e0bc
push 0x1001f1c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e0bc
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10a22b5
test byte [ebp - 0x664], 0x10
je 0x10a224f
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10a2232
jmp 0x10a22a5
lea eax, [ebp - 0x638]
mov dword [ebp - 0x668], 1
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a2262
sub eax, edx
sar eax, 1
cmp eax, esi
jb 0x10a2291
mov eax, 0x8007006f
push eax
push 0xf130197
push dword [ebp - 0x66c]
mov esi, eax
call fcn.0108c595
jmp 0x10a235b
lea eax, [ebp - 0x638]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0102e082
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x668], 0
jne 0x10a22c2
mov esi, 0x80070002
push esi
push 0xf1f0197
jmp 0x10a2329
cmp dword [ebp - 0x668], 1
jbe 0x10a22d8
mov esi, 0x8007010b
push esi
push 0xf240197
jmp 0x10a2329
mov eax, dword [ebp - 0x66c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a22e1
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x10a22fa
sub eax, edx
sar eax, 1
lea esi, [eax + ecx + 2]
lea eax, [esi + esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
test eax, eax
jne 0x10a2330
mov esi, 0x8007000e
push esi
push 0xf2c0197
call fcn.0108c55a
jmp 0x10a235b
push dword [ebp - 0x66c]
push esi
push eax
call fcn.0102e082
push 0x1008ba8
push esi
push dword [edi]
call fcn.0102e0bc
lea eax, [ebp - 0x414]
push eax
push esi
push dword [edi]
call fcn.0102e0bc
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 8
Function at 0x10a27e9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov eax, edx
inc edi
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a280b
sub eax, esi
sar eax, 1
add eax, 4
mov esi, 0x104
cmp eax, esi
jb 0x10a2837
push 0x8007006f
push 0x35b0197
push edx
call fcn.0108c595
jmp 0x10a2898
push edx
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e082
push 0x101ec64
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e0bc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10a2898
test byte [ebp - 0x45c], 0x10
je 0x10a288f
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10a2872
jmp 0x10a2891
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01077dc7
leave
ret 4
Function at 0x10a28af
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov eax, edx
push edi
mov dword [ebp - 0x464], edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a28d5
sub eax, esi
sar eax, 1
mov edi, eax
lea eax, [edi + 4]
mov esi, 0x104
cmp eax, esi
jb 0x10a2908
mov ebx, 0x8007006f
push ebx
push 0x3830197
mov dword [ebp - 0x460], ebx
push edx
jmp 0x10a2a20
push edx
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e082
push 0x101ec64
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e0bc
inc edi
mov eax, esi
sub eax, edi
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x468], eax
cmp eax, 0xffffffff
jne 0x10a2971
call fcn.01091f43
mov dword [ebp - 0x460], eax
test eax, eax
je 0x10a2971
push eax
push 0x38f0197
call fcn.0108c55a
jmp 0x10a2a25
and dword [ebp - 0x460], 0
mov ebx, 0x8007006f
test byte [ebp - 0x45c], 0x10
jne 0x10a29e3
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a298f
sub eax, edx
sar eax, 1
add eax, edi
cmp eax, esi
jb 0x10a29bc
push ebx
push 0x39a0197
push dword [ebp - 0x464]
mov dword [ebp - 0x460], ebx
call fcn.0108c595
jmp 0x10a29e3
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x46c]
lea eax, [ebp + edi*2 - 0x20c]
push eax
call fcn.0102e082
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10a297d
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x460], 0
je 0x10a2a25
push dword [ebp - 0x460]
push 0x3a20197
push dword [ebp - 0x464]
call fcn.0108c595
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x460]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 4