joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063db
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004017b0
mov eax, dword [0x48f994]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x49316c]
mov dword [ebp - 4], eax
jae 0x40651e
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x493180]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40651e
push 1
push esi
push ebx
call fcn.00406725
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x406528
push 2
push esi
push ebx
call fcn.00406725
add esp, 0xc
cmp eax, 0xffffffff
je 0x406528
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4064c8
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00404730
push 0x8000
push ebx
call fcn.00407e1d
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x406487
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00407bd6
add esp, 0xc
cmp eax, 0xffffffff
je 0x4064a5
sub edi, eax
test edi, edi
jg 0x40647c
jmp 0x4064bb
cmp dword [0x491cbc], 5
jne 0x4064b8
mov dword [0x491cb8], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00407e1d
pop ecx
pop ecx
jmp 0x406508
jge 0x406508
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00406725
push ebx
call fcn.0040693f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x406508
mov dword [0x491cb8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x491cbc], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00406725
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40652b
mov dword [0x491cb8], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00404935
leave
ret
Function at 0x406537
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x49316c]
push edi
jae 0x40670c
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x493180]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40670c
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4065e2
test dl, 2
jne 0x4065e2
test dl, 0x48
je 0x4065ac
cmp byte [eax + 5], 0xa
je 0x4065ac
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4065f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4065dd
mov dword [0x491cbc], ecx
jmp 0x406713
cmp eax, 0x6d
jne 0x4065e9
xor eax, eax
jmp 0x406720
push eax
call fcn.0040697b
pop ecx
jmp 0x40671d
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x406707
test eax, eax
je 0x40661c
cmp byte [ebx], 0xa
jne 0x40661c
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x406625
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x406701
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4066f1
cmp al, 0xd
je 0x406657
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4066e3
dec ecx
cmp dword [ebp - 8], ecx
jae 0x406671
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40666c
add dword [ebp - 8], 2
jmp 0x4066c5
mov dword [ebp - 8], eax
jmp 0x4066df
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406699
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4066df
cmp dword [ebp - 0x10], 0
je 0x4066df
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4066ba
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4066c5
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4066e2
cmp ebx, dword [ebp + 0xc]
jne 0x4066ca
cmp byte [ebp - 1], 0xa
jne 0x4066ca
mov byte [ebx], 0xa
jmp 0x4066e2
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00406725
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4066e3
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40663b
jmp 0x406701
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x406701
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x406720
and dword [0x491cbc], 0
mov dword [0x491cb8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407bd6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x49316c]
mov eax, dword [0x48f994]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x407d9c
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x493180]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x407d9c
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x407c40
xor eax, eax
jmp 0x407db0
test al, 0x20
je 0x407c51
push 2
push edi
push edi
push ecx
call fcn.00408471
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407d26
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x407d6d
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x407cb3
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407ca4
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x407c86
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407cf3
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x407cff
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x407c7a
jmp 0x407d01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x407d97
cmp dword [ebp + 0x3a4], edi
je 0x407d6d
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x407d5f
mov dword [0x491cbc], eax
jmp 0x407da3
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407d51
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x407d01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x407d01
push dword [ebp + 0x3a4]
call fcn.0040697b
pop ecx
jmp 0x407dad
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407d85
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x407c39
mov dword [0x491cb8], 0x1c
mov dword [0x491cbc], edi
jmp 0x407dad
sub eax, dword [ebp - 0x7c]
jmp 0x407db0
and dword [0x491cbc], 0
mov dword [0x491cb8], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00404935
add ebp, 0x39c
leave
ret
Function at 0x4080ab
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004017b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408146
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x491cc4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x408146
cmp eax, 1
je 0x408167
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408146
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x408113
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x408142
xor eax, eax
inc eax
jmp 0x408186
cmp edi, eax
jae 0x40814a
xor eax, eax
jmp 0x408186
cmp eax, esi
jae 0x408151
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x491cc4]
jmp 0x40816a
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40520a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 1
pop esi
mov dword [0x45c5cc], eax
mov edx, esi
mov eax, 0x45c5cc
mov ecx, dword [eax]
add eax, 4
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
inc edx
mov dword [eax], edi
cmp eax, 0x45cf88
jl 0x40521f
mov dword [0x45428c], esi
mov dword [0x45cf8c], esi
pop edi
pop esi
ret

Function at 0x40524c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x45cf8c], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x45c5cc
jne 0x40526e
push 0
call fcn.00440f84
push eax
call fcn.0040520a
pop ecx
pop ecx
mov dword [0x45428c], 0x270
mov dword [0x45c5c8], esi
mov dword [esp + 0x10], 0xe3
mov edi, bind
mov ecx, 0x9908b0df
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [eax + 0x630]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x405290
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x4052c7
mov eax, dword [esi]
mov edx, dword [0x45c5cc]
mov ebx, eax
xor ebx, edx
and dl, 1
and ebx, edi
pop edi
xor ebx, eax
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405321
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x45428c]
jne 0x40532e
call fcn.0040524c
mov eax, dword [0x45c5c8]
mov ecx, dword [eax]
add dword [0x45c5c8], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ax, 0xdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x405364
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x45428c]
jne 0x405376
call fcn.0040524c
mov eax, dword [0x45c5c8]
mov eax, dword [eax]
add dword [0x45c5c8], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and cx, 0xdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
and dword [ebp - 4], 0
mov dword [ebp - 8], ecx
fild qword [ebp - 8]
fmul qword [0x450058]
leave
ret
Function at 0x40dbfc
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40dc83
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00440b60
pop ecx
test eax, eax
pop ecx
je 0x40dc6a
lea eax, [ebp - 0x114]
push 0x455b10
push eax
call fcn.00440b60
pop ecx
test eax, eax
pop ecx
je 0x40dc6a
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call fcn.0043c806
add esp, 0xc
test al, al
je 0x40dc7c
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jmp 0x40dc21
xor bl, bl
jmp 0x40dd2c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x40dc97
mov al, 1
jmp 0x40dd35
lea eax, [ebp - 0x140]
push eax
push 0x455b0c
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40dd2a
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x140]
and eax, 0x10
cmp al, 0x10
jne 0x40dd18
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00440b60
pop ecx
test eax, eax
pop ecx
je 0x40dd18
lea eax, [ebp - 0x114]
push 0x455b10
push eax
call fcn.00440b60
pop ecx
test eax, eax
pop ecx
je 0x40dd18
lea eax, [ebp - 0x114]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040dbfc
test al, al
je 0x40dc7c
push 0x455b10
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40dcb2
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40f252
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x518]
mov esi, 0x104
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40f3bc
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x108]
push str.___s
push eax
call fcn.00440db3
lea eax, [ebp - 0x108]
push eax
call fcn.004401c0
add esp, 0x10
xor ebx, ebx
cmp byte [ebp + eax - 0x109], 0x5c
jne 0x40f2e2
lea eax, [ebp - 0x108]
push eax
call fcn.004401c0
pop ecx
lea ecx, [ebp - 0x108]
dec ecx
dec ecx
cmp byte [eax + ecx], 0x3a
je 0x40f2e2
lea eax, [ebp - 0x108]
push eax
call fcn.004401c0
pop ecx
mov byte [ebp + eax - 0x109], bl
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40f2f9
cmp byte [ebp + 0x10], bl
je 0x40f3bc
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f3b3
push 0x14
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00441760
lea eax, [ebp - 0x108]
mov dword [ebp - 0x414], 0xa0000003
push eax
call fcn.004401c0
shl eax, 1
mov word [ebp - 0x40a], ax
mov eax, dword [ebp - 0x40a]
add eax, 2
add esp, 0x10
mov word [ebp - 0x408], ax
lea eax, [ebp - 0x404]
push esi
push eax
lea eax, [ebp - 0x108]
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x40a]
lea ecx, [ebp - 4]
add eax, 0xc
push ebx
mov word [ebp - 0x410], ax
push ecx
movzx eax, ax
push ebx
add eax, 8
push ebx
push eax
lea eax, [ebp - 0x414]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push edi
jne 0x40f3c0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x40f3c9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40fef6
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40ff8d
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00440b60
pop ecx
test eax, eax
pop ecx
je 0x40ff74
lea eax, [ebp - 0x114]
push 0x455b10
push eax
call fcn.00440b60
pop ecx
test eax, eax
pop ecx
je 0x40ff74
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp + 0x10]
or eax, dword [ebp + 0xc]
not ecx
and eax, ecx
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40ff86
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jmp 0x40ff1b
xor bl, bl
jmp 0x410036
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x40ffa1
mov al, 1
jmp 0x41003f
lea eax, [ebp - 0x140]
push eax
push 0x455b0c
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x410034
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x140]
and eax, 0x10
cmp al, 0x10
jne 0x410022
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00440b60
pop ecx
test eax, eax
pop ecx
je 0x410022
lea eax, [ebp - 0x114]
push 0x455b10
push eax
call fcn.00440b60
pop ecx
test eax, eax
pop ecx
je 0x410022
lea eax, [ebp - 0x114]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fef6
test al, al
je 0x40ff86
push 0x455b10
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ffbc
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x410956
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x44e560
call fcn.0044061c
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040101d
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401079
push 0x455b0c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040125c
lea eax, [ebp - 0x16c]
mov byte [ebp + 0xb], 1
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x410abe
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
call fcn.0040b1f2
cmp eax, 1
je 0x410aba
cmp eax, 0xb
jne 0x4109e1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4109c1
lea eax, [ebp - 0x140]
push str..__
push eax
call fcn.00440b60
pop ecx
test eax, eax
pop ecx
je 0x410aa1
lea eax, [ebp - 0x140]
push 0x455b10
push eax
call fcn.00440b60
pop ecx
test eax, eax
pop ecx
je 0x410aa1
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x18]
push eax
call fcn.004010e6
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040125c
test byte [ebp - 0x16c], 0x10
je 0x410a78
cmp byte [ebp + 0x18], 0
je 0x410a48
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x410aa1
push 0x455b28
lea ecx, [ebp - 0x18]
call fcn.0040125c
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x1c]
push dword [ebp + 0x18]
push esi
push edi
push ebx
push dword [ebp - 0x18]
call fcn.00410956
test al, al
mov byte [ebp + 0xb], al
je 0x410abe
jmp 0x410aa1
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x14c]
xor ebx, ebx
xor eax, eax
or ecx, ebx
mov ebx, dword [ebp + 0xc]
or eax, edx
add dword [ebx], eax
adc dword [ebx + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x410aa1
add dword [edi], 1
adc dword [edi + 4], 0
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x410abe
jmp 0x4109c1
and byte [ebp + 0xb], 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x2c]
and byte [ebp - 4], 0
call fcn.0044023b
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.0044023b
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x41946a
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov eax, 0x44e784
call fcn.0044061c
sub esp, 0x154
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call section..text
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call section..text
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call section..text
push str.SOFTWAREClasses_
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0xff
call fcn.00401132
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.0040125c
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.0040125c
push 0x45bba0
lea ecx, [ebp - 0x24]
call fcn.00401132
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x419508
cmp byte [esi], 0x5c
je 0x419508
cmp byte [esi + 1], 0x5c
je 0x419508
push 0x4562e4
lea ecx, [ebp - 0x24]
call fcn.00401132
push esi
lea ecx, [ebp - 0x24]
call fcn.0040125c
cmp dword [ebp + 0x14], ebx
je 0x419558
push 0x20
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00441760
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x58], ebx
push eax
call fcn.004010e6
push str.IPC_
lea ecx, [ebp - 0x3c]
call fcn.0040125c
mov eax, dword [ebp - 0x3c]
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x5c]
push dword [ebp + 0x18]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, ebx
jne 0x4195eb
lea eax, [ebp - 0x10]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov esi, eax
cmp esi, ebx
jne 0x4195eb
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x4195e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x4195d9
mov eax, dword [ebp - 0x18]
push edi
push ebx
mov byte [ebp + eax - 0x160], bl
lea eax, [ebp - 0x160]
push eax
call fcn.0043df9b
pop ecx
mov edi, eax
pop ecx
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.0044023b
pop ecx
pop edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0044023b
push dword [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0044023b
push dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
call fcn.0044023b
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret